Simple, Scalable and Accurate Posterior Interval Estimation

Cheng Li, Sanvesh Srivastava, David B. Dunson

Introduction

We propose a posterior interval estimation algorithm for uncertainty quantification in massive data settings in which usual Bayesian sampling algorithms are too slow. Bayesian models quantify uncertainty via the joint posterior distribution of the model parameters and predictive distributions of new observations. As joint posteriors and predictives are difficult to visualize and use in practice, the focus is almost always on posterior summaries of one-dimensional functionals. For example, it is typical to report 95% posterior credible intervals for a variety of one-dimensional functionals of interest. In practice, by far the most common approach to estimate credible intervals relies on running a Markov chain Monte Carlo algorithm to obtain samples from the joint posterior, based on which estimating intervals for different one-dimensional functionals is trivial. Traditional Markov chain Monte Carlo algorithms are too slow to be practically useful in massive data applications. However, given their rich history and broad use, it would be appealing to be able to incorporate a simple fix-up, which would allow trivial modifications of existing code, solve the computational bottleneck, and enable provably accurate estimation of posterior quantiles for any one-dimensional functional of interest.

Current classes of analytic approximations, such as Gaussian/Laplace, variational Bayes , and expectation propagation , clearly do not provide a generally useful alternative to sampling methods in terms of accurate estimation of posterior credible intervals. Hence, in comparing with the literature, we focus on scalable sampling algorithms. There has been a recent interest in scaling up Bayesian sampling in general and Markov chain Monte Carlo algorithms in particular, with many different threads considered. Three of the most successful include (i) approximating expensive Markov chain Monte Carlo transition kernels with easier to sample surrogates; (ii) running Markov chain Monte Carlo on a single machine but with different subsets of the data used as sampling proceeds ; and (iii) running Markov chain Monte Carlo in parallel for different data subsets and then combining . Motivated by our goal of defining a very simple and theoretically supported algorithm, we focus on embarassingly parallel Markov chain Monte Carlo following strategy (iii).

The key question in embarassingly parallel Markov chain Monte Carlo is how to combine samples from the different subset posteriors. If each subset posterior were approximately Gaussian, then weighted averaging is well justified, motivating the consensus Monte Carlo algorithm . Outside of this restrictive setting, one can instead rely on the product equation representation to combine using kernel smoothing or multi-scale histograms . Such approaches have theory support in terms of accuracy as the number of samples increases, but rely heavily on the accuracy of density estimators for the subset posteriors, suffering badly when subset posteriors have even slightly non-overlapping supports. Moreover, the product equation representation obtained by splitting the prior is not invariant to model reparameterization. An alternative approach is to use data subsamples to define noisy approximations to the full data posterior, and then take an appropriate notion of geometric center, such as geometric median or mean of these approximations. These later approaches are invariant to model reparameterization, but they require a somewhat conceptually and computationally complex combining algorithm.

In this article, we propose a new scalable algorithm for posterior interval estimation. Our algorithm first runs Markov chain Monte Carlo or any alternative posterior sampling algorithm in parallel for each subset posterior, with the subset posteriors proportional to the prior multiplied by the subset likelihood raised to the full data sample size divided by the subset sample size. To obtain an accurate estimate of a posterior quantile for any one-dimensional functional of interest, we simply calculate the quantile estimates in parallel for each subset posterior and then average these estimates. Hence, our combining step is completely trivial conceptually and computationally. We also provide theory justifying the performance of the quantile estimates. We emphasize that we are not proposing a new Markov chain Monte Carlo algorithm, but we are instead developing a simple approach to scale up existing algorithms to datasets with large numbers of observations.

Our approach is related to the frequentist Bag of Little Bootstraps and provides a Bayesian interpretation. Bag of Little Bootstraps divides massive data into small subsets and obtains bootstrap confidence intervals for a one-dimensional parameter on every subset from weighted bootstrap samples. Then the confidence interval of the one-dimensional parameter based on the whole data is constructed by averaging lower and upper bounds of the bootstrap confidence intervals across all subsets. Similarly, our algorithm averages quantiles from all subset posteriors. Our theory leads to new insights into Bag of Little Bootstraps, showing that its confidence intervals correspond to the confidence intervals of the Wasserstein barycenter of bootstrap distributions across all subsets.

Preliminaries

Our algorithm is related to the concept of Wasserstein barycenter of subset posteriors , which depends on the notions of Wasserstein distance and Wasserstein barycenter. Suppose Θ∈Rd\Theta\in\mathcal{R}^{d} and ∥θ1−θ2∥\|\theta_{1}-\theta_{2}\| is the Euclidean distance between any θ1,θ2∈Θ\theta_{1},\theta_{2}\in\Theta. For any two measures ν1,ν2\nu_{1},\nu_{2} on Θ\Theta, their Wasserstein-2 distance is defined as

which can be viewed as the geometric center of the NN measures ν1,…,νN\nu_{1},\ldots,\nu_{N}.

2 Wasserstein Posterior and Posterior Interval Estimation

and we denote their corresponding distribution functions as Πn(θ∣X)\Pi_{n}(\theta\mid X) and Πm(θ∣Xj)\Pi_{m}(\theta\mid X_{j}), respectively. In the definition of subset posterior density πm(θ∣Xj)\pi_{m}(\theta\mid X_{j}), we have raised the subset likelihood function to the KKth power. As a stochastic approximation to the overall posterior πn(θ∣X)\pi_{n}\left(\theta\mid X\right), this modification rescales the variance of each subset posterior given XjX_{j} to be roughly of the same order as the variance of the overall posterior Πn(θ∣X)\Pi_{n}(\theta\mid X), as in and . Based on (2.2), runs Markov chain Monte Carlo algorithms on the KK subsets in parallel, producing draws from each Πm(θ∣Xj)\Pi_{m}(\theta\mid X_{j}), j=1,…,Kj=1,\ldots,K. Empirical estimates of Πm(θ∣Xj)\Pi_{m}(\theta\mid X_{j}) for all KK subsets are obtained from the Markov chain Monte Carlo draws, their Wasserstein barycenter is estimated via a linear program, and used as an approximation of the overall posterior Πn(θ∣X)\Pi_{n}(\theta\mid X).

Suppose we are interested in a scalar parameter ξ=h(θ)∈Ξ\xi=h(\theta)\in\Xi with h:Θ↦Ξ⊆Rh:\Theta\mapsto\Xi\subseteq\mathcal{R}. We denote the overall posterior for ξ\xi by Πn(ξ∣X)\Pi_{n}(\xi\mid X) and the jjth subset posterior for ξ\xi by Πm(ξ∣Xj)\Pi_{m}(\xi\mid X_{j}). For theory development, we mainly focus on the linear functional ξ=h(θ)=a⊤θ+b\xi=h(\theta)=a^{\top}\theta+b for some fixed a∈Rda\in\mathcal{R}^{d} and b∈Rb\in\mathcal{R}, which includes the individual components in θ\theta as special cases. We can define the W2W_{2} distance and the set of measures P2(Ξ)\mathcal{P}_{2}(\Xi) on the univariate space Ξ\Xi. If Πm(ξ∣Xj)∈P2(Ξ)\Pi_{m}\left(\xi\mid X_{j}\right)\in\mathcal{P}_{2}(\Xi) for all j=1,…,Kj=1,\ldots,K, then the one-dimensional Wasserstein posterior Π‾n(ξ∣X)\overline{\Pi}_{n}(\xi\mid X) is defined as the Wasserstein barycenter of Πm(ξ∣Xj)\Pi_{m}\left(\xi\mid X_{j}\right) as in (1):

In the one-dimensional case, the Wasserstein posterior has an explicit relation with the KK subset posteriors. Let F−1(u)=inf⁡{x:F(x)≥u}F^{-1}(u)=\inf\{x:F(x)\geq u\} be the quantile function of a generic univariate distribution function F(x)F(x). Let F1F_{1} and F2F_{2} be two univariate distributions in P2(Ξ)\mathcal{P}_{2}(\Xi), with quantile functions F1−1(u)F_{1}^{-1}(u) and F2−1(u)F_{2}^{-1}(u), for any u∈(0,1)u\in(0,1), respectively. Then the W2W_{2} distance between F1F_{1} and F2F_{2} has an explicit expression by Lemma 8.2 of :

Therefore, Π‾n(ξ∣X)\overline{\Pi}_{n}(\xi\mid X) in (3) is explicitly related to the subset posteriors Πm(ξ∣Xj)\Pi_{m}\left(\xi\mid X_{j}\right) by

where Πm−1(u∣Xj)\Pi_{m}^{-1}\left(u\mid X_{j}\right) and Π‾n−1(u∣X)\overline{\Pi}_{n}^{-1}(u\mid X) are the quantile functions of Πm(ξ∣Xj)\Pi_{m}(\xi\mid X_{j}) and Π‾n(ξ∣X)\overline{\Pi}_{n}(\xi\mid X), respectively. This expression for the one-dimensional W2W_{2} barycenter has been derived in from an optimal transport perspective. The relation indicates that for a scalar functional ξ\xi, the average of subset posterior quantiles produces another quantile function that corresponds exactly to the one-dimensional Wasserstein posterior. Therefore, in our algorithm, to evaluate the Wasserstein posterior of ξ\xi, we simply take the empirical quantiles based on posterior draws from each Πm(ξ∣Xj)\Pi_{m}(\xi\mid X_{j}) and then average them over j=1,…,Kj=1,\ldots,K. Our algorithm is summarized in Algorithm 1.

Main Results

