Skip to content
GATEiit

GATE DA 2025 Q22: Perceptron update on a misclassified positive sample

Question

Consider designing a linear classifier

y=sign⁡(f(x;w,b)),f(x;w,b)=w⊤x+by = \operatorname{sign}(f(x; w, b)), \quad f(x; w, b) = w^{\top}x + b

on a dataset D={(x1,y1),(x2,y2),…,(xN,yN)}D = \{(x_1, y_1), (x_2, y_2), \ldots, (x_N, y_N)\}, xi∈Rdx_i \in \mathbb{R}^d, yi∈{+1,−1}y_i \in \{+1, -1\}, i=1,2,…,Ni = 1, 2, \ldots, N. Recall that the sign function outputs +1+1 if the argument is positive, and −1-1 if the argument is non-positive. The parameters ww and bb are updated as per the following training algorithm:

wnew=wold+ynxn,bnew=bold+ynw_{new} = w_{old} + y_n x_n, \quad b_{new} = b_{old} + y_n

whenever sign⁡(f(xn;wold,bold))≠yn\operatorname{sign}(f(x_n; w_{old}, b_{old})) \ne y_n. In other words, whenever the classifier wrongly predicts a sample (xn,yn)(x_n, y_n) from the dataset, woldw_{old} gets updated to wneww_{new}, and likewise boldb_{old} gets updated to bnewb_{new}. Consider the case (xn,+1)(x_n, +1), f(xn;wold,bold)<0f(x_n; w_{old}, b_{old}) < 0. Then

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: A (official GATE 2025 final answer key)

Concept used: Perceptron learning rule moves the score of a misclassified point towards its label.

First step: With yn=+1y_n = +1, substitute the update: f(xn;wnew,bnew)=(wold+xn)⊤xn+bold+1=f(xn;wold,bold)+∥xn∥2+1f(x_n; w_{new}, b_{new}) = (w_{old} + x_n)^{\top}x_n + b_{old} + 1 = f(x_n; w_{old}, b_{old}) + \lVert x_n \rVert^2 + 1.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2025 DA question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key