Given a dataset with $K$ binary-valued attributes (where $K > 2$) for a two-class classification task, the number of parameters to be estimated for learning a naïve Bayes classifier is
Naive Bayes needs $P(x_i = 1 | \text{class})$ for each of the $K$ attributes and each of the 2 classes, which is $2K$ parameters, and the prior $P(\text{class} = 1)$, one more. The total is $2K + 1$.
More Supervised learning: classification questions
GATE 2024 DA Q53– Consider the following figures representing datasets consisting of two-dimensional…
GATE 2024 DA Q62– Details of ten international cricket games between two teams "Green" and "Blue" are given…
GATE 2024 DA Q63– Given the two-dimensional dataset consisting of 5 data points from two classes (circles…
GATE 2026 DA Q23– In the following table, the Task column lists a few tasks related to machine learning. The…
GATE 2026 DA Q47– Consider that 20 stories of Author X and 10 stories of Author Y were kept together without…
GATE 2025 DA Q22– Consider designing a linear classifier y = sign(f(x; w, b)), f(x; w, b) = w x + b on a…