Abstract
The parametric bootstrap can be used for the efficient computation of Bayes posterior distributions. Importance sampling formulas take on an easy form relating to the deviance in exponential families, and are particularly simple starting from Jeffreys invariant prior. Because of the i.i.d. nature of bootstrap sampling, familiar formulas describe the computational accuracy of the Bayes estimates. Besides computational methods, the theory provides a connection between Bayesian and frequentist analysis. Efficient algorithms for the frequentist accuracy of Bayesian inferences are developed and demonstrated in a model selection example.
Keywords: Jeffreys prior, exponential families, deviance, generalized linear models
1 Introduction
This article concerns the use of the parametric bootstrap to carry out Bayesian inference calculations. Two main points are made: that in the comparatively limited set of cases where bootstrap methods apply, they offer an efficient and computationally straightforward way to compute posterior distributions and estimates, enjoying some advantages over Markov chain techniques; and, more importantly, that the parametric bootstrap helps connect Bayes and frequentist points of view.
The basic idea is simple and not unfamiliar: that the bootstrap is useful for importance sampling computation of Bayes posterior distributions. An important paper by Newton and Raftery (1994) suggested a version of non-parametric bootstrapping for this purpose. By “going parametric” we can make the Bayes/bootstrap relationship more transparent. This line of thought has the advantage of linking rather than separating frequentist and Bayesian practices.
Section 2 introduces the main ideas in terms of an elementary one-parameter example, and illustrates a connection between Jeffreys invariant prior density and second-order accurate bootstrap confidence limits. Both methods are carried out via reweighting of the original “raw” bootstrap replications. The calculation of posterior distributions by bootstrap reweighting is a main theme here, in constrast to Markov chain methods, which strive to directly produce correctly distributed posterior realizations.
Multidimensional exponential families, discussed in Section 3, allow the Bayes/bootstrap conversion process to be explicitly characterized. Two important families, multivariate normal and generalized linear models, are investigated in Section 4 and Section 5. Jeffreys-type priors can yield unsatisfactory results in multiparameter problems (Ghosh, 2011), as shown here by comparison with bootstrap confidence limits.
An advantage of bootstrap reweighting schemes is the straightforward analysis of their accuracy. Section 6 develops accuracy estimates for our methodology, both internal (How many bootstrap replications are necessary?) and external (How much would the results vary in future data sets?). The latter concerns the frequentist analysis of Bayesian estimates, an important question in “objective Bayes” applications; see for instance Gelman, Meng and Stern (1996) and Berger (2006).
Bootstrap reweighting can apply to any choice of prior (not favoring convenience priors such as the conjugates, for example), but here we will be most interested in the objective-type Bayes analyses that dominate current practice. Jeffreys priors are featured in the examples, more for easy presentation than necessity. The paper ends with a brief summary in Section 7. Some techical details are deferred to the Appendix.
Connections between nonparametric bootstrapping and Bayesian inference emerged early, with the “Bayesian bootstrap,” Rubin (1981) and Efron (1982). Bootstrap reweighting is deployed differently in Smith and Gelfand (1992), with a nice example given in their Section 5. Sections 4 and 6 of Efron and Tibshirani (1998) develop bootstrap reweighting along the lines used in this paper.
2 Conversion and reweighting
Our methodology is introduced here in terms of a simple one-parameter problem. Table 1 shows scores for n = 22 students on two tests, “mechanics” and “vectors”, having sample correlation
Table 1.
Scores of 22 students on two tests, “mechanics” and “vectors” (from Mardia et al., 1979, a randomly chosen subset of the 88 students in their Table 1.2.1). The sample correlation is θ̂ = 0.498.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mech | 7 | 44 | 49 | 59 | 34 | 46 | 0 | 32 | 49 | 52 | 44 | 36 | 42 | 5 | 22 | 18 | 41 | 48 | 31 | 42 | 46 | 63 |
| vec | 51 | 69 | 41 | 70 | 42 | 40 | 40 | 45 | 57 | 64 | 61 | 59 | 60 | 30 | 58 | 51 | 63 | 38 | 42 | 69 | 49 | 63 |
| (2.1) |
We wish to calculate some measure of posterior distribution for the true underlying parameter value
| (2.2) |
As in Mardia et al. (1979), we assume that the individual student scores yi = (meci, veci) are a random sample from a bivariate normal distribution having unknown mean vector μ and covariance matrix Σ
| (2.3) |
with y = (y1, y2, …, y22) representing the full data set. Let (μ̂, Σ̂) denote the usual maximum likelihood estimate (MLE). Then a parametric bootstrap sample y* follows (2.3), with (μ̂, Σ̂) replacing (μ, Σ),
| (2.4) |
The sample correlation of y* is a parametric bootstrap replication of θ̂, say θ̂*. A total of B = 10, 000 parametric bootstrap samples y* were independently generated according to (2.4), and the corresponding θ̂* values calculated. We will denote them simply as
| (2.5) |
with θi short for .
The histogram in Figure 1 compares the distribution of the 10,000 θi’s with Fisher’s theoretical density function fθ(θ̂),
Figure 1.
Histogram of B = 10, 000 bootstrap replications for the student score correlation coefficient (2.4)–(2.5) scaled to integrate to 1. Solid curve is Fisher’s density formula (2.6) for θ = 0.498. Triangles indicate the exact 95% confidence interval θ ∈ (0.093, 0.741).
| (2.6) |
where θ has been set equal to its MLE value 0.498. In this sense f0.498(·) is the ideal parametric bootstrap density we would obtain if the number of replications B approached infinity. Chapter 32 of Johnson and Kotz (1970) gives formula (2.6) and other representations of fθ(θ̂).
Figure 1 also indicates the exact 95% confidence limits
| (2.7) |
noncoverage in each tail, obtained from fθ(θ̂) by the usual construction,
| (2.8) |
and similarly at the upper endpoint.
Suppose now1 we have a prior density π(θ) for the parameter θ, and wish to calculate the posterior density π(θ|θ̂). For any subset
of the parameter space Θ = [−1, 1],
| (2.9) |
according to Bayes rule.
Define the conversion factor R(θ) to be the ratio of the likelihood function to the bootstrap density,
| (2.10) |
Here θ̂ is fixed at its observed value 0.498 while θ represents any point in Θ. We can rewrite (2.9) as
| (2.11) |
More generally, if t(θ) is any function θ its posterior expectation is
| (2.12) |
The integrals in (2.11) and (2.12) are now being taken with respect to the parametric bootstrap density fθ̂(·). Since θ1, θ2, …, θB (2.5) is a random sample from fθ̂(·), the integrals can be estimated by sample averages in the usual way, yielding the familiar importance sampling estimate of E{t(θ)|θ̂},
| (2.13) |
where ti = t(θi), πi = π(θi), and Ri = R(θi). Under mild regularity conditions, the law of large numbers implies that Ê{t(θ)|θ̂} approaches E{t(θ)|θ} as B → ∞. (The accuracy calculations of Section 6 will show that in this case B = 10,000 was larger than necessary for most purposes.)
The heavy curve in Figure 2 describes π̂(θ|θ̂), the estimated posterior density starting from Jeffreys prior
Figure 2.
Heavy curve is the posterior density π(θ|θ̂) for the correlation (2.2), starting from Jeffreys prior (2.14), obtained by reweighting the B = 10, 000 bootstrap replications (2.5); triangles show 95% credible limits θ0 ∈ (0.095,0.748). Light dashed curve is raw unweighted bootstrap distribution. Beaded curve is BCa weighted bootstrap density (2.17), nearly the same as π(θ̂|θ) in this case.
| (2.14) |
(see Section 3). The raw bootstrap distribution puts weight 1/B on each of the B replications θi. By reweighting these points proportionately to wi = πiRi we obtain the estimated posterior distribution of θ given θ̂, with
| (2.15) |
π̂(θ|θ̂) represents the density of this distribution — essentially a smoothed histogram of the 10,000 θi’s, weighted proportionally to wi.
Integrating π̂(θ|θ̂) yields the 95% credible limits ( posterior probability in each tail)
| (2.16) |
close to the exact limits (2.7). Prior (2.14) is known to yield accurate frequentist coverage probabilities, being a member of the Welch–Peers family discussed in Section 4.
In this case, the weights wi = πiRi can be thought of as correcting the raw unweighted (wi ≡ 1) bootstrap density. Figure 2 shows the correction as a small shift leftwards. BCa, standing for bias-corrected and accelerated, is another set of corrective weights, obtained from purely frequentist considerations. Letting Ĝ(θ) denote the usual empirical cumulative distribution function (cdf) of the bootstrap replications θ1, θ2, …, θB, the BCa weight on θi is
| (2.17) |
where ϕ and Φ are the standard normal density and cdf, while z0 and a are the bias-correction and acceleration constants developed in Efron (1987) and DiCiccio and Efron (1992), further discussed in Section 4 and the Appendix. Their estimated values are z0 = −0.068 and a = 0 for the student score correlation problem.
The BCa density πBCa(θ̂|θ), obtained by reweighting as in (2.15), is seen in Figure 2 to nicely agree with the Jeffreys posterior density, being slightly heavier in the left tail, with 95% central interval θ0 ∈ (0.074, 0.748). This agreement is misleadingly soothing, as will be seen in the multidimensional context of Section 4.
3 Exponential families
The Bayes/bootstrap conversion process takes on a simplified form in exponential families. This facilitates its application to multiparameter problems, as discussed here and in the next two sections.
The density functions for a p-parameter exponential family
can be expressed as
| (3.1) |
where the p-vector α is the canonical parameter, β̂ is the p-dimensional sufficient statistic vector, and where ψ(α), the cumulant generating function, provides the multipliers necessary for fβ(β̂) integrating to 1. Here we have indexed the family by its expectation parameter vector β,
| (3.2) |
for the sake of subsequent notation, but α and β are one-to-one functions, and we could just as well write fα(β̂).
The deviance between any two members of
is
| (3.3) |
(denoted equivalently D(α1, α2) since deviance does not depend on the parameterization of
.) Taking logs in (3.1) shows that
| (3.4) |
Then family (3.1) can be re-expressed in “Hoeffding’s form” as
| (3.5) |
Since D(β̂, β) is equal or greater than zero, (3.5) shows that β = β̂ is the MLE, maximizing fβ(β̂) over all choices of β in
, the space of possible expectation vectors.
Parametric bootstrap replications of β̂ are independent draws from fβ̂(·),
| (3.6) |
where βi is shorthand notation for
. Starting from a prior density π(β) on
, the posterior expectation of any function t(β) given β̂ is estimated by
| (3.7) |
as in (2.13), with R(β) the conversion factor
| (3.8) |
Note: π(β)R(β) is transformation invariant, so formula (3.7) produces the same numerical result if we bootstrap α1, α2, …, αB instead of (3.6), or for that matter bootstrap any other sufficient vector. See Section 4.
Hoeffding’s form (3.5) allows a convenient expression for R(β):
Lemma 1
Conversion factor (3.8) equals
| (3.9) |
where
| (3.10) |
and
| (3.11) |
Letting α̂ be the canonical parameter vector corresponding to β̂, (3.4) gives
| (3.12) |
which is useful for both theoretical and numerical computations.
The derivatives of ϕ with respect to components of α yield the moments of β̂,
| (3.13) |
and
| (3.14) |
Ujkl(α) = Eα(β̂j − βj)(β̂k − βk)(β̂l − βl). In repeated sampling situations, where β̂ is obtained from n independent observations, the entries of V(α) and U(α) are typically of order O(n−1) and O(n−2), respectively; see Section 5 of Efron (1987).
The normal approximation
| (3.15) |
yields
| (3.16) |
so
| (3.17) |
Because (3.16) applies the central limit theorem where it is most accurate, at the center, (3.17) typically errs by a factor of only 1 + O(1/n) in repeated sampling situations; see Tierney and Kadane (1986). In fact for discrete families like the Poisson, where fβ(β) is discontinuous, approximation (3.17) yields superior performance in applications of (3.9) to (3.7). In what follows we will treat (3.17) as exact rather than approximate.
Jeffreys invariant prior density, as described in Kass and Wasserman (1996), takes the form
| (3.18) |
in family (3.1), with c an arbitrary positive constant that does not affect estimates such as (3.7). Ignoring c, we can use (3.17)–(3.18) to rewrite the conversion factor R(β) (3.9) as
| (3.19) |
Jeffreys prior is intended to be “uninformative.” Like other objective priors discussed in Kass and Wasserman, it is designed for Bayesian use in situations lacking prior experience. Its use amounts to choosing π+(β) to be flat,
| (3.20) |
in which case (3.7) takes on a particularly simple form:
Lemma 2
If π(β) is Jeffreys prior (3.18), then (3.7) equals
| (3.21) |
with Δ(β) as in (3.11)–(3.12).
The normal translation model β̂ ~
(β, Σ), with Σ fixed, has Δ(β) = 0, so that the Bayes estimate t̂ in (3.21) equals the unweighted bootstrap estimate t̄,
| (3.22) |
Usually though t̂ will not equal t̄, the difference relating to the variability of Δ(β) in (3.21).
A simple but informative result concerns the relative Bayesian difference (RBD) of t(β) defined to be
| (3.23) |
:
Lemma 3
Letting ri = πiRi, the relative Bayesian difference of t(β) is
| (3.24) |
and if π(β) = πJeff(β),
| (3.25) |
here is the empirical correlation between ti and ri for the B bootstrap replications, the empirical coefficient of variation of the ri values, and the empirical standard deviation of the Δi values.
Proof
(3.24) follows immediately from (3.7),
| (3.26) |
If π(β) is the Jeffreys prior (3.18) then r(β) = exp(Δ(β)) (3.19), and the usual delta-method argument gives .
The student score example of Figure 2 (which isn’t in exponential family form) has, directly from definition (3.23),
| (3.27) |
which is also obtained from (3.24) with and . Notice that the factor in (3.24), and likewise in (3.25), apply to any function t(β), only the factor being particular. The multiparameter examples of Sections 3 and 4 have larger but smaller , again yielding rather small values of RBD(t). All of the Jeffreys prior examples in this paper show substantial agreement between the Bayes and unweighted bootstrap results.
Asymptotically, the deviance difference Δ(β) depends on the skewness of the exponential family. A normal translation family has zero skewness, with Δ(β) = 0 and R(β) = 1, so the unweighted parametric bootstrap distribution is the same as the flat-prior Bayes posterior distribution. In a repeated sampling situation, skewness goes to zero as n−1/2, making the Bayes and bootstrap distributions converge at this rate. We can provide a simple statement in one-parameter families:
Theorem 1
In a one-parameter exponential family, Δ(β) has the Taylor series approximation
| (3.28) |
where V̂ and γ̂ are the variance and skewness of β ~ fβ̂(·). In large-sample situations, Z
(0, 1) and γ̂ is O(n−1/2), making Δ(β) of order Op(n−1/2).
(Proof appears in the Appendix, along with the theorem’s multiparameter version.)
As a simple example, suppose
| (3.29) |
so β̂ is a scaled version of a standard Gamma variate having n degrees of freedom. In this case,
| (3.30) |
making Δ(β) an increasing cubic function of β. The cubic nature of (3.28) and (3.30) makes reweighting of the parametric bootstrap replications βi by exp(Δi) more extreme in the tails of the distribution than near β̂.
Stating things in terms of conditional expectations Ê{t(β)|β̂} as in (3.7) is convenient, but partially obscures the basic idea: that the distribution putting weight proportional to wi = πiRi on βi approximates the posterior distribution π(β|β̂).
As an example of more general Bayesian calculations, consider the “posterior predictive distribution,”
| (3.31) |
where y is the original data set yielding β̂; by sufficiency as in (2.3), it has density functions gβ(y) = fβ(β̂)h(y|β̂). For each βi we sample from gβi(·). Then the discrete distribution putting weight proportional to wi on , for i = 1, 2, …, B, approximates g(y). See Gelman et al. (1996).
4 The multivariate normal family
This section and the next illustrate Bayes/bootstrap relationships in two important exponential families: the multivariate normal and generalized linear models. A multivariate normal sample y comprises n independent d-dimensional normal vector observations
| (4.1) |
This involves p = d · (d + 3)/2 unknown parameters, d for the mean vector μ and d · (d + 1)/2 for the covariance matrix Σ. We will use γ to denote the vector of all p parameters; γ is not the expectation vector β (3.2), but rather a one-to-one quadratic function γ = m(β) described in formula (3.5) of DiCiccio and Efron (1992).
The results of Section 3 continue to hold under smooth one-to-one transformations γ = m(β). Let f̃γ(γ̂) denote the density of the MLE γ̂ = m(β̂), and likewise R̃(γ) = f̃γ(γ̂)/f̃γ̂(γ) for the conversion factor, D̃(γ1, γ2) for the deviance, Δ̃(γ) = [D̃(γ, γ̂) − D̃(γ̂, γ)]/2 for the deviance difference, and π̃Jeff(γ) for Jeffreys prior. Then Lemma 1 continues to apply in the transformed coordinates:
| (4.2) |
(See the Appendix.)
A parametric bootstrap sample
| (4.3) |
approximates the conditional expectation of a function t̃(γ), starting from prior π̃(γ), by
| (4.4) |
as in (2.14), and if π̃(γ) is Jeffreys prior,
| (4.5) |
as in (3.21). This can be particularly handy since Δ is tranformation invariant and can be evaluated in any convenient set of coordinates, while π̃Jeff(γ) need not be calculated at all.
The following theorem provides ξ̃(γ) and R̃(γ) for a multivariate normal sample (4.1), working with γ the p = d · (d + 3)/2 coordinates consisting of μ and the elements of Σ on or above its main diagonal:
Theorem 2
In (μ, Σ) coordinates,
| (4.6) |
and
| (4.7) |
(Proof in the Appendix.)
Here 1/ξ̃(μ, Σ) turns out to be exactly proportional to |Ṽ(γ)|−1/2, and either expression gives π̃Jeff(μ, Σ). Expression (4.7) equals the deviance difference (3.11), no matter what the choice of coordinates.
Theorem 2 makes it easy to carry out parametric bootstrapping: having calculated the usual MLE estimates (μ̂, Σ̂), each bootstrap data set y* is generated as in (4.1),
| (4.8) |
from which we calculate the bootstrap MLE estimate (μ̂*, Σ̂*), denoted simply (μ, Σ) as before. To each of B such replicates
| (4.9) |
is attached the weight
| (4.10) |
using Theorem 2 (or more exactly ); this distribution, supported on the B points (4.9), estimates the posterior distribution of (μ, Σ) given (μ̂, Σ̂). Expectations are then obtained as in (4.4), and similarly for more general posterior parameters such as percentiles and credible limits.
Figure 3 applies this methodology to the student score data of Table 1, assuming the bi-variate normal model (2.3). We take the parameter of interest θ to be the eigenratio
Figure 3.
Heavy curve is Bayes posterior density for the eigenratio (4.11), starting from Jeffreys prior for a bivariate normal model; solid triangles show 95% credible limits (0.650, 0.908). Beaded curve is BCa confidence density based on weights (2.17) with z0 = −0.222, a = 0; BCa 95% interval (0.598, 0.890), open triangles, is shifted far leftward. Light dashed curve is unweighted bootstrap density.
| (4.11) |
where λ1 and λ2 are the ordered eigenvalues of Σ; θ has MLE θ̂ = t(μ̂, Σ̂) = 0.793.
B = 10,000 bootstrap replications were generated as in (4.9), and ti = t((μ, Σ)i) calculated for each. Total computation time was about 30 seconds. The heavy curve shows the estimated posterior density of θ given (μ̂, Σ̂), starting from Jeffreys prior. The 95% credible region, probability excluded in each tail, was
| (4.12) |
That is,
| (4.13) |
and similarly for the upper endpoint.
In this case the BCa 95% confidence limits are shifted sharply leftward compared to (4.12),
| (4.14) |
The beaded curve in Figure 3 shows the full BCa confidence density, i.e., the estimated density based on the BCa weights (2.17). For the eigenratio, z0 = −0.222 and a = 0 are the bias correction and acceleration constants. See the Appendix for a brief discussion of the z0 and a calculations.
Figure 4 helps explain the difference between the Bayes and BCa results. The heavy curve shows the BCa weights (2.17) increasing sharply to the left as a function of θi = t((μ, Σ)i), the bootstrap eigenratio values. In other words, smaller values of θi are weighted more heavily, pulling the weighted percentile points of the BCa distribution downwards. On the other hand, the Bayes weights (represented in Figure 4 by their regression on θi) are nearly flat, so that the Bayes posterior density is almost the same as the unweighted bootstrap density shown in Figure 3.
Figure 4.
Solid curve BCa weights (2.17), with (z0, a) = (−0.222, 0), plotted versus bootstrap eigenratio replications θi. Dashed curve: regression of Jeffreys prior Bayes weights exp(Δ̃i) on θλ.
The BCa limits are known to yield highly accurate coverage probabilities; see DiCiccio and Efron (1996). Moreover, in the eigenratio case, the MLE θ̂ is strongly biased upwards, suggesting a downward shift for the confidence limits. This brings up a familiar complaint against Jeffreys priors, extensively discussed in Ghosh (2011): that in multiparameter settings they can give inaccurate inferences for individual parameters of interest.
This is likely to be the case for any general-purpose recipe for choosing objective prior distributions in several dimensions. For instance, repeating the eigenratio analysis with a standard inverse Wishart prior on Σ (covariance matrix I, degrees of freedom 2) and a flat prior on μ gave essentially the same results as in Figure 3. Specific parameters of interest require specifically tailored priors, as with the Bernardo–Berger reference priors, again nicely reviewed by Ghosh (2011).
In fact, the BCa weights can be thought of as providing such tailoring: define the BCa prior (relative to the unweighted bootstrap distribution) to be
| (4.15) |
with as in (2.17). This makes the posterior weights appearing in expressions like (3.7) equal the BCa weights , and makes posterior credible limits based on the πBCa prior equal BCa limits. Formula (4.15) can be thought of as an automatic device for constructing Welch and Peers’ (1963) “probability matching priors”; see Tibshirani (1989).
Importance sampling methods such as (4.5) can suffer from excessive variability due to occasional large values of the weights. The “internal accuracy” formula (6.2) will provide a warning of numerical problems. A variety of helpful counter-tactics are available, beginning with a simple truncation of the largest weight.
Variations in the parametric bootstrap sampling scheme can be employed. Instead of (3.6), for instance, we might obtain β1, β2, …, βB from
| (4.16) |
where μ̂β and Σ̂β are the observed mean and covariance of β’s from a preliminary fβ̂(·) sample. Here h(Σ̂β) indicates an expansion of Σ̂β designed to broaden the range of the bootstrap distribution, hence reducing the importance sampling weights. If a regression analysis of the preliminary sample showed the weights increasing in direction υ in the β space, for example, then h(Σ̂β) might expand Σ̂β in the υ direction. Devices such as this become more necessary in higher-dimensional situations, where extreme variability of the conversion factor R(βi) may destabilize our importance sampling computations.
Replacing (3.6) with (4.16) changes the conversion factor R(β) (3.8), but in an easily computable way. In fact, replacing (3.6) with βi ~
(μ̂β, Σ̂β) makes the calculation of R(β) easier in situations where there is no simple formula for the bootstrap density fβ̂(β).
5 Generalized linear models
The Bayes/bootstrap conversion theory of Section 3 applies directly to generalized linear models (GLM). A GLM begins with a one-parameter exponential family
| (5.1) |
where η = α, y = β̂, and φ(η) = ψ(α) in notation (3.1). An n × p structure matrix X and a p-dimensional parameter vector α then yield an n-vector η = Xα, with each entry ηj governing an independent observation yj,
| (5.2) |
All of this results in a p-parameter exponential family (3.1), with α the canonical parameter vector. Letting μ be the expectation vector of y = (y1, …, yn)′,
| (5.3) |
the other entries of (3.1) are
| (5.4) |
where xj is the jth row of X. The deviance difference Δ(β) (3.11) has a simple form,
| (5.5) |
(α̂ the MLE of α, η̂ = Xα̂, and μ̂ the expectation vector (5.3) corresponding to α = α̂) according to (3.12).
As an extended example we now consider a microarray experiment discussed in Efron (2010), Section 2.1: 102 men, 50 healthy controls and 52 prostate cancer patients, have each had the activity of N = 6033 genes measured (Singh et al., 2002). A two-sample test comparing patients with controls has been performed for each gene, yielding a z-value zk, i.e., a test statistic having a standard normal distribution under H0k, the null hypothesis of no patient/control difference for gene k,
| (5.6) |
The experimenters, of course, are interested in identifying non-null genes.
Figure 5 shows a histogram of the N z-values. The standard normal curve is too high in the center and too low in the tails, suggesting that at least some of the genes are non-null. The better-fitting curve “Model 4” is a fit from the Poisson regression family discussed next.
Figure 5.
Histogram of the N = 6033 z-values from the prostate cancer study, Singh et al. (2002). Standard normal curve (dashed) is too high at center and too low in the tails. “Model 4,” solid curve, is the fit from a fourth-degree polynomial Poisson regression.
There are J = 49 bins for the histogram, each of width 0.2, with centers xj ranging from −4.4 to 5.2. Let yj be the number of zk values in the jth bin,
| (5.7) |
We will assume that the yj’s are independent Poisson observations, each having its own expectation μj,
| (5.8) |
and then fit curves to the histogram using Poisson regression. Why this might be appropriate is discussed at length in Efron (2008, 2010) but here we will just take it as a helpful example of the Bayes/bootstrap GLM modeling theory.
We consider Poisson regression models where the canonical parameters ηj = log(μj) are mth- degree polynomial functions of the bin centers xj, evaluated by glm(y~poly(x, m), Poisson) in the language R. This is a GLM with the Poisson family, ηj = log μj, where X is a J × (m + 1) matrix having rows for j = 1, 2, …, J. For the Poisson distribution, φ(η) = μ in (5.1). The deviance difference function (5.5) becomes
| (5.9) |
1 a vector of J ones.
Let “Mm” indicate the Poisson polynomial regression model of degree m. M2, with log(μj) quadratic in xj, amounts to a normal location-scale model for the marginal density of the zk’s. Higher-order models are more flexible. M4, the quartic model, provided the heavy fitted curve in Figure 5. Table 2 shows the Poisson deviance for the fitted models M2 through M8. A dramatic decrease occurs between M3 and M4, but only slow change occurs after that. The AIC criterion for model m,
Table 2.
Deviance from Poisson polynomial regression models for counts (5.7), prostate data; AIC criterion (5.10) is minimized for the quartic model M4. Boot % shows the proportion of each model selected in B = 4000 bootstrap replications of the AIC criterion, bootstrapping from M8. Bayes % are weighted Bayes posterior proportions, assuming Jeffreys prior. The St Error column is obtained from the bootstrap-after-bootstrap calculations of Section 6.
| Model | Deviance | AIC | Boot % | Bayes % | (St Error) |
|---|---|---|---|---|---|
| M2 | 138.6 | 144.6 | 0% | 0% | (0%) |
| M3 | 137.1 | 145.1 | 0% | 0% | (0%) |
| M4 | 65.3 | 75.3 | 32% | 36% | (20%) |
| M5 | 64.3 | 76.3 | 10% | 12% | (14%) |
| M6 | 63.8 | 77.8 | 5% | 5% | (8%) |
| M7 | 63.8 | 79.8 | 1% | 2% | (6%) |
| M8 | 59.6 | 77.6 | 51% | 45% | (27%) |
| (5.10) |
is minimized at M4, though none of the subsequent models do much worse. The fit from M4 provided the “Model 4” curve in Figure 5.
Parametric bootstrap samples y* were generated from M4, as in (5.8),
| (5.11) |
with μ̂j the MLE values from M4. B = 4000 such samples were generated, and for each one the MLE α̂*, and also β̂* (5.4), were obtained from the R call glm(y* ~poly(x,4), poisson). Using the simplified notation α = α̂* gives bootstrap vectors η = Xα, μ = exp(η) = (exp(ηj)), β = X′μ, where X is the 49 × 5 matrix poly(x,4), and finally Δ(β) as in (5.9). (Notice that β represents β̂* here, not the “true value” β of (5.4).)
The reweighted bootstrap distribution, with weights proportional to
| (5.12) |
estimates the posterior distribution of β given βi, starting from Jeffreys prior. The posterior expectation of any parameter θ = t(β) is estimated by Σ witi/Σ wi as in (3.21).
We will focus attention on a false discovery rate (Fdr) parameter θ,
| (5.13) |
where Φ is the standard normal cdf and F(z) is the cdf of the Poisson regression model: in terms of the discretized situation (5.8),
| (5.14) |
(with a “half count” correction at z = xj). Fdr(z) estimates the probability that a gene having its zk exceeding the fixed value z is non-null, as discussed for example in Efron (2008).
Figure 6 concerns the choice z = 3. Using quartic model M4 to estimate the μj’s in (5.14) yields point estimate
Figure 6.
Posterior densities for θ = Fdr(3) (5.13), prostate data, based on B = 4000 parametric bootstrap replications (5.11) from the fourth-degree Poisson regression model M4. Solid curve Jeffreys Bayes posterior density, using (5.12); heavy dashed curve BCa confidence density (2.17). Both give 95% interval θ ∈ (−0.154, −0.241). Light dashed curve is unweighted bootstrap density. Total computation time was about 30 seconds.
| (5.15) |
Fdr values near 0.2 are in the “interesting” range where the gene might be reported as non-null, making it important to know the accuracy of (5.15).
The B = 4000 bootstrap samples for M4 (5.11) yield bootstrap replications θ1, θ2, …, θB. Their standard deviation is a bootstrap estimate of standard error for θ̂, , so a typical empirical Bayes analysis might report . A Jeffreys Bayes analysis gives the full posterior density of θ shown by the solid curve in Figure 6, with 95% credible interval
| (5.16) |
In this case the BCa density (2.17) ((z0, a) = (−0.047, −0.026)) is nearly the same as the Bayes estimate, both of them lying just slightly to the left of the unweighted bootstrap density.
The choice of philosophy, Jeffreys Bayes or BCa frequentist, doesn’t make much difference here, but the choice of model does. Repeating the analysis using M8 instead of M4 to generate the bootstrap samples (5.11) sharply decreased the estimate. Figure 7 compares the bootstrap histograms; the 95% credible interval for Fdr(3) is now
Figure 7.
B = 4000 parametric bootstrap replications of Fdr(3) from M8 (solid histogram) compared with those from M4 (line histogram). Closed triangles indicate 95% M8 credible limits (0.141, 0.239); open triangles M4 limits (0.154, 0.241).
| (5.17) |
AIC calculations were carried out for each of the 4000 M8 bootstrap samples. Of these, 32% selected M4 as the minimizer, compared with 51% for M8, as shown in the Boot % column of Table 2. Weighting each sample proportionally to exp(Δi) (5.12) narrowed the difference to 36% versus 45%, but still with a strong tendency toward M8.
It might be feared that M8 is simply justifying itself. However, standard nonparametric bootstrapping (resampling the N zk values), gave slightly more extreme Boot percentages,
| (5.18) |
The fact is that data-based model selection is quite unstable here, as the accuracy calculations of Section 6 will verify.
6 Accuracy
Two aspects of our methodology’s Bayesian estimation accuracy are considered in this section: internal accuracy, the bootstrap sampling error in estimates such as (3.7) (i.e., how many bootstrap replications B need we take?), and external accuracy, statistical sampling error, for instance how much would the results in Figure 3 change for a new sample of 22 students? The i.i.d. (independent and identically distributed) nature of bootstrap sampling makes both questions easy to answer.
Internal accuracy is particularly straightforward, The estimate (3.7) for Ê{t(β)|β̂} can be expressed in terms of si = tiπiRi and ri = πiRi as
| (6.1) |
Let be the 2 × 2 empirical covariance matrix of the B vectors (si, ri). Then standard delta-method calculations yield a familiar approximation for the bootstrap coefficient of variation of Ê,
| (6.2) |
where c̄ss, c̄sr, and c̄rr are the elements of .
The Jeffreys Bayes estimate for eigenratio (4.11) was Ê = 0.799 (nearly the same as the MLE 0.793). Formula (6.2) gave , indicating that Ê nearly equaled the exact Bayes estimate E{t(β)|β̂}. B = 10,000 was definitely excessive. Posterior parameters other than expectations are handled by other well-known delta-method approximations. Note: Discontinuous parameters, such as the indicator of a parameter θ being less than some value θ0, tend to have higher values of .
As far as external accuracy is concerned, the parametric bootstrap can be employed to assess its own sampling error, a “bootstrap-after-bootstrap” technique in the terminology of Efron (1992). Suppose we have calculated some Bayes posterior estimate Q̂ = Q(β̂), for example Ê or a credible limit, and wonder about its sampling standard error, i.e., its frequentist variability. As an answer, we sample K more times from fβ̂(·),
| (6.3) |
where the γ notation emphasizes that these replications are distinct from β1, β2, …, βB in (3.6), the original replications used to compute Q̂. Letting Q̂k = Q(γ̂k), the usual bootstrap estimate of standard error for Q̂ is
| (6.4) |
Q̂· = Σ Q̂k/K. K = 200 is usually plenty for reasonable estimation of se(Q̂); see Table 6.2 of Efron and Tibshirani (1993).
This recipe looks arduous since each Q̂k requires B bootstrap replications for its evaluation. Happily, a simple reweighting scheme on the original B replications finesses all that computation. Define
| (6.5) |
Lemma 4
If Q̂ is a posterior expectation Ê = Σ tiπiRi/Σ πiRi, then the importance sampling estimate of Q̂k is
| (6.6) |
for general quantities Q̂, reweighting βi proportionately to πiRiWi gives Q̂k.
The proof of Lemma 4 follows immediately from
| (6.7) |
which is the correct importance sampling factor for converting an fβ̂(β) sample into an fβ(γ̂k) likelihood. Note: Formula (6.6) puts additional strain on our importance sampling methodology, and should be checked for internal accuracy, as in (6.2).
Formula (6.6) requires no new computations of t(β), π(β), or R(β), and in exponential families the factor Wki is easily calculated:
| (6.8) |
where αi is the canonical vector in (3.1) corresponding to βi. This usually makes the computation for the bootstrap-after-bootstrap standard error (6.4) much less than that needed originally for Q̂. (Formula (6.5) is invariant under smooth transformations of β, and so Wki can be calculated directly in other coordinate systems as a ratio of densities.)
A striking use of (6.4) appears in the last two columns of Table 2, Section 5. Let t4(βi) be the indicator function of whether or not Model 4 minimized AIC for the ith bootstrap replication: Ê{t4(β)|β̂} = 0.36 according to the Bayes % column. However, its bootstrap-after-bootstrap standard error estimate was , with similarly enormous standard errors for the other model selection probabilities. From a frequentist viewpoint, data-based model selection will be a highly uncertain enterprise here.
Frequentist assessment of objective Bayes procedures has been advocated in the literature, for example in Berger (2006) and Gelman et al. (1996), but seems to be followed most often in the breach. The methodology here can be useful for injecting a note of frequentist caution into Bayesian data analysis based on priors of convenience.
If our original data set y consists of n i.i.d. vectors yi, as in Table 1, we can jackknife instead of bootstrapping the γ̂k’s. Now γ̂k is β̂ recomputed from the data set y(i) having yi removed for k = 1, 2, …, n. Formulas (6.5)–(6.8) still hold, yielding
| (6.9) |
An advantage of jackknife resampling is that the γ̂k values lie closer to β̂, making Wki closer to 1 and putting less strain on the importance sampling formula (6.6).
7 Summary
The main points made by the theory and examples of the preceding sections are as follows:
The parametric bootstrap distribution is a favorable starting point for importance sampling computation of Bayes posterior distributions (as in Figure 2).
This computation is implemented by reweighting the bootstrap replications rather than by drawing observations directly from the posterior distribution as with MCMC (formulas (3.7), (3.8)).
The necessary weights are easily computed in exponential families for any prior, but are particularly simple starting from Jeffreys invariant prior, in which case they depend only on the deviance difference Δ(β) ((3.9)–(3.12), (3.21), (4.7), (5.5)).
The deviance difference depends asymptotically on the skewness of the family, having a cubic normal form (3.29).
In our examples, Jeffreys prior yielded posterior distributions not much different than the unweighted bootstrap distribution. This may be unsatisfactory for single parameters of interest in multiparameter families (Figure 3).
Better uninformative priors, such as the Welch–Peers family or reference priors, are closely related to the frequentist BCa reweighting formula ((2.17), Figure 2, Figure 6).
Because of the i.i.d. nature of bootstrap resampling, simple formulas exist for the accuracy of posterior computations as a function of the number B of bootstrap replications. (Importance sampling methods can be unstable, so internal accuracy calculations, as suggested following (6.2), are urged.) Even with excessive choices of B, computation time was measured in seconds for our examples (6.2).
An efficient second-level bootstrap algorithm (“bootstrap-after-bootstrap”) provides estimates for the frequentist accuracy of Bayesian inferences ((6.3)–(6.6)).
This can be important in assessing inferences based on formulaic priors, such as those of Jeffreys, rather than on genuine prior experience (last column, Table 2 of Section 5).
A Appendix
Transformation of coordinates
Let J(β) be the Jacobian of the transformation γ = m(β), that is, the absolute value of the determinant of the Hessian matrix (∂βi/∂γj). Then f̃γ(γ̂) = fβ(β̂)J(β̂) gives
| (A.1) |
in (4.2), and
| (A.2) |
since Δ̃(γ) = Δ(β) by the transformation invariance of the deviance.
For any prior density π(β) we have π̃(γ) = π(β)J(β) and
| (A.3) |
J(β̂) acts as a constant in (A.3), showing that (4.4) is identical to (3.7). This also applies to Jeffreys prior, π̃Jeff(γ), which by design is transformation invariant, yielding (4.5).
Theorem 1
In a one-parameter exponential family, (3.13)–(3.14) give
| (A.4) |
and
| (A.5) |
where dα = α − α̂, V̂ = V(α̂), and Û = U(α̂). Expression (3.12) for Δ can be written as
| (A.6) |
Applying (A.4)–(A.5) reduces (A.6) to
| (A.7) |
with γ̂ = Û/V̂3/2 the skewness, the last line following from Z ≡ V̂−1/2(β − β̂) ≐ V̂1/2 (α − α̂) (A.5). Standard exponential family theory shows that Z →
(0, 1) under repeated sampling, verifying the theorem (remembering that the asymptotics here are for β ~ fβ̂(·), with β̂ fixed). The skewness γ̂ is then O(n−1/2), making Δ of order Op(n−1/2). The first missing term in the Taylor expansion (A.7) for Δ is δ̂Z4/12, δ̂ the kurtosis, and is of order Op(n−1).
The multiparameter version of Theorem 1 begins by considering a one-parameter subfamily of (3.1) now indexed by α rather than β,
| (A.8) |
where υ is some fixed vector in ℝ p; a here is not connected with that in (2.17). The deviance difference within is
| (A.9) |
since deviance is entirely determined by the two densities involved.
The exponential family terms (3.1) for family are
| (A.10) |
giving skewness γ̂(υ) = Û(υ)/V̂(υ)3/2. Applying the one-dimensional result gives
| (A.11) |
Since υ can be any vector, (A.11) describes the asymptotic form of Δ(·) in the neighborhood of α̂.
Theorem 2
For a single observation y ~
(μ, Σ), let f1 and f2 represent its density under (μ1, Σ1) and (μ2, Σ2), respectively. Then
| (A.12) |
But if y ~
(μ1, Σ1),
| (A.13) |
while . Taking the f1 expectation of (A.12) gives the deviance
| (A.14) |
for sample size n = 1. The deviance difference for sample size n
| (A.15) |
is then seen to equal (4.7).
The density of (μ̂, Σ̂) from a
(μ, Σ) sample of size n is proportional to
| (A.16) |
yielding (4.6).
The BCa weights
The BCa system of second-order accurate bootstrap confidence intervals was introduced in Efron (1987) (Sect. 2 giving an overview of the basic idea), and restated in weighting form (2.17) in Efron and Tibshirani (1998). The bias correction constant z0 is obtained directly from the MLE θ̂ and the bootstrap replication θ1, θ2, …, θB according to
| (A.17) |
DiCiccio and Efron (1992) discusses “ABC” algorithms for computing a, the acceleration constant. The program abc2 is available in the supplement to this article. It is very fast and accurate, but requires individual programming for each exponential family. A more computer-intensive R program, accel, which works directly from the bootstrap replications (βi, ti) (as in (3.6)–(3.7)) is also available in the supplement.
Table 3 shows z0 and a for our three main examples. Notice the especially large bias correction needed for the eigenratio.
Table 3.
BCa constants z0 and a for our three examples.
| θ̂ | z0 | a | |
|---|---|---|---|
| student correlation | .498 | −.069 | 0 |
| student eigenratio | .793 | −.222 | 0 |
| prostate data Fdr(3) | .192 | −.047 | −.026 |
Footnotes
For this example we reduce the problem to finding the posterior distribution of θ given θ̂, ignoring any information about θ in the part of (μ̂, Σ̂) orthogonal to θ̂. Our subsequent examples do not make such reductions.
References
- Berger J. The case for objective Bayesian analysis. Bayesian Anal. 2006;1:385–402. (electronic) [Google Scholar]
- DiCiccio T, Efron B. More accurate confidence intervals in exponential families. Biometrika. 1992;79:231–245. [Google Scholar]
- DiCiccio TJ, Efron B. Bootstrap confidence intervals. Statist Sci. 1996;11:189–228. with comments and a rejoinder by the authors. [Google Scholar]
- Efron B. The Jackknife, the Bootstrap and Other Resampling Plans. CBMS-NSF Regional Conference Series in Applied Mathematics ; Philadelphia, Pa: Society for Industrial and Applied Mathematics (SIAM); 1982. [Google Scholar]
- Efron B. Better bootstrap confidence intervals. J Amer Statist Assoc. 1987;82:171–200. with comments and a rejoinder by the author. [Google Scholar]
- Efron B. Jackknife-after-bootstrap standard errors and influence functions. J Roy Statist Soc Ser B. 1992;54:83–127. [Google Scholar]
- Efron B. Microarrays, empirical Bayes and the two-groups model. Statist Sci. 2008;23:1–22. [Google Scholar]
- Efron B. Institute of Mathematical Statistics Monographs. Vol. 1. Cambridge: Cambridge University Press; 2010. Large-Scale Inference: Empirical Bayes Methods for Estimation, Testing, and Prediction. [Google Scholar]
- Efron B, Tibshirani R. Monographs on Statistics and Applied Probability. Vol. 57. New York: Chapman and Hall; 1993. An Introduction to the Bootstrap. [Google Scholar]
- Efron B, Tibshirani R. The problem of regions. Ann Statist. 1998;26:1687–1718. [Google Scholar]
- Gelman A, Meng X-L, Stern H. Posterior predictive assessment of model fitness via realized discrepancies. Statist Sinica. 1996;6:733–807. with comments and a rejoinder by the authors. [Google Scholar]
- Ghosh M. Objective priors: An introduction for frequentists. Statist Sci. 2011;26:187–202. with discussion and a rejoinder by the author. [Google Scholar]
- Johnson NL, Kotz S. Distributions in Statistics. Continuous Univariate Distributions. Vol. 2. Boston, Mass: Houghton Mifflin Co; 1970. [Google Scholar]
- Kass RE, Wasserman L. The selection of prior distributions by formal rules. J Amer Statist Assoc. 1996;91:1343–1370. [Google Scholar]
- Mardia KV, Kent JT, Bibby JM. Probability and Mathematical Statistics: A Series of Monographs and Textbooks. London: Academic Press [Harcourt Brace Jovanovich Publishers]; 1979. Multivariate Analysis. [Google Scholar]
- Newton MA, Raftery AE. Approximate Bayesian inference with the weighted likelihood bootstrap. J Roy Statist Soc Ser B. 1994;56:3–48. with discussion and a reply by the authors. [Google Scholar]
- Rubin DB. The Bayesian bootstrap. Ann Statist. 1981;9:130–134. [Google Scholar]
- Singh D, Febbo PG, Ross K, Jackson DG, Manola J, Ladd C, Tamayo P, Renshaw AA, D’Amico AV, Richie JP, Lander ES, Loda M, Kantoff PW, Golub TR, Sellers WR. Gene expression correlates of clinical prostate cancer behavior. Cancer Cell. 2002;1:203–209. doi: 10.1016/s1535-6108(02)00030-2. [DOI] [PubMed] [Google Scholar]
- Smith AFM, Gelfand AE. Bayesian statistics without tears: A sampling-resampling perspective. Amer Statist. 1992;46:84–88. [Google Scholar]
- Tibshirani R. Noninformative priors for one parameter of many. Biometrika. 1989;76:604–608. [Google Scholar]
- Tierney L, Kadane JB. Accurate approximations for posterior moments and marginal densities. J Amer Statist Assoc. 1986;81:82–86. [Google Scholar]
- Welch BL, Peers HW. On formulae for confidence points based on integrals of weighted likelihoods. J Roy Statist Soc Ser B. 1963;25:318–329. [Google Scholar]







