Under what practical data conditions might a generative classifier be preferable to a discriminative one?

Quick Overview

Asks when a generative classifier such as Naive Bayes is a better choice than a discriminative one like logistic regression. Tests whether you can tie the difference in what each model learns to concrete data conditions and say when the discriminative model wins instead.

Under what practical data conditions might a generative classifier be preferable to a discriminative one?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Under what practical data conditions might a generative classifier be preferable to a discriminative one? ```hint What the extra model buys you A generative classifier also models the inputs themselves. List the situations where knowing something about the input distribution would help. ``` ```hint Sample size Compare how quickly Naive Bayes and logistic regression approach their best achievable error as the number of training examples grows. ``` ### What a Strong Answer Covers - The difference between what a generative and a discriminative classifier estimate. - How the two families behave with small training sets and how that changes as labeled data grows. - Concrete data conditions beyond sample size where modeling the inputs helps, with the mechanism for each. - When the discriminative model is the better choice, and the weaknesses of generative probability estimates. ### Follow-up Questions - A Naive Bayes model reports probabilities near 0 or 1 for most inputs. Why, and how would you fix it? - How would you use unlabeled data with a Gaussian mixture classifier, and when can it make the model worse? - Can a discriminative model adapt to a new class prior without retraining? - Why can a deep generative model assign high likelihood to out-of-distribution inputs, and what does that mean for novelty detection?

Overview: Asks when a generative classifier such as Naive Bayes is a better choice than a discriminative one like logistic regression. Tests whether you can tie the difference in what each model learns to concrete data conditions and say when the discriminative model wins instead.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Under what practical data conditions might a generative classifier be preferable to a discriminative one?

What a Strong Answer Covers Guidance

  • The difference between what a generative and a discriminative classifier estimate.
  • How the two families behave with small training sets and how that changes as labeled data grows.
  • Concrete data conditions beyond sample size where modeling the inputs helps, with the mechanism for each.
  • When the discriminative model is the better choice, and the weaknesses of generative probability estimates.

Follow-up Questions Guidance

  • A Naive Bayes model reports probabilities near 0 or 1 for most inputs. Why, and how would you fix it?
  • How would you use unlabeled data with a Gaussian mixture classifier, and when can it make the model worse?
  • Can a discriminative model adapt to a new class prior without retraining?
  • Why can a deep generative model assign high likelihood to out-of-distribution inputs, and what does that mean for novelty detection?