In this section, we develop theory supporting our approach. Under mild regularity conditions, we show that the one-dimensional Wasserstein posterior Π‾n(ξ∣X)\overline{\Pi}_{n}(\xi\mid X) is an accurate approximation to the overall posterior Πn(ξ∣X)\Pi_{n}(\xi\mid X). Essentially, as the subset sample size mm increases, the W2W_{2} distance between them diminishes at a faster than parametric rate op(m−1/2)o_{p}(m^{-1/2}). Their biases, variances and quantiles are only different in high orders of mm. This rate can be improved to op(n−1/2)o_{p}(n^{-1/2}) when the maximum likelihood estimator of ξ\xi is unbiased. Our results are improved relative to previous papers relying on combining subset posteriors, such as and , with more detailed description of the limiting behavior of the estimated posterior and weaker restrictions on the growth rate of the number of subsets KK.

Our theory relies on the parametric Bernstein-von Mises theorem. The consensus Monte Carlo algorithm in also leverages approximate normality in their asymptotic justification and can be viewed as a different way of averaging subset posteriors. They used weighted averages of subset posterior samples as an approximate sample from the true posterior, where the weights were taken as the inverse covariance matrices based on each subset posterior samples. Their weighting strategy relies more heavily on the normality assumption than our strategy of averaging quantiles. In contrast to the heuristic arguments in , we provide formal justification for using normal approximations on a large number of subsets, and quantify the asymptotic orders of the induced approximation errors.

We make the following assumptions on the data generating process, the prior and the posterior.

θ0\theta_{0} is an interior point of Θ∈Rd\Theta\in\mathcal{R}^{d}, where dd is a fixed positive integer and does not depend on nn. Pθ=Pθ0P_{\theta}=P_{\theta_{0}} almost everywhere if and only if θ=θ0\theta=\theta_{0}. XX contains independent and identically distributed observations generated from Pθ0P_{\theta_{0}}.

The support of p(x∣θ)p(x\mid\theta) is the same for all θ∈Θ\theta\in\Theta.

log⁡p(x∣θ)\log p(x\mid\theta) is three times differentiable with respect to θ\theta in a neighborhood Bδ0(θ0)≡{θ∈Θ:∥θ−θ0∥≤δ0}B_{\delta_{0}}(\theta_{0})\equiv\{\theta\in\Theta:\|\theta-\theta_{0}\|\leq\delta_{0}\} of θ0\theta_{0}, for some constant δ0>0\delta_{0}>0. EPθ0{p′(X∣θ0)/p(X∣θ0)}=0E_{P_{\theta_{0}}}\left\{p^{\prime}(X\mid\theta_{0})/p(X\mid\theta_{0})\right\}=0. Furthermore, there exists an envelope function M(x)M(x) such that sup⁡θ∈Bδ0(θ0)∣∂log⁡p(x∣θ)/∂θl1∣≤M(x)\sup_{\theta\in B_{\delta_{0}}(\theta_{0})}\left|\partial\log p(x\mid\theta)/\partial\theta_{l_{1}}\right|\leq M(x), sup⁡θ∈Bδ0(θ0)∣∂2log⁡p(x∣θ)/∂θl1∂θl2∣≤M(x)\sup_{\theta\in B_{\delta_{0}}(\theta_{0})}\left|\partial^{2}\log p(x\mid\theta)/\partial\theta_{l_{1}}\partial\theta_{l_{2}}\right|\leq M(x), sup⁡θ∈Bδ0(θ0)∣∂3log⁡p(x∣θ)/∂θl1∂θl2∂θl3∣≤M(x)\sup_{\theta\in B_{\delta_{0}}(\theta_{0})}\left|\partial^{3}\log p(x\mid\theta)/\partial\theta_{l_{1}}\partial\theta_{l_{2}}\partial\theta_{l_{3}}\right|\leq M(x) for all l1,l2,l3=1,…,dl_{1},l_{2},l_{3}=1,\ldots,d, for all values of xx, and EPθ0M(X)4<∞E_{P_{\theta_{0}}}M(X)^{4}<\infty.

Let ψ(X1)=EΠm(θ∣X1)Km∥θ−θ^1∥2\psi(X_{1})=E_{\Pi_{m}(\theta\mid X_{1})}Km\|\theta-\hat{\theta}_{1}\|^{2}, where EΠm(θ∣X1)E_{\Pi_{m}(\theta\mid X_{1})} is the expectation with respect to θ\theta under the posterior Πm(θ∣X1)\Pi_{m}(\theta\mid X_{1}). Then there exists an integer m0≥1m_{0}\geq 1, such that {ψ(X1):m≥m0,K≥1}\left\{\psi(X_{1}):m\geq m_{0},K\geq 1\right\} is uniformly integrable under Pθ0P_{\theta_{0}}. In other words, lim⁡C→+∞sup⁡m≥m0,K≥1EPθ0ψ(X1)I{ψ(X1)≥C}=0\lim_{C\to+\infty}\sup_{m\geq m_{0},K\geq 1}E_{P_{\theta_{0}}}\psi(X_{1})I\{\psi(X_{1})\geq C\}=0, where I(⋅)I(\cdot) is the indicator function.

Assumptions 1-5 are standard and mild regularity conditions on the model P(x∣θ)P(x\mid\theta), which are similar to the assumptions of Theorem 8.2 in Chapter 6 of and Theorem 4.2 in for showing the asymptotic normality of posteriors. Assumption 6 requires the prior to have a finite second moment, such that with high probability all the posterior distributions are in the P2(Θ)\mathcal{P}_{2}(\Theta) space and the W2W_{2} distance is well defined. In models with heavy tailed priors, such as our example in Section D.1, one can replace Assumption 6 by assuming that the posterior distribution conditional on a fixed number of initial observations has finite second moment; see Example 8.5 in Chapter 6 of and our Proposition 3 in the Appendix. The uniform integrability of subset posteriors in Assumption 7 is an extra mild technical assumption that helps us to generalize the usual Bernstein-von Mises result on the subsets from the convergence in probability to the convergence in L1L_{1} distance. We verify Assumption 7 for normal linear models and some exponential family distributions in the Appendix. A stronger condition that can replace Assumption 7 is sup⁡m≥m0,K≥1EX1EΠm(θ∣X1)Km∥θ−θ^1∥2<+∞\sup_{m\geq m_{0},K\geq 1}E_{X_{1}}E_{\Pi_{m}(\theta\mid X_{1})}Km\|\theta-\hat{\theta}_{1}\|^{2}<+\infty. The following theorems hold for the one-dimensional Wasserstein posterior defined in (3).

Suppose Assumptions 1–7 hold and ξ=a⊤θ+b\xi=a^{\top}\theta+b for some fixed a∈Rda\in\mathcal{R}^{d} and b∈Rb\in\mathcal{R}. Let Iξ(θ0)={a⊤I−1(θ0)a}−1I_{\xi}(\theta_{0})=\left\{a^{\top}I^{-1}(\theta_{0})a\right\}^{-1}. Let ξ‾=a⊤θ‾+b\overline{\xi}=a^{\top}\overline{\theta}+b, ξ^=a⊤θ^+b\hat{\xi}=a^{\top}\hat{\theta}+b. Let Φ(⋅;μ,Σ)\Phi(\cdot;\mu,\Sigma) be the normal distribution with mean μ\mu and variance Σ\Sigma. (i) As m→∞m\to\infty,

where the convergence is in Pθ0P_{\theta_{0}}-probability. (ii) If θ^1\hat{\theta}_{1} is an unbiased estimator for θ\theta, so EPθ0θ^1=θ0E_{P_{\theta_{0}}}\hat{\theta}_{1}=\theta_{0}, then as m→∞m\to\infty,

Theorem 1 shows that both the one-dimensional Wasserstein posterior of ξ\xi from combining KK subset posteriors and the overall posterior of ξ\xi based on the full dataset are asymptotically close in the W2W_{2} distance to their respective limiting normal distributions, with slightly different means and the same variance. Such convergence in the W2W_{2} distance implies weak convergence and convergence of the second moment. Furthermore, the W2W_{2} distance between the Wasserstein and full posteriors converges to zero in probability with rates m1/2m^{1/2} and n1/2n^{1/2}, depending on the behavior of the maximum likelihood estimator θ^1\hat{\theta}_{1}.

Previous asymptotic justifications for embarrassingly parallel Markov chain Monte Carlo approaches focus on consistency or convergence rates , while the above theorem is stronger in providing a limiting distribution. In addition, our conditions are much weaker in only requiring the subset sample size mm to increase, while imposing no restrictions on the growth rates of mm and KK. Hence, the number of subsets KK can grow polynomially in nn, mimicking the case in which many computers are available but computational resources per computer are limited. For example, the theorem allows K=O(nc)K=O(n^{c}), m=O(n1−c)m=O(n^{1-c}) for any c∈(0,1)c\in(0,1). Under this setup, the one-dimensional Wasserstein posterior, the overall posterior and their normal limits will all converge to θ0\theta_{0} at the same rate of Op(n−1/2)O_{p}(n^{-1/2}), and their mutual difference is of order op(m−1/2)o_{p}(m^{-1/2}).

When the maximum likelihood estimator θ^1\hat{\theta}_{1} is unbiased, Part (ii) of the theorem provides a sharper convergence rate of Op(n−1/2)O_{p}(n^{-1/2}) compared to the Op(m−1/2)O_{p}(m^{-1/2}) rate in Part (i), still with no explicit restrictions on the growth rates of mm and KK. When KK increases very fast, for example K≈n1/2K\approx n^{1/2} and m≈n1/2m\approx n^{1/2}, the Op(n−1/2)O_{p}(n^{-1/2}) rate in Part (ii) is much faster than the Op(n−1/4)O_{p}(n^{-1/4}) rate from Part (i). Moreover, Op(m−1/2)O_{p}(m^{-1/2}) is suboptimal since it is the parametric rate based on only the subset data with size mm, while Op(n−1/2)O_{p}(n^{-1/2}) is the optimal parametric rate based on the full data with size nn. The reason for the improvement in Part (ii) lies in the high order difference between the two means ξ‾\overline{\xi} and ξ^\hat{\xi} of the limiting normal distributions of the one-dimensional Wasserstein posterior and the overall posterior. When the unbiasedness assumption does not hold and KK increases with nn, the difference between the averaged maximum likelihood estimator ξ‾\overline{\xi} and the overall maximum likelihood estimator ξ^\hat{\xi} is typically of order op(m−1/2)o_{p}(m^{-1/2}), which does not scale in the number of subsets KK. However, when all subset maximum likelihood estimators are unbiased, this difference is reduced by a factor of K1/2K^{1/2} due to the averaging effect over KK subset posteriors and decreases faster as op(n−1/2)o_{p}(n^{-1/2}). Hence, in models having unbiased maximum likelihood estimators, the one-dimensional Wasserstein posterior achieves high order accuracy in approximating the overall posterior with a difference op(n−1/2)o_{p}(n^{-1/2}).

