It applies Bayes' theorem: the class probability is proportional to the prior times the product of per-feature likelihoods.
It is called naive because it assumes features are conditionally independent given the class, which is rarely true.
Despite that, it is fast, works well with small data and text classification (spam filtering), and needs little tuning; use Laplace smoothing for unseen words.
Loading…