PROBABILITY & STATISTICS · INTERVIEW QUESTION
Explain the difference between MAP and MLE estimation. When would you prefer one over the other?
🔴 advanced · Bayesian Methods
Hint: MAP adds a prior term. Think about regularization.
Answer
MLE and MAP are both point estimates of model parameters, but differ in whether they incorporate prior knowledge.
Maximum Likelihood Estimation (MLE)
Finds parameters that make observed data most likely. No prior assumptions.
Maximum A Posteriori (MAP)
Includes a prior over parameters — equivalent to regularization:
| Prior | Regularization | Effect |
|---|---|---|
| Gaussian | L2 (Ridge) | Shrinks weights |
| Laplace | L1 (Lasso) | Sparse weights |
When to Use Each
- MLE: lots of data (prior gets overwhelmed), no strong prior beliefs
- MAP: limited data, informative priors available
- Full Bayesian: need uncertainty estimates (computes entire posterior, not just mode)
Related questions
- Explain maximum likelihood estimation (MLE). Give an example.
- Explain Bayes' theorem and give an ML application.
- What is the difference between Type I and Type II errors? How do they relate to precision and recall?
- How do you determine sample size for an A/B test?
- What is the Law of Large Numbers? How does it relate to ML?