Roever 2020 - Priors for the Effect and Heterogeneity
Summary
The effect gets a uniform (improper) or normal prior; the heterogeneity gets one of four classes: proper informative (half-normal, half-, half-Cauchy, log-normal, exponential), proper “non-informative” depending on the (uniform shrinkage, DuMouchel, Berger-Deely conventional), improper -dependent (Jeffreys/Tibshirani, Berger-Deely) and improper scale-invariant (). For small an informative prior is recommended; the improper uniform prior is “conservative” in a provable sense (Appendix A.2).
Overview
Prior independence is assumed, , for computational convenience (dependent priors: Senn 2007; Pullenayegum 2011). Improper priors may give improper posteriors.
Main Content
Prior for the effect
Uniform on (non-informative location prior), or normal (conditionally conjugate), the two cases supported in the package. Uniform is the limit .
Unit information prior (Kass and Wasserman 1995; App. A.1)
A vague prior whose variance equals that of a single observational unit. For a log-OR, set the 2x2 allocation (neutral effect, equal allocation) and : , so ; 95% of log-ORs fall in , i.e. ORs from about to . With event probability (, ): , never below 4. For a log-RR, gives SD 2 and with : (larger for ).
Priors for the heterogeneity
Proper informative. Because is usually tiny, information about from data is weak, so informative priors help.
- For log-OR-type endpoints, above is implausible (a tenfold OR spread). Spiegelhalter et al. (2004, Sec. 5.7): “reasonable”, “fairly high”, “fairly extreme”. Same logic for log-RR, log-HR, log-variance.
- Maximum-entropy prior for a given : exponential with rate . Half-normal with scale 0.5 or 1.0 recommended and shown to work well (Friede et al. 2017a,b). Log-normal, or heavy-tailed half-Student-, half-Cauchy, Lomax (discount the prior when data conflict: O’Hagan and Pericchi 2012; Schmidli et al. 2014; Gelman 2006; Polson and Scott 2012).
- Inverse-Gamma is generally not recommended (Gelman 2006; Polson and Scott 2012).
- Empirical priors from the Cochrane Database: Rhodes et al. (2015, mean-difference endpoints) and Turner et al. (2015, log-OR endpoints; log-normal/log-Student-), available as
RhodesEtAlPrior()andTurnerEtAlPrior().
Proper “non-informative”. Scale-invariant but dependent on the (logically awkward: Senn 2007). With the harmonic-mean squared standard error
Uniform shrinkage, DuMouchel and Berger-Deely conventional priors
- Uniform shrinkage (Daniels 1999): uniform on the average shrinkage , equivalently uniform in , a quantity much like of Higgins-Thompson (Viechtbauer 2010 - tau2 Estimators, Q-Test and Heterogeneity Statistics). Density (Eq. 5): , median .
- DuMouchel (DuMouchel and Normand 2000), Eq. 6: , log-logistic, mode 0, median .
- Conventional (Berger and Deely 1988), Eq. 7: ; proper, intended for testing/model selection.
Improper priors.
- Scale-invariance family (Eq. 8-9): requiring gives , . : log-uniform (improper posterior in this problem, Gelman 2006). : uniform on (Gelman’s default for large ; needs with an improper uniform prior, and no proper posterior when ). (Eq. 10): , uniform in , a pole at the origin. : uniform in , needs , not recommended.
- Jeffreys/Tibshirani (Eq. 11): treating the orthogonal location parameter as fixed (the general Jeffreys is not recommended with a location parameter),
Also the Berger-Bernardo reference prior (Bodnar et al. 2016, 2017). Improper (tail ), locally integrable with ; posterior proper for . With equal its mode is at ; otherwise near the smallest , possibly multimodal. Scales with the .
- Berger-Deely (Eq. 12): , equals Jeffreys when all are equal.
Table 1: four classes of heterogeneity priors
proper informative proper non-informative improper non-informative improper scale-invariant examples half-normal, half-, half-Cauchy, log-normal, exponential uniform shrinkage (5), DuMouchel (6), conventional (7) Jeffreys (11), Berger-Deely (12) uniform in , in , … (9) depends on ? no yes yes no scale-invariant? no scales with scales with yes restrictions none less if combined with a proper effect prior.
Choosing
Proper prior wanted when marginal likelihoods or Bayes factors are needed or is small. Gelman (2006) recommends the improper uniform for unless is small or an informative prior is desired, in which case half- (half-Cauchy, half-normal as special/limiting cases; half-Cauchy supported by Polson and Scott 2012). Jeffreys is the default non-informative choice (proper posterior for ). For a log-OR, half-normal(0.5) leaves roughly 95% of mass below (about 5% “fairly extreme”).
Conservatism of the uniform prior (Appendix A.2)
Uniform prior is the stochastically largest posterior
Let the parameter domain be , the likelihood with , and the prior density monotonically decreasing with . Let and be the posterior CDFs under the improper uniform prior and under . Then for all ,
so the uniform-prior posterior is stochastically larger than the posterior under any prior in this class (provided the uniform one is proper); quantiles and expectations are larger. The class includes exponential, half-normal, half-, half-Cauchy, Lomax and bounded uniform priors. Proof sketch (restated). Write with and . Since is decreasing, and . Because increases in , . (The paper’s printed chain bounds numerator and denominator separately via ; the ratio argument here is the form that makes the final inequality hold.)
Interpretation: overestimating heterogeneity is “conservative” (wider intervals), though large also shifts so intervals need not nest (Poole and Greenland 1999); the uniform prior can nonetheless put too much weight on implausibly large .
Prior predictive implications (Sec. 3.4)
A fixed implies ; a prior on implies a normal scale mixture for (prior predictive), evaluated by normalmixture(). For the 97.5% quantile of the prior predictive :
| prior | ||
|---|---|---|
| half-normal(0.5) | 1.092 | 2.98 |
| half-normal(1.0) | 2.185 | 8.89 |
| half-Cauchy(0.5) | 5.051 | 156.1 |
So half-normal(0.5) places 95% of OR-scale study effects within a factor of about 3 (13 for the full 95% range) of the mean OR, while half-Cauchy(0.5) allows absurdly large heterogeneity. The empirical Turner et al. prior for “surgical / device-related success/failure”, pharmacological vs placebo, has median 0.343 and 95% range [0.0623, 1.887] (log-normal; Fig. 1 parameters ).
Examples
Choosing a prior for log-lift in marketing experiments
For a log-relative-lift endpoint where plausible between-experiment OR-like variation is up to about 2x (a ratio of true lifts), is the 95% scale. A half-normal with scale 0.25 to 0.5 puts mass there; the first prior-predictive check is: does the implied 97.5% quantile of correspond to a ratio you would believe? This is the same workflow as Constructing Priors for Effect Sizes. Reproduce the check with:
import numpy as np
from scipy import stats, optimize
def prior_pred_q(cdf_tau_pdf, upper=50, q=0.975):
tt = np.linspace(1e-6, upper, 400001); pp = cdf_tau_pdf(tt)
F = lambda x: np.trapezoid(pp*stats.norm.cdf(x/tt), tt) - q
return optimize.brentq(F, 1e-3, 100)
print(prior_pred_q(lambda t: stats.halfnorm.pdf(t, scale=0.5))) # 1.091 here (paper: 1.092)
print(prior_pred_q(lambda t: stats.halfnorm.pdf(t, scale=1.0))) # 2.182 here (paper: 2.185)Connections
- Constructing Priors for Effect Sizes and Hierarchical Models (the half-Cauchy/half- recommendation originates in Gelman 2006).
- Sensitivity of results to these choices is demonstrated in Roever 2020 - Pediatric Liver Transplant Worked Example.