4.9.17Probability Theory & Statistics

Statistical estimation — MLE, method of moments

1,730 words8 min readdifficulty · medium

WHAT is an estimator?


Method of Moments (the easy one first)


Maximum Likelihood Estimation

Figure — Statistical estimation — MLE, method of moments

Properties to judge an estimator


MLE vs MoM — when to use which


What does MLE maximize?
The likelihood L(θ)=f(xi;θ)L(\theta)=\prod f(x_i;\theta), i.e. the probability of the observed data as a function of θ\theta.
Why take the log of the likelihood?
log is strictly increasing so it preserves the maximizer, and it turns the product into a sum that's easy to differentiate.
Method of moments recipe?
Equate population moments μk=E[Xk]\mu_k=E[X^k] to sample moments 1nxik\frac1n\sum x_i^k for k=1..pk=1..p and solve for the pp parameters.
MLE of exponential rate λ\lambda?
λ^=1/xˉ\hat\lambda=1/\bar x.
MLE of Bernoulli pp?
p^=xˉ=\hat p=\bar x= sample proportion of successes.
Is the MLE of σ2\sigma^2 for a normal unbiased?
No; it divides by nn, giving E[σ^2]=n1nσ2E[\hat\sigma^2]=\frac{n-1}{n}\sigma^2. The unbiased version divides by n1n-1.
MSE decomposition?
MSE=Var(θ^)+bias2\text{MSE}=\text{Var}(\hat\theta)+\text{bias}^2.
When does differentiating fail to find the MLE?
At boundary/support-dependent parameters, e.g. U(0,θ)U(0,\theta) where θ^=maxxi\hat\theta=\max x_i.
Invariance property of MLE?
If θ^\hat\theta is the MLE of θ\theta, then g(θ^)g(\hat\theta) is the MLE of g(θ)g(\theta).
Define a consistent estimator.
θ^Pθ\hat\theta\xrightarrow{P}\theta as nn\to\infty.

Recall Feynman: explain to a 12-year-old

Imagine you find footprints in the mud. You don't know which animal made them, but you ask: which animal would most likely leave exactly these prints? That animal is your best guess. That's MLE — pick the cause that best explains what you saw. The method of moments is even simpler: if you know that on average dogs weigh 20kg, and your mystery pile of dogs averages 20kg, you assume they're normal dogs — you match the averages and solve. Both are just clever ways to turn "data we saw" into "best guess of the hidden number."

Concept Map

goal

is a

single value

method 1

method 2

set equal

justified by

solve p eqns

maximize

take log

strictly increasing keeps

example

example

Data x1..xn from unknown theta

Estimator theta-hat

Random variable / statistic

Estimate

Method of Moments

Maximum Likelihood

Sample moment mk = population moment muk

Law of Large Numbers

Solve for theta

Likelihood L = product f xi theta

Log-likelihood ell = sum log f

Same argmax easier algebra

Exp lambda-hat = 1 / xbar

Normal mu-hat=xbar sigma2-hat=var

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Estimation ka matlab hai: humare paas data hai jo kisi distribution se aaya hai, lekin uska parameter (jaise mean ya rate λ\lambda) hidden hai. Hum us hidden number ka best guess lagana chahte hain. Do popular tareeke hain — MLE aur Method of Moments.

MLE (Maximum Likelihood) kehta hai: woh θ\theta choose karo jiske under tumhara actual observed data sabse zyada probable lage. Mathematically likelihood L(θ)=f(xi;θ)L(\theta)=\prod f(x_i;\theta) banate hain, fir uska log lete hain (kyunki log product ko sum bana deta hai aur maximizer same rehta hai), differentiate karke zero set karte hain. Jaise exponential ke liye answer aata hai λ^=1/xˉ\hat\lambda=1/\bar x — bilkul intuitive!

Method of Moments aur bhi simple hai: population ka mean/variance jo formula me θ\theta ke terms me aata hai, usse sample ke mean/variance ke barabar rakh do aur solve kar do. Law of Large Numbers kehta hai sample moments true moments ke paas chale jaate hain, isliye yeh kaam karta hai.

Important baat: MLE hamesha unbiased nahi hota — normal ka σ^2\hat\sigma^2 nn se divide karta hai, isliye thoda chhota (biased) aata hai, aur unbiased ke liye n1n-1 chahiye. Exam me 80% kaam yahi hai: \ell likho, differentiate karo, solve karo, aur second derivative check kar lo. Boundary wale cases (jaise U(0,θ)U(0,\theta)) me differentiate mat karo — wahan θ^=maxxi\hat\theta=\max x_i hota hai.

Go deeper — visual, from zero

Test yourself — Probability Theory & Statistics

Connections