Which Naive Bayes variant would you use for word counts, binary features and continuous measurements?

Quick Overview

Asks which Naive Bayes variant fits word counts, binary features and continuous measurements, and why. Tests understanding of the multinomial, Bernoulli and Gaussian likelihoods, how each treats repeated and missing words, and how to handle categorical or mixed features.

Which Naive Bayes variant would you use for word counts, binary features and continuous measurements?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Which Naive Bayes variant would you use for word counts, binary features and continuous measurements? For each one, say what likelihood the variant assumes for a feature given the class and why that fits the data. ```hint One distribution per feature The variants differ only in the distribution they assume for a single feature given the class. For each feature type, ask which distribution can produce values of that kind. ``` ### What a Strong Answer Covers - The variant for each of the three feature types - The per-feature likelihood each variant assumes - How the multinomial and Bernoulli models treat repeated words and absent words differently - What to do when continuous features are far from normal - How to handle multi-valued categorical or mixed feature types ### Follow-up Questions - What happens if you pass raw word counts to scikit-learn's `BernoulliNB` with its default settings? - Why does smoothing matter for the multinomial and Bernoulli variants, and what is the Gaussian counterpart? - Why does `ComplementNB` tend to help on imbalanced text classes? - Naive Bayes probabilities are often poorly calibrated. Why, and does that hurt classification accuracy?

Overview: Asks which Naive Bayes variant fits word counts, binary features and continuous measurements, and why. Tests understanding of the multinomial, Bernoulli and Gaussian likelihoods, how each treats repeated and missing words, and how to handle categorical or mixed features.

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

Which Naive Bayes variant would you use for word counts, binary features and continuous measurements?

For each one, say what likelihood the variant assumes for a feature given the class and why that fits the data.

What a Strong Answer Covers Guidance

  • The variant for each of the three feature types
  • The per-feature likelihood each variant assumes
  • How the multinomial and Bernoulli models treat repeated words and absent words differently
  • What to do when continuous features are far from normal
  • How to handle multi-valued categorical or mixed feature types

Follow-up Questions Guidance

  • What happens if you pass raw word counts to scikit-learn's BernoulliNB with its default settings?
  • Why does smoothing matter for the multinomial and Bernoulli variants, and what is the Gaussian counterpart?
  • Why does ComplementNB tend to help on imbalanced text classes?
  • Naive Bayes probabilities are often poorly calibrated. Why, and does that hurt classification accuracy?