Nonlinear Estimation: Maximum Likelihood and Binary Choice

Lecture 12

Author
Affiliation

Henrique Veras

PIMES/UFPE

Where this lecture sits

DGPIdentificationEstimationAsymptoticsInference
Computation

Until now, estimating has meant using pieces of the distribution. OLS and GMM commit only to a few moments — \(\E[\mathbf{x}\varepsilon]=0\), \(\E[\mathbf{z}\varepsilon]=0\) — and stay agnostic about the rest of the DGP. That is robust (it holds across many distributions), but it leaves information on the table. Today we make the opposite bet: we commit to the entire distribution \(f(\mathbf{d}\mid\btheta_0)\) and ask the sharpest possible question — which \(\btheta\) makes the data we actually observed most probable? The payoff is twofold. Efficiency: using the whole distribution delivers the smallest standard error any regular estimator can have (Cramér–Rao). Reach: for binary, count, or censored outcomes, “minimise squared error” does not yield a coherent model, and modelling the probability directly is the only way through. The machinery is the same M-/Z-estimator architecture you already have; only the criterion changes, now built from the model’s own density. We go just far enough to reach binary choice (Logit/Probit).

What is the DGP?—What is the DGP, here?

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.

1 Part I · From minimising error to maximising likelihood

The likelihood and the MLE

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).\]

Maximising \(L_n\) picks the parameter under which the observed sample is least surprising. Everything downstream — the score, the information, the efficiency — comes from differentiating this one object, which is why it pays to see it first as the raw product and only then as the convenient log-average.

The score equation is a Z-estimator

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.\]

Connection—Back to Lecture 11's closing box

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.

2 Part II · What the score buys: information and efficiency

How much do the data pin \(\btheta\) down? Fisher information

\(\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.\]

Picture the log-likelihood as a hill over \(\btheta\): its peak is \(\hat\btheta\), and the curvature at that peak says how confidently the data locate it. A sharp peak — large \(-\E[\bH]\) — means the data sharply distinguish \(\btheta_0\) from its neighbours; a flat peak means they cannot. Fisher’s insight was to call that curvature the information the sample carries about \(\btheta\). The information equality shows the same quantity equals \(\Var(\mathbf{s})\), the spread of the score — both obtained by differentiating \(\int f\,d\mathbf{d}=1\) twice (once for \(\E[\mathbf{s}]=\bzero\), again for the equality). It holds only under correct specification: if the density we differentiate is not the one that generated the data, the two readings diverge and the variance no longer collapses (robust/sandwich SEs).

Asymptotic normality: the Cramér–Rao bound

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).\]

Connection—The same collapse as the optimal GMM weight

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.

3 Part III · Binary choice: the leading application

Why a 0/1 outcome calls for the likelihood

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.

The likelihood and its score

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 .\]

4 Part IV · Reading the estimates: marginal effects

A density gets in the way

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.\]

MEM, AME, and the Delta method

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).\]

5 Part V · Synthesis

OLS, GMM, MLE: three criteria, one architecture

Connection—The extremum-estimator table

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.

What to take away

  • MLE is an extremum estimator: \(\hat\btheta=\argmax\tfrac1n\sum_i\log f(\mathbf{d}_i\mid\btheta)\) — defined by maximising (M-estimator) and solved by a zeroed average score (Z-estimator), the third member of the OLS/GMM family.
  • The score is a valid moment: \(\E[\mathbf{s}(\btheta_0)]=\bzero\), so the FOC \(\tfrac1n\sum_i\mathbf{s}_i=\bzero\) is a Z-estimator — MLE solves a moment equation.
  • Information equality \(\mathcal I=\E[\mathbf{s}\mathbf{s}']=-\E[\bH]\) collapses the sandwich to \(\sqrt n(\hat\btheta-\btheta_0)\dto\Normal(\bzero,\mathcal I^{-1})\) — the Cramér–Rao bound, so MLE is efficient (if correctly specified).
  • Binary choice models \(P(y=1\mid\mathbf{x})=F(\mathbf{x}'\bbeta)\) (Logit/Probit); the score is a weighted residual \(\perp\mathbf{x}\), and only \(\bbeta/\sigma_u\) is identified — so coefficients are not comparable across links.
  • Report marginal effects, not coefficients: \(\partial P/\partial x_j=f(\mathbf{x}'\bbeta)\beta_j\), summarised as AME, with Delta-method standard errors.

6 References

References

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).

Cameron, A. Colin, and Pravin K. Trivedi. 2005. Microeconometrics: Methods and Applications. Cambridge University Press.
Davidson, Russell, and James G. MacKinnon. 2004. Econometric Theory and Methods. Oxford University Press.
Greene, William H. 2018. Econometric Analysis. 8th ed. Pearson.
Hansen, Bruce E. 2022. Econometrics. Princeton University Press.
Back to top