IAE Academy

GATE 2025 DA Q.55: solution and answer

GATE 2025 · DAQ.55 · 2 marks · MSQ

Consider a two-class problem in with class labels red and green. Let and be the means of the two classes. Given test sample , a classifier calculates the squared Euclidean distance (denoted by ) between and the means of the two classes and assigns the class label that the sample is closest to. That is, the classifier computes and assigns the label red to if , and green otherwise. Which of the following statements is/are correct?

  1. (A)

    The sample is assigned the label green if

  2. (B)

    is a linear function of

  3. (C)

    , where and are functions of and

  4. (D)

    is a quadratic polynomial in

See the question in the paper

Answer and solution

ANSWER

The correct options are (B) and (C): with and .

Official answer: B, CSource: Official answer key, GATE 2025 DA (IIT Roorkee)

  1. Expand each squared distance: .

  2. Subtract the two expansions. The terms cancel, so

  3. Hence with and . Both and depend only on the two class means, so is linear (affine) in : (B) and (C) are correct.

  4. (D): no term of degree 2 in survives the subtraction, so has degree 1 and is not a quadratic polynomial. (D) is false.

  5. (A): at , . If then , so the label is red, not green. (A) is false.

  6. Correct options: B and C.

KEY IDEA

The nearest-mean classifier with squared Euclidean distance has a linear decision rule: the terms cancel in the difference, leaving a hyperplane boundary .

WATCH OUT FOR

Seeing squared distances and concluding is quadratic in . The quadratic term is identical in both distances and cancels. Another slip is reading as green, when negative means red.

From the GATE 2025 DA paper. Every question of this paper · Download the full paper · All 7 LDA, SVM & trees questions, with notes

More LDA, SVM & trees questions