Likelihood inference

Maximum likelihood estimator open_in_new

Definition (maximum likelihood estimator) open_in_new

The likelihood of $θ$ at the observed data $X$ is $L_X: θ \mapsto p(X; θ)$, viewed as a function of $θ$.

The maximum likelihood estimator (MLE) of $θ$ is the value of $θ$ that maximises $L_X$, i.e. $$ \begin{align*} \hat θ_{\text{MLE}} = \arg\max_{θ\in Θ} L_X(θ), \end{align*} $$ which is an estimator for $θ$ (a function of $X$).

Properties:

  • $\hat θ_{\text{MLE}}$ is a function of any sufficient statistic. (Derivation)

  • Under a bijection $h$, the MLE for $η = h(θ)$ is $\hat η_{\text{MLE}} = h(\hat θ_{\text{MLE}})$.

  • Under certain conditions, the MLE is asymptotically normal: $\sqrt{n}(\hat θ_{\text{MLE}} - θ) \xrightarrow{d} N(0, I\inv)$ where $I$ is the Fisher information matrix.

Likelihood principle

All information about $θ$ obtained from an experiment with data $X$ is contained in the likelihood function of $θ$ given $X$.

This is stronger than the sufficiency principle.

Information geometry open_in_new

Definition (Kullback-Leibler divergence) open_in_new

Let $P_{θ_0}, P_θ$ be two laws on $\mathcal{X}$ with densities $f(\cdot , θ_0)$ and $f(\cdot , θ)$. Suppose $\expect_{θ_0}|\log(X, θ')| < \infty$ with $X \sim P_{θ_0}$ for $θ' = θ_0$ and $θ$.

The Kullback-Leibler divergence is $$ \begin{align*} \op{KL}(P_{θ_0}, P_θ) := l(θ_0) - l(θ) = \int_{\mathcal{X}} f(x, θ_0) \log \frac{f(x, θ_0)}{f(x,θ)} \d x \end{align*} $$ where $$ \begin{align*} l(θ') := \expect_{θ_0}[\log f(X, θ')] \qquad (X \sim P_{θ_0}). \end{align*} $$

Proposition (true parameter maximises expectation of log likelihood) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, with $X \sim f(\cdot , θ_0)$.

Suppose $\expect_{θ_0}|\log (X, θ)|<\infty$ for all $θ\in Θ$. Then the true parameter $θ_0$ maximises $$ \begin{align*} l(θ) := \expect_{θ_0}\log(X, θ) \end{align*} $$ and hence minimises $\op{KL}(P_{θ_0}, P_θ)$.

