the prior
P(C) times the feature-likelihood product yields the posterior, and the class with maximum posterior is predicted — the normalizer
P(x) is the same for all classes and cancels under argmax. The parameterization defines three variants: Multinomial NB (count features, multinomial distribution, for word counts in text), Gaussian NB (continuous features fit as
P(xi∣C)=N(xi;μC,i,σC,i2)), and Bernoulli NB (binary 0/1 features, Bernoulli distribution). If a feature-class pair never appears in training, the posterior product collapses to zero, hence Laplace smoothing