Under what condition does the MAP decision rule become equivalent to the maximum likelihood decision rule?

Quick Overview

Asks when the maximum a posteriori decision rule picks the same class as the maximum likelihood rule. Tests whether you can write both rules, explain the role of class priors, and reason about what each rule does on imbalanced data and as the evidence grows.

Under what condition does the MAP decision rule become equivalent to the maximum likelihood decision rule?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Under what condition does the MAP decision rule become equivalent to the maximum likelihood decision rule? Consider a classifier, such as Naive Bayes, that picks a class $y$ for an input $x$ from class-conditional likelihoods $P(x \mid y)$ and class priors $P(y)$. ```hint Compare the two argmaxes Write both rules as an argmax over classes and ask which factor in the MAP score could stop affecting which class wins. ``` ### What a Strong Answer Covers - Both decision rules written out and the one factor that separates them. - The condition under which that factor drops out of the argmax, and why it cannot change the winner. - How the two rules behave differently on imbalanced data. - How the amount of evidence affects the gap between them. ### Follow-up Questions - On a dataset that is 90% one class, which rule gives higher accuracy, and which gives higher recall on the rare class? - What loss or metric does each rule optimize? - How would you change the MAP rule if a false negative costs five times as much as a false positive? - How does the same argument apply to MAP versus maximum likelihood estimation of model parameters?

Overview: Asks when the maximum a posteriori decision rule picks the same class as the maximum likelihood rule. Tests whether you can write both rules, explain the role of class priors, and reason about what each rule does on imbalanced data and as the evidence grows.

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

Under what condition does the MAP decision rule become equivalent to the maximum likelihood decision rule? Consider a classifier, such as Naive Bayes, that picks a class yy for an input xx from class-conditional likelihoods P(x∣y)P(x \mid y) and class priors P(y)P(y).

What a Strong Answer Covers Guidance

  • Both decision rules written out and the one factor that separates them.
  • The condition under which that factor drops out of the argmax, and why it cannot change the winner.
  • How the two rules behave differently on imbalanced data.
  • How the amount of evidence affects the gap between them.

Follow-up Questions Guidance

  • On a dataset that is 90% one class, which rule gives higher accuracy, and which gives higher recall on the rare class?
  • What loss or metric does each rule optimize?
  • How would you change the MAP rule if a false negative costs five times as much as a false positive?
  • How does the same argument apply to MAP versus maximum likelihood estimation of model parameters?