Moreover if $θ$ is identifiable (i.e. $f(\cdot, θ) = f(\cdot, θ') \iff θ = θ'$), then $θ_0$ is the unique maximiser of $l$ and hence the unique minimiser of $\op{KL}(P_{θ_0}, P_θ)$.

Proof

Definition (score function) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, $Θ\subseteq \R^d$ and $X_1, \ldots, X_n$ be iid copies of $X$.

The score function is a random vector $$ \begin{align*} S_n(θ) := \pdd{θ} l_n(θ) ={}& \sum_{i=1}^{n} \pdd{θ} \log f(X_i, θ), \qquad θ \in \op{int}(Θ) \end{align*} $$ where $l_n(θ) := \sum_{i=1}^{n} \log f(X_i, θ)$ is the log-likelihood function.

The maximum likelihood estimator is a zero of $S_n$.

Under regularity conditions (namely $\int_{\mathcal{X}} \pdfd{f}{θ} \d x = \pdd{θ} \int_{\mathcal{X}} f \d x$), $$ \begin{align*} \expect_θ S_n(θ) = 0. \end{align*} $$ (Proof)

Definition (Fisher information) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, $Θ\subseteq \R^d$ and $X\sim f(\cdot, θ)$ be a random variable.

The Fisher information matrix is $$ \begin{align*} I(θ) := \expect_θ\left[\pdd{θ}\log f(X, θ) \; \pdd{θ^T} \log f(X, θ)\right] = \expect_θ[S(θ) \; S(θ)^T], \qquad θ\in \op{int}(Θ) \end{align*} $$ where $S(θ) = \pdd{θ}\log f(X, θ)$ is the score.

Under regularity conditions, (if $\int_{\mathcal{X}} \pdfd{f}{θ} \d x = \pdd{θ} \int_{\mathcal{X}} f \d x$ then) $$ \begin{align*} I(θ) = \var(S(θ)) \end{align*} $$ (Derivation) and (if $\int_{\mathcal{X}} \pdfxd{f}{θ_i}{θ_j} \d x = \pdxd{θ_i}{θ_j} \int_{\mathcal{X}} f \d x$ then) $$ \begin{align*} I(θ) = -\expect_θ\left[\pdd{θ} \pdd{θ^T} \log f(X, θ)\right]. \end{align*} $$ (Derivation)

If $X = (X_1, \ldots, X_n)$ and $X_i \sim f(\cdot, θ)$ are iid, then under regularity conditions (if $\int_{\mathcal{X}} \pdfd{f}{θ} \d x = \pdd{θ} \int_{\mathcal{X}} f \d x$ then) $$ \begin{align*} I_n(θ) := \expect_θ[S_n(θ) S_n(θ)^T] = n \, I(θ) \end{align*} $$ where $S_n(θ) = \sum_{i=1}^{n} \pdd{θ} \log f(X_i, θ)$. (Derivation)

Theorem (Cramér–Rao) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, $Θ\subseteq \R^d$, $X_1, \ldots, X_n$ be iid random variables, and $\tilde Φ = \tilde Φ(X_1, \ldots, X_n)$ be an estimator of $Φ = Φ(θ)\in \R^k$, a differentiable function $Θ\to \R^k$.

Under regularity conditions, $$ \begin{align*} \var_θ(\tilde Φ) \geq \frac{1}{n} \pdfd{\expect_θ[\tilde Φ]}{θ}(θ)^T \, I(θ)\inv \, \pdfd{\expect_θ[\tilde Φ]}{θ}(θ). \end{align*} $$

In particular, if $\tilde Φ$ is unbiased, then $$ \begin{align*} \var_θ(\tilde Φ) \geq \frac{1}{n} \pdfd{Φ}{θ}(θ)^T \, I(θ)\inv \, \pdfd{Φ}{θ}(θ). \end{align*} $$

Proof

However, non-regular estimators can have better asymptotic variance. For example, for $\hat θ_n$ the maximum likelihood estimator in a regular parameter model, define the Hodge's estimator $$ \begin{align*} \tilde θ_n = \begin{cases} \hat θ_n, &|\hat θ_n| \geq n^{-1/4}, \\ 0, &|\hat θ_n|<n^{-1/4}. \end{cases} \end{align*} $$

  • For $θ_0 \neq 0$, $\tilde θ_n - \hat θ_n \xrightarrow{p} 0$ so $\sqrt{n}(\tilde θ_n - θ_0) \xrightarrow{d} N(0, I\inv(θ_0))$.

  • For $θ_0 = 0$, $\tilde θ_n \xrightarrow{d} δ_0$.

(Derivation)

Theorem (consistency of MLE) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, with true parameter $θ_0$ for $X$. Let $\hat θ_n$ be the maximum likelihood estimator based on $X_1, \ldots, X_n$ iid copies of $X$.

Suppose

  1. $Θ$ is compact;

  2. $θ\mapsto f(x, θ)$ is continuous as $x\in \mathcal{X}$;

  3. $f(x,θ) > 0$ for all $x\in \mathcal{X}, θ\in Θ$;

  4. $\expect \sup_{θ\in Θ}|\log f(X, θ)| < \infty$; and

  5. identifiability: $f(\cdot, θ) = f(\cdot, θ')\iff θ = θ'$;

Then the maximum likelihood estimator $\hat θ_n$ exists and is consistent, i.e. $$ \begin{align*} \hat θ_n \xrightarrow{p} θ_0 \qquad \text{as $n\to \infty$}. \end{align*} $$

Proof

Theorem (asymptotic normality of MLE) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, and $θ_0$ be the true parameter of $X$. Let $\hat θ_n$ be the maximum likelihood estimator based on $X_1, \ldots, X_n$ iid copies of $X$.

Under regularity conditions, $$ \begin{align*} \sqrt{n}(\hat θ_n - θ_0) \xrightarrow{d} N(0, I(θ_0)\inv) \end{align*} $$ where $I(θ_0)$ is the Fisher information matrix.

Proof

This shows $\hat θ_n$ achieves the Cramér-Rao lower bound asymptotically.

Theorem (delta method) open_in_new

Suppose $\hat θ_n$ is a sequence of estimators in $Θ\subseteq \R^d$ satisfying $$ \begin{align*} r_n(\hat θ_n - θ_0) \xrightarrow{d} Z \end{align*} $$ for some deterministic $r_n \to \infty$.

For a continuously differentiable function $Φ: Θ \to \R^k$, $$ \begin{align*} r_n(Φ(\hat θ_n) - Φ(θ_0)) \xrightarrow{d} \pdfd{Φ}{θ^T}(θ_0) \cdot Z. \end{align*} $$

Proof

If $\hat θ_n$ is the maximum likelihood estimator in a regular model, then $$ \begin{align*} \sqrt{n}(Φ(\hat θ_n) - Φ(θ_n)) \xrightarrow{d}N\Bigl(0, \pdfd{Φ}{θ^T}(θ_0)\; I(θ_0)\inv \;\pdfd{Φ}{θ}(θ_0)\Bigr) \end{align*} $$ and hence the plug-in MLE $Φ(\hat θ_n)$ achieves the Cramér-Rao lower bound asymptotically.

Lemma (observed Fisher information) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, $Θ \subseteq \R^p$, and $X_1, X_2, \ldots$ are iid copies of $X$ with true parameter $θ_0$.

Define the observed Fisher information matrix $$ \begin{align*} i_n(θ) = \frac{1}{n} \sum_{i=1}^{n} \pdd{θ} \log f(X_i, θ) \pdd{θ^T} \log f(X_i, θ) \end{align*} $$ or $$ \begin{align*} j_n(θ) = -\frac{1}{n} \sum_{i=1}^{n} \pdd{θ} \pdd{θ^T} \log f(X_i, θ). \end{align*} $$

Under regularity conditions, if $\hat θ_n$ is the maximum likelihood estimator, $$ \begin{align*} i_n(\hat θ_n) \xrightarrow{p} I(θ_0), \qquad j_n(\hat θ_n) \xrightarrow{p} I(θ_0). \end{align*} $$

Proof

Theorem (Wald confidence set) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, $Θ \subseteq \R^p$, and $X_1, X_2, \ldots$ be iid copies of $X$ with true parameter $θ_0$.

Assume regularity conditions. Let $\hat θ_n$ be the maximum likelihood estimator based on $X_1, \ldots, X_n$. Choose any estimator $\hat I_n\xrightarrow{p}{}$$I(θ_0)$ (such as $i_n(\hat θ_n)$, $j_n(\hat θ_n)$, $I(\hat θ_n)$).

  • For all $j = 1, \ldots, p$, $$ \begin{align*} \frac{\sqrt{n}(\hat θ_{n,j} - θ_{0,j})}{\sqrt{(\hat I_n\inv)_{jj}}} \xrightarrow{d} N(0,1) \qquad \end{align*} $$ so there is an asymptotically $(1-α)$-confidence interval for $θ_{0,j}$ $$ \begin{align*} \left[\hat θ_{n,j} - \frac{z_α \sqrt{(\hat I_n\inv)_{jj}}}{\sqrt{n}}, \hat θ_{n,j} + \frac{z_α \sqrt{(\hat I_n\inv)_{jj}}}{\sqrt{n}}\right] \end{align*} $$ where $z_α$ is the upper $α/2$-quantile of a $N(0,1)$ distribution.

  • Moreover $$ \begin{align*} n(\hat θ_n - θ_0)^T \hat I_n (\hat θ_n - θ_0) \xrightarrow{d} χ_p^2, \end{align*} $$ so there is an asymptotically $(1-α)$-confidence set for $θ_0$ $$ \begin{align*} \sb{θ}{n(\hat θ_n - θ)^T \hat I_n(\hat θ_n - θ) \leq ξ_α} \end{align*} $$ where $ξ_α$ is the upper $α$ quantile of the $χ_p^2$ distribution.

Proof

This gives tests for simple null hypotheses regarding $θ_{0,j}$ or $θ_0$ with asymptotic size $α$.

Definition (generalised likelihood ratio test) open_in_new

Suppose the data $X$ follows $p(x; θ)$ where $θ$ is unknown. Let $H_0$$: θ \in Θ_0$ and $H_1$$: θ \in Θ_1$ be hypotheses.

The generalised likelihood ratio statistic is $$ \begin{align*} Λ(X) = \frac{\sup_{θ\in Θ_0 \cup Θ_1} L_X(θ)}{\sup_{θ\in Θ_0} L_X(θ)} = \frac{\sup_{θ\in Θ_0\cup Θ_1} p(X; θ)}{\sup_{θ\in Θ_0} p(X; θ)}. \end{align*} $$

A generalised likelihood ratio test is a test of the form $$ \begin{align*} T(X) = 1_{\set{Λ(X) > c}}. \end{align*} $$

Theorem (Wilks' theorem) open_in_new

Suppose $Θ_0\subseteq Θ_1$, and let $Λ(X)$ be the generalised likelihood ratio test for testing $H_0: θ\in Θ_0$ against $H_1: θ\in Θ_1\setminus Θ_0$.

Under regularity conditions, we have $$ \begin{align*} 2\log Λ(X) \xrightarrow{d} χ_{d_1-d_0}^2 \quad \text{as $n\to \infty$ under $H_0$} \end{align*} $$ where $d_1, d_0$ are the degrees of freedom (number of free parameters) of $H_1$ and $H_0$.

Proof for simple null hypothesis