How does logistic regression compare to naive Bayes as the classic discriminative-versus-generative pair?

Quick Overview

Asks you to compare logistic regression and naive Bayes as the standard discriminative and generative classifiers. It tests what each model estimates, the conditional independence assumption, behavior on small versus large training sets, decision boundaries and probability calibration.

How does logistic regression compare to naive Bayes as the classic discriminative-versus-generative pair?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does logistic regression compare to naive Bayes as the classic discriminative-versus-generative pair? ```hint Compare what is modeled Write down which probability each model fits from the training data, and which assumption the generative model needs to make that fit tractable. ``` ```hint Look at the log-odds Write the naive Bayes posterior log-odds for binary features and compare its form with the logistic regression model. ``` ### What a Strong Answer Covers - States which distribution each model estimates and how naive Bayes turns its estimates into a classifier. - Explains the conditional independence assumption and what happens when features are correlated. - Compares behavior on small and large training sets in terms of bias, variance and convergence. - Relates the two decision boundaries and covers calibration, missing features and training cost. ### Follow-up Questions - Show that Bernoulli naive Bayes gives a log-odds that is linear in the features. Why does it still behave differently from logistic regression? - When does Gaussian naive Bayes produce a quadratic decision boundary? - You have 200 labeled emails and 50,000 vocabulary features. Which model would you start with, and why? - How would you fix poorly calibrated naive Bayes probabilities?

Overview: Asks you to compare logistic regression and naive Bayes as the standard discriminative and generative classifiers. It tests what each model estimates, the conditional independence assumption, behavior on small versus large training sets, decision boundaries and probability calibration.

General logo
General
Nov 25, 2026
mediumData ScientistOtherMachine Learning
0
0

How does logistic regression compare to naive Bayes as the classic discriminative-versus-generative pair?

What a Strong Answer Covers Guidance

  • States which distribution each model estimates and how naive Bayes turns its estimates into a classifier.
  • Explains the conditional independence assumption and what happens when features are correlated.
  • Compares behavior on small and large training sets in terms of bias, variance and convergence.
  • Relates the two decision boundaries and covers calibration, missing features and training cost.

Follow-up Questions Guidance

  • Show that Bernoulli naive Bayes gives a log-odds that is linear in the features. Why does it still behave differently from logistic regression?
  • When does Gaussian naive Bayes produce a quadratic decision boundary?
  • You have 200 labeled emails and 50,000 vocabulary features. Which model would you start with, and why?
  • How would you fix poorly calibrated naive Bayes probabilities?