Derive the multinomial maximum likelihood estimators and explain how the sum-to-one constraint is handled
Quick Overview
Asks you to derive the maximum likelihood estimators of multinomial cell probabilities and show how the sum-to-one constraint enters the derivation. Tests constrained optimization with a Lagrange multiplier, checking that a stationary point is a maximum, and handling categories with zero counts.
Derive the multinomial maximum likelihood estimators and explain how the sum-to-one constraint is handled
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Derive the maximum likelihood estimators for a multinomial distribution and explain how the constraint that probabilities sum to one is handled.
Assume you observe counts $n_1, \dots, n_K$ over K categories from n independent trials, and the unknown parameters are the cell probabilities $p_1, \dots, p_K$.
```hint Simplify the likelihood first
Write the log-likelihood and look for a factor that does not depend on the probabilities at all.
```
```hint Count your equations
Setting derivatives to zero gives K conditions with one extra unknown. Ask where the missing equation comes from.
```
### What a Strong Answer Covers
- The multinomial likelihood and log-likelihood, and which term can be dropped
- How the sum-to-one constraint is enforced, with a Lagrange multiplier or by substitution
- Solving the stationarity conditions and the multiplier to reach the estimator
- Why the stationary point is a maximum, and what happens when a category has zero count
### Follow-up Questions
- Show the same result by substituting $p_K = 1 - \sum_{k<K} p_k$ instead of using a multiplier.
- What are the variance of $\hat{p}_k$ and the covariance between two cell estimates?
- A category has zero observed count. Why is that estimate a problem for prediction, and how does a Dirichlet prior change it?
- How would you use this estimator in a likelihood ratio test of whether a die is fair?
Overview: Asks you to derive the maximum likelihood estimators of multinomial cell probabilities and show how the sum-to-one constraint enters the derivation. Tests constrained optimization with a Lagrange multiplier, checking that a stationary point is a maximum, and handling categories with zero counts.