When the Model Is Wrong
Misspecified likelihoods, KL projections and sandwich errors.
Every model you fit is wrong: real noise is not exactly Gaussian, real counts are not exactly Poisson. Maximum likelihood still converges, but to the best approximation the model can offer, and its textbook standard errors can be badly off. This lesson finds that limit, repairs the uncertainty with the sandwich, and asks what a Bayesian posterior means when no parameter value is true.
What you’ll learn
- Prove that under misspecification the MLE converges to the KL projection , and compute it for common models.
- Derive the sandwich covariance , compute robust standard errors, and explain what the information matrix equality says.
- Explain quasi-likelihood and estimating equations, and when a wrong likelihood still estimates the right mean.
- Describe how Bayesian posteriors behave under misspecification, why their credible sets lose coverage, and what generalized and tempered posteriors do about it.
What the MLE converges to
Box (1976) put the point bluntly: all models are wrong, so the scientist should ask what is importantly wrong rather than hope for a correct model. Make it precise. The data are i.i.d. from an unknown distribution , and the model need not contain it (misspecification). The average log-likelihood still converges, , so the natural target is the KL projection of onto the model:
The consistency proof is the one from Asymptotics of Maximum Likelihood with replaced by : uniform convergence plus a well-separated maximizer. What changes is the meaning of the limit. For an exponential family the projection is easy to find: differentiating gives . The KL projection onto an exponential family matches the true moments of , whatever is.
| Model fitted | True distribution | What the MLE converges to |
|---|---|---|
| any with finite variance | the true mean and variance: the moment-matched Gaussian | |
| Poisson | overdispersed counts | : the right mean, the wrong variance |
| Exponential (rate ) | any positive with finite mean | |
| Linear regression, Gaussian noise | nonlinear , any noise | the best linear predictor |
| Logistic regression | wrong link, omitted features | the whose fitted probabilities are closest in KL to the true conditional distribution |
The sandwich
Linearize the score around exactly as in the correctly specified case. At the projection the expected score is still zero, , so the central limit theorem applies:
The bracket converges to the expected negative Hessian (the "bread"), and the score's covariance is (the "meat"):
If the model is correct, the two identities of the Fisher information give , the information matrix equality, and the sandwich collapses to . Under misspecification nothing ties to . Both are estimated by plugging in the data:
A worked case. Fit a Poisson model to counts that really have mean and variance . The score is and the second derivative is , so at : and . The sandwich is , the true variance of times , while the model-based assumes the variance equals the mean. With mean 4 and variance 12, model-based standard errors are too small by a factor , and every confidence interval built from them is too narrow.
These are the "Huber–White" or robust standard errors; for least squares they reduce to the heteroscedasticity-consistent estimators of Inference for Linear Models. Comparing with is itself a diagnostic: White (1982) turned it into the information matrix test of misspecification.
Estimating equations and quasi-likelihood
The sandwich never used the fact that was a score. Any estimator defined by an estimating equation , an M-estimator, targets the root of and has asymptotic covariance with and (Huber, 1964, 1967). Maximum likelihood is the special case ; the Huber loss of robust regression is another.
This frees you from specifying a full distribution. Quasi-likelihood (Wedderburn, 1974) assumes only a mean model and a variance function, , and solves
The equation has mean zero whenever the mean model is right, whatever the distribution and even if is wrong, so is consistent for the true mean parameters. With this is quasi-Poisson regression: the same coefficients as Poisson regression, with standard errors inflated by , where is the Pearson statistic divided by . Generalized estimating equations (Liang & Zeger, 1986) extend the idea to clustered and longitudinal data, with a working correlation inside clusters and sandwich standard errors that stay valid when that guess is wrong.
You run Poisson regression with a log link on counts that are overdispersed: given , the variance is about three times the mean, but the log-mean really is linear in . What is true of the fit?
- The coefficients are inconsistent, so the model must be abandoned
- The coefficients are consistent for the true log-mean slopes, but the model-based standard errors are too small by about
- Everything is fine: overdispersion only affects the intercept
- The coefficients and standard errors are both correct, because Poisson regression is a GLM
Show the answer
B. The coefficients are consistent for the true log-mean slopes, but the model-based standard errors are too small by about
The Poisson score equations are the quasi-likelihood equations with , which have mean zero whenever the mean model is right, so the coefficients are consistent. Their variance is the sandwich, about times the model-based one. Quasi-Poisson or robust standard errors fix the inference; a negative binomial model may also fit better.
Bayes when the model is wrong
A Bayesian posterior under a misspecified likelihood still concentrates, around the same KL projection (Berk, 1966). The question is whether its width means anything.
A Gaussian model for a mean assumes the noise variance is , but the true variance is . With a flat prior and lots of data, how often does the 95% credible interval for the mean actually contain the true mean?
Show the answer
67 %
The posterior is , so the interval is , while really has standard deviation . Coverage is . Here and : the posterior uses where the sandwich would give .
Several repairs reshape the posterior instead of discarding it:
- Generalized Bayes (Bissiri, Holmes & Walker, 2016) updates beliefs about any loss-defined target with , and shows that this is the coherent way to do so. Bayes' rule is the case , .
- Tempered (power) posteriors raise the likelihood to a learning rate . Asymptotically the covariance becomes , so in one dimension restores calibrated intervals; in the example above . In several dimensions a single scalar can fix the scale but not the shape, which motivates sandwich-adjusted posteriors (Müller, 2013).
- Choosing η. SafeBayes (Grünwald & van Ommen, 2017) learns from the data after showing that ordinary Bayes can be inconsistent in a simple misspecified linear regression, placing mass on ever more complex models. Syring & Martin (2019) instead calibrate so that credible regions reach nominal coverage, and coarsened posteriors (Miller & Dunson, 2019) condition only on the data being close to the model, which behaves much like tempering.
Living with wrong models
Misspecification is not a reason to give up likelihoods, but to check them. Posterior predictive checks simulate replicated datasets from the fitted model and ask whether the real data look typical; a feature the model cannot reproduce is a feature it gets wrong (Gelman et al., 2013, chapter 6). Model expansion then adds what is missing: heavier tails (a Student- likelihood instead of a Gaussian), overdispersion (negative binomial instead of Poisson), or a mixture. And for prediction, comparing models by held-out predictive performance does not assume any of them is true (Bayesian Model Selection).
Key takeaways
- Under misspecification the MLE converges to the KL projection (Huber; White). Onto an exponential family, the projection matches the true moments of ; forward KL makes it mass-covering.
- The asymptotic covariance becomes the sandwich , with the expected negative Hessian and the score covariance. They coincide when the model is right; when not, model-based standard errors can be far too small (a factor for Poisson counts with variance three times their mean).
- Estimating equations need only a correct mean model: quasi-likelihood and GEE give consistent coefficients for the mean, with sandwich standard errors.
- Misspecified posteriors concentrate at with covariance , so credible sets can miscover. Generalized and tempered posteriors, with a learning rate chosen by SafeBayes or calibration, are the main repairs; posterior predictive checks find what needs fixing.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
You fit a Gaussian by maximum likelihood to a large sample from a skewed distribution with mean 3 and variance 5. What do and converge to?
- Nothing: the MLE is inconsistent when the model is wrong
- and : the KL projection onto the Gaussians matches the mean and variance
- The mode and the squared interquartile range of the true distribution
- and a value smaller than , because skewness lowers the fitted variance
Show the answer
B. and : the KL projection onto the Gaussians matches the mean and variance
The Gaussians are an exponential family with , so the projection satisfies : the true mean and second moment, hence the true variance. The fit is "consistent", but for the moment-matched Gaussian, not for the skewed truth.
When the model is correctly specified, what happens to the sandwich ?
- It becomes , because
- It becomes
- It becomes zero, because there is no misspecification error
- It is undefined, because requires misspecification
Show the answer
A. It becomes , because
The information matrix equality, , holds at the true parameter of a correct model, so . Using the sandwich anyway costs little efficiency in large samples, which is why robust standard errors are a common default.
A Bayesian analyst's likelihood is misspecified, and the data set is large. What does the posterior typically do?
- It fails to concentrate and stays as wide as the prior
- It is exactly calibrated, because Bayesian credible sets never depend on the model being right
- It concentrates on the true distribution, because the prior corrects the likelihood
- It concentrates near the KL projection , but its spread is governed by instead of the sandwich, so credible sets can have the wrong coverage
Show the answer
D. It concentrates near the KL projection , but its spread is governed by instead of the sandwich, so credible sets can have the wrong coverage
The posterior concentrates where the expected log-likelihood is highest, at (Berk, 1966), and is asymptotically (Kleijn & van der Vaart, 2012). The estimator's real variability is , so when the intervals are too narrow or too wide.
Further reading
- H. White, "Maximum likelihood estimation of misspecified models," Econometrica 50(1), 1–25 (1982).
- P. J. Huber, "The behavior of maximum likelihood estimates under nonstandard conditions," Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, 221–233 (1967).
- B. J. K. Kleijn & A. W. van der Vaart, "The Bernstein–von Mises theorem under misspecification," Electronic Journal of Statistics 6, 354–381 (2012).
- P. G. Bissiri, C. C. Holmes & S. G. Walker, "A general framework for updating belief distributions," Journal of the Royal Statistical Society B 78(5), 1103–1130 (2016).
- P. Grünwald & T. van Ommen, "Inconsistency of Bayesian inference for misspecified linear models, and a proposal for repairing it," Bayesian Analysis 12(4), 1069–1103 (2017).