Independently, has considered a nonparametric generalized linear model and shown a related Bernstein-von Mises theorem. Besides the difference between the form of models, we emphasize that our result in Theorem 1 does not rely on the strong requirement of a uniform normal approximation for all subset posteriors, as used in Shang and Cheng’s paper. Instead, to show Theorem 1, it is only necessary for the normal approximation to work well on average among all subset posteriors. As a result, we have no explicit constraint on the growth rate on the number of subsets KK, while their paper needs to control KK explicitly depending on the posterior convergence rate.

Suppose Assumptions 1–7 hold. Let ξ0=a⊤θ0+b\xi_{0}=a^{\top}\theta_{0}+b and ξ^\hat{\xi} be the same as defined in Theorem 1. For a generic distribution FF on Ξ\Xi, let \bias(F)=EF(ξ)−ξ0\bias(F)=E_{F}(\xi)-\xi_{0} and \var(F)\var(F) be the variance of FF. Let u1u_{1} and u2u_{2} be two arbitrary fixed numbers such that 0<u1<u2<10<u_{1}<u_{2}<1. Then the following relations hold:

where OpO_{p} and opo_{p} are in Pθ0P_{\theta_{0}}-probability. Furthermore, if θ^1\hat{\theta}_{1} is an unbiased estimator of θ0\theta_{0}, then

Theorem 2 provides the order for the differences for the bias, the variance and the quantiles between the one-dimensional Wasserstein posterior and the overall posterior. Essentially the one-dimensional Wasserstein posterior has an asymptotic bias ξ‾−ξ^\overline{\xi}-\hat{\xi} from the overall posterior, which is generally of order op(m−1/2)o_{p}(m^{-1/2}) and has higher order op(n−1/2)o_{p}(n^{-1/2}) when the subset maximum likelihood estimators are unbiased. The variances of the one-dimensional Wasserstein posterior and the overall posterior agree in the leading order. Similar to the biases, the difference between their quantiles has order op(m−1/2)o_{p}(m^{-1/2}) in the general case, and improves to a higher order op(n−1/2)o_{p}(n^{-1/2}) when the subset maximum likelihood estimators are unbiased. In our algorithm, when we take KK different subset posterior credible intervals and average them, the averages of the lower and upper quantiles are asymptotically close to the quantiles from the overall posterior in the leading order. Therefore, Theorem 2 also validates our algorithm in the sense of posterior uncertainty quantification. We can also account for Monte Carlo errors in approximating subset posteriors using samples under mild mixing conditions on the subset Markov chains; see Theorem 3 in the Appendix.

Experiments

We applied the proposed algorithm in a variety of cases, using consensus Monte Carlo , Wasserstein posterior , semiparametric density product , and variational Bayes as our competitors. Posterior summaries from Markov chain Monte Carlo applied to the full data served as the benchmark for all the comparisons. As our theory guarantees good performance for very large samples, we focused on simulations with moderate sample sizes. All Markov chain Monte Carlo algorithms were run for 10,000 iterations. After discarding the first 5000 samples as burn-in, we retained every fifth sample in all the chains; convergence diagnostics suggested that every chain had converged to its stationary distribution. We used the combination step implemented in R package parallelMCMCcombine for consensus Monte Carlo and semiparametric density product methods. We implemented the combination step of our algorithm in R and of Srivastava et al.’s algorithm in Matlab. All experiments were run on an Oracle Grid Engine cluster with 2.6GHz 16 core compute nodes. Memory resources were capped at 8GB for all the methods, except for Markov chain Monte Carlo based on the full data, which had a maximum memory limit of 16GB.

The accuracy of a density q(θ∣X)q(\theta\mid X) approximating πn(θ∣X)\pi_{n}(\theta\mid X) was evaluated using the metric

This accuracy metric lies in $,withlargervaluesindicatingbetterperformanceof, with larger values indicating better performance ofqinapproximatingin approximating\pi_{n}.Inourexperiments,wefirstestimated. In our experiments, we first estimatedq(\theta\mid X)andand\pi_{n}(\theta\mid X)$ based on the posterior samples using the bkde or bkde2D functions in R package KernSmooth, with automatic bandwidth selection via dpik . The density estimates were used to compute a numerical approximation of the integral in (4).

We first evaluated the performance of our proposed algorithm under varying sample size, dimension, and number of subsets in Bayesian linear models. Let the response, design matrix, regression coefficients, and random error be denoted as yy, XX, β\beta, and ϵ\epsilon, where y,ϵ∈Rny,\epsilon\in\mathcal{R}^{n}, β∈Rp×1\beta\in\mathcal{R}^{p\times 1}, and X∈Rn×pX\in\mathcal{R}^{n\times p}. The model assumes that

where gdP denotes the generalized double Pareto shrinkage prior of and Half-tt is chosen to be weakly-informative . See Section D.1 in the Appendix for detailed specifications. The priors on β\beta and σ\sigma in (5) are both heavy-tailed with infinite second moments, and therefore do not satisfy Assumption 6. However, one can verify that conditional on the initial m0m_{0} observations with m0≥p+4m_{0}\geq p+4, every subset posterior has finite second moments for both β\beta and σ\sigma. The result is summarized in Proposition 3 in the Appendix.

We applied our approach for inference on β\beta in (5) compared with an asymptotic normal approximation. We calculated the accuracy of approximations using a full data Gibbs sampler as the benchmark (Table 1). The first 10%10\% of entries of β\beta were set to ±1\pm 1 with the remaining 0. The entries of XX were randomly set to ±1\pm 1 and σ2\sigma^{2} was fixed at 1. We ran 10 replications for n∈{104,105}n\in\{10^{4},10^{5}\} and p∈{10,100,200,300,400,500}p\in\{10,100,200,300,400,500\}. We varied K∈{10,20}K\in\{10,20\} and applied Algorithm 1 after running a modification of the Gibbs sampler in (2.2) for each subset. We considered two versions of normal approximations for the full posterior. The first version used N(m^,V^)\mathcal{N}(\widehat{m},\widehat{V}) to approximate the posterior of β\beta, where m^\widehat{m} and V^\widehat{V} are the maximum likelihood estimates of β\beta and its estimated asymptotic covariance matrix in (5). For the second version, we first obtained the asymptotic normal approximation of the jjth subset posterior as N\mathcal{N}(m^j\widehat{m}_{j}, V^j\widehat{V}_{j}), where m^j\widehat{m}_{j} and V^j\widehat{V}_{j} (j=1,…,Kj=1,\ldots,K) are the maximum likelihood estimates of β\beta and its estimated asymptotic covariance matrix for the jjth subset. Then we found the W2W_{2} barycenter of the KK subset normal approximations, which is again a normal distribution N(m∗,V∗)\mathcal{N}(m^{*},V^{*}) . This provides an empirical verification of Theorem 1. See Section D.1 in the Appendix for details of the Gibbs sampler and the form of m∗m^{*} and V∗V^{*}.

The performance of all the approaches was fairly similar across all simulations and agreed with our asymptotic theory (Table 1). The results in Table 1 show that the proposed algorithm closely matched the Gibbs sampling results for the full data in terms of uncertainty quantification. It also performed better than the asymptotic normal approximations in some cases. When the subset sample size was too small compared to the dimension, such as when n=104,p=400,K=20n=10^{4},p=400,K=20 which has a subset size of only m=500m=500, we observe poor performance for both the asymptotic approximations and the proposed approach.

2 Linear mixed effects model

Linear mixed effects models are widely used to characterize dependence in longitudinal and nested data structures. Let nin_{i} be the number of observations associated with the iith individual, for i=1,…,si=1,\ldots,s. Let yi∈Rniy_{i}\in\mathcal{R}^{n_{i}} be the responses of the iith individual, Xi∈Rni×pX_{i}\in\mathcal{R}^{n_{i}\times p} and Zi∈Rni×qZ_{i}\in\mathcal{R}^{n_{i}\times q} be matrices including predictors having coefficients that are fixed across individuals and varying across individuals, respectively. Let β∈Rp\beta\in\mathcal{R}^{p} and ui∈Rqu_{i}\in\mathcal{R}^{q}, respectively, represent the fixed effects and iith random effect. The linear mixed effects model lets

Many software packages are available for Markov chain Monte Carlo-based Bayesian inference in (6), but current implementations become intractable for data with large ss and n=∑i=1snin=\sum_{i=1}^{s}n_{i}.

We applied our algorithm for inference on β\beta and Σ\Sigma in (6) and compared its performance with maximum likelihood, consensus Monte Carlo, semiparametric density product, Wasserstein posterior, and variational Bayes. We set s=5000s=5000, ni=20n_{i}=20 for i=1,…,si=1,\ldots,s, n=105n=10^{5}, p=4p=4, q=3q=3, β=(−1,1,−1,1)⊤\beta=(-1,1,-1,1)^{\top}, and σ=1\sigma=1. The random effects covariance Σ\Sigma had Σii=i,i=1,2,3\Sigma_{ii}=i,i=1,2,3, Σ12=−\Sigma_{12}=- 0.56, Σ31=\Sigma_{31}= 0.52, and Σ23=\Sigma_{23}= 0.0025. This matrix included negative, positive, and small to moderate strength correlations . The simulation was replicated 10 times. The approximate posterior distributions were obtained using consensus Monte Carlo, semiparametric density product, Wasserstein posterior, and our algorithm in three steps. First, full data were randomly partitioned into 20 subsets such that data for each individual were in the same subset. Second, the Markov chain Monte Carlo sampler for β\beta and Σ\Sigma in (6) was modified following (2.2) and Equation (2) in and implemented in Stan (Version 2.5.0). Finally, the posterior samples from all the subsets were combined. We used the streamlined algorithm for variational Bayes . Maximum likelihood produced a point estimate and asymptotic covariance for β\beta, and only a point estimate for Σ\Sigma.

