Theoremadvanced
Savage-Dickey density ratio
Also called Savage-Dickey ratio.
For nested models with compatible priors, the Bayes factor for a point null equals the posterior density at the null value divided by the prior density there.
The Savage-Dickey density ratio is a formula for the Bayes factor of a nested point null. If the null model fixes a parameter at inside a larger model , and the priors of the two models agree on the other parameters, then equals the posterior density of at under divided by the prior density of at . So a Bayes factor can be read from the posterior of the larger model alone, without computing any marginal likelihood.
Statement
Model has parameters , a sampling density and a proper prior density . Model is the same model with : its sampling density is and its prior density on is . Write
These three formulas fix the versions of the densities at the single point ; see the remark at the end of the proof.
Theorem (Savage-Dickey). Assume , , , and the compatibility condition
Then
If there is no nuisance parameter , the condition is empty and the identity always holds. If and are independent under , the condition says that uses the same prior on as .
Theorem (Verdinelli and Wasserman). Drop the compatibility condition, and assume that implies . Then
where the expectation is over , the posterior of under with fixed at . Under compatibility the factor is 1.
In plain words
Before seeing data, the larger model gives some belief to the value in the null. After seeing data, it gives that value more or less belief. If the belief went up, the data favour the null, and if it went down, they favour the larger model. The theorem says that the size of this change is exactly the Bayes factor, as long as both models describe the remaining parameters in the same way. So one fit of the larger model is enough: you look at how high its posterior is at the null value and compare it with how high its prior was there.
Proof
Savage-Dickey. By the definition of at , then the definition of , then compatibility,
The last integral is by definition. Divide by .
Verdinelli and Wasserman. Let . The first equality above, without the compatibility step, says . Also . By the support assumption,
Divide by and substitute .
Remark on versions. A density is defined only up to a set of measure zero, and has measure zero. If one changes at the single point , the prior is the same distribution, but the right side of the identity changes and the left side does not. In the same way, the conditional density is not determined by the joint distribution, which is the Borel-Kolmogorov problem. The proof uses the three formulas of the statement at , so it holds for those versions. When and are continuous, these are the continuous versions, which is what any practical computation uses. Marin and Robert (2010) show that with other versions the "identity" can give any value, and they recommend fixing the versions in this way.
Consequences
A Bayes factor from one posterior. Only the posterior of under is needed, at one point. With Markov chain draws from , for example by Gibbs sampling, the posterior density at can be estimated by a kernel density estimate of the , or better by the Rao-Blackwell average when the full conditional of has a closed form. In contrast, bridge sampling and nested sampling estimate and separately, and they work for models that are not nested and for priors that are not compatible.
Exact check: a coin. Toss a coin times and see heads. Beta and ; there is no nuisance parameter. The posterior is Beta, and its density at is
while the prior density is 1. This is exactly on the Bayes factor page. With the priors Beta, Beta and Beta the ratio is , and , and in exact rational arithmetic it equals in each case.
Example with a nuisance parameter. Fit , , at with , and test . Take independent priors and under , and under , so the priors are compatible. Because , the posterior of is : precision and mean . Its density at 0 is , the prior density there is , and the ratio equals computed from the two marginal normal densities of . The least squares slope is , and the data mildly favour the slope, with .
The Lindley paradox in one line. If the prior of under is spread out, goes to 0 while the posterior density at does not, so . This is Part 3 of the Lindley paradox.
Several parameters. The statement and proof do not use the dimension of , so the identity holds for a vector with joint densities. Testing several coefficients of a Bayesian linear regression at once is an example.
Tightness
Compatibility cannot be dropped. In the regression example, change only the prior of to . The density ratio is still , because it does not look at , but the true is . The Verdinelli-Wasserman factor is over , which is , and .
The prior density must be positive at . If , as for non-local priors, the ratio is and the theorem says nothing. The Bayes factor is still defined through the marginal likelihoods.
The prior must be proper. If is improper, has no fixed scale, and neither has the Bayes factor; see improper prior. An improper prior on the shared parameter is allowed, because it cancels in the proof as long as both models use it.
The version matters. As the remark in the proof shows, the identity is about the densities defined by the formulas of the statement, not about every version.
History
Dickey (1971) gave the density ratio form of the Bayes factor for linear hypotheses on normal means and credited the idea to L. J. Savage, which gave the name. Verdinelli and Wasserman (1995) removed the compatibility condition with the correction factor above and used it with Markov chain Monte Carlo output. Marin and Robert (2010) pointed out that the identity depends on the choice of version of the densities, which they called the Savage-Dickey paradox, and showed how to fix it. Kass and Raftery (1995) list the ratio among the ways to compute Bayes factors.
References
- James M. Dickey, The weighted likelihood ratio, linear hypotheses on normal location parameters, Annals of Mathematical Statistics 42(1), 1971, the density ratio form of the weighted likelihood ratio, credited to L. J. Savage (general locator)
- Verdinelli and Wasserman 1995, pages 614 to 618 (the correction factor when the priors are not compatible; general locator)
- Jean-Michel Marin and Christian P. Robert, On resolving the Savage-Dickey paradox, Electronic Journal of Statistics 4, 2010, pages 643 to 654 (the dependence on the version of the densities and how to fix it; general locator)
- Robert E. Kass and Adrian E. Raftery, Bayes factors, Journal of the American Statistical Association 90(430), 1995, the section on computing marginal likelihoods (general locator)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag WCSA76 Edit this page History Report an error Markdown