Gradient LabSign up free

Home / GATE DA / 2025 / Q.35

GATE DA 2025, Q.35: Probability of misclassifying x

Machine learningBayes error of Naive Bayes1 markNumerical answerFree

The question

A Naive Bayes classifier has P(y1) = 1/3, P(y2) = 2/3. For a feature vector x, P(x | y1) = 3/4 and P(x | y2) = 1/4. Find the probability of misclassifying x, to two decimals.

Watch it solved

Solve it step by step

  1. Joint scores. y1: (1/3)(3/4) = 1/4. y2: (2/3)(1/4) = 1/6.
  2. Posterior. P(y1 | x) = (1/4) / (1/4 + 1/6) = 0.6, so predict y1.
  3. Error. The class is actually y2 with probability 0.4.

Answer: 0.40

Official IIT Roorkee answer key: 0.39 to 0.41.

Common mistake. Reporting 0.6 (the probability of the predicted class).

Remember. Misclassification probability at x = 1 − max posterior.

See it move

Learn the idea behind this question in the free animated lesson Naive Bayes, then Probability.

Want every question solved? The past-paper pack has all 195 questions from 2024, 2025 and 2026 for ₹499. The cheat sheet pack has 23 printable sheets for ₹399.

See the past-paper pack See the cheat sheets

Source: official GATE DA 2025 question paper and answer key (IIT Roorkee). The question is lightly reworded; every number and option is kept.