Mehmet Emre Tiryaki
Back to Notes

Parameter Estimation

Method of Moments

The kk-th moment is μk=E[Xk]\mu_k = E[X^k] and the sample moment μ^k=1n∑i=1nXik\hat{\mu}_k = \frac{1}{n}\sum_{i=1}^n X_i^k. Match them and solve for θ\theta.

The standard error σθ^=Var(θ^)\sigma_{\hat{\theta}} = \sqrt{\mathrm{Var}(\hat{\theta})} depends on the true θ0\theta_0, and sθ^s_{\hat{\theta}} replaces θ0\theta_0 with θ^\hat{\theta}. E.g. for Poisson, λ^=Xˉ\hat{\lambda} = \bar{X}, σλ^=λ0/n\sigma_{\hat{\lambda}} = \sqrt{\lambda_0 / n}, sλ^=λ^/ns_{\hat{\lambda}} = \sqrt{\hat{\lambda} / n}.

θ^n\hat{\theta}_n is consistent if P(∣θ^n−θ∣>ϵ)→0P(|\hat{\theta}_n - \theta| > \epsilon) \to 0 as n→∞n \to \infty for all ϵ>0\epsilon > 0.

Maximum Likelihood

lik(θ)=f(x1,…,xn∣θ)=∏i=1nf(xi∣θ) if IID,l(θ)=∑i=1nlog⁡f(xi∣θ)\mathrm{lik}(\theta) = f(x_1, \ldots, x_n | \theta) = \prod_{i=1}^n f(x_i | \theta) \text{ if IID}, \qquad l(\theta) = \sum_{i=1}^n \log f(x_i | \theta)

The Fisher information is

I(θ)=E[(∂∂θlog⁡f(X∣θ))2]=−E[∂2∂θ2log⁡f(X∣θ)]I(\theta) = E\Big[ \Big( \frac{\partial}{\partial \theta}\log f(X | \theta) \Big)^2 \Big] = -E\Big[ \frac{\partial^2}{\partial \theta^2}\log f(X | \theta) \Big]

(the second form if ff is smooth). Under regularity conditions (the support does not depend on the parameter, and ff is smooth in θ\theta):

  • the MLE is consistent,
  • nI(θ0) (θ^−θ0)→N(0,1)\sqrt{nI(\theta_0)}\,(\hat{\theta} - \theta_0) \to \mathcal{N}(0, 1) in distribution, so for large nn the MLE is approximately N(θ0,1nI(θ0))\mathcal{N}\big(\theta_0, \frac{1}{nI(\theta_0)}\big), with asymptotic variance 1nI(θ0)=1−E[l′′(θ0)]\frac{1}{nI(\theta_0)} = \frac{1}{-E[l''(\theta_0)]},
  • an approximate 100(1−α)%100(1 - \alpha)\% confidence interval is θ^±z(α/2)1nI(θ^)\hat{\theta} \pm z(\alpha/2) \frac{1}{\sqrt{nI(\hat{\theta})}}, or θ^±z(α/2) sθ^\hat{\theta} \pm z(\alpha/2)\, s_{\hat{\theta}}.

Asymptotics

n(Xˉ−E[X1])→dN(0,σ2),Xˉ→PE[X1]\sqrt{n}(\bar{X} - E[X_1]) \xrightarrow{d} \mathcal{N}(0, \sigma^2), \qquad \bar{X} \xrightarrow{P} E[X_1]

and for gg differentiable (delta method),

