Curated · Naive Bayes Classifier

MCQ · 1 mark · Problem ML-NBAY-0004

A naive Bayes classifier predicts a class \(y\) from two features \(x_1\) and \(x_2\). The naive Bayes assumption is
  1. A
    \(P(x_1,x_2\mid y)=P(x_1\mid y)\,P(x_2\mid y)\)
  2. B
    \(P(x_1,x_2)=P(x_1)\,P(x_2)\)
  3. C
    \(P(y\mid x_1,x_2)=P(y\mid x_1)\,P(y\mid x_2)\)
  4. D
    \(P(x_1,x_2\mid y)=P(x_1)\,P(x_2)\)

Solve it on GATE DA practice →More Supervised Learning — Classification problems

Show the worked solution\[\boxed{P(x_1,\dots,x_d\mid y)=\prod_j P(x_j\mid y)}\]The features are assumed conditionally independent given the class, so the class-conditional likelihood factorises, option (A).(B) is marginal independence. It is a different condition and usually fails: features that both depend on \(y\) are correlated once \(y\) is unknown.(C) is not even a valid probability model in general (the right side need not sum to \(1\) over \(y\)).(D) would make the features independent of the class, so they could not help to classify.Answer: A

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com