On the efficiency of pseudo-marginal random walk Metropolis algorithms
Chris Sherlock, Alexandre H. Thiery, Gareth O. Roberts, Jeffrey S. Rosenthal
Introduction
Markov chain Monte Carlo (MCMC) algorithms have proved particularly successful in statistics for investigating posterior distributions in Bayesian analysis of complex models; see, for example, RobSmi93 , Tierney1994 , MCMChandbook . Almost all MCMC methods are based on the Metropolis–Hastings (MH) algorithm which owes much of its success to its tremendous flexibility. However, in order to use the classical MH algorithm, it must be possible to evaluate the target density up to a fixed constant of proportionality. While this is often possible, it is increasingly common for exact pointwise likelihood evaluation to be prohibitively expensive, perhaps due to the sheer size of the data set being analysed. In these situations, classical MH is rendered inapplicable.
The pseudo-marginal Metropolis–Hastings algorithm (PsMMH) beau03 , AndrieuRoberts2009 provides a general recipe for circumventing the need for target density evaluation. Instead it is required only to be able to unbiasedly estimate this density. The target densities in the numerator and denominator of the MH accept/reject ratio are then replaced by their unbiased estimates. Remarkably, this yields an algorithm which still has the target as its invariant distribution. One possible choice of algorithm, the pseudo-marginal random walk Metropolis (PsMRWM), is popular in practice (e.g., GolightlyWilkinson2011 , KnapedeValpine2012 ) because it requires no further information about the target, such as the local gradient or Hessian, which are generally more computationally expensive to approximate than the target itself Poyiadjisetal2011 .
Broadly speaking, the mixing rate of any PsMMH algorithm decreases as the dispersion in the estimation of the target density increases AndrieuRoberts2009 . In particular, if the target density happens to be substantially over-estimated, then the chain will be overly reluctant to move from that state leading to a long run of successive rejections (a sticky patch). Now, in PsMMH algorithms, the target estimate is usually computed using an average of some number, , of approximations; see Sections 1.1 and 3. This leads to a trade off, with increasing leading to better mixing of the chain, but also to larger computational expense. We shall consider the problem of optimising .
It is well known (e.g., RobertsRosenthal2001 , SherlockFearnheadRoberts2010 ) that the efficiency of the random-walk Metropolis (RWM) algorithm varies enormously with the scale of the proposed jumps. Small proposed jumps lead to high acceptance rates but little movement across the state space, whereas large proposed jumps lead to low acceptance rates and again to inefficient exploration of the state space. The problem of choosing the optimal scale of the RWM proposal has been tackled for various shapes of target (e.g., RobertsGelmanGilks1997 , RobertsRosenthal2001 , BedardA2007 , BedardRosenthal2008 , BeskosRobertsStuart2009 , SherlockRoberts2009 , Sherlock2013 , BreRob00 ) and has led to the following rule of thumb: choose the scale so that the acceptance rate is approximately . Although nearly all of the theoretical results are based upon limiting arguments in high dimension, the rule of thumb appears to be applicable even in relatively low dimensions (e.g., SherlockFearnheadRoberts2010 ).
This article focusses on the efficiency of the PsMRWM as the dimension of the target density diverges to infinity. For relatively general forms of the target distribution, under the assumption of additive independent noise in the log-target, we obtain (Theorem 1) expressions for the limiting expected squared jump distance (ESJD) and asymptotic acceptance rate. ESJD is now well established as a pragmatic and useful measure of mixing for MCMC algorithms in many contexts (see, e.g., PasGel10 ), and is particularly relevant when diffusion limits can be established; see, for example, the discussion in RobRos12 . We then prove a diffusion limit for a rescaling of the first component, in the case of a target with independent and identically distributed components (Theorem 2), the efficiency of the algorithm is then given by the speed of this limiting diffusion, which is equivalent to the limiting ESJD. We examine the relationship between efficiency, scaling, and the distributional form of the noise, and consider the joint optimisation of the efficiency of the PsMRWM algorithm (taking computational time into account) with respect to , and the RWM scale parameter. Exact analytical results are obtained (Corollary 1) under an assumption of Gaussian noise in the estimate of the log-target, with a variance that is inversely proportional to . In this case, we prove that the optimal noise variance is 3.283, and the corresponding optimal asymptotic acceptance rate is 7.001%, thus extending the previous 23.4% result of RobertsGelmanGilks1997 . Finally, we illustrate the use of these theoretical results in a simulation study (Section 4).
The PsMMH algorithm creates a Markov chain with a stationary density (since ) of
We are thus able to substitute the estimated density for the true density, and still obtain the desired stationary distribution for . Note that for symmetric proposals, this simplifies to .
Different strategies exist for producing unbiased estimators, for instance, using importance sampling or latent variable representations, as in MR2523903 , or using particle filters DelMoral2004 , GordonSalmondSmith1993 as in AndrieuDoucetHolenstein2010 . We shall illustrate our theory in the context of Bayesian analysis of a partially observed Markov jump process.
2 Previous related literature
Other theoretical properties of pseudo-marginal algorithms are considered in AndrieuVihola2014 , which gives qualitative (geometric and polynomial ergodicity) results for the method and some results concerning the loss in efficiency caused by having to estimate the target density.
3 Notation
In this paper, we follow the standard convention whereby capital letters denote random variables, and lower case letters denote their actual values. Bold characters are used to denote vectors or matrices.
Studying the pseudo marginal random walk Metropolis in high dimensions
We focus on the case where the proposal, , for an update to is assumed to arise from a random walk Metropolis algorithm with an isotropic Gaussian proposal
and is the identity matrix, and is the scaling parameter for the proposal. The results presented in this article extend easily to a more general correlation matrix by simply considering the linear co-ordinate transformation which maps this correlation matrix to the identity matrix and examining the target in this transformed space. In proving the limiting results we consider a sequence of -dimensional target probabilities . In dimension the proposal is .
2 Noise in the estimate of the log-target
We will work throughout with the log-density of the target, and it will be convenient to consider the difference between the estimated log-target [] and the true log-target [] at both the proposed values () and the current values (), as well as the difference between these two differences,
Throughout this article we assume the following.
The Markov chain is stationary, and the distribution of the additive noise in the estimated log-target at the proposal, , is independent of the proposal itself, .
It is unrealistic to believe that the second part of Assumption 1 should hold in practice. Pragmatically, this assumption is necessary in order to make progress with the theory presented herein; however, in our simulation study in Section 4 we provide evidence that, in the scenarios considered, the variation in the noise distribution is relatively small.
This is Lemma of Pittetal2012 . Under Assumption 1, and are therefore independent, and the stationary density of is .
3 High-dimensional target distribution
We describe in this section conditions on the sequence of target densities that ensure that the quantity behaves asymptotically as a Gaussian distribution under an appropriate choice of jump scaling . The main assumption is that there exist sequences of scalings and for the gradient and the Laplacian of the log-likelihood such that the following two limits hold in probability:
for . In the rest of this article we assume that the sequence of densities is such that for each index , with all components of fixed except the th, the th component satisfies
Under this regularity condition, an integration by parts shows that
Equation (5) thus yields . We will suppose from now on, without loss of generality, that . We also require that no single component of the local Hessian dominate the others in the sense that the limit
holds in probability. We also assume that the Hessian matrix is sufficiently regular so that for any and
These conditions are discussed in detail in Sherlock2013 where they are shown to hold, for example, when the target is the joint distribution of successive elements of a class of finite-order multivariate Markov processes. The targets considered in RobertsGelmanGilks1997 , RobertsRosenthal2001 and Section 2.5 all satisfy the conditions with . We record the conditions formally as:
The sequence of densities satisfies equations (5), (7), (LABEL:eqn.hessian.regularity), and the regularity condition (6).
We shall show in next section that under these assumptions the choice of jump size
4 Expected squared jump distance
Clearly, (10) is satisfied when (i.e., Euclidian ESJD).
with as in (3), where is the cumulative distribution of a standard Gaussian distribution.
Expected squared jump distance. A rescaled expected squared jump distance converges as to a related limit,
For these two examples, as might be expected, for any given scaling of the random walk proposal, the efficiency relative to the idealised algorithm decreases as the standard deviation of the noise increases, a phenomenon that is investigated more generally in AndrieuVihola2014 . Thus there is an implicit cost of having to estimate the target density. As a result of this, we should not expect the optimal acceptance probability for RWM of to hold here.
5 Diffusion limit
We next prove that PsMRWM in high dimensions can be well-approximated by an appropriate diffusion limit (obtained as ). This provides further justification for measuring efficiency by the ESJD, as discussed in detail in RobRos12 . Briefly, the limiting ESJD (suitably scaled) is equal to the square of the limiting process’s diffusion coefficient, say. By a simple time change argument, the asymptotic variance of any Monte Carlo estimate of interest is inversely proportional to . Minimising variance is thus equivalent to maximising ; that is, becomes (at least in the limit) unambiguously the right quantity to optimise. By constrast, MCMC algorithms which have nondiffusion limits can behave in very different ways, and ESJD may not be an appropriate way to compare algorithms in such cases.
We shall consider in this section the PsMRWM algorithm applied to a sequence of simple i.i.d. target densities
where is a one-dimensional probability density. We assume throughout this section that the following regularity assumptions hold.
The first four moments of the distribution with density are finite. The log-likelihood mapping is smooth with second, third, and fourth derivatives globally bounded.
In the remainder of this article we consider the sequences of scaling functions , with
Let be a finite time horizon. For all let each Markov chain and the additive noise satisfy Assumption 1, let the sequence of product form densities satisfy the regularity Assumption 3 and set the scale of the jump proposals as in equation (15). Then, as ,
in the Skorokhod topology on , where satisfies the Langevin SDE
with initial distribution and a standard Brownian motion. The speed function is proportional to the asymptotic rescaled ESJD function ,
with the constant of proportionality defined by equation (14).
Optimising the PsMRWM
We next consider the question of optimising the PsMRWM. Now, when examining the efficiency of a standard RWM, the expected computation (CPU) time is usually not taken into account since it is implicitly assumed to be independent of the choice of tuning parameter(s). This may indeed be approximately true for the RWM. However, for the PsMRWM the expected CPU time for a single iteration of the algorithm is usually approximately inversely proportional to the variance of the estimator . For this reason, we measure the efficiency of the PsMRWM through a rescaled version of the ESJD,
Of course, for any increasing function , the quantity is a possible measure of efficiency. However, the discussion at the start of Section 2.5 indicates that (17) is the appropriate measure of efficiency in the high-dimensional asymptotic regime considered in this article.
In the remainder of this section, we implicitly assume that the target distributions satisfy Assumption 2.
We shall restrict attention to the case in which the additive noise follows a Gaussian distribution. More precisely, we shall assume the following, which we shall refer to for brevity as “the standard asymptotic regime” (SAR):
For each and , we have an unbiased estimator of , such that follows a Gaussian distribution with variance . Furthermore, the expected one-step computing time is inversely proportional to .
Intuitively, Assumption 4 are designed to model the situation where is estimated as a product of averages of i.i.d. samples in the limit as and with . For a fixed large , approximate normality follows from the central limit theorem; moreover for some , and the computational time is proportional to and hence to . Assumption 4 have recently been shown to hold more generally, in the context of particle filtering for a hidden Markov model; see berard2013lognormal . There are other natural situations where multiplicative forms for the importance sampling estimator of the likelihood might make the estimator well-approximated as a log-Gaussian, for example, in correcting for a PAC likelihood approximation; see LiSte03 .
Under the SAR of Assumption 4, we will prove an optimality result in Section 3.2 which specifies a particular optimal variance for the estimate of the log-target.
2 Optimisation under the standard asymptotic regime
In this section we consider a sequence of target distributions satisfying Assumption 2 and assume that each unbiased estimator satisfies the independence in Assumption 1. Under these assumptions, the rescaled ESJD of the PsMRWM algorithm with jump size (9) is described by Theorem 1. Under the SAR, that is, Assumption 4, and with , the noise difference is . Since the mean one-step computing time is assumed to be inversely proportional to the variance, , the asymptotic efficiency, as , is proportional to
The point at which the maximal efficiency is achieved is detailed precisely in Corollary 1 below.
at which point the corresponding asymptotic acceptance rate is
For convenience, write , and introduce three independent standard Gaussian random variables . Notice that and
(3) In practice, might be a function of a discrete number of samples or particles and hence only take a discrete set of values. In particular, if the variance in the noise using is already lower than , then there can be little gain in increasing .
Our theory applies in the limit when the dimension of the (marginal) target goes to infinity. However, using a similar argument to that in SherlockRoberts2009 , when , it can be shown that under the SAR with the proposal as in (2) the ESJD and acceptance rate are
In the simulation study of Section 4 below, we find that Corollary 1 and its associated formulae provide a good description of the optimal settings for a particle filter with and .
Simulation study
In practice the assumptions underlying this result may not hold: the dimension of the parameter space is finite, the distribution of the noise, , may not be Gaussian, and it is likely to also vary with position, . We conduct a simulation study to provide an indication of both the extent of and the effect of such deviations.
We use the Particle Marginal RWM algorithm (PMRWM) of AndrieuDoucetHolenstein2010 to perform exact inference for the Lotka–Volterra predator-prey model; see GolightlyWilkinson2011 for a more detailed description of the PMRWM which focusses on this particular class of applications. Starting from an initial value, which is, for simplicity, assumed known, the two-dimensional latent variable evolves according to a Markov jump process (MJP). Each component is observed at regular intervals with Gaussian error of an unknown variance. Appendix B provides details of the observation regime and of the transitions of the MJP and their associated rates. It also provides the parameter values, the priors and the lengths of the MCMC runs.
We perform three checks on our assumptions. The diagnostic runs provide a sample from the distribution of , the estimate of the log-target at a proposed value; this allows us to investigate the second part of Assumption 1 and both parts of Assumption 4. We first examine the SAR Assumption 4. Figure 4 shows QQplots for , and against a Gaussian distribution; it is clear that at the right-hand tail is slightly too light and the left-hand tail is much heavier than that of a Gaussian. Similar but much smaller discrepancies are present at , whilst at the noise distribution is almost indistinguishable from that of a Gaussian.
The left-hand panel in Figure 5 plots against and includes a line with the theoretical slope of and passing through an additional point at . The heavy left-hand tail at leads to a considerably higher variance than that which would arise under the SAR; however, even by the fit is reasonably close.
We assess the degree of dependence of the distribution of on the position by considering the joint distribution of and , the true log-target evaluated at , where is distributed according to the target. For a particular , all of the runs with provide a combined sample of size from the distribution of the estimate of the log-target at the current value, , whereas (after scaling so that ) each run with provides a sample of size from the distribution of at . Equation (4) shows that subject to Assumption 1, and are independent and that the density of is an exponentially tilted version of the density of . These two properties lead directly to the following.
The right-hand side of (20) is independent of the noise distribution, or equivalently of the number of particles, . Moreover, if the noise is small enough then the ratio on the left-hand side should provide a good estimator of the true moment generating function (MGF) of even if there is dependence (since the impact of any dependence will be small).
In our scenario, realisations of are typically between and with a mode at approximately , so the MGFs of and are dominated by the term , whatever the noise distribution. To be able to discern any differences we therefore consider for each value of , shifted estimators of the MGFs of and of
The central panel of Figure 5 shows with a separate curve for each value of ; the lowest curve is our best estimate of the true MGF of ( from ). The right-hand panel shows for each value of . Clearly the curves in the right-hand panel do not coincide, and so the assumption of independence does not hold precisely. However, it is clear from the very different vertical scales of the two figures that most of the difference between the distribution of for any given and the distribution of can be explained by Assumption 1.
Proofs of results
Equation (4) yields that has density satisfying
This fact will be used in the proofs of Theorem 1 and Proposition 1.
For notational convenience, we drop the index when the context is clear. As in Section 2.3, the Hessian matrix of the log-likelihood at is denoted by .
Proof of equation (11). The mean acceptance probability equals
Equation (LABEL:eqn.hessian.regularity) shows that the remainder converges to zero in probability.
Proof of equation (12). The proof of equation (12) follows from equation (11). Note that we have
2 Proof of Proposition 1
This quantity is clearly strictly negative, completing the proof of Proposition 1.
3 Proof of Proposition 2
4 Proof of Theorem 2
The proof follows ideas from BedardA2007 , which itself is an adaptation of the original paper RobertsGelmanGilks1997 . It is based on ethier1986markov , Theorem , Chapter , which gives conditions under which the finite dimensional distributions of a sequence of processes converge weakly to those of some Markov process. ethier1986markov , Corollary , Chapter , provides further conditions for this sequence of processes to be relatively compact in the appropriate topology and thus establish weak convergence of the stochastic processes themselves.
The situation is slightly more involved than the one presented in RobertsGelmanGilks1997 , BedardA2007 ; the proof needs a homogenisation argument since the processes and evolve on two different time scales. Indeed, it will become apparent from the proof that the process takes steps to mix while the process takes steps to mix. In order to exploit this time-scales separation, we introduce an intermediary time scale where is an exponent whose exact value is not important to the proof. The intuition is that after steps the process has mixed while each coordinate of has only moved by an infinitesimal quantity. We introduce the subsampled processes and defined by
One step of the process (resp., ) corresponds to steps of the process (resp., ). We then define an accelerated version of the subsampled first coordinate process . In order to prove a diffusion limit for the first coordinate of the process , one needs to accelerate time by a factor of ; consequently, in order to prove a diffusion limit for the process , one needs to accelerate time by a factor , and thus define by
The proof then consists of showing that the sequence converges weakly in the Skorohod topology towards the limiting diffusion (16) and verifying that converges to zero in probability; this is enough to prove that the sequence converges weakly in the Skorohod topology towards the limiting diffusion (16). The proof is divided into three main steps. First, we show that the finite dimensional marginals of the process converge to those of the limiting diffusion (16). Second, we establish that the sequence is weakly relatively compact. These two steps prove that the sequence converges weakly in the Skorohod topology towards the diffusion (16). As a final step, we prove that the quantity converges to zero in probability, establishing the weak convergence of the sequence towards the diffusion (16). Before embarking on the proof we define several quantities that will be needed in the sequel. We denote by the generator of the limiting diffusion . Similarly, we define and the approximate generators of the first coordinate process and its accelerated version ; for any smooth and compactly supported test function , vector and scalar , we have
with . Note that although is a scalar function, the functions and are defined on . In the sequel we sometimes write instead of .
In this section we prove that the finite dimensional distributions of the sequence of processes converge weakly to those of the diffusion (16). Since the limiting process is a scalar diffusion, the set of smooth and compactly supported functions is a core for the generator of the limiting diffusion (ethier1986markov , Theorem , Chapter ); in the sequel, one can thus work with test functions belonging to this core only. To prove the convergence of the finite dimensional marginals, one can apply ethier1986markov , Chapter , Theorem , Corollary , to the pair defined by
To establish that this result applies, we will concentrate on proving that for any smooth and compactly supported function the following limit holds:
Equation (24) follows from the telescoping expansion and the law of iterated conditional expectations. The following lemma is crucial:
Let Assumptions 1 and 3 be satisfied. There exist two bounded and continuous functions satisfying the following properties: {longlist}[(2)]
For any smooth and compactly supported function the averaged generator defined for any by
for an i.i.d. sequence marginally distributed as and constant defined by (14).
Let be a bounded measurable function. Suppose that for any the Markov chain is started at stationarity. The following limit holds:
with distributed according to the stationary distribution .
The above lemma thus shows that steps, with , are enough for the process to mix. The proof relies on a coupling argument and the ergodic theorem for Markov chains. Details can be found Appendix A.2. We now have all the tools in hands to prove equation (23). First, with the notation , the telescoping expansion (24) and Jensen’s conditional inequality yields
One can then use the triangle inequality to obtain the bound
To complete the proof of the convergence of the finite dimensional distributions of towards those of the limiting diffusion (16), it remains to prove that as for :
The formula for the quantity shows that the expectation also reads
Because the function is smooth with compact support, it follows(Cauchy–Schwarz) that this quantity is less than a constant multiple of
The process is started at stationarity and the space of smooth functions with compact support is an algebra that strongly separates points. Ethier and Kurtz (ethier1986markov , Chapter 4, Corollary 8.6) show that in order to prove that the sequence is relatively weakly compact in the Skorohod topology it suffices to verify that equations (8.33) and (8.34) of ethier1986markov , Chapter 4, hold.
To prove (8.33) one needs to show that the expectation of converges to zero as , where the process is defined in equation (LABEL:eq.xi.phi). Note that the supremum is less than
Let an i.i.d. sequence of standard Gaussian random variables . We have
Indeed, it suffices to prove that times the expectation of the supremum , with , converges to zero; this follows from Markov’s inequality and standard Gaussian computations.
This completes the proof of the relative weak compactness in the Skorohod topology. The sequence of processes is weakly compact in the Skorohod topology, and the finite dimensional distributions of converge to the finite dimensional distribution of the diffusion (16). Consequently, the sequence of processes converges weakly in the Skorohod space to the diffusion (16). The next section shows that the discrepancy between and is small and thus proves that the sequence of processes also converges to the diffusion (16).
Since is less than the supremum of equation (27), Lemma 3 yields that converges to zero in probability. This ends the proof of Theorem 2.
Discussion
We have examined the behaviour of the pseudo-marginal random walk Metropolis algorithm in the limit as the dimension of the target approaches infinity, under the assumption that the noise in the estimate of the log-target at a proposed new value, , is additive and independent of .
Subject to relatively general conditions on the target, limiting forms for the acceptance rate and for the efficiency, in terms of expected squared jump distance (ESJD), have been obtained. We examined two different noise distributions (Gaussian and Laplace), and found that the optimal scaling of the proposal is insensitive to the variance of the noise and to whether the noise has a Gaussian or a Laplace distribution.
We then examined the behaviour of the Markov chain on the target, , and the noise, obtaining a limiting diffusion for the first component of a target with independent and identically distributed components. The efficiency function in this case is proportional to the speed of the diffusion, thus further justifying the use of ESJD in this context.
We identified a “standard asymptotic regime” under which the additive noise is Gaussian with variance inversely proportional to the number of unbiased estimates that are used. In this regime the efficiency function is especially tractable, and we showed that it is maximised when the acceptance rate is approximately 7.0% and the variance of the Gaussian noise is approximately 3.3. We noted that in this regime the optimal noise variance is also insensitive to the choice of scaling.
A detailed simulation study on a Lotka–Volterra Markov jump process using a particle filter suggested that in the scenario considered the assumptions of the standard asymptotic regime are reasonable provided the number of particles is not too low. Furthermore, whilst the assumption that the distribution of the noise does not depend on the current position is not true, variations in the distribution have a small effect on the distribution of the estimates of the log-target compared with the effect of the noise itself. The optimal scaling was found to be insensitive to the noise variance (or equivalently the number of particles), and the optimal noise variance was relatively insensitive to the choice of scaling. The overall optimal scaling was consistent with the theoretical value obtained; however the optimal variance was a little lower than the theoretically optimal value. Investigations showed that this discrepancy can be explained by the differences between our theoretical measure of efficiency (ESJD) and empirical measures used in the simulation study (ESS).
The results from the simulation study suggest that in low dimension a safer option than tuning to a particular variance and acceptance rate might be to take advantage of the insensitivity of the optimal scaling to the variance and vice versa and optimise scaling and variance independently.
The diffusion limit provides strong support for the optimisation strategies suggested by the ESJD criterion. However, in an ideal world it would be good to show that the sequence of algorithms which achieves the minimal optimal integrated autocorrelation time for a given functional might converge to the optimal diffusion. This is a generic question which is relevant to all diffusion limits for MCMC algorithms, and there are still important open questions regarding the relationships between ESJD, diffusion limits, and limiting optimal integrated autocorrelation. In this direction, a recent paper RRcomplexity has shown that diffusion limits can be translated into complexity results, thus demonstrating that at least the order of magnitude of the number of iterations to “converge” can be read off from the diffusion limit.
Appendix A Proof of technical lemmas
and otherwise. We define . For any dimension the process is a Metropolis–Hastings Markov chain started at stationarity, that is, , targeting the distribution .
In this section, for notational convenience, we write instead of and instead of . We set
converges in to . By the Cauchy–Schwarz inequality, this reduces to proving that
By the Portmanteau’s theorem, the dominated convergence theorem, and the definition of , this reduces to proving that for almost every realisation of the i.i.d. sequence the following limit holds in distribution:
A.2 Proof of Lemma 2
For convenience, we first give a high-level description of the reasoning. We construct processes , , and satisfying the following:
With high probability for all .
The process has the same law as the process .
With high probability for all .
The process is a Markov chain that is ergodic with invariant distribution .
One can thus use an approximation of the type
and the usual ergodic theorem gives the conclusion. We use at several places the following elementary lemma.
Let with . Let and be two arrays of -valued random variables. Let be a sequence of random variables uniformly distributed on the interval . We suppose that for all dimension the random variable is independent from and . Consider the event
and otherwise. We define if
and otherwise. We define if
Under Assumption 3 the second and third derivatives of are bounded so that bound (30) follows from a second-order Taylor expansion,
and have same law. It is straightforward to verify that the processes and have the same law.
We now show that the Markov chain is a Markov chain that is reversible with respect to the distribution ,
which is indeed symmetric. Note that this Markov chain corresponds to the penalty method of ceperley1999penalty ; see also nicholls2012coupled for a discussion of this algorithm. The ergodic theorem for Markov chains applies; for any bounded and measurable function we have
One can thus use the triangle inequality several times to see that for any bounded and measurable function , we have
Appendix B Details of the Lotka Volterra model
the rate for any other transition is zero. Observations of the Markov chain, when they occur, are subject to Gaussian error,
Using , a realisation of the stochastic process was simulated from initial value for time units. The state, perturbed with Gaussian noise, , was recorded at . For inference, were assumed to be independent, a priori with , ().
The initial value for each chain was a vector of estimates of the posterior median for each parameter, obtained from the initial run; hence no “burn-in” was required. Each algorithm was run for iterations, except with and , where iterations were used. Output was thinned by a factor of for storage.
Acknowledgements
We are grateful to the Associate Editor and three referees for their comments, which helped improve both the presentation and the content of this article. Gareth Roberts and Jeffrey Rosenthal are grateful for financial support in carrying out this research from, respectively, EPSRC of the UK, through the CRiSM (EP/D002060/1) and iLike (EP/K014463/1) projects, and NSERC of Canada.