Naive Bayes

Applies Bayes' rule with conditional independence assumptions among features given the class.

Method

Estimate class priors and feature likelihoods; combine log probabilities; smooth sparse counts where needed.

Applications

Spam filtering, document classification, diagnosis support, sentiment analysis.

Advantages

Very fast; works with sparse high-dimensional data; small training sets.

Limitations

Independence assumption often unrealistic; probability calibration can be poor.

Alternatives

Logistic regression, SVM, tree ensembles, neural text models.

Example

Spam filter: 'free' + 'win' -> P(spam) high.

Sources

Educational reference only, not professional advice.

All algorithms