How does Naïve Bayes behave under extreme class imbalance?

Updated May 17, 2026

Short answer

Naïve Bayes becomes biased toward the majority class unless priors or weights are adjusted.

Deep explanation

In imbalanced datasets, prior probabilities dominate posterior computation. If not corrected, the model may always predict the majority class. Techniques like prior adjustment, resampling, or cost-sensitive learning help mitigate this issue. However, NB can still perform surprisingly well in skewed text classification tasks.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Naïve Bayes interview questions

View all →