Generative vs Discriminative Models
Q: Compare Naive Bayes and logistic regression.
- Discriminative models learn
p(y|x)directly (logistic regression, SVM, NNs): usually better accuracy with enough data. - Generative models learn
p(x, y) = p(x|y)p(y)(Naive Bayes, GMM, HMM, VAEs, diffusion): can generate data, handle missing features, and work well with little data. - Naive Bayes assumes features are conditionally independent given the class → super fast, strong baseline for text; probabilities are poorly calibrated.
- Ng & Jordan: Naive Bayes reaches its (higher) asymptotic error faster; logistic regression wins with more data.