We compared the performance of the seven methods for inference on the fixed effects β\beta, the variances of random effects Σii\Sigma_{ii} (i=1,2,3i=1,2,3), and the correlations of random effects ρij=Σij/(ΣiiΣjj)1/2\rho_{ij}=\Sigma_{ij}/(\Sigma_{ii}\Sigma_{jj})^{1/2} (1≤i<j≤31\leq i<j\leq 3). The correlations are nonlinear functionals of the model parameters Σ\Sigma. Maximum likelihood estimator, consensus Monte Carlo, semiparametric density product, Wasserstein posterior, and our algorithm had excellent performance in estimation of β\beta (Figure 1), as well as the variances and correlations (Tables 2 and 3 and Figure 2). Uncertainty quantification using consensus Monte Carlo, semiparametric density product, Wasserstein posterior, and our algorithm closely agreed with Markov chain Monte Carlo based on the full data. As shown in Figure 1 of the Appendix, variational Bayes was computationally most efficient, but it showed poor accuracy in approximating the posterior of β\beta and the variances, with underestimation of posterior uncertainty.

3 United States natality data

We applied our algorithm to United States natality data on birth weight of infants and variables related to their mothers’ health . Linear mixed effects models were used for the covariance in birth weights among siblings. Following the example in , we selected the data for mothers who smoked, had two infants, and had some college education but not a college degree. Detailed information about the variables are in the Appendix. The data set contained s=3809s=3809 mothers and n=7618n=7618 births. There were 13 variables related to mother’s health. All these covariates and an intercept were used as fixed effects in (6), so p=14p=14. The random effects included mother’s age, gestation period, and number of living infants, so q=3q=3. We performed 10 fold cross-validation and randomly split the data into 10 data sets such that data for siblings belonged to the same training data. We estimated fixed effects and covariance matrix for random effects as in Section 4.2 using K=20K=20.

The seven methods in the previous section generally agreed in the inference on fixed effects (Figure 3), with variational Bayes deviating the furthest. Our algorithm and the algorithm of differed significantly from variational Bayes, consensus Monte Carlo, and semiparametric density product in the inference on variances and correlations of random effects (Tables 4 and 5 and Figure 4). Our algorithm and the algorithm of showed better agreement with Markov chain Monte Carlo based on the full data in estimating the correlations. The 90% credible intervals from our algorithm included the maximum likelihood estimates of correlations. Variational Bayes posterior concentrated very close to 0 for every element of the covariance matrix and significantly underestimated posterior uncertainty. Consensus Monte Carlo and semiparametric density product methods performed poorly in the inference on random effects but were better than variational Bayes. Markov chain Monte Carlo based on the full data was extremely slow compared to the other methods (see Figure 1 in the Appendix). Taking into account both the approximation accuracy and the computational efficiency, we concluded that our proposed algorithm performs better than the competing algorithms in estimating the covariance matrix of random effects.

4 Extension to multi-dimensional parameters

Although Algorithm 1 only applies to one-dimensional functionals, we provide a simple extension to the multi-dimensional case with a numerical illustration. Suppose our goal is to find the joint posterior of the dd-dimensional parameter θ\theta. First, we center and scale the posterior samples of θ\theta in every subset. Let m^j\widehat{m}_{j} and V^j\widehat{V}_{j} be the empirical mean and covariance matrix for the jjth subset posterior samples {θ1j,…,θTj}\{\theta_{1j},\ldots,\theta_{Tj}\}. Let m^=K−1∑j=1Km^j\widehat{m}=K^{-1}\sum_{j=1}^{K}\widehat{m}_{j}, V^−1=K−1∑j=1KV^j−1\widehat{V}^{-1}=K^{-1}\sum_{j=1}^{K}\widehat{V}_{j}^{-1}. We transform every subset draw θij\theta_{ij} to θij′=V^−1/2(θij−m^)\theta^{\prime}_{ij}=\widehat{V}^{-1/2}(\theta_{ij}-\widehat{m}). If every subset posterior of θ\theta is asymptotically normal, then the centered and rescaled version θ′\theta^{\prime} will be asymptotically standard normal with approximately independent components, since TT is large in practice. For every component of θ′\theta^{\prime}, we apply Algorithm 1 to combine its KK subset posterior samples and obtain approximations of posterior quantiles for a fine grid of $.Thisleadstoaccurateapproximationsofthemarginalposteriorsof. This leads to accurate approximations of the marginal posteriors of\theta^{\prime};werepeatedlydrawsamplesfromthesemarginals,andthentransformbacktotheoriginalparameterusing; we repeatedly draw samples from these marginals, and then transform back to the original parameter using\theta=\widehat{V}^{1/2}\theta^{\prime}+\widehat{m}.Thisyieldsapproximatesamplesfromthefullposteriorof. This yields approximate samples from the full posterior of\theta$, and credible regions can be estimated based on these samples.

We implemented this generalized algorithm for combining subset posterior samples of all pairs of variances and covariances in the simulation from Section D.2, and compared the results with consensus Monte Carlo, semiparametric density product, Wasserstein posterior, and variational Bayes. The accuracies of our algorithm and the algorithm of were higher than the accuracies of the other three methods for all pairs of variances and covariances (Table 6). Variational Bayes performed poorly in the estimation of posterior distributions for all the pairs of variances. We obtained kernel density estimates of the three pairs of covariances in (6) using the combined posterior samples and the bkde2D function in the KernSmooth R package with a bandwidth of 0.01 (Figure 5). The kernel density estimates centered very close to the true values of the covariance pairs. Compared to the algorithm of , our algorithm was more efficient, easier to implement, and robust to the grid-size of quantiles, while having similar accuracy and stability across all simulation replications.

Conclusion

We have proposed a simple posterior interval estimation algorithm to rapidly and accurately estimate quantiles of the posterior distributions for different one-dimensional functionals of interest. The algorithm is simple and efficient relative to existing competitors, just averaging quantile estimates for each subset posterior based on applying existing sampling algorithms in an embarrassingly parallel manner. There is a fascinating mathematical relationship with the Wasserstein barycenter of subset posteriors: our algorithm calculates quantiles of the Wasserstein posterior without the optimization step in . The credible intervals from our algorithm asymptotically approximate those from the full posterior in the leading parametric order. The quality of approximation is the same even if the subset sample size increases slowly and the number of subsets increases polynomially fast. Our experiments have demonstrated excellent performance for linear mixed effects models and linear models with varying dimension.

Although our current theory focuses on parametric models and one-dimensional linear functionals, the proposed algorithm can be practically implemented for general one-dimensional functionals for semiparametric and nonparametric models. For example, in simulations not shown in the paper, we found that our algorithm shows excellent performance for Dirichlet process mixture models for multivariate categorical data , and Gaussian process nonparametric regression. Furthermore, we have provided an extension to the multi-dimensional case. It would be appealing to develop theory justification in these more complex settings, and to develop guarantees on approximation accuracy for fixed subset sizes and growing numbers of subsets. Also of interest in future work is to consider algorithms that do not require non-overlapping subsets, potentially relying on subsampling. Although such modifications can be implemented trivially, our proof techniques for the combining step in Theorem 1 do not apply directly. Other important extensions include optimal design of subsampling algorithms and extensions beyond product likelihoods.

In Section A we provide the detailed technical proofs of Theorem 1 and Theorem 2 in the main paper. In Section B, we present a theorem that quantifies the Monte Carlo errors in subset posterior sampling. In Section C, we verify Assumption 7 in the main paper for the normal linear model and some exponential family distributions. Section D includes further details about the data analysis in the main paper. In particular, for the heavy tailed priors used in Example 1 in the main paper, we verify a relaxed version of Assumption 6 in Section D.1.

Appendix A Proofs of Theorem 1 and Theorem 2

(Villani Theorem 6.15) For two measures P1,P2∈P2(Θ)P_{1},P_{2}\in\mathcal{P}_{2}(\Theta), or similarly P2(Ξ)\mathcal{P}_{2}(\Xi),

where the total variation of moments distance is defined as

In comparison, the usual parametric Bernstein-von Mises theorem on the subset XjX_{j} without raising the likelihood to the KKth power gives

in Pθ0P_{\theta_{0}}-probability, where z=m1/2(θ−θ^j)z=m^{1/2}(\theta-\hat{\theta}_{j}). See, for example, Theorem 8.2 in and Theorem 4.2 in .

Proof of Lemma 2: The relation (A.2) in Lemma 2 is the usual Bernstein-von Mises theorem for the overall posterior Πn(θ∣X)\Pi_{n}(\theta\mid X). The proof of (A.2) follows a related line to the proof of Theorem 4.2 in , and can be treated as a special case of (A.1) with m=nm=n and K=1K=1. In the following we focus on the proof of (A.1) in Lemma 2.

Given the independent and identically distributed assumption, we only need to show the result for a fixed index jj. To emphasize the different roles played by the subset sample size mm and the number of subsets KK, in the following proofs we will write the total sample size nn as KmKm. We complete the proof in 3 steps. For a generic matrix AA or a 3-dimensional array AA, we use ∥A∥\|A\| to denote its Frobenius norm.

Step 2: Show the following convergence as m→∞m\to\infty in Pθ0P_{\theta_{0}}-probability:

