Posterior Dispersion Indices

Alp Kucukelbir, David M. BleiarXiv 2016

Introduction

In probabilistic modeling, predictive accuracy is the standard benchmark. We typically evaluate a model by its ability to predict held-out data. However, while accuracy metrics like log-likelihood indicate that a model is failing, they rarely explain how or why. A low probability assigned to an observation could stem from the point being a genuine outlier or from the model's inability to capture specific structural nuances.

To address this, Alp Kucukelbir and David M. Blei introduce Posterior Dispersion Indices (PDIs). This diagnostic tool evaluates models by measuring the sensitivity of a datapoint's likelihood to uncertainty in the model's posterior distribution. By identifying points with high "dispersion," researchers can pinpoint specific areas of model mismatch, providing a roadmap for iterative improvement.

The Problem: Accuracy vs. Dispersion

Traditional evaluation methods provide a pointwise view of performance. Consider a study of body temperatures where two anomalous readings occur: a high fever and a reading of zero. A standard model might assign low probability to both. However, their relationship to the model is fundamentally different.

The fever measurement might be highly sensitive to uncertainty about the population mean; it is a "well-modeled" point that happens to fall in a high-variance region of the posterior. In contrast, a zero reading (likely due to equipment failure) remains poorly predicted regardless of parameter estimates. Standard accuracy metrics treat these cases similarly, failing to distinguish between expected variance and structural mismatch.

Conceptual illustration of dispersion: a fever measurement (blue) is sensitive to posterior uncertainty, while a zero measurement (purple) is consistently poorly modeled.

Methodology: Defining PDI

The Posterior Dispersion Index (PDI) is defined as the ratio of the variance of the likelihood under the posterior to its mean:

$$PDI = \frac{\text{Var}_{p(\theta|x)}[p(x_n|\theta)]}{\text{E}_{p(\theta|x)}[p(x_n|\theta)]}$$

The authors emphasize the Widely Applicable Posterior Dispersion Index (WAPDI), which utilizes log-likelihoods for numerical stability and shares theoretical ties with the Widely Applicable Information Criterion (WAIC):

$$WAPDI(n) = \frac{\sigma^2_{\log}(n)}{\log \mu(n)}$$

Calculating WAPDI is computationally efficient for any model where posterior samples can be drawn via MCMC or Variational Inference, making it a seamless addition to modern Bayesian workflows.

Empirical Evaluation and Insights

The utility of PDIs was demonstrated across several domains, including U.S. presidential terms, voting preferences, supermarket shopping patterns, and population genetics.

A key insight is that high dispersion indicates a datapoint is "sensitive" to the spread of the posterior. This sensitivity suggests the model is struggling to find a stable fit for that specific observation. For instance, in a voting preference model, WAPDI flagged specific states where national trends did not hold, guiding the inclusion of additional covariates like education and age, which significantly improved the model.

Case Study: U.S. Presidential Terms

In a model of days in office for U.S. presidents, log-likelihood often flags many presidents as outliers. However, PDI provides a more nuanced view. It distinguishes between "true" outliers—those whose values are consistently unlikely—and those who are simply at the edges of typical clusters.

Comparison of PDI and log predictive accuracy for U.S. presidents. PDI highlights different patterns of mismatch than accuracy alone.

As shown in the analysis, PDI highlights different patterns of mismatch than accuracy alone. While William Henry Harrison (who died after only 31 days) is a clear outlier in both metrics, other presidents show high dispersion despite moderate log-likelihoods, indicating that the model's uncertainty significantly impacts their predicted fit.

Conclusion

Posterior Dispersion Indices offer a powerful lens for model criticism. By accounting for posterior uncertainty on a per-datapoint basis, PDIs allow researchers to move beyond aggregate accuracy scores and engage in targeted model refinement. This approach transforms model evaluation from a binary "pass/fail" check into a diagnostic process that reveals the underlying nature of model-data mismatch.

Summary updated

BibTeX
@misc{kucukelbir2016posterior,
  author = {Alp Kucukelbir and David M. Blei},
  title = {{Posterior Dispersion Indices}},
  year = {2016},
  eprint = {1605.07604},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.07604},
}
Figure