ArticleslgStudy

mathematics

Deviance information criterion

Deviance information criterion is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Deviance information criterion rather than just read about it. In short: The deviance information criterion (DIC) is a hierarchical modeling generalization of the Akaike information criterion (AIC). It is particularly useful in Bayesian model selection problems where the posterior distributions of the models have been obtained by Markov chain Monte Carlo (MCMC) simulation.

Key takeaways

  • Deviance information criterion belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Deviance information criterion to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Deviance information criterion from memory before moving on to harder problems.

Reference excerpt

The deviance information criterion (DIC) is a hierarchical modeling generalization of the Akaike information criterion (AIC). It is particularly useful in Bayesian model selection problems where the posterior distributions of the models have been obtained by Markov chain Monte Carlo (MCMC) simulation. DIC is an asymptotic approximation as the sample size becomes large, like AIC. It is only valid when the posterior distribution is approximately multivariate normal.

Definition Define the deviance as D(θ)=−2log⁡(p(y|θ))+C, where y are the data, θ are the unknown parameters of the model and p(y|θ) is the likelihood function. C is a constant that cancels out in all calculations that compare different models, and which therefore does not need to be known. There are two calculations in common usage for the effective number of parameters of the model. The first, as described in Spiegelhalter et al. (2002, p. 587), is pD=D(θ)‾−D(θ¯), where θ¯ is the expectation of θ. The second, as described in Gelman et al. (2004, p. 182), is pD=pV=12var⁡(D(θ))‾. The larger the effective number of parameters is, the easier it is for the model to fit the data, and so the deviance needs to be penalized. The deviance information criterion is calculated as

DIC=pD+D(θ)‾, or equivalently as

DIC=D(θ¯)+2pD. From this latter form, the connection with AIC is more evident.

Motivation The idea is that models with smaller DIC should be preferred to models with larger DIC. Models are penalized both by the value of D¯, which favors a good fit, but also (similar to AIC) by the effective number of parameters pD. Since D¯ will decrease as the number of parameters in a model increases, the pD term compensates for this effect by favoring models with a smaller number of parameters. An advantage of DIC over other criteria in the case of Bayesian model selection is that the DIC is easily calculated from the samples generated by a Markov chain Monte Carlo simulation. AIC requires calculating the likelihood at its maximum over θ, which is not readily available from the MCMC simulation. But to calculate DIC, simply compute D¯ as the average of D(θ) over the samples of θ, and D(θ¯) as the value of D evaluated at the average of the samples of θ. Then the DIC follows directly from these approximations. Claeskens and Hjort (2008, Ch. 3.5) show that the DIC is large-sample equivalent to the natural model-robust version of the AIC.

Assumptions In the derivation of DIC, it is assumed that the specified parametric family of probability distributions that generate future observations encompasses the true model. This assumption does not always hold, and it is desirable to consider model assessment procedures in that scenario. Also, the observed data are used both to construct the posterior distribution and to evaluate the estimated models. Therefore, DIC tends to select over-fitted models.

Extensions A resolution to the issues above was suggested by Ando (2007), with the proposal of the Bayesian predictive information criterion (BPIC). Ando (2010, Ch. 8) provided a discussion of various Bayesian model selection criteria. To avoid the over-fitting problems of DIC, Ando (2011) developed Bayesian model selection criteria from a predictive view point. The criterion is calculated as

𝐼𝐶=D¯+2pD=−2𝐄θ[log⁡(p(y|θ))]+2pD. The first term is a measure of how well the model fits the data, while the second term is a penalty on the model complexity. Note that the p in this expression is the predictive distribution rather than the likelihood above.

Other applications DIC was used in multiple S-Plus (and subsequently R) libraries for fitting likelihood-based models in the 1990's (having precedent over the Bayesian methods, to the extent they overlap); usually presented as a generalization of AIC. The DIC was defined by Hastie and Tibshirani (1990 p160, eqn 6.32) for the weighted smoothers used in Generalized Additive Models, and the requisite deviance and effective degrees-of-freedom calculations were incorporated into the GAM library (Hastie, 1991). The aic method in S-Plus and R is credited (initially) to Pinheiro and Bates, developed in conjunction with nlme software, and subsequently backported to other libraries (some are simply AIC; others requiring DIC-style approximations). In the context of local likelihood, a deviance information criterion is defined Loader (1999 p69, def'n 4.4), with a derivation based on jackknifed leave-one-out cross-validation, with effective degrees-of-freedom calculations explicitly in terms of likelihood derivatives. This leads to some small technical differences compared to the Hastie and Tibshirani approach. Irizarry (2001) also has an extensive development of information criteria for local likelihood. Unlike the global techniques in the above sources, the criteria developed by Irizarry are applied when estimating at a single point in the predictor space, and so are applicable to locally adaptive smoothers considered by other authors.

See also Akaike information criterion (AIC) Bayesian information criterion (BIC) Focused information criterion (FIC) Hannan-Quinn information criterion Kullback–Leibler divergence Jensen–Shannon divergence Watanabe–Akaike information criterion (WAIC)

References

External links McElreath, Richard (January 29, 2015). "Statistical Rethinking Lecture 8 (on DIC and other information criteria)". Archived from the original on 2021-12-21 – via YouTube.

Worked examples

Example 1 — a first encounter with Deviance information criterion

Start with the simplest possible case. Write down what Deviance information criterion claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Deviance information criterion before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Deviance information criterion ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Deviance information criterion

In research
Deviance information criterion appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Deviance information criterion in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Deviance information criterion is common in secondary-school and first-year university syllabi. It links to neighbouring topics Bayesian statistics, Model selection, Regression variable selection, so understanding it makes those chapters shorter.
In everyday life
Look for Deviance information criterion outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Deviance information criterion” →

How to study Deviance information criterion in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Deviance information criterion means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Deviance information criterion out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Deviance information criterion in simple terms?

The deviance information criterion (DIC) is a hierarchical modeling generalization of the Akaike information criterion (AIC). It is particularly useful in Bayesian model selection problems where the posterior distributions of the models have been obtained by Markov chain Monte Carlo (MCMC) simulati…

Why does Deviance information criterion matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Deviance information criterion?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Deviance information criterion.

Tags

  • Bayesian statistics
  • Model selection
  • Regression variable selection

Keep exploring