We prove this result for a fixed subset XjX_{j}, since the data are independent and identically distributed, and the conclusion is identical for any j=1,…,Kj=1,\ldots,K. Define the following quantities

Then based on the expression of Πm(θ∣Xj)\Pi_{m}(\theta\mid X_{j}), with the likelihood raised to the KKth power,

The induced posterior density on t=(Km)1/2(θ−θ^j)t=(Km)^{1/2}(\theta-\hat{\theta}_{j}) can be written as

Let T={t=(Km)1/2(θ−θ^j):θ∈Θ}\mathcal{T}=\{t=(Km)^{1/2}(\theta-\hat{\theta}_{j}):\theta\in\Theta\}. Define

as m→∞m\to\infty in Pθ0P_{\theta_{0}}-probability. Hence, for the difference in (A.3), we obtain that

Divide the domain of the integral into 3 parts: A1={z:∥z∥≥δ1(Km)1/2}A_{1}=\{z:\|z\|\geq\delta_{1}(Km)^{1/2}\}, A2={z:δ2≤∥z∥<δ1(Km)1/2}A_{2}=\{z:\delta_{2}\leq\|z\|<\delta_{1}(Km)^{1/2}\}, A3={z:∥z∥<δ2}A_{3}=\{z:\|z\|<\delta_{2}\}, where the constants δ1,δ2\delta_{1},\delta_{2} will be chosen later. Then

as m→∞m\to\infty, because the integral on the whole z∈Rdz\in\mathcal{R}^{d} is finite, π(θ0)\pi(\theta_{0}) is bounded from above according to Assumption 6, and K≥1K\geq 1.

Next we bound the first term in (A.1). By Assumption 5 and the weak consistency of θ^j\hat{\theta}_{j}, there exists a constant ϵ1\epsilon_{1} that depends on δ1\delta_{1}, such that for any z∈A1z\in A_{1} and all sufficiently large mm, with Pθ0P_{\theta_{0}}-probability approaching 1,

Furthermore, the weak consistency of θ^j\hat{\theta}_{j} implies that for all sufficiently large mm, with Pθ0P_{\theta_{0}}-probability approaching 1, ∥θ^j∥≤∥θ^j−θ0∥+∥θ0∥≤δ0+∥θ0∥\|\hat{\theta}_{j}\|\leq\|\hat{\theta}_{j}-\theta_{0}\|+\|\theta_{0}\|\leq\delta_{0}+\|\theta_{0}\|. Therefore, as m→∞m\to\infty in Pθ0P_{\theta_{0}}-probability,

where we have used the finite second moment of π(θ)\pi(\theta) from Assumption 6 in the last step. Hence, we have proved that the first integral in (A.5) goes to zero in Pθ0P_{\theta_{0}}-probability.

where the last convergence is almost surely in Pθ0P_{\theta_{0}} by the strong law of large numbers. Therefore, we can choose δ1\delta_{1} as

where λ1(A)\lambda_{1}(A) denotes the smallest eigenvalue of a generic matrix AA. Assumption 4 indicates that min⁡θ∈Bδ0(θ0)λ1{I(θ)}\min_{\theta\in B_{\delta_{0}}(\theta_{0})}\lambda_{1}\{I(\theta)\} is bounded below by a constant. Thus, in (A.8), the choice of δ1\delta_{1} implies that for every z∈A2z\in A_{2}, for all large mm with Pθ0P_{\theta_{0}}-probability approaching 1,

Therefore for z∈A2z\in A_{2}, for all large mm with Pθ0P_{\theta_{0}}-probability approaching 1,

For the third integral in (A.5), we fix a constant δ2>0\delta_{2}>0 and can use the similar Taylor series expansion above, and notice that when ∥z∥<δ2\|z\|<\delta_{2}, as m→∞m\to\infty,

as m→∞m\to\infty in Pθ0P_{\theta_{0}}-probability. Therefore, (A.10) and (A.11) together imply that as m→∞m\to\infty in Pθ0P_{\theta_{0}}-probability,

Hence by the definition of gm(z)g_{m}(z), as m→∞m\to\infty in Pθ0P_{\theta_{0}}-probability,

This has proved that the right-hand side of (A.5) converges to zero in Pθ0P_{\theta_{0}}-probability, and also completes the proof of (A.3).

Step 3: Show the convergence in L1L_{1} as m→∞m\to\infty. It is clear from the derivation of (A.1) that

In this display, the last term is a finite constant. The middle term is ψ(Xj)\psi(X_{j}) defined in Assumption 7. According to Assumption 7, for any fixed jj, {ψ(Xj):m≥m0,K≥1}\left\{\psi(X_{j}):m\geq m_{0},K\geq 1\right\} is uniformly integrable under Pθ0P_{\theta_{0}}. Now since TV2[Πm,t(t∣Xj),Φ{t;0,I−1(θ0)}]TV_{2}\left[\Pi_{m,t}(t\mid X_{j}),\Phi\left\{t;0,I^{-1}(\theta_{0})\right\}\right] is upper bounded by ψ(Xj)+C\psi(X_{j})+C for all m,Km,K and some constant C>0C>0, we obtain that {TV2[Πm,t(t∣Xj),Φ{t;0,I−1(θ0)}]:m≥m0,K≥1}\left\{TV_{2}\left[\Pi_{m,t}(t\mid X_{j}),\Phi\left\{t;0,I^{-1}(\theta_{0})\right\}\right]:m\geq m_{0},K\geq 1\right\} is also uniformly integrable. This uniform integrability together with the convergence in Pθ0P_{\theta_{0}}-probability from Step 2 implies the L1L_{1} convergence of TV2[Πm,t(t∣Xj),Φ{t;0,I−1(θ0)}]TV_{2}\left[\Pi_{m,t}(t\mid X_{j}),\Phi\left\{t;0,I^{-1}(\theta_{0})\right\}\right] to zero. ■\blacksquare

Similar to the W2W_{2} distance, for any l≥1l\geq 1, we can define the Wasserstein-ll (WlW_{l}) distance: for any two measures ν1,ν2\nu_{1},\nu_{2} on Θ\Theta, their WlW_{l} distance is defined as

where Γ(ν1,ν2)\Gamma(\nu_{1},\nu_{2}) is the set of all probability measures on Θ×Θ\Theta\times\Theta with marginals ν1\nu_{1} and ν2\nu_{2}, respectively. The WlW_{l} distance on the space Ξ\Xi can be similarly defined. The WlW_{l} distance between two univariate distributions F1F_{1} and F2F_{2} is the same as the LlL_{l} distance between their quantile functions (see Lemma 8.2 of ):

Let ξ^j=a⊤θ^j+b\hat{\xi}_{j}=a^{\top}\hat{\theta}_{j}+b. Then for any l≥1l\geq 1,

Proof of Lemma 3: We use Φ(⋅)\Phi(\cdot) and Φ−1(⋅)\Phi^{-1}(\cdot) to denote the cumulative distribution function and the quantile function of standard normal distribution N(0,1)\mathcal{N}(0,1). From , the univariate Wasserstein-2 barycenter satisfies that for any u∈(0,1)u\in(0,1),

Since l≥1l\geq 1, we apply Minkowski inequality to the right-hand side of (A.1) and obtain that

which concludes the proof. ■\blacksquare

where opo_{p} is in Pθ0P_{\theta_{0}} probability. Furthermore, if θ^1\hat{\theta}_{1} is an unbiased estimator of θ0\theta_{0}, then

Proof of Lemma 4: Because of the linearity ξ=a⊤θ+b\xi=a^{\top}\theta+b, it suffices to show

with the further assumption that θ^1\hat{\theta}_{1} is an unbiased estimator of θ0\theta_{0}.

Next we show the first term in (A.18) is of order op(m−1/2)o_{p}(m^{-1/2}) under Assumptions 1–7, and is of order op(n−1/2)o_{p}(n^{-1/2}) if furthermore EPθ0θ^1=θ0E_{P_{\theta_{0}}}\hat{\theta}_{1}=\theta_{0}.

Hence, ∥∑j=1KWj/(Km1/2)∥=op(m−1/2)\left\|\sum_{j=1}^{K}W_{j}/(Km^{1/2})\right\|=o_{p}\left(m^{-1/2}\right). This together with (A.18) and (A.19) leads to (A.15).

If we further assume unbiasedness EPθ0θ^1=θ0E_{P_{\theta_{0}}}\hat{\theta}_{1}=\theta_{0}, then from (A.17) we can obtain that

for all j=1,…,Kj=1,\ldots,K. In other words, WjW_{j}’s are centered at zero. Since XjX_{j}’s (j=1,…,Kj=1,\ldots,K) are all independent and WjW_{j} only depends on XjX_{j}, we have EPθ0Wj1⊤Wj2=0E_{P_{\theta_{0}}}W_{j_{1}}^{\top}W_{j_{2}}=0 for any j1≠j2j_{1}\neq j_{2}.

We can again apply Markov’s inequality to the first term in (A.18) and obtain that for any constant c>0c>0,

Therefore, assuming that EPθ0θ^1=θ0E_{P_{\theta_{0}}}\hat{\theta}_{1}=\theta_{0} and EPθ0(∥W1∥2)→0E_{P_{\theta_{0}}}(\|W_{1}\|^{2})\to 0 as m→∞m\to\infty, which will be proven below, the display above implies that ∥∑j=1KWj/(Km1/2)∥=op(n−1/2)\left\|\sum_{j=1}^{K}W_{j}/(Km^{1/2})\right\|=o_{p}\left(n^{-1/2}\right). This together with (A.18) and (A.19) leads to (A.16).

