Unbiased Markov chain Monte Carlo with couplings
Pierre E. Jacob, John O'Leary, Yves F. Atchadé
Introduction
Markov chain Monte Carlo (MCMC) methods constitute a popular class of algorithms to approximate high-dimensional integrals arising in statistics and other fields (Liu 2008; Robert and Casella 2004; Brooks et al. 2011; Green et al. 2015). These iterative methods provide estimators that are consistent as the number of iterations grows large but potentially biased for any fixed number of iterations, which discourages the parallel execution of many short chains (Rosenthal 2000). Consequently, efforts have focused on exploiting parallel processors within each iteration (Tjelmeland 2004; Brockwell 2006; Lee et al. 2010; Jacob et al. 2011; Calderhead 2014; Goudie et al. 2017; Yang et al. 2017) and on the design of parallel chains targeting different distributions (Altekar et al. 2004; Wang et al. 2015; Srivastava et al. 2015). Still, MCMC estimators are ultimately justified by asymptotics in the number of iterations, which is discordant with current trends in computing hardware, characterized by increasing parallelism but stagnating clock speeds.
In this paper we propose a general construction to produce unbiased estimators of integrals with respect to a target probability distribution from MCMC kernels. The lack of bias means that these estimators can be implemented on parallel processors in the framework of Glynn and Heidelberger 1991, without communication between processors. Confidence intervals can be constructed with asymptotic guarantees in the number of processors, in contrast with standard MCMC confidence intervals that are justified asymptotically in the number of iterations (Flegal et al. 2008; Gong and Flegal 2016; Atchadé 2016; Vats et al. 2018, e.g.). The lack of bias has additional benefits, as discussed in Section 5.5 in which we make use of its interplay with the law of iterated expectations to perform modular inference; see also the discussion in Section 6.
Our contribution follows the path-breaking work of Glynn and Rhee 2014, which uses couplings to construct unbiased estimators of integrals with respect to an invariant distribution. They illustrate their construction on Markov chains represented by iterated random functions, leveraging the contraction properties of such functions. Glynn and Rhee 2014 also consider Harris recurrent chains for which an explicit minorization condition holds. Previously, McLeish 2011 employed similar debiasing techniques to obtain “nearly unbiased” estimators from a single MCMC chain. More recently Jacob et al. 2019 remove the bias from conditional particle filters (Andrieu et al. 2010) by coupling chains so that they meet in finite time. The present article brings this type of “Rhee–Glynn” construction to generic MCMC algorithms, with a novel analysis of estimator efficiency and a variety of examples. Our proposed construction involves couplings of MCMC algorithms, which we discuss for generic Metropolis–Hastings and Gibbs samplers.
Couplings have been used to study the convergence properties of MCMC algorithms from both theoretical and practical points of view (Reutter and Johnson 1995; Johnson 1996; Rosenthal 1997; Johnson 1998; Neal 1999; Roberts and Rosenthal 2004; Johnson 2013; Johndrow and Mattingly 2017, e.g.). Couplings also underpin perfect samplers (Propp and Wilson 1996; Murdoch and Green 1998; Casella et al. 2001; Flegal and Herbei 2012; Lee et al. 2014; Huber 2016). A notable aspect of the approach of Glynn and Rhee 2014 preserved in our method is that only two chains have to be coupled for the proposed estimator to be unbiased, without further assumptions on the state space or target distribution. Thus the approach applies more broadly than perfect samplers (Glynn 2016, see) while yielding unbiased estimators rather than exact samples. Coupling pairs of Markov chains also forms the basis of the approach of Neal 1999, with a similar motivation for parallel computation. The proposed estimation technique also shares aims with regeneration methods (Mykland et al. 1995; Brockwell and Kadane 2005, e.g.), and we propose a numerical comparison in Section 5.2.
In Section 2 we introduce our estimators and present a coupling of random walk Metropolis–Hastings chains as an illustration. In Section 3 we establish the efficiency properties of these estimators, discuss the verification of key assumptions, and describe the use of the proposed estimators on parallel processors in light of results from e.g. Glynn and Heidelberger 1991. In Section 4 we describe how to couple some important MCMC algorithms and illustrate the effect of dimension on algorithm performance with a multivariate Normal target. Section 5 contains more challenging examples including a multimodal target, a comparison with regeneration methods, sampling problems in large-dimensional discrete spaces arising in Bayesian variable selection and Ising models, and an application to modular inference. We discuss our findings in Section 6. Scripts in R (R Core Team 2015) are available at https://github.com/pierrejacob/unbiasedmcmc and supplementary materials are available online.
Unbiased estimation from coupled chains
The chains stay together after meeting, i.e. for all .
By construction, each of the marginal chains and has initial distribution and transition kernel . Assumption 2.1 requires these chains to result in a uniformly bounded -moment of ; more discussion on moments of Markov chains can be found in Tweedie 1983. Since and may be drawn from any coupling of with itself, it is possible to set . However, is then generated from , so that in general. Thus one cannot force the meeting time to be small by setting . Assumption 2.2 puts a condition on the coupling operated by , and would not in general be satisfied for an independent coupling. Coupled kernels must be carefully designed, using e.g. common random numbers and maximal couplings, for Assumption 2.2 to be satisfied. We present a simple case in Section 2.2 and further examples in Section 4. We stress that the state space is not assumed to be discrete, and that the constants and of Assumption 2.1 and and of Assumption 2.2 do not need to be known to implement the proposed approach. Assumption 2.3 typically holds by design; coupled chains that stay identical after meeting are termed “faithful” in Rosenthal 1997.
Before presenting examples and enhancements to the estimator above, we discuss the relationship between our approach and existing work. There is a rich literature applying forward couplings to study Markov chains convergence (Johnson 1996; Johnson 1998; Thorisson 2000; Lindvall 2002; Rosenthal 2002; Johnson 2013; Douc et al. 2004; Nikooienejad et al. 2016), and to obtain new algorithms such as perfect samplers (Huber 2016) and the methods of Neal 1999 and Neal and Pinto 2001. Our approach is closely related to Glynn and Rhee 2014, who employ pairs of Markov chains to obtain unbiased estimators. The present work combines similar arguments with couplings of MCMC algorithms and proposes further improvements to remove bias at a reduced loss of efficiency.
Indeed Glynn and Rhee 2014 did not apply their methodology to the MCMC setting. They consider chains associated with contractive iterated random functions (Diaconis and Freedman 1999, see also), and Harris recurrent chains with an explicit minorization condition. A minorization condition refers to a small set , , an integer , and a probability measure such that for all and some measurable set , . Such a condition is said to be explicit if the set, constant and probability measure are known by the user. Finding explicit small sets that are useful in practice can present a technical challenge, even for MCMC experts (Cowles and Rosenthal 1998, see discussion and references in). When available, explicit minorization conditions can also be employed to identify regeneration times, yielding estimators amenable to parallel computation in the framework of Mykland et al. 1995 and Brockwell and Kadane 2005. By contrast Johnson 1996; Johnson 1998 and Neal 1999 address the question of coupling MCMC algorithms so that pairs of chains meet exactly, without analytical knowledge on the target distribution. The present article focuses on the use of couplings of this type in the framework of Glynn and Rhee 2014.
2 Coupled Metropolis–Hastings example
Before further examination of our estimator and its properties, we present a coupling of Metropolis–Hastings (MH) chains that will typically satisfy Assumptions 2.1-2.3 in realistic settings; this coupling was proposed in Johnson 1998 as part of a method to diagnose convergence. We postpone discussion of other couplings of MCMC algorithms to Section 4. We recall that each iteration of the MH algorithm (Hastings 1970) begins by drawing a proposal from a Markov kernel , where is the current state. The next state is set to if , where denotes a uniform random variable on $X_{t+1}=X_{t}$ otherwise.
We define a pair of chains so that each proceeds marginally according to the MH algorithm and jointly so that the chains will meet exactly after a random number of steps. We suppose that the pair of chains are in states and , and consider how to generate and so that might occur.
If , the event cannot occur if both chains reject their respective proposals, and . Meeting will occur if these proposals are identical and if both are accepted. Marginally, the proposals follow and . If can be evaluated for all , then one can sample from a maximal coupling between the two proposal distributions, which is a coupling of and maximizing the probability of the event . How to sample from maximal couplings of continuous distributions is described in Thorisson 2000 and in Section 4.1. One can accept or reject the two proposals using a common uniform random variable . The chains will stay together after they meet: at each step after meeting, the proposals will be identical with probability one, and jointly accepted or rejected with a common uniform variable. This coupling requires neither explicit minorization conditions nor contractive properties of a random function representation of the chain.
3 Time-averaged estimator
The estimator requires calls to and calls to , which is overall comparable to calls to when is large. Indeed, for the proposed couplings, calls to are approximately twice as expensive as calls to . Therefore, the cost of is comparable to iterations of the underlying MCMC algorithm. Thus both the variance and the cost of will approach those of MCMC estimators for large values of and . This motivates the use of the estimator with , which allows us to control the loss of efficiency associated with the removal of burn-in bias in contrast with the basic estimator of Section 2.1. We discuss the choice of and in further detail in Section 3 and in the subsequent experiments. A variant of (2.1) can be obtained by considering a time lag greater than one between the two chains and , with the meeting time defined as the first time for which occurs. This introduces another tuning parameter but is found to be fruitful in Biswas and Jacob 2019.
We conclude this section with a few remarks on practical implementations. First, the test function does not have to be specified at run-time in Algorithm 1. One can store the coupled chains and choose the test function later. Also, one typically resorts to thinning the output of an MCMC sampler if the memory cost of storing chains is prohibitive, or if the cost of evaluating the test function of interest is significant compared to the cost of each MCMC iteration (Owen 2017, e.g.). This is feasible in the proposed framework: one could consider a variation of Algorithm 1 where each call to the Markov kernels and would be replaced by multiple calls to them. We also observe that the proposed estimators can take values outside of the range of the test function ; for instance they can take negative values even if the range of the test function contains only non-negative values.
Finally, we stress the difficulty inherent in choosing an initial distribution . The estimators are unbiased for any choice of , including point masses, but this choice has an impact on both the computing cost and the variance. There is also a choice about whether to draw and independently from or not; in our experiments we use independent draws. We will see in Section 5.1 that unfortunate choices of initial distributions can severely affect the performance of the proposed estimators. This suggests trying more than one choice of initialization, especially in the setting of multimodal targets. Overall the choice of and its relative importance compared to standard MCMC are open questions.
4 Signed measure estimator
We can formulate the proposed estimation procedure in terms of a signed measure defined by
Properties and parallel implementation
The proofs of the results of this section are in the supplementary materials. Our first result establishes the basic validity of the proposed estimators.
Section 3.1 studies the variance and efficiency of , Section 3.2 concerns the verification of Assumption 2.2 using drift conditions, and Section 3.3 discusses estimation on parallel processors in the presence of a budget constraint.
We consider the impact of and on the efficiency of the proposed estimators, which will then suggest guidelines for the choice of these tuning parameters. Estimators , for , can be generated independently and averaged. More estimators can be produced in a given computing budget if each estimator is cheaper to produce. The trade-off can be understood in the framework of Glynn and Whitt 1992, see also Rhee and Glynn 2012; Glynn and Rhee 2014, by defining the asymptotic inefficiency as the product of the variance and expected cost of the estimator. That product is the asymptotic variance of as the computational budget, as opposed to the number of estimators , goes to infinity (Glynn and Whitt 1992). Of primary interest is the comparison of this asymptotic inefficiency with the asymptotic variance of standard MCMC estimators. We start by writing the time-averaged estimator of (2.1) as
The Markov kernel is -invariant, -irreducible and aperiodic, and there exists a measurable function , , and a small set such that for all ,
Suppose that Assumptions 2.2-2.3 and 3.1 hold, with a function for which the integral is finite. If the function is such that for some , then for all we have
for some constants , and , with as in Assumption 2.2.
Using Proposition 3.3, equation (3.1) becomes
The variance of is thus bounded by the mean squared error of an MCMC estimator plus additive terms that vanish geometrically in and polynomially in .
Dropping the third term on the right-hand side of (3.2), which is of smaller magnitude than the second term, assuming that and that with large probability, we obtain the approximate inequality
This informal series of approximations suggests that we can retrieve an asymptotic efficiency comparable to the underlying MCMC estimators with appropriate choices of and that depend on the distribution of the meeting time . These choices are thus sensitive to the coupling of the chains, and not only to the performance of the underlying MCMC algorithm. Choosing as a multiple of , such as or , makes intuitive sense when considering that is the proportion of iterations that are simply discarded in the event that . In other words, the bias of MCMC can be removed at the cost of an increased variance, which can in turn be reduced by choosing large enough values of and . This results in a tradeoff with the desired level of parallelism: one might prefer to keep and small, yielding a suboptimal efficiency for , but enabling more independent copies to be generated in a given computing time.
2 Verifying Assumption 2.2
We discuss how Assumption 3.1 on the Markov kernel can be used to verify Assumption 2.2, on the shape of the meeting time distribution. Informally, Assumption 3.1 guarantees that the bivariate chain visits infinitely often, where is a small set. If there is a positive probability of the event for every such that , then we expect Assumption 2.2 to hold. The next result formalizes that intuition. The proof is based on a modification of an argument by Douc et al. 2004. We introduce . Then Assumption 2.3 reads for all .
Suppose that satisfies Assumption 3.1 with a small set of the form where . Suppose also that there exists such that
Then there exists a finite constant and a , such that for all ,
where . Hence Assumption 2.2 holds as long as .
Note that if Assumption 3.1 holds with a small set of the form for some , then it also holds for for all . In that case one can always choose large enough so that . Hence the main restriction in Proposition 3.4 is the assumption that the small sets in Assumption 3.1 are of the form , i.e. level sets of . This is known to be true in some cases. For instance it is known from Theorem 2.2 of Roberts and Tweedie 1996b that for a large class of Metropolis-Hastings algorithms, any non-empty compact set is a small set, and therefore for these algorithms it suffices to check that the level sets of the drift function are compact. Common examples of drift functions include (Roberts and Tweedie 1996b; Jarner and Hansen 2000; Atchade 2006), (Roberts and Tweedie 1996a) or the example in Pal and Khare 2014, which all have compact level sets under mild regularity conditions.
The work of Middleton et al. 2018 contains results that generalize Propositions 3.3 and 3.4 to Markov chains satisfying polynomial drift conditions (Andrieu and Vihola 2015, e.g), leading to polynomial tails for the associated meeting times.
3 Parallel implementation under budget constraints
Our main motivation for unbiased estimators comes from parallel processing; see Sections 5.5 and 6 for other motivations. Independent unbiased estimators with finite variance can be generated on separate machines, and combined into consistent and asymptotically Normal estimators. If the number of estimators is pre-specified, this follows from the central limit theorem for i.i.d. variables. We might prefer to specify a time budget, and generate as many estimators as possible within the budget. The lack of bias allows the application of a variety of results on budget-constrained parallel simulations, which we briefly review here, following Glynn and Heidelberger 1990; Glynn and Heidelberger 1991.
Couplings of MCMC algorithms
We consider couplings of various MCMC algorithms that satisfy Assumptions 2.2-2.3. These couplings are widely applicable and do not require extensive analytical knowledge of the target distribution. We stress that they are not optimal in general, and we expect that other constructions would yield more efficient estimators. We begin in Section 4.1 by reviewing maximal couplings.
where is the total variation distance. By the coupling inequality (Lindvall 2002), this proves that the algorithm implements a maximal coupling.
Let and . We independently draw and and let
The above procedure outputs a pair that follows a coupling of with itself. We then define . On the event , we have . On the event , the vector is the reflection of through the hyperplane orthogonal to that passes through the origin. We show that the output follows a maximal coupling of and , which we refer to as a maximal coupling with reflection on the residuals, or a “reflection-maximal coupling”. First we show that follows , closely following the argument in Bou-Rabee et al. 2018. For a measurable set , we compute
The first integral above becomes , after a change of variables . To simplify the second integral we make the change of variables . Since this corresponds to a reflection with respect to a plane orthogonal to , we have , and , thus
To verify that the procedure corresponds to a maximal coupling of and , we observe that
Finally, for discrete distributions with common finite support, a procedure for sampling from a maximal coupling is described in Section 5.4, with a cost that is also deterministic.
2 Metropolis–Hastings
In Section 2.2 we described a coupling of MH chains due to Johnson 1998; we summarize the coupled kernel in the following procedure.
Sample from a maximal coupling of and .
If , then , otherwise .
If , then , otherwise .
Here we address the verification of Assumptions 2.1-2.3 for this algorithm. Assumption 2.1 can be verified for MH chains under conditions on the target and the proposal (Nummelin 2002; Roberts and Rosenthal 2004). In some settings the explicit drift function given in Theorem 3.2 of Roberts and Tweedie 1996b may be used to verify Assumption 2.2 as in Section 3.2. The probability of coupling at the next step given that the chains are in and can be controlled as follows. First, the probability of proposing the same value depends on the total variation distance between and , which is typically strictly positive if and are in bounded subsets of . Furthermore, the probability of accepting is often strictly positive on bounded subsets of , for instance when for all . Assumption 2.3 is satisfied by design thanks to the use of maximal couplings and common uniform variable in the above procedure.
Different considerations drive the choice of proposal distribution in standard MCMC and in our proposed estimators. In the case of random walk proposals with variance , larger variances lead to smaller total variation distances between and and thus larger probabilities of proposing identical values. However meeting events only occur if proposals are accepted, which is unlikely if is too large. This trade-off could lead to a different choice of than the optima known for the marginal chains (Roberts et al. 1997), and deserves further investigation.
We perform experiments with a -dimensional Normal target distribution , where is the inverse of a matrix drawn from a Wishart distribution with identity scale matrix and degrees of freedom. This setting, borrowed from Hoffman and Gelman 2014, yields Normal targets with strong correlations and a dense precision matrix. Below, each independent run is performed with an independent draw of . We consider Normal random walk proposals with variance set to . The division by heuristically follows from the scaling results of Roberts et al. 1997. We initialize the chains either from the target distribution, or from a Normal centered at with identity covariance matrix. We first couple the proposals with a maximal coupling given by Algorithm 2. The resulting average meeting times, based on independent runs, are given in Figure 1a. The plot indicates an exponential increase of the average meeting times with the dimension, under both initialization strategies. In passing, this illustrates that meeting times can be large even if the chains marginally start at stationarity, i.e. in a setting where there is no burn-in bias.
Next we perform the same experiments with the reflection-maximum coupling described in the previous section. The results are shown in Figure 1b. The average meeting times now increase at a rate that appears closer to linear in the dimension. This is to be compared with established theoretical results on the linear performance of standard MH estimators with respect to the dimension (Roberts et al. 1997). A formal justification of the scaling observed in Figure 1b is an open question, and so is the design of more effective coupling strategies.
3 Gibbs sampling
Gibbs sampling is another popular class of MCMC algorithms, in which components of a Markov chain are updated alternately by sampling from the target conditional distributions (Robert and Casella 2004, Chapter 10 of), implemented e.g. in the software packages JAGS (Plummer et al. 2003). In Bayesian statistics, these conditional distributions sometimes belong to a standard family such as Normal, Gamma, or Inverse Gamma. Otherwise, the conditional updates might require MH steps. We can introduce couplings in each conditional update, using either maximal couplings of the target conditionals, if these are standard distributions, or maximal couplings of the proposal distributions in MH steps targeting the target conditionals. Controlling the probability of meeting at the next step over a set, as required for the application of Proposition 3.4, can be done on a case-by-case basis. Drift conditions for Gibbs samplers also tend to rely on case-by-case arguments (Rosenthal 1996, see e.g.).
Gibbs samplers tend to perform well for targets with weak correlations between the components being updated; otherwise Gibbs chains are expected to mix poorly. We perform numerical experiments on Normal target distributions in varying dimensions to observe the effect of correlations on the meeting times of coupled Gibbs chains. For each target , we introduce an MH-within-Gibbs sampler, where each univariate component is updated with a single Metropolis step, using Normal proposals with variance . Here an iteration of the sampler refers to a complete scan of the components. Figure 2a presents the median meeting times as a function of the dimension, when is the inverse of a Wishart draw as in the previous section. In this highly correlated setting, the meeting times scale poorly with the dimension. The plot presents the median instead of the average, because we have stopped the runs after iterations; the median is robust to this truncation, but not the average. We remark that shorter meeting times are obtained when initializing the chains away from the target distribution.
Next we consider a Normal target with covariance matrix defined by , which induces weak correlations among components; the inverse of is tridiagonal. In that case, the same Gibbs sampler performs much more favorably, as we can see from Figure 2b. The average meeting times seem to scale sub-linearly with the dimension, under both choices of initializations . Couplings of other Gibbs samplers will be encountered in the numerical experiments of Section 5.
4 Coupling of other MCMC algorithms
Among extensions of the MH algorithm, Metropolis-adjusted Langevin algorithms (Roberts and Tweedie 1996a, e.g.) are characterized by the use of a proposal distribution given current state that is Normal with mean and variance , with tuning parameter and covariance matrix . Maximal couplings or reflection-maximal couplings of the proposals could be readily implemented to obtain faithful chains. Going further in the use of gradient information, Hamiltonian or Hybrid Monte Carlo (Duane et al. 1987; Neal 1993; Neal 2011, HMC,) is a popular MCMC algorithm for large-dimensional targets. In Heng and Jacob 2019, the framework of the present article is applied to pairs of Hamiltonian Monte Carlo chains, with a focus of the verification of Assumptions 2.1-2.3 in that context. Such couplings are analyzed in detail in Mangoubi and Smith 2017; Bou-Rabee et al. 2018 to obtain convergence rates for the underlying chains. We refer to Heng and Jacob 2019 for more details, and provide for completeness some experiments on the Normal target described above in the supplementary materials.
The present article generalizes unbiased estimators obtained by coupling conditional particle filters in Jacob et al. 2019. These algorithms, introduced in Andrieu et al. 2010, target the distribution of latent processes given observations and fixed parameters for nonlinear state space models. The couplings of conditional particle filters in Jacob et al. 2019 involve a combination of common random numbers and maximal couplings. Couplings of particle independent Metropolis–Hastings, which is a particular case of Metropolis–Hastings with an independent proposal distribution, are simpler to design and considered in Middleton et al. 2019.
The design of generic and efficient MCMC kernels is a topic of active ongoing research (see e.g. Murray et al. 2010; Goodman et al. 2010; Pollock et al. 2016; Vanetti et al. 2017; Titsias and Yau 2017, and references therein). Any new kernel could lead to unbiased estimators with the proposed framework, as long as appropriate couplings can be implemented.
Illustrations
Section 5.1 illustrates the impact of , , and the initial distribution , identifying a situation where some care is required. Section 5.2 considers the removal of the bias from a Gibbs sampler previously considered for perfect sampling and regeneration methods. Section 5.3 introduces an Ising model and a coupling of a replica exchange algorithm, and we present experiments performed on parallel processors. Section 5.4 considers a high-dimensional variable selection example, with an MH algorithm previously shown to scale linearly with the number of variables. Finally, Section 5.5 focuses on the problem of approximating the cut distribution arising in modular inference, which illustrates the appeal of unbiased estimators beyond parallel computing.
We use a bimodal target distribution and a random walk MH algorithm to illustrate our method and highlight some of its limitations. In particular, we consider a mixture of univariate Normal distributions with density , which we sample from using random walk MH with Normal proposal distributions of variance . This enables regular jumps between the modes of . We set the initial distribution to , so that chains are likely to start closer to the mode at than the mode at . Over independent runs, we find that the meeting time has an average of and a quantile of .
We present the results in Table 1. First, we see that the inefficiency is sensitive to the choice of and . Second, we see that when and are sufficiently large we can retrieve an inefficiency comparable to that of the underlying MCMC algorithm. The ideal choice of and will depend on tradeoffs between inefficiency, the desired level of parallelism, and the number of processors available. We present a histogram of the target distribution, obtained using , , in Figure 3a. These histograms are produced by averaging unbiased estimators of expectations of indicator functions, corresponding to consecutive intervals. Confidence intervals at level are obtained from the central limit theorem and are represented as grey boxes, with vertical bars showing the point estimates.
Next, we consider a more challenging case by setting , again with . These values make it difficult for the chains to jump between the modes of . Over runs we find an average meeting time of , with a quantile of . When the chains start in different modes, the meeting times are often dramatically larger than when the chains start by the same mode. One can still recover accurate estimates of the target distribution, but and have to be set to larger values. With and , we obtain the confidence interval for . We show a histogram of in Figure 3b.
Finally we consider a third case, with as before but now with set to . This initialization makes it unlikely for a chain to start near the mode at . The pair of chains typically converge around the mode at and meet in a small number of iterations. Over replications, we find an average meeting time of and a quantile of . A confidence interval on obtained from the estimators with , is , far from the true value of . The associated histogram of is shown in Figure 3c.
Sampling additional estimators yields a confidence interval , again using , . Among these extra values, a few correspond to cases where one chain jumped to the left-most mode before meeting the other. This resulted in large meeting times and thus a large empirical variance for . Upon noticing a large empirical variance one can then decide to use larger values of and . We conclude that although our estimators are unbiased and are consistent in the limit as , poor performance of the underlying Markov chains combined with ill-chosen initializations can still produce misleading results for any finite , such as in this example.
2 Gibbs sampler for nuclear pump failure data
Next we consider a classic Gibbs sampler for a model of pump failure counts, used e.g. in Murdoch and Green 1998 to illustrate perfect samplers for continuous distributions, and in Mykland et al. 1995 to illustrate their regeneration approach. Here we focus on a comparison with the regeneration approach, which was motivated by similar practical concerns as this paper, in particular to avoid an arbitrary choice of burn-in, construct confidence intervals on the expectations of interest, and make principled use of parallel processors. In that paper the authors show how to construct regeneration times – random times between which the chain forms independent and identically distributed “tours”. The authors define a consistent estimator for arbitrary test functions, whose asymptotic variance takes a simple form. The estimator is then obtained by aggregating over these independent tours.
The data consist of operating times and failure counts for pumps at the Farley-1 nuclear power station, as first described in Gaver and O’Muircheartaigh 1987. The model specifies and , where , , , and . The Gibbs sampler for this model consists of the following update steps:
Here refers to the distribution with density . We initialize all parameter values to 1 (the initialization is not specified in Mykland et al. 1995). To form our estimator we apply maximal couplings at each conditional update of the Gibbs sampler, as described in Section 4.3.
We begin by drawing meeting times independently. Following the guidelines of Section 3.1, we set , corresponding to the quantile of and . For the regeneration approach, Mykland et al. 1995 gives a set of tuning parameters which we adopt below. Applying the regeneration approach to 1,000 Gibbs sampler runs of 5,000 iterations each, we observe on average 1,996 complete tours per run with an average length of 2.50 iterations per tour. These values agree with the count of 1,967 tours of average length 2.56 reported in Mykland et al. 1995. We observe a posterior mean estimate for of 2.47 with a variance of over the 1,000 independent runs, which implies an efficiency value of . This exceeds the efficiency of achieved by our estimator with the choice of and . On the other hand, the regeneration approach often requires more extensive analytical work with the underlying Markov chain; we refer to Mykland et al. 1995 for a detailed description. For reference, the underlying Gibbs sampler achieves an efficiency of , based on a long run of iterations and a burn-in of iterations. More extensive comparisons with other regeneration approaches such as that of Brockwell and Kadane 2005 would deserve investigation.
3 Ising model
We consider an Ising model on a square lattice with periodic boundaries. This provides a setting where a basic MCMC sampler can mix slowly depending on an inverse temperature parameter , and where a replica exchange strategy as in Geyer 1991 can be helpful. We also use this example to illustrate the use of our estimators on a large computing cluster, with the considerations reviewed in Section 3.3. For and in we write if and are neighbors in the square lattice with periodic boundaries. We write for the spin at location , and for the full grid. We write for the “natural statistic” summing the products of pairs of neighbors. The multiplier here results in each pair of neighboring sites only being counted once. Under the model, the probability associated with a grid is , where denotes an inverse temperature parameter that calibrates the degree of correlation between neighboring sites.
We consider a single-site Gibbs sampler, called a heat bath algorithm in this context, to approximate the distribution given a value of . One iteration of the algorithm consists of a sweep through all the locations . For each we draw from its conditional distribution under given all the other spins. It can be checked that the conditional probability of given the other spins equals , where denotes the sum of spins over the four neighbors of . We initialize the chains by drawing spins uniformly in at each site, independently across sites.
A simple strategy to couple heat bath chains consists of sampling from the maximal coupling of each conditional distribution. For a grid of values from and , we run 100 pairs of chains until they meet. We then plot the average meeting time as a function of in Figure 4a, noting that the average meeting time increases sharply to values above as approaches its critical value (see the related discussion in Propp and Wilson 1996). We conclude that it would be expensive to produce unbiased estimators based on the heat bath algorithm for values of above , for reasons related to the behavior of the underlying algorithm.
There are several ways to address the degeneracy of the heat bath algorithm as increases. Specialized algorithms have been proposed to jointly update groups of spins (Swendsen and Wang 1987; Wolff 1989). Here, we consider an approach based on an ensemble of chains that regularly exchange their states, a technique often termed replica exchange or parallel tempering. Following e.g. Geyer 1991, we introduce chains, , …, , with each targeting with different values of ordered as . Each iteration of the algorithm proceeds as follows. With probability , for (sequentially), we propose exchanging the states and corresponding to and . We accept this swap with probability , which simplifies to . Otherwise we perform a full sweep of single-site Gibbs updates, independently across chains.
A coupling of this algorithm involves a pair of ensembles with chains each; the two ensembles are identical if chain in the first ensemble equals chain in the second ensemble, for all . We use common random numbers to decide whether to perform swap moves or single-site Gibbs moves, and whether to accept the proposed states in the event of a swap move. In the event of a single-site Gibbs move, we maximally couple each conditional update.
Throughout the following experiments we use , and introduce an equally spaced grid of values from to for several different choices of . We note that these grids includes values at which we have seen that the single-site Gibbs sampler mixes poorly. Figure 4b shows the resulting average meeting times over 100 independent runs, as a function of the number of chains . The average meeting time first decreases with the number of chains, but then increases again. A possible explanation is that the mixing of the chains first improves as increases, and then stabilizes; on the other hand it becomes harder for the ensembles to meet when increases since all chains in the ensembles have to meet. The minimum average meeting time is here attained for chains per ensemble.
4 Variable selection
We now consider an experiment like those of Yang et al. 2016. We define
and generate given and from the model with , , , , and signal-to-noise parameter . We also set , , and (exactly as in Yang et al. 2016; the value of was obtained by personal communication) and generate the covariates using a multivariate normal distribution with covariance matrix either equal to a unit diagonal matrix or with entries . We refer to these two cases as the independent design and correlated design cases, respectively. We draw from the initial distribution by creating a vector of zeros, sampling coordinates uniformly from without replacement, and setting the corresponding entries to with probability .
For different values of , and SNR, and the two types of design, we run coupled chains 100 times independently until they meet. We report the average meeting times in Tables 2 and 3. The average meeting times are of the order of to , depending on the problem; the maximum is attained in the correlated design at . In contrast with this, the experiments in Yang et al. 2016 identify the scenario as the most challenging one. This discrepancy deserves further study; it could be due to variations from a synthetic data set to another, or to differences in the criteria being reported.
To illustrate the impact of dimension, we focus on the independent design setting with and , and consider values of between and . For each value of , we run coupled chains times independently until they meet. We present violin plots representing the distributions of meeting times divided by in Figure 6a. The distribution of scaled meeting times appears to be approximately constant as a function of , suggesting that meeting times increase linearly in . This is consistent with the findings of Yang et al. 2016, where mixing times are shown to increase linearly in .
Figure 6b shows the results in the form of confidence intervals shown as error bars, using (3.4), the CLT relevant when the time budget is fixed and the number of processors grows large. We observe that has a strong impact on the probability of including the first 10 variables in this setting, and that the most satisfactory results are obtained for rather than for , recalling that has non-zero entries in its first 10 components. Note that the error bars are narrow but still noticeable, particularly for . On the same figure, the solid lines represent estimates obtained with 10 independent MCMC runs with iterations each, discarding the first iterations as burn-in. These MCMC estimates present noticeable variability in spite of the large number of iterations. In a standard MCMC setting, we might run chains for more iterations until the estimates agree across independent runs. In the proposed framework, we increase the precision by generating more independent unbiased estimators without necessarily modifying or .
Figure 6b suggests that the variable selection procedure considered here is sensitive to the prior hyperparameter ; we refer to Yang et al. 2016, and to Johnson 2013; Nikooienejad et al. 2016 for related discussions on Bayesian variable selection in high dimension and convergence of MCMC.
5 Cut distribution
Finally, our proposed estimator can be used to approximate the cut distribution, which poses a significant challenge for existing MCMC methods (Plummer 2014; Jacob et al. 2017). This illustrates another appeal of the unbiasedness property, beyond the motivation for parallel computation.
Consider two models, one with parameters and data and another with parameters and data , where the likelihood of might depend on both and . For instance the first model could be a regression with data and coefficients , and the second model could be another regression whose covariates are the residuals, coefficients, or fitted values of the first regression (Pagan 1984; Murphy and Topel 2002). In principle one could introduce an encompassing model and conduct joint inference on and via the posterior distribution. In that case, misspecification of either model would lead to misspecification of the ensemble and thus to a misleading quantification of uncertainty, as noted in several studies (Liu et al. 2009; Plummer 2014; Lunn et al. 2009; McCandless et al. 2010; Zigler 2016; Blangiardo et al. 2011, e.g.).
The cut distribution (Spiegelhalter et al. 2003; Plummer 2014) allows the propagation of uncertainty about to inference on while preventing misspecification in the second model from affecting estimation in the first. The cut distribution is defined as
Here refers to the distribution of given in the first model alone, and refers to the distribution of given and in the second model. Often, the density can only evaluated up to a constant in , which may vary with . This makes the cut distribution difficult to approximate with MCMC algorithms (Plummer 2014).
A naive approach consists of first running an MCMC algorithm targeting to obtain a sample , perhaps after discarding a burn-in period and thinning the chain. Then for each , one can run an MCMC algorithm targeting , yielding samples. One might again discard some burn-in and thin the chains, or just keep the final state of each chain. The resulting joint samples approximate the cut distribution. However, the validity of this approach relies on a double limit in and . Diagnosing convergence may also be difficult given the number of chains in the second stage, each of which targets a different distribution .
We consider the example described in Plummer 2014, inspired by an investigation of the international correlation between human papillomavirus (HPV) prevalence and cervical cancer incidence (Maucort-Boulch et al. 2008). The first module concerns HPV prevalence, with data independently collected in countries. The parameter receives a Beta prior distribution independently for each component. The data consist of pairs of integers. The first represents the number of women infected with high-risk HPV, and the second represents population sizes. The likelihood specifies a Binomial model for , independently for each component . The posterior for this model is given by a product of Beta distributions.
where the data are pairs of integers. The first component represents numbers of cancer cases, while the second is a number of woman-years of follow-up. The Poisson regression model might be misspecified, motivating departures from inference based on the joint model (Plummer 2014).
Here we can draw directly from the first posterior, denoted by , and obtain a sample . For each we consider an MH algorithm targeting , using a Normal random walk proposal with variance . We couple this algorithm using reflection-maximal couplings of the proposals as in Section 4.1. In preliminary runs, starting with a standard bivariate Normal as an initial distribution and a proposal covariance matrix set to identity, we estimate the first two moments of the cut distribution, and we use them to refine the initial distribution and the proposal covariance matrix . With these settings we obtain a distribution of meeting times shown in Figure 7a. We then set , , and obtain approximations of the cut distribution represented by histograms in Figures 7b and 7c, using unbiased estimators. The overlaid curves correspond to a kernel density estimate obtained by running steps of MCMC targeting with drawn from , for , and keeping the final -th state of each chain. The proposed estimators can be refined by increasing the number of independent replications, whereas the MCMC estimators would converge only in the double limit of and going to infinity.
Discussion
By combining the powerful technique of Glynn and Rhee 2014 with couplings of MCMC algorithms, unbiased estimators of integrals with respect to the target distribution can be constructed. Their efficiency can be controlled with tuning parameters and , for which we have proposed guidelines: can be chosen as a large quantile of the meeting time , and as a multiple of . Improving on these simple guidelines stands as a subject for future research. In numerical experiments we have argued that the proposed estimators yield a practical way of parallelizing MCMC computations in a range of settings. We stress that coupling pairs of Markov chains does not improve their marginal mixing properties, and that poor mixing of the underlying chains can lead to poor performance of the resulting estimator. The choice of initial distribution can have undesirable effects on the estimators, as in the multimodal example of Section 5.1. Unreliable estimators would also result from stopping the chains before their meeting time.
Couplings of MCMC algorithms can be devised using maximal couplings, reflection couplings, and common random numbers. We have focused on couplings that can be implemented without further analytical knowledge about the target distribution or about the MCMC kernels. However, these couplings might result in prohibitively large meeting times, either because the marginal chains mix slowly, as in 5.1, or because the coupling strategy is ineffective, as in Section 4.2.
Regarding convergence diagnostics, the proposed framework yields the following representation for the total variation between and , where denotes the marginal distribution of :
Thanks to its potential for parallelization, the proposed framework can facilitate consideration of MCMC kernels that might be too expensive for serial implementation. For instance, one can improve MH-within-Gibbs samplers by performing more MH steps per component update, HMC by using smaller step-sizes in the numerical integrator (Heng and Jacob 2019), and particle MCMC by using more particles in the particle filters (Andrieu et al. 2010; Jacob et al. 2019). We expect the optimal tuning of MCMC kernels to be different in the proposed framework than when used marginally.
On top of enabling the application of the results of Glynn and Heidelberger 1991 to accomodate budget constraints, the lack of bias of the proposed estimators can be beneficial in combination with the law of total expectation, to implement modular inference procedures as in Section 5.5. In Rischard et al. 2018 the lack of bias is exploited in new estimators of Bayesian cross-validation criteria. In Chen et al. 2018 similar unbiased estimators are used in the expectation step of an expectation-maximization algorithm. There may be other settings where the lack of bias is appealing, for instance in gradient estimation for stochastic gradient descents (Tadić et al. 2017).
The authors are grateful to Jeremy Heng and Luc Vincent-Genod for useful discussions. The authors gratefully acknowledge support by the National Science Foundation through grants DMS-1712872 and DMS-1844695 (Pierre E. Jacob), and DMS-1513040 (Yves F. Atchadé).
References
Appendix A Proofs
A.2 Proof of Proposition 3.2
The above implies that for any finite we have
almost surely by the strong law of large numbers. Assumption 2.2 implies that this quantity goes to 0 as .
A.3 Proof of Proposition 3.3
for some arbitrary bounded sequence . Fix an integer , and set
The same argument as in the proof of Proposition 3.1 can be applied here and shows that is a Cauchy sequence in that converges to , as , so that
where for a function , the -norm between two probability measures is defined as
and . This result can be found in Theorem 15.0.1 of Meyn and Tweedie 2009. It follows from (A.1) that . Hence the function
is well-defined and measurable (as a limit of a sequence of measurable functions) and satisfies . And since is finite everywhere, by Lebesgue’s dominated convergence we deduce that is finite everywhere as well and
Hence, with , and , we have
Using this and a telescoping sum argument, we write
Since on , the last term in the above display reduces to , and we obtain
Let denote the sigma-algebra generated by the variables . Note that belongs to . Hence
In other words, is a martingale. The orthogonality of the martingale increments gives
We use this together with (A.2), the convexity of the squared norm, and Minkowski’s inequality to conclude that
Assumption 3.1 together with , implies that
as seen above. In conclusion, all the expectations appearing in (A.3) are upper bounded by some constant times terms of the form . We conclude that
In the particular case of , we have . Hence , if , if . We then obtain the bound of Proposition 3.3.
A.4 Proof of Proposition 3.4
Here is defined as for all . The assumption in (3.3), within the statement of Proposition 3.4, implies that for , can be written as a mixture
where , is a restriction of on (that is for any measurable subset of , ), and is the restriction of on . This means that whenever one can sample from by drawing independently a Bernoulli random variable , with probability of success . Then if , we draw from , if , we draw from . From this decomposition, the proof of the proposition follows the same lines as in Douc et al. 2004, and we give the details only for completeness. We cannot directly invoke their result since their assumptions do not seem to apply to our setting.
Set . First we show that the bivariate kernel satisfies a geometric drift towards . That is, there exists such that
Indeed for , since , and , . In other words, . Therefore,
with . We set
In this section refers to the indicator function on the set . Let denote the number of visits to by time . Then
The event implies that no success occurred within at least independent Bernoulli random variables each with probability of success at least . Hence
For the second term, we have (since , and the chains stay together after meeting via Assumption 2.3),
Then use Markov’s inequality to conclude that
Since , there exists an integer such that . In that case for one can take , to get
Suppose now that . Then . Hence
Appendix B Hamiltonian Monte Carlo on multivariate Normals
As Section 4 in the main document, we perform experiments with a -dimensional Normal target distribution , where is the inverse of a matrix drawn from a Wishart distribution, with identity scale matrix and degrees of freedom. We provide average meeting times obtained in varying dimensions, when using the coupled HMC algorithm described in Heng and Jacob 2019. The latter article presents similar experiments but for a different choice of matrix , thus we provide the present section for completeness.
Let us introduce a Markov kernel as a mixture of two kernels, an MH kernel and an HMC kernel . We first describe and a coupling of it. The kernel is an MH kernel with Normal random walk proposals, with a covariance matrix equal to times the identity matrix. The coupled version of uses a maximal coupling of the proposals (as in Algorithm 2 of the main document).
The kernel corresponds to an HMC algorithm, with mass matrix given by the inverse of the target variance . This preconditioning mechanism is motivated by considerations similar to those in Girolami and Calderhead 2011. In the present case of Normal distributions, this is particularly advantageous as it leads to a complete decoupling of the components of the target; see Proposition 3.1 in Bou-Rabee and Sanz-Serna 2018. We discretize Hamiltonian equations with a leap-frog integrator, using a stepsize of , and a number of steps of , which corresponds to a trajectory length of approximately one. The coupling of such Hamiltonian kernels is done by using common random numbers for the momentum variables, i.e. a synchronous coupling [Bou-Rabee et al. 2018]. The kernels and , and their coupled counterparts, are combined into mixtures and , by assigning weights respectively of and , i.e. an MH step is performed with probability .
We consider two types of initialization : either the target distribution , or a Normal distribution , with a vector of ones and the identity matrix. With the latter initialization, we observed a very low acceptance rate when using the stepsize given above. We did not observe any issue when the chains were started from . We also did not observe such issues when was replaced by the identity matrix. In principle, smaller stepsizes could be chosen, in order to increase the acceptance rate. However, this would result in more expensive iterations as is defined as above. Instead, we resort to the following heuristic strategy, which appears to solve the issue in the present example. We draw an initial position from , then we perform steps of “unadjusted HMC”, with , and as described above. By “unadjusted HMC”, we refer to a scheme where the final point of the Hamiltonian trajectory is accepted with probability one, i.e. no MH correction is applied. This initialization procedure is simply a redefinition of , and thus would not jeopardize the validity of the proposed estimators.
The results under both initializations are shown in Figure 8, where we observe average meeting times that increase very slowly with the dimension of the target distribution. Thanks to the initialization strategy described above, we obtain similar meeting times when starting from the chains from or from .
Appendix C Baseball batting averages
We consider a classic Gibbs sampler discussed in the context of parallel computing in Rosenthal 2000. In Rosenthal 1996, it was proved that the chain produced by this Gibbs sampler converges in total variation to within of its stationary distribution after at most iterations. This type of derivation is technically challenging and has been done only in specific cases. Using this result, Rosenthal 2000 recommends to run parallel chains with a burn-in of iterations. We will compare this value with choices of and for the proposed unbiased estimators.
The data are baseball players’ batting averages taken from Table 1 of Morris 1983, where . In the model, each is assumed to follow where is fixed to . Then, is assumed to follow , where is given a flat prior and an Inverse Gamma , with and . Here the Inverse Gamma distribution has pdf . The Gibbs updates are as follows:
The initial values of the Gibbs sampler can be taken as for all [Rosenthal 2000]. We couple this Gibbs sampler using maximal couplings of the conditional updates. The parameter space is -dimensional, but the chains meet as soon as the components meet, by construction. We consider the test function , that is, we are interested in the posterior expectation of , which represents the mean of the batting average of the first player.
Since the efficiency of the underlying MCMC kernel is retrieved with , , for an associated cost comparable to steps of MCMC, we see that we can perform in parallel what would be equivalent to MCMC runs of iterations. This is considerably less than the recommended burn-in of derived in Rosenthal 1996, which is a strong indication that this recommended burn-in is conservative.
We plot histograms of , and in Figures 9a, 9b and 9c, obtained for estimators with and . The overlaid red curves indicate the marginal target densities estimated from an MCMC run with iterations and a burn-in of (which is unnecessarily conservative). These histograms confirm that accurate approximations of the posterior distribution are obtained with the proposed method.
Appendix D Pólya-Gamma Gibbs sampler for logistic regression
Next, we turn to a more modern MCMC setting and demonstrate that the proposed estimators can be constructed from the Pólya-Gamma Gibbs (PGG) sampler [Polson et al. 2013].
Under the extended target distribution the variables are independent of each other given , and have the property that follows PG for all . The PGG sampler is a Gibbs sampler which alternates between the following updates:
which enables a fast implementation of the maximal coupling algorithm described in Algorithm 2 of the main document.
We apply the proposed method to the German credit data of [Lichman 2013], a common example in binary regression and machine learning studies such as Polson et al. 2013, Huang et al. 2007, West 2000. This dataset consists of loan application records, 700 of which were rated as creditworthy and 300 were rated as not creditworthy. Each record includes 20 additional variables including loan purpose, demographic information, bank account balances, marital, housing, employment status, and job type. Seven of these are quantitative and the rest are categorical. After translating categorical variables into indicators we obtain regressors on observations. Histograms of the meeting times for coupled chains are shown in Figure 10a. These chains took between 18 and 164 steps to meet, with an average meeting time of 48 iterations.
The extended space of the Gibbs sampler is of dimension . However the two chains meet as soon as either all the auxiliary PG variables or all the regression coefficients meet. Since we use a maximal coupling of the update of the full vector of regression coefficients, either all or none of these meet at each iteration; MH-within-Gibbs strategies could be employed instead. As we show in Figure 10b, for one run of the coupled chains, the number of met PG variables rapidly increases to a plateau, at which point the chains are close enough to make coupling on the regression coefficients possible. Figure 10c shows the Euclidean distance between the PG variables of the two chains; it starts at zero as an artefact of the initial values of the PG variables being set to zero. Figure 10d shows the Euclidean distance between the regression coefficients. For this particular run, both PG variables and regression variables diverge at first, before converging as an increasing number of PG variables meet.
Finally, we consider the choice of for the estimator , and of for the estimator . We consider the task of estimating the posterior mean of a particular regression coefficient corresponding to the installment payment as a percentage of disposable income. The efficiency of , defined as one over the product of the variance times the cost, is shown in Figure 10e as a function of . We see that choosing a large quantile of the distribution of , as shown in Figure 10a, would result in an efficiency close to its maximum. We choose , and, in line with the heuristics suggested in the main document, we take to be , that is, a large multiple of . For the estimation of the posterior mean, we find that the above values of and yield an inefficiency about times greater to that of the underlying Gibbs sampler, based on a long run; larger values of and would further reduce this inefficiency ratio.
With these tuning parameters, we produce a histogram of the posterior distribution for that coefficient in Figure 10f. We find agreement with a density estimated from a long MCMC run, depicted here by the overlaid curve in red. To summarize, in this example the proposed methodology effectively allows to run PGG chains in parallel, in chunks of approximately iterations, while bypassing the usual difficulties related to the choice of burn-in and the construction of confidence intervals.
Appendix E Bayesian Lasso
We consider the setting of Bayesian inference in regression models. The Bayesian Lasso [Park and Casella 2008] assigns a hierarchical prior on the parameters of a linear regression in such a way that the posterior mode corresponds to the Lasso estimator [Tibshirani 1996, Efron et al. 2004]. The posterior distribution can be approximated by Gibbs sampling, independently for a range of regularization parameters , which can then be selected by cross-validation or as described in Park and Casella 2008; see also an alternative computational approach in Bornn et al. 2010. On top of demonstrating the applicability of the proposed methodology in this setting, we illustrate the use of confidence intervals to guide the allocation of computational resources.
For a range of values of between and , we run coupled chains until they meet, and plot the empirical average of the meeting times as a function of in Figure 11a. First, we note that the average meeting times are very small for small values of . Next we observe a peak located around , which implies a similar peak for the computational cost of the proposed estimators. This could be either a consequence of the mixing properties of the underlying MCMC, or a defect of the coupling strategy. To investigate this, we run the underlying Gibbs sampler for the same values of , for iterations, discard the first iterations, and compute the effective sample size using the CODA package [Plummer et al. 2006]. We do so for each of the components of , and plot the results in Figure 11b; each dot corresponds to the ESS of one of the components, for a particular value of . The effective sample size is divided by the number of iterations post burn-in, and thus we expect a number between and . We see a drastic loss of efficiency around , indicating that the Gibbs sampler of Park and Casella 2008 mixes poorly for these values of .
In order to refine the posterior mean estimates, we can allocate computational resources based on the confidence intervals and the costs associated with each (there are values of in total). In order to tighten the most visible confidence intervals, we produce more estimators for the smallest values of , and obtain the refined estimates shown in Figure 12b. That is, these estimates are obtained from unbiased estimators for the smallest values of , and for for the other values of . This refinement procedure could be automatized, adaptively producing more estimators for values of where confidence intervals are wider.