Back to the 2026 paper

Module 3: Linear Classification and Advanced Methods

20267m

Write a short note on Naive Bayes classifier.

Worked SolutionAI Assisted

Naive Bayes classifier

Naive Bayes is a probabilistic classifier based on Bayes' theorem and the assumption that features are conditionally independent given the class.

[P(C\mid x_1,\ldots,x_n)\propto P(C)\prod_iP(x_i\mid C)]

For a new example, calculate this score for each class and choose the largest posterior probability. Variants include Gaussian Naive Bayes for continuous features, Multinomial Naive Bayes for counts/text, and Bernoulli Naive Bayes for binary features. It is fast and effective for many text-classification tasks, but correlated features can make its probability estimates inaccurate.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.