where dd is the dimension of θ\theta. We have used the property of the Frobenius norm: for a generic d×dd\times d symmetric positive definite matrix AA, ∥A−1∥≤d1/2λ‾(A−1)=d1/2{λ‾(A)}−1\|A^{-1}\|\leq d^{1/2}\overline{\lambda}(A^{-1})=d^{1/2}\left\{\underline{\lambda}(A)\right\}^{-1}, where λ‾(A)\overline{\lambda}(A) and λ‾(A)\underline{\lambda}(A) denotes the largest and the smallest eigenvalues of the matrix AA, respectively. Furthermore, the envelop function condition in Assumption 3 implies that

It follows from (A.20) and (A.21) that for all large mm,

where c1,c2c_{1},c_{2} are positive constants that only depend on d,λ‾,∥I(θ0)∥2d,\underline{\lambda},\|I(\theta_{0})\|^{2}.

Due to Assumption 3, the first term in (A.1) is bounded by

Thus we have shown that both terms on the right-hand side of (A.1) are finite. Therefore, EPθ0(V1)<∞E_{P_{\theta_{0}}}(V_{1})<\infty and by the dominated convergence theorem, EPθ0∥W1∥2→0E_{P_{\theta_{0}}}\|W_{1}\|^{2}\to 0. ■\blacksquare

A.2 Proof of Theorem 1

Proof of Theorem 1(i): Since ξ=a⊤θ+b\xi=a^{\top}\theta+b, we can derive the following for subset posteriors in terms of ξ\xi using a change of variable from θ\theta to ξ\xi in (A.1) of Lemma 2:

where t=n1/2(ξ−ξ^j)t=n^{1/2}(\xi-\hat{\xi}_{j}) is now the local parameter for the jjth subset. From the relation between norms W2W_{2} and TV2TV_{2} in Lemma 1, this directly implies

We further use the rescaling property of the W2W_{2} distance and obtain the equivalent form in terms of the original parameter ξ\xi:

From Lemma 3, we have that for any constant c>0c>0, as m→∞m\to\infty,

where (i) follows from Lemma 3 with l=2l=2, (ii) uses Markov’s inequality, (iii) comes from the relation between l1l_{1} norm and l2l_{2} norm, and (iv) follows from (A.23). This result indicates that

which shows the first relation in Part (i) of Theorem 1. The second relation in Theorem 1 (i)

follows from a similar argument using (A.2) in Lemma 2 for the overall posterior.

From Lemma 4, we have ∣ξ‾−ξ^∣=op(m−1/2)\left|\overline{\xi}-\hat{\xi}\right|=o_{p}\left(m^{-1/2}\right). Therefore,

where the first inequality follows because of the definition of W2W_{2} distance and the same variance shared by the two normal distributions.

Finally, by (A.24), (A.25), (A.26) and the triangular inequality, we have

which is equivalent to the third relation in Part (i). ■\blacksquare

Proof of Theorem 1(ii): If θ^1\hat{\theta}_{1} is an unbiased estimator of θ0\theta_{0}, then by Lemma 4 and the definition of W2W_{2} distance, it follows that

Applying the triangular inequality to (A.24), (A.25) and (A.27), we obtain that as m→∞m\to\infty,

Thus the conclusion of Part (ii) follows. ■\blacksquare

A.3 Proof of Theorem 2

Proof of Theorem 2(i): have shown that the barycenter Π‾n(ξ∣X)\overline{\Pi}_{n}(\xi\mid X) is related to the KK subset posteriors Πm(ξ∣Xj)\Pi_{m}(\xi\mid X_{j}) (j=1,…,Kj=1,\ldots,K) through the quantile function:

To see why this is true, we notice that we have derived the following relation in the proof of Theorem 1:

But according to the definition of rj(u)r_{j}(u) in (A.13), by Cauchy-Schwarz inequality,

On the other hand, for the bias of the overall posterior Πn(ξ∣X)\Pi_{n}(\xi\mid X), we follow a similar argument as above and obtain that

where r(u)=Πn−1(u∣X)−ξ^−{nIξ(θ0)}−1/2Φ−1(u)r(u)=\Pi_{n}^{-1}(u|X)-\hat{\xi}-\left\{nI_{\xi}(\theta_{0})\right\}^{-1/2}\Phi^{-1}(u). Moreover we have

by Theorem 1. This completes the proof of Part (i). ■\blacksquare

Proof of Theorem 2(ii): Similar to the expectation, the variance of a generic univariate distribution FF can be calculated through its quantile functions: if Y∼FY\sim F,

From (A.14) (with l=2l=2) and the conclusion of Theorem 1, we have

Again by Cauchy-Schwarz inequality, we have

Therefore, we have shown that \var{Π‾n(ξ∣X)}={nIξ(θ0)}−1+op(n−1)\var\left\{\overline{\Pi}_{n}(\xi\mid X)\right\}=\left\{nI_{\xi}(\theta_{0})\right\}^{-1}+o_{p}\left(n^{-1}\right).

For the variance of Πn(ξ∣X)\Pi_{n}(\xi\mid X), we use the same definition of r(u)r(u) as in Part (i) and derive that

Based on the conclusion of Theorem 1 and Cauchy-Schwarz inequality, we have

which proves \var{Πn(ξ∣X)}={nIξ(θ0)}−1+op(n−1)\var\left\{\Pi_{n}(\xi\mid X)\right\}=\left\{nI_{\xi}(\theta_{0})\right\}^{-1}+o_{p}\left(n^{-1}\right). ■\blacksquare

Proof of Theorem 2(iii): The convergence in W2W_{2} distance implies weak convergence. Therefore, it follows from Theorem 1 that in Pθ0P_{\theta_{0}} probability, both Π‾n,s(s∣X)\overline{\Pi}_{n,s}(s\mid X) and Πn,s(s∣X)\Pi_{n,s}(s\mid X) converge in distribution to normal distributions as m→∞m\to\infty. The weak convergence also implies the convergence of quantile functions at any continuous point. Since both Π‾n(ξ∣X)\overline{\Pi}_{n}\left(\xi\mid X\right) and Πn(ξ∣X)\Pi_{n}\left(\xi\mid X\right) are continuous distributions with posterior densities, their quantiles also converge pointwise to the quantiles of their limiting normal distributions. For any fixed u∈(0,1)u\in(0,1), as m→∞m\to\infty, Theorem 1 implies that for s=n1/2(ξ−ξ‾)s=n^{1/2}(\xi-\overline{\xi}),

We can make this convergence uniform over all quantiles u∈[u1,u2]⊂(0,1)u\in[u_{1},u_{2}]\subset(0,1). Divide [u1,u2][u_{1},u_{2}] into LL equally spaced subintervals [u(j),u(j+1)][u_{(j)},u_{(j+1)}] for j=0,…,L−1j=0,\ldots,L-1 and u(j)=u1+j(u2−u1)/Lu_{(j)}=u_{1}+j(u_{2}-u_{1})/L. For any ϵ>0\epsilon>0, since Φ−1{u;0,Iξ−1(θ0)}\Phi^{-1}\{u;0,I_{\xi}^{-1}(\theta_{0})\} is uniformly continuous on [u1,u2][u_{1},u_{2}], we can pick LL sufficiently large such that

for all j=0,…,L−1j=0,\ldots,L-1. Furthermore, because Φ−1(⋅)\Phi^{-1}(\cdot) is continuous everywhere, we can find a sufficiently large n0n_{0}, such that for all n>n0n>n_{0}, all j=0,…,L−1j=0,\ldots,L-1 with the LL chosen above,

For any u∈[u1,u2]u\in[u_{1},u_{2}], we can find a j0∈{0,…,L−1}j_{0}\in\{0,\ldots,L-1\} such that u∈[u(j0),u(j0+1)]u\in[u_{(j_{0})},u_{(j_{0}+1)}]. Therefore using the monotonicity of quantile functions,

which implies that for the quantiles in terms of ξ\xi,

By plugging in the order ∣ξ‾−ξ^∣=op(m−1/2)\left|\overline{\xi}-\hat{\xi}\right|=o_{p}(m^{-1/2}) from the proof of Theorem 1, we have

If we further assume that θ^1\hat{\theta}_{1} is an unbiased estimator of θ0\theta_{0}, then Lemma 4 says that ∣ξ‾−ξ^∣=op(n−1/2)\left|\overline{\xi}-\hat{\xi}\right|=o_{p}\left(n^{-1/2}\right). Therefore, using the results from Part (i), we have

which completes the proof. ■\blacksquare

Appendix B Theoretical Results for the Posterior Monte Carlo Errors

In practice, the credible intervals are calculated from the averages of empirical quantiles from subset posterior samples. In Algorithm 1, suppose that for each j=1,…,Kj=1,\ldots,K, Πj∘(θ)\Pi^{\circ}_{j}(\theta) and κj(θ,θ′)\kappa_{j}(\theta,\theta^{\prime}) for θ,θ′∈Θ\theta,\theta^{\prime}\in\Theta are the initial distribution and the transition kernel for the Markov chain of the jjth subset posterior. {θ1j,…,θTj}\{\theta_{1j},\ldots,\theta_{Tj}\} with sample size TT are drawn sequentially with θ1j∼Πj∘(⋅)\theta_{1j}\sim\Pi^{\circ}_{j}(\cdot) and θl+1,j∼κj(θlj,⋅)\theta_{l+1,j}\sim\kappa_{j}(\theta_{lj},\cdot) for l=1,…,T−1l=1,\ldots,T-1. ξlj=a⊤θlj+b\xi_{lj}=a^{\top}\theta_{lj}+b for l=1,…,Tl=1,\ldots,T and j=1,…,Kj=1,\ldots,K. Let Π^m(ξ∣Xj)\widehat{\Pi}_{m}(\xi\mid X_{j}) be the empirical distribution of {ξ1j,…,ξTj}\{\xi_{1j},\ldots,\xi_{Tj}\} for j=1,…,Kj=1,\ldots,K. Let Π^n(ξ∣X)\widehat{\Pi}_{n}(\xi\mid X) be the Wasserstein barycenter of Π^m(ξ∣X1),…,Π^m(ξ∣XK)\widehat{\Pi}_{m}(\xi\mid X_{1}),\ldots,\widehat{\Pi}_{m}(\xi\mid X_{K}), which can be calculated through its quantile function Π^n−1(u∣X)=∑j=1KΠ^m−1(u∣Xj)/K\widehat{\Pi}^{-1}_{n}(u\mid X)=\sum_{j=1}^{K}\widehat{\Pi}_{m}^{-1}(u\mid X_{j})/K for all u∈(0,1)u\in(0,1). Let L2{Πm(⋅∣Xj)}L_{2}\{\Pi_{m}(\cdot\mid X_{j})\} for j=1,…,Kj=1,\ldots,K be the L2L_{2} space of functions on Θ\Theta such that for any f∈L2{Πm(⋅∣Xj)}f\in L_{2}\{\Pi_{m}(\cdot\mid X_{j})\}, ∥f(θ)∥L2,j2=EΠm(⋅∣Xj)f2(θ)<∞\|f(\theta)\|^{2}_{L_{2},j}=E_{\Pi_{m}(\cdot\mid X_{j})}f^{2}(\theta)<\infty almost surely in Pθ0P_{\theta_{0}}. We need three additional assumptions as follows.