n(g(Xˉ)−g(E[X1]))→dN(0,g′(E[X1])2σ2)\sqrt{n}\big(g(\bar{X}) - g(E[X_1])\big) \xrightarrow{d} \mathcal{N}\big(0, g'(E[X_1])^2 \sigma^2\big)

Efficiency and the Cramér-Rao Bound

MSE=Var(θ^)+Bias2=Var(θ^)+(E[θ^]−θ0)2,eff(θ^,θ~)=Var(θ~)Var(θ^)\mathrm{MSE} = \mathrm{Var}(\hat{\theta}) + \mathrm{Bias}^2 = \mathrm{Var}(\hat{\theta}) + (E[\hat{\theta}] - \theta_0)^2, \qquad \mathrm{eff}(\hat{\theta}, \tilde{\theta}) = \frac{\mathrm{Var}(\tilde{\theta})}{\mathrm{Var}(\hat{\theta})}

The efficiency is the ratio of sample sizes needed to get the same variance.

Cramér-Rao If X1,…,XnX_1, \ldots, X_n are IID with ff smooth and T=t(X1,…,Xn)T = t(X_1, \ldots, X_n) is unbiased,

Var(T)≥1nI(θ)\mathrm{Var}(T) \ge \frac{1}{nI(\theta)}

and without the unbiasedness,

Var(T)≥(∂∂θE[T])2nI(θ)\mathrm{Var}(T) \ge \frac{\big( \frac{\partial}{\partial \theta}E[T] \big)^2}{nI(\theta)}

Sufficiency

TT is sufficient for θ\theta if the conditional distribution of X1,…,XnX_1, \ldots, X_n given TT does not depend on θ\theta.

Factorization TT is sufficient iff f(x1,…,xn∣θ)=g(T,θ) h(x1,…,xn)f(x_1, \ldots, x_n | \theta) = g(T, \theta)\, h(x_1, \ldots, x_n). If TT is sufficient and gg is one-to-one, g(T)g(T) is sufficient.

E.g. for Xi∼N(μ,σ2)X_i \sim \mathcal{N}(\mu, \sigma^2),

f(x1,…,xn∣μ,σ2)=(1σ2π)nexp⁡(−12σ2∑i=1n(xi−μ)2)=(1σ2π)nexp⁡(−12σ2[∑i=1nxi2−2μnxˉ+nμ2])f(x_1, \ldots, x_n | \mu, \sigma^2) = \Big( \frac{1}{\sigma\sqrt{2\pi}} \Big)^n \exp\Big( -\frac{1}{2\sigma^2}\sum_{i=1}^n (x_i - \mu)^2 \Big) = \Big( \frac{1}{\sigma\sqrt{2\pi}} \Big)^n \exp\Big( -\frac{1}{2\sigma^2}\Big[ \sum_{i=1}^n x_i^2 - 2\mu n\bar{x} + n\mu^2 \Big] \Big)

which depends on the data only through ∑xi2\sum x_i^2 and xˉ\bar{x}, so (Xˉ,S2)(\bar{X}, S^2) is sufficient for (μ,σ2)(\mu, \sigma^2).

Bayesian Estimation

The prior fΘ(θ)f_\Theta(\theta) is the distribution of the unknown θ\theta, fX∣Θ(x∣θ)f_{X|\Theta}(x | \theta) the likelihood, and the posterior is

fΘ∣X(θ∣x)=fX,Θ(x,θ)fX(x)=fX∣Θ(x∣θ) fΘ(θ)∫fX∣Θ(x∣θ) fΘ(θ) dθf_{\Theta|X}(\theta | x) = \frac{f_{X,\Theta}(x, \theta)}{f_X(x)} = \frac{f_{X|\Theta}(x | \theta)\, f_\Theta(\theta)}{\int f_{X|\Theta}(x | \theta)\, f_\Theta(\theta)\, d\theta}

with the denominator constant in θ\theta. The posterior mean is a function of the observed data.

A loss function l(θ,a)l(\theta, a) measures the cost of estimating θ\theta by aa, e.g. squared error (a−θ)2(a - \theta)^2, absolute error ∣θ−a∣|\theta - a|, or 0-1 loss (0 if a=θa = \theta, 1 otherwise). A decision rule δ\delta maps the data to an estimate, e.g. δ(X1,…,Xn)=X1\delta(X_1, \ldots, X_n) = X_1 or Xˉ\bar{X}, and the goal is to minimize E[l(θ,δ(X1,…,Xn))]E[l(\theta, \delta(X_1, \ldots, X_n))].