How does severe class imbalance in the training set affect predictions of a Multinomial Naive Bayes model?

Quick Overview

Asks how a heavily skewed class ratio in training data changes the predictions of a Multinomial Naive Bayes text classifier. Tests understanding of the prior and likelihood terms, additive smoothing on small classes, imbalance symptoms in metrics, and practical remedies.

How does severe class imbalance in the training set affect predictions of a Multinomial Naive Bayes model?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does severe class imbalance in the training set affect predictions of a Multinomial Naive Bayes model? ```hint Write the decision rule Write each class's score as a log prior plus a sum of per-word log likelihoods, then ask which of those terms the imbalance changes. ``` ```hint Count the evidence Compare how many word tokens each class contributes to its own estimates, and what additive smoothing does when that number is small. ``` ### What a Strong Answer Covers - How imbalance changes the prior term, and how that compares with the word evidence in short and long documents - What imbalance does to the minority class's likelihood estimates - The symptoms in evaluation metrics and in predicted probabilities - Remedies, and the metrics to judge them by ### Follow-up Questions - If you switch to a uniform prior, what improves and what problem remains? - How would you choose the decision threshold, and on which data? - The class ratio in production differs from the training ratio. How would you correct the model's posteriors?

Overview: Asks how a heavily skewed class ratio in training data changes the predictions of a Multinomial Naive Bayes text classifier. Tests understanding of the prior and likelihood terms, additive smoothing on small classes, imbalance symptoms in metrics, and practical remedies.

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

How does severe class imbalance in the training set affect predictions of a Multinomial Naive Bayes model?

What a Strong Answer Covers Guidance

  • How imbalance changes the prior term, and how that compares with the word evidence in short and long documents
  • What imbalance does to the minority class's likelihood estimates
  • The symptoms in evaluation metrics and in predicted probabilities
  • Remedies, and the metrics to judge them by

Follow-up Questions Guidance

  • If you switch to a uniform prior, what improves and what problem remains?
  • How would you choose the decision threshold, and on which data?
  • The class ratio in production differs from the training ratio. How would you correct the model's posteriors?