max⁡1≤j≤KEΠm(⋅∣Xj)∥θ∥7\max_{1\leq j\leq K}E_{\Pi_{m}(\cdot\mid X_{j})}\|\theta\|^{7} is upper bounded by a constant almost surely in Pθ0P_{\theta_{0}}.  max⁡1≤j≤KEΠm(⋅∣Xj){πj∘(θ)/πm(θ∣Xj)}3~\max_{1\leq j\leq K}E_{\Pi_{m}(\cdot\mid X_{j})}\{\pi^{\circ}_{j}(\theta)/\pi_{m}(\theta\mid X_{j})\}^{3} is upper bounded by a constant almost surely in Pθ0P_{\theta_{0}}, where πj∘(θ)\pi^{\circ}_{j}(\theta) is the density of Πj∘(θ)\Pi^{\circ}_{j}(\theta) for j=1,…,Kj=1,\ldots,K.

Every subset posterior Πm(θ∣Xj)\Pi_{m}(\theta\mid X_{j}) (j=1,…,Kj=1,\ldots,K) is ρ\rho-mixing: there exists a nonnegative constant sequence {ρl}l≥1\{\rho_{l}\}_{l\geq 1} decreasing to zero and ∑l=1∞ρl<∞\sum_{l=1}^{\infty}\rho_{l}<\infty, such that almost surely in Pθ0P_{\theta_{0}}, for any integer l≥1l\geq 1, any f∈L2{Πm(⋅∣Xj)}f\in L_{2}\{\Pi_{m}(\cdot\mid X_{j})\} and all j=1,…,Kj=1,\ldots,K,

where θl+1,j\theta_{l+1,j} is the llth draw in the Markov chain with initial draw θ1j\theta_{1j}, and Eκjl(⋅∣θ1j=θ)E_{\kappa_{j}^{l}(\cdot\mid\theta_{1j}=\theta)} is the conditional distribution of θl+1,j\theta_{l+1,j} given θ1j=θ\theta_{1j}=\theta.

Then the following theorem accounts for the Monte Carlo error in the empirical version of Wasserstein posterior due to finite sample approximations.

Suppose Assumptions 1–10 hold. Then for two arbitrary fixed numbers 0<u1<u2<10<u_{1}<u_{2}<1,

where OpO_{p} and opo_{p} are in Pθ0P_{\theta_{0}}-probability. Furthermore, if θ^1\hat{\theta}_{1} is an unbiased estimator of θ0\theta_{0}, then

Proof of Theorem 3: In this proof, we first establish the key relations between the empirical distribution Π^m(ξ∣Xj)\widehat{\Pi}_{m}(\xi\mid X_{j}) and the exact continuous subset posterior Πm(ξ∣Xj)\Pi_{m}(\xi\mid X_{j}), using the recent results from . Given the linear relation ξ=a⊤θ+b\xi=a^{\top}\theta+b and all the assumptions in Theorem 3,

almost surely in Pθ0P_{\theta_{0}} for all j=1,…,Kj=1,\ldots,K, where 0≤δ≤10\leq\delta\leq 1, C1C_{1} is a constant that only depends on the sequence {ρl}\l≥1\{\rho_{l}\}_{\l\geq 1}, the constant upper bound of max⁡1≤j≤KEΠm(⋅∣Xj)∥θ∥7\max_{1\leq j\leq K}E_{\Pi_{m}(\cdot\mid X_{j})}\|\theta\|^{7}, and the constant upper bound of max⁡1≤j≤KEΠm(⋅∣Xj){πj∘(θ)/πm(θ∣Xj)}3\max_{1\leq j\leq K}E_{\Pi_{m}(\cdot\mid X_{j})}\{\pi^{\circ}_{j}(\theta)/\pi_{m}(\theta\mid X_{j})\}^{3} in Assumption 9. The expectation in (A.30) is taken with respect to Πj∘\Pi^{\circ}_{j} because the first posterior sample θ1j\theta_{1j} is drawn from the initial distribution Πj∘\Pi^{\circ}_{j}. Given Assumptions 8-10, the inequality (A.30) is the consequence of Theorem 15 of by setting their d=1, p=1+δ, r=3, q=7d=1,~p=1+\delta,~r=3,~q=7.

For the empirical Wasserstein barycenter Π^n(ξ∣X)\widehat{\Pi}_{n}(\xi\mid X), we can establish a similar inequality to Lemma 3: for any l≥1l\geq 1,

where ξ^\hat{\xi} is defined in Lemma 3. Therefore, taking l=2l=2 in (A.31), we obtain that

where (i) is from the relation between l1l_{1} and l2l_{2} norms, (ii) is from the triangular inequality of the W2W_{2} distance and (x1+x2)2≤2(x12+x22)(x_{1}+x_{2})^{2}\leq 2(x_{1}^{2}+x_{2}^{2}) for x1,x2∈Rx_{1},x_{2}\in\mathcal{R}, and (iii) follows from (A.23) and (A.30) with δ=1\delta=1. By Markov’s inequality, it is clear that W2(Π^n(ξ∣X),Φ[ξ;ξ‾,{nIξ(θ0)}−1])=op(n−1/2)+Op(T−1/4)W_{2}\left(\widehat{\Pi}_{n}(\xi\mid X),\Phi\left[\xi;\overline{\xi},\left\{nI_{\xi}(\theta_{0})\right\}^{-1}\right]\right)=o_{p}(n^{-1/2})+O_{p}(T^{-1/4}).

We can also take l=1l=1 in (A.31) and obtain that

where rj(u)r_{j}(u) is defined in (A.13) and r^j(u)=Π^m−1(u∣Xj)−Πm−1(u∣Xj)\hat{r}_{j}(u)=\widehat{\Pi}_{m}^{-1}(u\mid X_{j})-\Pi_{m}^{-1}(u\mid X_{j}).

For the bias of Π^n(ξ∣X)\widehat{\Pi}_{n}(\xi\mid X), we have

By Markov’s inequality and (A.30) with δ=0\delta=0, for any c>0c>0,

Together with Theorem 2, we conclude that

Furthermore, if θ^1\hat{\theta}_{1} is unbiased for θ\theta, then

The results for quantiles can be derived similarly and therefore the proofs are omitted here.

Next we derive the rate for the posterior variance of Π^n(ξ∣X)\widehat{\Pi}_{n}(\xi\mid X). Similar to the derivation in the proof of Theorem 2(ii), we can obtain the following equality:

We bound the last three terms in the display above. It is clear that by Cauchy-Schwarz inequality, the third term is upper bounded by the second term. For the second term, we have

where the last relation follows from (A.24) and applying Markov’s inequality to (A.30).

For the last term in (B), we have the following bound:

where in the second inequality we used the Hölder’s inequality and the Cauchy-Schwarz inequality, and the last step is from Theorem 1. By (A.30), almost surely in Pθ0P_{\theta_{0}},

where (i) is from 0≤δ≤10\leq\delta\leq 1 and Jensen’s inequality. Now we set δ=min⁡{1,log⁡n/(2log⁡T)}\delta=\min\{1,\log n/(2\log T)\} and derive from (A.39) that

Hence, by Markov’s inequality, the right-hand side of (B) can be bounded by

Now we combine (B), (B) and (A.39) and conclude that

If we compare this with the results in Theorem 2, we obtain that

This concludes the proof of Theorem 3. ■\blacksquare

Appendix C Justification of Assumption 7

In this section, we verify Assumption 7 for two special examples: the normal linear model and some exponential family distributions. Without loss of generality, all the samples considered in this section refer to the first subset sample X1X_{1} in Assumption 7.

We consider the following normal linear model based on independent and identically distributed observations:

where \dimm(β)=p\dimm(\beta)=p and εi\varepsilon_{i}’s are independent. We write y=(y1,…,ym)⊤y=(y_{1},\ldots,y_{m})^{\top}, Z=(Z1,…,Zm)⊤Z=(Z_{1},\ldots,Z_{m})^{\top}, ε=(ε1,…,εm)⊤\varepsilon=(\varepsilon_{1},\ldots,\varepsilon_{m})^{\top}, and the true parameter is θ0=(β0⊤,σ02)⊤\theta_{0}=(\beta_{0}^{\top},\sigma_{0}^{2})^{\top}. We impose the following conjugate prior on the parameter θ=(β⊤,σ2)⊤\theta=(\beta^{\top},\sigma^{2})^{\top}:

where a>4,b>0a>4,b>0 is to guarantee a finite variance for the prior of σ2\sigma^{2}, and Ω\Omega is a positive definite matrix. The subset posterior after the stochastic approximation is given by

We have the following proposition, which shows that the ψ(⋅)\psi(\cdot) function in Assumption 7 is L1L_{1}-integrable uniformly for all mm and KK, which implies the uniform integrability condition.

