Naive Bayes Classifier
- Definition
- Naive Bayes is a fast probabilistic classifier that assumes features are independent given the class. Despite this strong assumption, it often works well in practice (e.g., text classification). Think of multiplying simple likelihoods for each feature and picking the class with the highest score. It differs from more expressive probabilistic models by trading modeling fidelity for speed and simplicity.

How does it work?
Naive Bayes Classifier models learn from labeled examples: prepare features, choose a model family, train on examples, and validate on held-out data. Pay attention to data preprocessing, class imbalance, and hyperparameter tuning.
Examples
- Email spam filtering — Fast multinomial Naive Bayes on token counts for production spam classifiers.
- Document classification — Classify news articles or support tickets by word-frequency models.
- Baseline text categorisation — Quick baseline models in pipelines before moving to heavier architectures.
Problems
- Independence assumption between features rarely holds in practice
- Zero-frequency problem when a category wasn't seen in training
- Poor probability calibration despite decent classification accuracy
- Sensitive to how continuous features are discretized/modeled