Lecture 12
PIMES/UFPE
A fully specified probability model: the data \(\mathbf{d}_i\) are i.i.d. from a known density \(f(\mathbf{d}\mid\btheta_0)\), only \(\btheta_0\) unknown. Committing to the whole distribution — not just one moment — is what buys efficiency and what costs a stronger assumption.
Each observation carries a plausibility \(f(\mathbf{d}_i\mid\btheta)\); by i.i.d. the joint plausibility of the whole sample factors into the product — the likelihood. Logs and a \(1/n\) turn it into the average we maximise (same maximiser, since \(\log\) is monotone): \[L_n(\btheta)=\prod_{i=1}^n f(\mathbf{d}_i\mid\btheta), \qquad \hat\btheta=\argmax_{\btheta}\ \frac1n\sum_{i=1}^n\log f(\mathbf{d}_i\mid\btheta).\]
Differentiate the criterion. Define the score — the gradient of the log-density of one observation — and set the sample average of scores to zero: \[\mathbf{s}(\mathbf{d},\btheta)=\frac{\partial\log f(\mathbf{d}\mid\btheta)}{\partial\btheta}, \qquad \frac1n\sum_{i=1}^n\mathbf{s}(\mathbf{d}_i,\hat\btheta)=\bzero.\]
GMM’s own first-order condition was \(\bG'\bW\,\bar{\mathbf{g}}_n(\hat\btheta)=\bzero\) — a moment equation we called a Z-estimator, and promised reached forward to MLE. Here is the payoff: the MLE is the Z-estimator whose moment is the model’s score. OLS, GMM and MLE are the same kind of object; they differ only in which function is set to average zero.
\(\hat\btheta\) is a point — how tightly is it pinned? Look at the shape of the likelihood peak. A sharp peak means nudging \(\btheta\) off \(\hat\btheta\) makes the data far less likely (they locate \(\btheta\) precisely); a flat peak means they barely do. That average sharpness is the Fisher information, and it has two equal readings: \[\mathcal I(\btheta_0)\ \equiv\ \underbrace{-\,\E[\bH]}_{\text{curvature of }\ell}\ =\ \underbrace{\Var(\mathbf{s})=\E[\mathbf{s}\mathbf{s}']}_{\text{jitter of the score}}\ \succeq\ \bzero.\]
Linearise the score around \(\btheta_0\), substitute the two limits (LLN for the Hessian, CLT for the score), and the information equality collapses the general M-estimator sandwich to a single inverse: \[\sqrt n(\hat\btheta-\btheta_0)\ \dto\ \Normal\!\big(\bzero,\ \mathcal I(\btheta_0)^{-1}\big).\]
In Lecture 11 the GMM variance collapsed to \((\bG'\bS^{-1}\bG)^{-1}\) exactly when \(\bW=\bS^{-1}\) — the right metric hit the bound. MLE is the same story with one model: the true density is its own weight, so it attains \(\mathcal I^{-1}\). Free corollary: with normal errors the MLE of \(\bbeta\) is OLS (its normal equations \(\mathbf{X}'\be=\bzero\) are a score) — Gauss–Markov efficiency is this bound in disguise.
The outcome is now \(y_i\in\{0,1\}\) — and this is where MLE earns its keep. Parts I–II showed MLE buys efficiency by using the whole density; a binary outcome forces that, because there is no continuous “error to minimise”, yet the density is known exactly: given \(\mathbf{x}_i\), \(y_i\) is Bernoulli with \(p(\mathbf{x}_i)=P(y_i=1\mid\mathbf{x}_i)\). Model that probability by sending the index through a bounded, increasing \(F\): \[P(y_i=1\mid\mathbf{x}_i)=F(\mathbf{x}_i'\bbeta)\in[0,1],\] with Logit (\(F=\Lambda\)) or Probit (\(F=\Phi\)) — two symmetric CDFs that barely differ in fit, only in error scale.
Here Part I’s architecture cashes out: we finally have a concrete, known density to plug in. Each observation is Bernoulli — the model assigns \(F_i=F(\mathbf{x}_i'\bbeta)\) to \(y_i=1\) and \(1-F_i\) to \(y_i=0\), written together as \(F_i^{y_i}(1-F_i)^{1-y_i}\). By i.i.d. the likelihood is the product, the log a sum, and the score (chain rule, \(f=F'\)) a weighted residual: \[L_n(\bbeta)=\prod_i F_i^{\,y_i}(1-F_i)^{1-y_i}, \qquad \ell_n(\bbeta)=\frac1n\sum_i\big[y_i\log F_i+(1-y_i)\log(1-F_i)\big],\] \[\mathbf{s}_i=\frac{f(\mathbf{x}_i'\bbeta)}{F_i(1-F_i)}\big(y_i-F_i\big)\mathbf{x}_i, \qquad \frac1n\sum_i\mathbf{s}_i=\bzero .\]
glm fits it by IRLS (watch for perfect separation).Because the probability passes through \(F\), the effect of a continuous \(x_j\) is the coefficient scaled by the density at the index: \[\frac{\partial P(y=1\mid\mathbf{x})}{\partial x_j}=f(\mathbf{x}'\bbeta)\,\beta_j\ \neq\ \beta_j.\]
Collapse the effect to one number — at the average individual (MEM) or averaged over the sample (AME) — and get its standard error with the Delta method, exactly as for nonlinear restrictions in Lecture 6: \[\text{AME}_j=\frac1n\sum_i f(\mathbf{x}_i'\hat\bbeta)\,\hat\beta_j, \qquad \widehat\Var\big(m_j(\hat\bbeta)\big)\approx \Big(\tfrac{\partial m_j}{\partial\bbeta}\Big)'\widehat\Var(\hat\bbeta)\Big(\tfrac{\partial m_j}{\partial\bbeta}\Big).\]
Each row is defined by optimising a criterion (an M-estimator) and solved by setting an average to zero (a Z-estimator). The two middle columns are just those two faces of the same estimator.
| Estimator | Criterion — the M face | FOC: an average \(=\bzero\) — the Z face | Efficient when |
|---|---|---|---|
| OLS | \(\min\ \tfrac1n\sum(y_i-\mathbf{x}_i'\bbeta)^2\) | \(\mathbf{X}'\be=\bzero\) (residual \(\perp\mathbf{x}\)) | errors homoskedastic (Gauss–Markov) |
| GMM | \(\min\ n\,\bar{\mathbf{g}}_n'\bW\bar{\mathbf{g}}_n\) | \(\bG'\bW\bar{\mathbf{g}}_n=\bzero\) (projected moments) | \(\bW=\bS^{-1}\) (optimal weight) |
| MLE | \(\max\ \tfrac1n\sum\log f(\mathbf{d}_i\mid\btheta)\) | \(\tfrac1n\sum\mathbf{s}_i=\bzero\) (the score) | always (Cramér–Rao), if correctly specified |
Read it in two coordinates. Across — identical in every row: optimise a sample criterion \(\Rightarrow\) the FOC is “an average \(=\bzero\)” \(\Rightarrow\) the variance is a sandwich that collapses under the right metric. Down — what changes: which function is zeroed and how much of the distribution it needs — residual\(\times\)regressor needing only homoskedasticity (OLS), projected moments needing the optimal weight (GMM), the score needing the whole density (MLE). It is a ladder of efficiency vs. assumptions: each rung assumes more and, in return, squeezes out more information — MLE at the top (Cramér–Rao), paid for with correct specification.
Primary reading: Hansen (2022), chs. 22 (M-estimators) and 25 (binary choice). Supporting: Greene (2018), chs. 14 and 17; Cameron and Trivedi (2005); Davidson and MacKinnon (2004).