In the normal linear model (A.40), assume that ∥μ∗∥\|\mu^{*}\| is upper bounded by a constant. Assume that the eigenvalues of Ω\Omega and Z⊤Z/mZ^{\top}Z/m are lower and upper bounded by constants for all m≥2m\geq 2. Assume that the error εi\varepsilon_{i} in (A.40) has finite 4th moment. Let β^\widehat{\beta} and σ2^\widehat{\sigma^{2}} be the maximum likelihood estimators of β\beta and σ2\sigma^{2} respectively. Then

Proof of Proposition 1: Let ∥β0∥,∥μ∗∥≤c1<+∞\|\beta_{0}\|,\|\mu^{*}\|\leq c_{1}<+\infty. Let the eigenvalues of Ω\Omega and Z⊤Z/mZ^{\top}Z/m be lower bounded by c2>0c_{2}>0 and upper bounded by c3>0c_{3}>0. Let E(εi4)=c4<+∞E(\varepsilon_{i}^{4})=c_{4}<+\infty. The subset posterior distributions of β\beta and σ2\sigma^{2} are given by

where Multi-tν(μ,Σ)\text{Multi-}t_{\nu}(\mu,\Sigma) denotes the multivariate-t distribution with mean μ\mu, variance matrix Σ\Sigma, and ν\nu degrees of freedom.

The maximum likelihood estimators of β\beta and σ2\sigma^{2} are given by

where \tr(A)\tr(A) denotes the trace of a generic square matrix AA. The posterior variance of β\beta can be bounded as

The second term in (A.43) can be bounded as

Since (C) and (C) have finite limits as m→∞m\to\infty, they are both bounded by constants, regardless of the value of KK. They together with (A.43) lead to (A.41).

Next we prove (A.42). We have the similar decomposition

We show an useful bound for the square of y⊤yy^{\top}y:

By using (C), the first term in (C) can be bounded as

And the second term in (C) can be bounded as

where we have used the relation λ‾(ZZ⊤)≤\tr(ZZ⊤)=\tr(Z⊤Z)≤pλ‾(Z⊤Z)≤pmc3\overline{\lambda}(ZZ^{\top})\leq\tr(ZZ^{\top})=\tr(Z^{\top}Z)\leq p\overline{\lambda}(Z^{\top}Z)\leq pmc_{3}, and λ‾(A)\overline{\lambda}(A) denotes the largest eigenvalue of a generic matrix AA. Since (C) and (C) have finite limits as m→∞m\to\infty, they are both bounded by constants, regardless of the value of KK. They together with (C) lead to (A.42). ■\blacksquare

In this section, we verify Assumption 7 for the following three commonly used exponential family distributions: Poisson, exponential, and binomial.

(i) Suppose the data yiy_{i} (i=1,…,mi=1,\ldots,m) are independent and identically distributed as Poisson(θ)\text{Poisson}(\theta) with the probability mass function p(y∣θ)=θye−θ/y!p(y|\theta)=\theta^{y}e^{-\theta}/y! and the true parameter θ0\theta_{0}. Suppose the prior on θ\theta is Gamma(a,b)\text{Gamma}(a,b) for some constants a>0,b>0a>0,b>0. Let θ^=∑i=1myi/m\widehat{\theta}=\sum_{i=1}^{m}y_{i}/m be the maximum likelihood estimator of θ\theta. Then

(ii) Suppose the data yiy_{i} (i=1,…,mi=1,\ldots,m) are independent and identically distributed as Exp(θ)\text{Exp}(\theta) with the probability density function p(y∣θ)=θe−θyp(y|\theta)=\theta e^{-\theta y} and the true parameter θ0\theta_{0}. Suppose the prior on θ\theta is Gamma(a,b)\text{Gamma}(a,b) for some constants a>0,b>0a>0,b>0. Let θ^=m/∑i=1myi\widehat{\theta}=m/\sum_{i=1}^{m}y_{i} be the maximum likelihood estimator of θ\theta. Then

(iii) Suppose the data yiy_{i} (i=1,…,mi=1,\ldots,m) are {0,1}\{0,1\} binary data independent and identically distributed as Bernoulli(θ)\text{Bernoulli}(\theta) with the probability density function p(y∣θ)=θy(1−θ)1−yp(y|\theta)=\theta^{y}(1-\theta)^{1-y} and the true parameter θ0∈(0,1)\theta_{0}\in(0,1). Suppose the prior on θ\theta is Beta(a,b)\text{Beta}(a,b) for some constants a>0,b>0a>0,b>0. Let θ^=∑i=1myi/m\widehat{\theta}=\sum_{i=1}^{m}y_{i}/m be the maximum likelihood estimator of θ\theta. Then

Proof of Proposition 2: (i) The subset posterior distribution of θ\theta is Gamma(K∑i=1myi+a,Km+b)\text{Gamma}(K\sum_{i=1}^{m}y_{i}+a,Km+b). Therefore

(ii) The subset posterior distribution of θ\theta is Gamma(Km+a,K∑i=1myi+b)\text{Gamma}(Km+a,K\sum_{i=1}^{m}y_{i}+b), and notice that W≡1/∑i=1myiW\equiv 1/\sum_{i=1}^{m}y_{i} follows Inverse-Gamma(m,θ0)\text{Inverse-Gamma}(m,\theta_{0}) with E(W)=θ0/(m−1)E(W)=\theta_{0}/(m-1), E(W2)=θ02/{(m−1)(m−2)}E(W^{2})=\theta_{0}^{2}/\{(m-1)(m-2)\}, E(W3)=θ03/{(m−1)(m−2)(m−3)}E(W^{3})=\theta_{0}^{3}/\{(m-1)(m-2)(m-3)\}. Therefore

(iii) The subset posterior distribution of θ\theta is Beta{K∑i=1myi+a,K∑i=1m(1−yi)+b}\text{Beta}\left\{K\sum_{i=1}^{m}y_{i}+a,K\sum_{i=1}^{m}(1-y_{i})+b\right\}. Therefore

Therefore, the conclusion holds. ■\blacksquare

Appendix D Data Analysis

The prior distributions of β\beta and σ\sigma are specified as follows:

The prior density of β=(β1,…,βp)⊤\beta=(\beta_{1},\ldots,\beta_{p})^{\top} given α\alpha and η\eta is given by

The prior mean and variance of β\beta are set to be 0 and 2η2(α−1)−1(α−2)−12\eta^{2}(\alpha-1)^{-1}(\alpha-2)^{-1}. α\alpha and η\eta have independent hyperpriors with densities π(α)=1/(1+α)2\pi(\alpha)=1/(1+\alpha)^{2} and π(η)=1/(1+η)2\pi(\eta)=1/(1+\eta)^{2}. The Half-tt prior has a convenient parameter expanded form in terms of Inverse-Gamma(aa, bb) distribution, where aa and bb are shape and scale parameters: if σ2∣ρ∼\sigma^{2}\mid\rho\sim Inverse-Gamma(ν/2\nu/2, ν/ρ\nu/\rho) and ρ∼\rho\sim Inverse-Gamma(1/21/2, 1/A21/A^{2}), then σ∼\sigma\sim Half-tt(ν\nu, AA). We fixed the hyperparameters ν\nu and AA at recommended default values 2 and 100100. We used griddy Gibbs for generating samples of α\alpha and η\eta from their posterior distribution; see Section 3 in for details. The Gibbs sampler in is modified by changing the sample size, nn, in their sampler to mKmK, where mm is sample size for the subset and KK is the number of subsets.

Let N(m^1,V^1),…,N(m^K,V^K)\mathcal{N}(\hat{m}_{1},\hat{V}_{1}),\ldots,\mathcal{N}(\hat{m}_{K},\hat{V}_{K}) represent the asymptotic approximations of KK subset posteriors, then has shown that their barycenter in Wasserstein-2 space is also Gausssian with mean m∗m^{*} and covariance matrix V∗V^{*}, where

Therefore, we use the formula above to calculate the W2W_{2} barycenter of KK normal approximations to the KK subset posteriors. Given V^1,…,V^K\hat{V}_{1},\ldots,\hat{V}_{K}, we can find V∗V^{*} efficiently using fixed-point iteration.

Although the priors of β\beta and σ\sigma specified above are heavy-tailed with infinite second moments, in the following proposition and its proof, we verify that every subset posterior after conditioning on the first m0m_{0} observations has finite second moment in both β\beta and σ\sigma, for some fixed integer m0m_{0}.

The last integral of (D.1) can be further bounded by

where the last inequality follows if we choose c2>Aν2/Kc_{2}>A\nu^{2}/K.

We can combine (D.1), (D.1), (D.1) and obtain that

D.2 Simulated data analysis: Linear mixed effects model

Stochastic approximation for subset posteriors can be easily implemented in Stan. The sampling model for linear mixed effects models implies that likelihood of β\beta and Σ\Sigma is

where ϕ(⋅∣μ,Σ)\phi(\cdot\mid\mu,\Sigma) is the multivariate normal density with mean μ\mu and covariance matrix Σ\Sigma. The likelihood after stochastic approximation is

The generative model is completed by imposing default priors for β\beta and Σ\Sigma in Stan. We take advantage of the increment_log_prob function in Stan to specify that

where fKf_{K} is the density that leads to the term for yiy_{i} in the likelihood LK(β,Σ)L_{K}(\beta,\Sigma) in (A.58). In general fKf_{K} would be analytically intractable, but in the present case it corresponds to {ϕ(⋅∣μ,Σ)}K\{\phi(\cdot\mid\mu,\Sigma)\}^{K}. The computation time of different methods is summarized in Figure 6a.

D.3 Real data analysis: United States natality data

We selected thirteen variables from the United States natality data summarized in Table 9 and analyzed in and . These data are available at http://qed.econ.queensu.ca/jae/datasets/abrevaya001. The computation time of different methods is summarized in Figure 6b.

References