Intuition
Choose the parameter value that makes the observed data most probable.
Likelihood Function
For data X1,…,Xn and parameter θ:
L(θ)=∏i=1nf(Xi;θ)
where f(x;θ) is the PMF or PDF.
Log-Likelihood
ℓ(θ)=logL(θ)=∑i=1nlogf(Xi;θ)
Easier to work with: products become sums.
MLE Definition
θ^MLE=argmaxθL(θ)=argmaxθℓ(θ)
Example: Bernoulli
Xi∼Bern(p). Data: x1,…,xn.
L(p)=∏i=1npxi(1−p)1−xi=p∑xi(1−p)n−∑xi
ℓ(p)=(∑xi)logp+(n−∑xi)log(1−p)
Differentiate and set to 0:
p∑xi−1−pn−∑xi=0
p^=n1∑i=1nxi=Xˉ
Example: Normal Mean (Known Variance)
Xi∼N(μ,σ2) with σ known.
ℓ(μ)=−2nlog(2πσ2)−2σ21∑(xi−μ)2
Maximise by minimising ∑(xi−μ)2:
μ^=Xˉ
Properties of MLE
- Consistent: θ^MLEPθ
- Asymptotically normal: n(θ^MLE−θ)dN(0,I−1)
- Asymptotically efficient: Achieves minimum variance among all estimators
- Invariant: If θ^ is MLE of θ, then g(θ^) is MLE of g(θ)
Summary
| Step | Action |
|---|
| 1 | Write likelihood L(θ) |
| 2 | Take log (optional but easier) |
| 3 | Differentiate, set to 0 |
| 4 | Solve for θ^ |