---
title: "The pseudo-marginal approach for efficient Monte Carlo"
description: "Andrieu and Roberts show how Monte Carlo estimates can replace intractable integrals while preserving the target of a Markov chain sampler."
canonical: "https://research.elamur.ai/free/en/papers/andrieu-2009-pseudo-marginal-approach-efficient-monte/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/andrieu-2009-pseudo-marginal-approach-efficient-monte/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2009](https://md.research.elamur.ai/free/en/papers/2009/) / The pseudo-marginal approach for efficient Monte Carlo computations

# The pseudo-marginal approach for efficient Monte Carlo computations

Paper · 2009 · Christophe Andrieu and Gareth O. Roberts

**Authors:** Christophe Andrieu and Gareth O. Roberts · **Year:** 2009 · **Venue:** The Annals of Statistics · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

Cited by **9** papers in our library of more than 163,000 papers whose bibliographies we read · The Annals of Statistics · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/0903.5480)
- [DOI 10.1214/07-aos574](https://doi.org/10.1214/07-aos574)
- [arXiv 0903.5480](https://arxiv.org/abs/0903.5480)

## Summary

A Bayesian analysis can ask a simple question whose answer requires a difficult integral. To compare candidate explanations for a set of observations, for example, one may need to average over the unknown coefficients within each candidate before comparing their probabilities. A Markov chain can instead sample the candidate and its coefficients together, but the coefficients that fit one candidate may leave it poorly placed to jump to another. Christophe Andrieu and Gareth O. Roberts study a way to make the comparison using random estimates of the integrals. Their starting point is Beaumont’s grouped independence Metropolis–Hastings algorithm, and their main result explains how to preserve the desired distribution while substituting estimates for quantities that are too costly or difficult to calculate directly.

The important choice is what happens to an estimate after a proposal is rejected. In the exact pseudo-marginal construction, the current parameter and the random variables used to estimate its probability remain together. A new proposal brings its own estimate. If the proposal is accepted, both parts of the state change. The resulting sampler is an ordinary Metropolis–Hastings algorithm on a larger space. Each auxiliary draw is weighted by a non-negative estimate whose average gives the required marginal density, so integrating the auxiliary variables out of the enlarged target recovers the original distribution. A closely related procedure, Monte Carlo within Metropolis, redraws the current estimate at each attempt. Its stationary distribution generally differs from the intended one.

The authors distinguish having the right stationary distribution from getting close to it in a reasonable number of iterations. Under suitable support, convergence, and estimator concentration assumptions, the exact sampler can approach the behavior of an ideal sampler that evaluates the marginal density directly. The quality of the estimates matters even when that density is preserved exactly. An unusually large current estimate can survive many proposals because it sits in the denominator of every acceptance ratio until the sampler moves. The paper gives conditions under which such behavior rules out geometric convergence, as well as conditions under which a uniform convergence guarantee holds.

The numerical examples examine jumps between statistical models of different dimensions. In a toy problem with known probabilities, the standard reversible-jump setting produced an empirical acceptance probability of 0.0121. Using a sequence of auxiliary draws gave 0.5206 and 0.5056 in runs designed to take comparable computational effort. In a synthetic logistic variable-selection problem, runs using larger auxiliary samples agreed on the posterior probabilities of the candidate models, while the smaller settings gave a different picture. The baseline’s inclusion-probability traces could look settled even when its estimates of the probabilities of whole models remained unreliable.

## Deep dive: The pseudo-marginal approach for efficient Monte Carlo computations

Andrieu and Roberts show how Monte Carlo estimates can replace intractable integrals while preserving the target of a Markov chain sampler. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Integrating out what the analysis does not need

The paper starts with a probability distribution over two kinds of variables. The first, denoted by θ, represents what the analysis wants to learn about. The second, denoted by z, represents quantities that can be useful in setting up the calculation. In a Bayesian problem, θ might be a parameter or an indicator of which candidate explains the observations. The auxiliary part can contain missing observations, latent variables, or coefficients whose dimension depends on the candidate. The authors place this setup in a setting broad enough to include hidden-state problems, mixtures, and Bayesian model choice.

Knowing the joint density can be much easier than evaluating the marginal density. A joint density assigns a value to a specified pair of θ and z. The marginal density at θ aggregates those values over all possible z. An acceptance decision in a sampler may require the marginal density at its current state and at a proposed alternative. A complicated integral then becomes an obstacle at every iteration, even when the joint density is straightforward to evaluate at any particular pair.

There is another reason to introduce an auxiliary variable. The variable can make the numerical problem easier even when it has little intrinsic scientific interest. It can lead to a simple conditional update or supply a way to explore regions difficult to describe in the marginal space alone. The paper treats auxiliary simulation as a design choice available to the analyst. The same target for θ can often be represented by several different joint sampling procedures, and those procedures can produce very different sequences of θ values.

#### What joint sampling gains and what it can cost

A familiar way to use the joint distribution is data augmentation. A chain updates θ given its current z, then updates z given the new θ, or uses transitions that preserve the relevant conditional distributions. Under the usual convergence conditions, the chain supplies draws from the joint target. The θ component gives the required marginal information. This division can make the individual updates simple to describe and implement.

The authors point to earlier analyses of Gibbs sampling and augmentation for a familiar drawback. The resulting draws can be strongly positively correlated. If the current z makes only a narrow range of θ values plausible, and the current θ in turn makes only a narrow range of z values plausible, each update can be reasonable in isolation while the chain moves slowly through the joint distribution. For an estimate based on averaging draws from the chain, a long series of similar states can provide relatively little new information.

A proposal made directly for θ would allow a comparison that already accounts for all the possible values of z on either side. This motivates the authors’ ideal marginal algorithm. It is a Metropolis–Hastings chain with a proposal on θ and an acceptance probability computed from the marginal density. The ideal chain provides a reference for two questions. The first is whether an implementable algorithm can preserve the same distribution of θ. The second is whether it can also inherit some of the ideal chain’s behavior over time.

The distinction is particularly visible when θ labels candidates with different numbers of coefficients. A joint move from a smaller candidate to a larger one has to propose the extra coefficient. The proposed value has to work with the coefficients that are carried over. A marginal move can assess the larger candidate by averaging over its coefficient distribution. The difficulty is that the marginal probabilities needed for that comparison are precisely the quantities that are hard to obtain. The appeal of simulating the integral is that it brings this form of comparison within reach while letting the analyst use the joint density.

#### How earlier Monte Carlo substitutions differed

Importance sampling provides a natural way to estimate the integral. It draws auxiliary values from a distribution the analyst can simulate and corrects each contribution for the probability with which that distribution generated it. The paper discusses two existing ways of feeding such estimates into a Metropolis decision. In Monte Carlo within Metropolis, abbreviated MCWM, the algorithm draws fresh auxiliary variables at both the current and proposed θ on each attempt. The chain on θ has a well-defined transition rule obtained by averaging over those draws. Its acceptance probability, averaged over the estimates, generally differs from the one computed with the actual marginal density.

Beaumont’s grouped independence Metropolis–Hastings procedure, abbreviated GIMH, draws a fresh group of auxiliary variables for the proposal and retains the current group until a proposal is accepted. When the proposal fails, the group associated with the current θ continues to affect the next decision. The present θ alone therefore generally lacks information needed to predict the next step. The pair containing θ and its current group is the Markov state.

Reusing an estimate might initially look like a way of saving computation. The difference the authors pursue is more fundamental. Under GIMH, the auxiliary variables observed at a current state have already passed through the acceptance mechanism. Their conditional distribution is tilted towards groups with higher estimates. Under MCWM, the freshly drawn current auxiliaries follow their proposal law. The two procedures can use the same estimator and the same apparent ratio while implementing different transition rules. This observation gives the paper a way to unify exact methods and to ask which properties of the ideal marginal chain can carry over to each form of approximation.

### The method, step by step

#### From a difficult integral to a state the chain can keep

Imagine proposing a different value of θ. The ideal sampler weighs the proposed value against the current one, correcting for any difference between the probabilities of proposing the forward and reverse moves. If the marginal density is hard to calculate, the proposed value can bring a Monte Carlo estimate in its place. The same estimate stored with the current state supplies the other side of the comparison. A successful proposal brings its estimate into the chain. A failed proposal leaves the current estimate available for the next attempt.

The estimator comes from simulation at a specified θ. In the simplest case, the sampler draws a group of independent auxiliary values. It evaluates the joint density at each value and divides by the density used to generate that value. The average estimates the marginal density. A common global normalizing constant is immaterial to the Metropolis comparison as long as it is shared by current and proposed estimates. The key property is the mean of the non-negative estimator over the auxiliary proposal law.

One iteration of the exact pseudo-marginal sampler The steps in order.

This update contains two distinct uses of simulation. The outer chain proposes values of θ and determines which ones become states. The inner simulation builds an estimate at a given proposal. Its samples can be independent, but the authors also allow several forms of dependence. The resulting group is treated as one auxiliary draw for the purposes of the outer chain. The length and construction of that group change the estimator and the cost of a proposal.

#### The marginal target and its estimator

The paper first gives a density-based form of the importance estimator. It makes the relationship between sampling and integration explicit.

```
π̃ᴺ(θ; Z) = (1/N) ∑ₖ₌₁ᴺ π(θ, z⁽ᵏ⁾) / qθ(z⁽ᵏ⁾)
```

Here π̃ᴺ is the random marginal-density estimate, θ is the parameter at which it is evaluated, and Z contains the auxiliary values z⁽ᵏ⁾. The index k labels a draw, N is the number of draws, π(θ, z⁽ᵏ⁾) is the joint density at the pair, and qθ is the auxiliary proposal density at θ. The sum averages the contributions across the group. In this version, each auxiliary value is drawn independently from qθ.

The denominator in each summand corrects the use of the proposal in place of the target. Regions qθ visits often supply many terms, with each term adjusted for that frequency. Where qθ is positive over the relevant support, integrating the contribution against the proposal cancels qθ and leaves the integral of the joint density. High variance is compatible with this identity. The mean concerns many possible auxiliary groups, whereas an update of the outer chain sees a single realized group.

For the general construction, let Qθᴺ be the law of the whole auxiliary group. The law can depend on θ, and the coordinates of the group can depend on one another. The authors specify, for each coordinate, a subvector containing some of the other coordinates. They compare the target conditional distribution for that coordinate with its proposal distribution conditional on the subvector. This is what lets the weight reflect a sequential proposal or a conditional simulator.

```
γᴺ(θ, Z) = ∑ₖ₌₁ᴺ wₖᴺ dπθ / dQθᴺ(· | Zₖᴺ)
```

Here γᴺ is the relative importance weight of the group Z at θ. The coefficient wₖᴺ is the non-negative weight assigned to coordinate k, and these coefficients sum to 1. The distribution πθ is the target conditional law of z at θ. The expression Qθᴺ(· | Zₖᴺ) is the proposal conditional law of coordinate k given the selected subvector Zₖᴺ. The derivative in square brackets is the Radon–Nikodym derivative, the measure-theoretic counterpart of a density ratio, evaluated at z⁽ᵏ⁾. The dot marks the argument of that conditional law.

Assumption (A1) says that the target conditional is absolutely continuous with respect to the corresponding proposal conditional. In terms of support, a set that the proposal conditional gives zero probability must also have zero probability under the target conditional. This is what allows the derivative to represent the target across the space it needs to cover. Conditional on the selected subvector, the importance derivative integrates to 1. Averaging over the subvector and then taking the weighted combination therefore gives a mean of 1 for γᴺ under Qθᴺ.

```
π̃ᴺ(θ; Z) = π(θ) γᴺ(θ, Z)
```

In this density form, π̃ᴺ(θ; Z) is the pseudo-marginal density value, π(θ) is the true marginal density at θ, and γᴺ(θ, Z) is the relative importance weight. This identity describes how the estimator differs from the quantity it estimates. In an implementation based on the joint density, the product is available even when its factors cannot be evaluated separately. The ratio analysis uses the separate factors to study the algorithm’s behavior.

#### The target on the enlarged space

The exactness argument begins by treating the auxiliary group as part of a state. Imagine drawing θ from its intended target, generating Z from Qθᴺ, and multiplying the resulting joint probability by the group’s importance weight. This defines the distribution that the exact pseudo-marginal chain is designed to preserve.

```
π̃ᴺ(dθ, dZ) = π(dθ) Qθᴺ(dZ) γᴺ(θ, Z)
```

The left-hand side is the enlarged target law. The first factor on the right, π(dθ), is the desired marginal probability measure for θ. The next factor, Qθᴺ(dZ), is the auxiliary group’s proposal law conditional on θ. The last factor is its non-negative weight. The differentials dθ and dZ indicate which variables the measure integrates over. Since the weight has mean 1 for every θ, integrating out Z leaves π(dθ).

At a fixed θ, there are now two auxiliary laws to keep apart. One describes how the next proposal is generated. The other describes the auxiliary part of the current state when the chain is stationary. Their relationship is explicit.

```
π̃θᴺ(dZ) = Qθᴺ(dZ) γᴺ(θ, Z)
```

Here π̃θᴺ is the conditional law of the auxiliary group given θ under the enlarged target. The proposal Qθᴺ is weighted by γᴺ at the particular group Z. A group with a large weight receives more mass under this conditional target than it has under its proposal. This change of measure accounts both for the marginal identity and for the fact that the auxiliary groups encountered in a running chain are selected by previous decisions.

For a fixed auxiliary realization, the paper also calls the measure formed by weighting π(dθ) by γᴺ the pseudo-marginal. The word refers to the random quantity used in the comparison. It is helpful to distinguish that quantity from the actual θ marginal of the joint target. Recovering the latter is a property of the joint law after integration. It does not require any particular realization of the pseudo-marginal to give a close numerical approximation.

#### The acceptance decision

For the ideal sampler, the acceptance ratio compares the probability of proposing the reverse move under the target with the probability of proposing the forward move. In density notation this is the familiar ratio used in Metropolis–Hastings.

```
r(θ, ϑ) = [π(ϑ) q(ϑ, θ)] / [π(θ) q(θ, ϑ)]
```

In this expression θ is current, ϑ is proposed, π is the marginal target density, and q is the proposal density with respect to the destination variable. Thus q(θ, ϑ) gives the forward proposal density and q(ϑ, θ) gives its reverse. The ratio r is converted to an acceptance probability by taking the smaller of 1 and r. The paper states the general version as a ratio of forward and reverse measures on a common support, with proposed moves that lack reverse support rejected where the forward measure gives them positive mass.

In the enlarged space, the proposal first draws ϑ using Q(θ, dϑ) and then draws a group for ϑ from the proposal law at that value. Call that group W to distinguish it from the current group Z. The reverse proposal would instead generate Z from Qθᴺ. When the enlarged-target densities and the proposal densities are assembled into the Metropolis ratio, both auxiliary proposal factors cancel.

```
r̃ᴺ(θ, Z; ϑ, W) = r(θ, ϑ) γᴺ(ϑ, W) / γᴺ(θ, Z)
```

Here r̃ᴺ is the ratio for moving from the current pair (θ, Z) to the proposed pair (ϑ, W). The factor r is the ideal marginal ratio. The weights in the numerator and denominator are evaluated at the proposed and current pairs respectively. This formula describes the ratio on its common positive support. The current group can be initialized with positive weight, and groups with weight zero have no mass in the enlarged target.

The random multiplier enters before the ratio is capped at 1. As a result, an estimate that is unbiased for a density does not imply an unbiased estimate of the acceptance probability. Two features intervene. Taking a ratio is nonlinear, and capping the ratio changes it further. The proof of exactness instead uses the full Metropolis–Hastings update on the enlarged target. A rejection must preserve the entire starting pair for that argument to apply.

For MCWM, the same ratio is computed from fresh auxiliary groups at both θ and ϑ. Conditional on the current θ, the acceptance probability is therefore an average over Qθᴺ and Qϑᴺ, with the minimum taken before averaging. The Markov transition on θ consists of the proposal multiplied by this averaged acceptance, plus a point mass for a rejection. Fresh randomness at the current θ makes this averaging possible without tracking the previous state of the inner simulation. It also removes the conditional weighting that appears in the exact construction.

#### Designing the auxiliary simulation

The authors give several choices for Qθᴺ and the conditional distributions that enter the weight. Classical importance sampling uses an independently generated group and equal coefficients in the average. This recovers Beaumont’s GIMH when combined with the retained-state update. An attraction of this choice is that the proposal law is easy to describe and the mixture of contributions in the enlarged target is easy to interpret. Its effectiveness depends on where the individual proposal draws land and how variable their weights are.

Sequential sampling uses the earlier coordinates as the conditioning subvector. A draw can then depend on where the previous draws landed. The proposal for the next coordinate is available as a conditional law even if the distribution of that coordinate after averaging over earlier stages is hard to evaluate. This opens the possibility of using a better local proposal as the sequence progresses. The paper also discusses sequential draws from a Gibbs sampler and suggests that later coordinates may receive more weight when early draws are affected by initialization.

A third construction conditions a coordinate on all the others. This is useful in the situation the authors describe where the marginal distributions of the auxiliary proposal are hard to calculate but appear close to the desired conditional law. The weight can use the proposal’s full conditionals. That provides a second way to work with dependent draws while preserving the conditional importance-sampling argument under its support assumption.

The enlarged target also allows a distinction between the target itself and a particular update that preserves it. The paper analyzes a proposal that changes θ and generates a fresh group at the proposed value. It observes that one can also design updates of Z at a fixed θ, provided they preserve the correct conditional target. This is a different operation from automatically discarding the current estimate and drawing an unweighted group at each iteration. In one case, the update must leave the weighted conditional law intact. In the other, the algorithm deliberately uses the unweighted proposal law and has the MCWM transition.

#### How the paper compares convergence

The theoretical comparison puts an ideal reference chain and the implementable chain on the same enlarged space. The reference uses the ideal marginal acceptance probability. When it makes a move, it draws the proposed auxiliary group from π̃ϑᴺ, the weighted conditional under the enlarged target. The θ coordinate therefore follows the original ideal algorithm. Both chains preserve the same joint target, but the reference relies on the exact marginal comparison and on a different way of obtaining the auxiliary group. The authors also introduce an intermediate transition for the proof. It uses the ideal acceptance rule with the implementable auxiliary proposal. This separates the change in the acceptance rule from the change in the law used to generate the group.

Theorem 1 addresses ordinary convergence. Assuming (A1), the ideal chain must preserve π and be irreducible and aperiodic. Irreducibility means that sets of positive mass under an irreducibility measure can be reached, and aperiodicity rules out a fixed cycle governing returns. The theorem also requires a positive rejection probability at every enlarged state for the fixed N under study. Under those conditions, the exact pseudo-marginal chain converges in total variation to its enlarged target from almost every starting state under that target. The proof compares the regions that the reference chain can reach with those accessible to the implementable chain. It establishes accessibility and eventual convergence without furnishing a rate.

To compare behavior on a finite horizon, the authors measure the noise relative to the correct marginal density on a logarithmic scale.

```
λᴺ(θ, Z) = |log γᴺ(θ, Z)|
```

The symbol λᴺ is the magnitude of the log-weight error at the pair (θ, Z). The function log is the natural logarithm and the vertical bars take its absolute value. At γᴺ equal to zero, the paper sets λᴺ to positive infinity by convention. The log scale makes the errors additive when the factor for the proposed state is divided by the factor for the current state.

Theorem 6 uses two additional assumptions. Under (A2), the ideal chain converges in total variation from each starting θ. Under (A3), the log-weight error converges to zero in probability under its proposal law at each fixed θ as N grows. The latter condition means that the probability of exceeding any positive error tolerance tends to zero. The statement is pointwise in θ. A value of N sufficient at one θ need not give equally good estimates everywhere.

The proof organizes the comparison around where the estimates concentrate and where the outer proposal is likely to land.

```
T(ε, N) = {θ ∈ Θ : Qθᴺ(λᴺ(θ, Z) > ε) ≤ ε}
```

Here T is the set of parameters with a small proposal probability of a large log-weight error. The positive number ε is both the threshold for the error and the upper bound on its exceedance probability. The parameter space is Θ, N indexes the auxiliary construction, and the probability under Qθᴺ is over Z. The authors then define S as the set of current parameters from which the outer proposal lands in T with probability at least 1 − ε. Their intersection R contains states with both properties. As N grows, the paper shows that these sets have probability tending to 1 under any fixed probability law on Θ.

This organization matters because the current noise and proposed noise enter the transition in different ways. Knowing that a fresh draw at the current θ is likely to be accurate gives no direct information about the particular weight already in the denominator. Conversely, an accurate current weight cannot by itself control proposals going to places with erratic estimates. A one-step result handles a state with a good realized current weight whose proposal is likely to visit parameters with good estimates. A further result controls the difference after averaging over the weighted conditional law of the auxiliaries and a fixed law for θ. The mean-one identity is used to bound the probability of large errors under that weighted law, where high weights could otherwise change the analysis substantially.

The theorem starts its comparison at the time at which the ideal chain first meets a specified total variation tolerance from a fixed initial θ. It requires a sufficiently large N and a sufficiently accurate initial auxiliary weight. The paper states the resulting bound as follows.

```
‖P̃ᴺᵏ(θ₀, Z₀; ·) − π̃ᴺ‖ ≤ (1 + ℓ) ε + ρ(θ₀)ᵏ
```

Here P̃ᴺᵏ is the distribution after k steps of the exact pseudo-marginal chain from the starting pair (θ₀, Z₀), π̃ᴺ is its joint target, and the double bars denote total variation distance. The dot represents a variable destination in the distribution. The tolerance ε is the one used for the ideal chain, ℓ is an additional positive allowance, and ρ(θ₀) is the ideal rejection probability at the start. The bound is stated for k at least the ideal mixing time at that tolerance. The condition on the magnitude of the starting log-weight error is ℓε divided by 24 times that mixing time, with the entire product of 24 and the mixing time in the denominator.

The rejection term comes from the possibility that the reference chain has remained at its starting pair. An accepted move can supply an auxiliary group from the correct conditional law. A history consisting entirely of rejections leaves the initial group undisturbed. To compare the reference with the implementable chain over the relevant horizon, the proof replaces their transitions one step at a time and bounds the accumulated change. Corollary 7 applies the result to bounded functions of θ alone, the functions that matter when the auxiliary variables have no direct role in the inference.

#### When the tails of the weights control the rate

Theorem 8 studies a fixed N. Its first condition concerns the parameters at which weights of arbitrarily large size can occur with positive probability under the auxiliary proposal.

```
Uᴺ = {θ ∈ Θ : Qθᴺ(γᴺ(θ, Z) > M) > 0 for every M > 0}
```

The set Uᴺ consists of the values θ where the proposal distribution of γᴺ has no finite upper bound in this probabilistic sense. The dummy threshold M ranges over all positive values. The probability is taken over Z at the specified θ, with N fixed. If Uᴺ has positive probability under π, the exact chain cannot be geometrically ergodic under the theorem. Geometric ergodicity would give convergence at a geometric rate, allowing a prefactor that depends on the starting state.

The argument follows the denominator of the acceptance ratio. At a state whose weight is unusually large, the mean-one property of the proposed weight limits the average chance of making an accepted move. A bound used in the proof can be written as follows.

```
a(θ, Z) ≤ ∫Θ min{1, r(θ, ϑ) / γᴺ(θ, Z)} Q(θ, dϑ)
```

Here a(θ, Z) denotes the total probability of acceptance from the enlarged state, Q is the outer proposal kernel, and r is the ideal ratio for the pair θ and ϑ. The integral averages over proposed parameters ϑ in Θ. The current weight γᴺ(θ, Z) is held fixed. Averaging over the proposed group and using the concavity of the capped acceptance function gives the inequality. With arbitrarily large current weights on a set of positive marginal mass, states with arbitrarily small chances of moving have positive mass in the enlarged target.

The theorem’s other result uses a finite common bound on the weights and a minorization condition on the accepted part of the ideal transition. Write K for the ideal proposal multiplied by its acceptance probability. A power of K describes consecutive accepted transitions and can have total mass below 1 because it excludes rejections.

```
Kⁿ⁰(θ, A) ≥ ε ν(A)
```

In this formula n₀, displayed in the exponent as ⁿ⁰, is the fixed number of accepted transitions, θ is any starting parameter, and A is a measurable destination set in Θ. The positive constant ε and the common measure ν give a lower bound shared by all starting parameters. This condition ensures a common component of movement in the ideal chain. With a uniform finite upper bound on γᴺ, the proof transfers a scaled version of that lower bound to the enlarged transition. The exact pseudo-marginal chain is then uniformly ergodic, which gives control over the rate across starting states.

#### How the noisy version is analyzed

MCWM makes the one-step comparison simpler because both groups follow known proposal laws. Theorem 9 assumes uniform geometric convergence of the ideal chain, stated using a prefactor C and a rate ρ strictly between 0 and 1. It also asks that the proposal probability of a large log-weight error tend uniformly to zero as N increases. In contrast to (A3), the uniform condition controls the worst θ in the parameter space. The theorem assumes that the noisy chain has an invariant probability distribution for each N.

Under those hypotheses, the paper shows that the noisy chain for sufficiently large N has a geometric convergence rate that can be made as close as specified to the ideal rate in the theorem’s bound. It also bounds the difference between the stationary law of the noisy chain and π.

```
‖π − π̌ᴺ‖ ≤ C ε / (1 − ρ)
```

Here π is the desired marginal, π̌ᴺ is the invariant distribution of the noisy chain, and the double bars denote total variation distance. The constants C and ρ come from the uniform convergence bound for the ideal chain, and ε is the tolerance used to control the perturbation for sufficiently large N. The proof first controls the difference between the one-step transitions uniformly. It then sums the effects of that difference over successive steps, using the mixing of the ideal transition to control the influence of earlier errors. The ability to make the stationary discrepancy small under these hypotheses and the exact joint invariance of the retained-state algorithm are separate results.

#### Turning a marginal model comparison into a reversible jump

In the applications, θ identifies a statistical model and z contains its continuous parameters. The number of coefficients can change with θ. A standard reversible-jump update therefore has to combine a proposal to change θ with a rule for changing the coefficient vector. In the toy example, an upward jump introduces a bivariate value. In the logistic example, a birth adds a covariate and a coefficient, and a death removes one.

In the logistic setup, let θ̄ be the number of active covariates and k the total available. At a birth, the ideal method chooses uniformly among the inactive covariates. To reverse the move, the death would choose uniformly among the active covariates of the new state.

```
α₊(θ, θ⁺) = min{1, [π(θ⁺) / π(θ)] [1/(θ̄ + 1)] / [1/(k − θ̄)]}
```

Here α₊ is the birth acceptance probability, θ is the current inclusion pattern, θ⁺ is the pattern after adding a covariate, and π assigns marginal posterior probabilities to the patterns. The factor with θ̄ + 1 is the reverse selection probability, and the factor with k − θ̄ is the forward selection probability. The equal probabilities of choosing birth and death cancel in the ratio for valid paired moves.

```
α₋(θ, θ⁻) = min{1, [π(θ⁻) / π(θ)] [1/(k − θ̄ + 1)] / [1/θ̄]}
```

Here α₋ is the death acceptance probability and θ⁻ is the inclusion pattern after a removal. The forward probability is 1/θ̄ because the removed covariate is chosen from the active set. The reverse probability uses k − θ̄ + 1, the inactive count after removal. The posterior masses and the other symbols have the same meanings as in the birth rule. In the setup that excludes the empty pattern, a move outside the permitted model space cannot be accepted.

The exact marginal probabilities in these ratios are generally unavailable in the logistic example. The standard joint approach draws a coefficient for the birth from a proposal based on the fit of the saturated model, which includes all covariates. The joint acceptance compares the two joint densities and corrects for the density of the new coefficient as well as for the discrete selection probabilities. The pseudo-marginal application instead builds an estimate at the proposed pattern using an auxiliary sequence and compares it with the estimate retained at the current pattern.

The auxiliary sequence starts from an initial proposal and then moves using a discretized Langevin construction. At each stage, a gradient of the log conditional density shifts the center of the next normal proposal toward increasing density. The paper truncates the normal transition to an ellipsoidal region. The marginal estimate averages the initial importance contribution with the later ones, evaluating each later denominator at the transition from the preceding draw.

```
π̃ᴺ(θ; Z) = (1/N) [π(θ, z⁽¹⁾)/Q(z⁽¹⁾) + ∑ᵢ₌₂ᴺ π(θ, z⁽ⁱ⁾)/gθ(z⁽ⁱ⁾ | z⁽ⁱ⁻¹⁾)]
```

In this expression Q is the density of the initial auxiliary proposal, distinct from the outer proposal kernel Q(θ, dϑ). The index i labels a later position in the sequence. The density gθ is the truncated normal transition at the proposed θ, evaluated at the new z⁽ⁱ⁾ given the preceding z⁽ⁱ⁻¹⁾. The quantities π(θ, z⁽ⁱ⁾) are the joint-density evaluations, and N and Z denote the length and contents of the group. This is the estimator used in the reversible-jump illustration. Its connection to the general exactness theorem depends on the conditional support required for the importance terms, a point that matters for interpreting the truncation.

### Experiments and results

#### A two-state problem with a known answer

The first experiment strips Bayesian model selection down to a case where the true marginal probabilities are available. The first candidate has mass 1/4 and a univariate normal auxiliary distribution with mean 0 and variance 1. The second has mass 3/4 and a bivariate normal auxiliary distribution with mean vector zero. Each coordinate of that distribution has variance 1, and the off-diagonal covariance is −0.9. The shape of the bivariate distribution makes a point’s plausibility depend on both coordinates together. A proposal that puts mass well away from the center can generate poor starting values for the jump.

The ideal chain always proposes the other candidate. Because its proposal probabilities are symmetric, its acceptance depends on the two marginal masses. The paper gives 1/2 as the theoretical stationary expected acceptance probability. The sizes of the two candidates and their known target masses also make it possible to check whether the running estimates of the masses have settled in the right place. The experiment uses that check alongside the acceptance rates.

To mimic the problem of an analytically inaccessible marginal, the authors act as if they recognized the univariate normal part but could only evaluate the bivariate joint expression up to a common constant. They choose an initial proposal for the bivariate auxiliary draw centered at [3, 3], with identity covariance. They describe this as a deliberately poor proposal that still ensures irreducibility for the standard reversible-jump procedure. With N = 1, the acceptance step has only that initial draw to use. With N = 5 or N = 10, the first draw is followed by gradient-guided proposals that can move to parts of the space the initial proposal rarely visits.

The N = 1 run uses 450,000 iterations, the N = 5 run uses 90,000, and the N = 10 run uses 45,000. The authors chose these run lengths to make computational effort comparable. The empirical expected acceptance probabilities are 0.0121, 0.5206, and 0.5056 respectively. The larger settings produce acceptance rates close to the ideal stationary figure in this example, and N = 5 records the highest empirical acceptance probability among the tested settings. The ideal figure describes the reference chain’s behavior and therefore serves a different role from the largest observed rate.

Empirical acceptance probability in the two-state reversible-jump experiment Adding a sequence of auxiliary draws raises acceptance sharply relative to the standard reversible-jump setting.

**The numbers**

| System or setting | empirical acceptance probability |
| --- | --- |
| Standard reversible jump (N = 1) | 0.0121 |
| Sequential pseudo-marginal (N = 5) (this paper) | 0.5206 |
| Sequential pseudo-marginal (N = 10) | 0.5056 |

The paper also plots the cumulative fraction of iterations spent in each candidate. At any iteration k, this estimator counts the visits to the candidate through that point and divides by k. Repeated states count toward the fraction because remaining in a state after rejection is part of the Markov transition. These plots provide information that a single acceptance statistic cannot. With N = 1, a trace can look as though it has stabilized even though the exact masses give a reason to distrust that impression. A long period of poor movement may change a cumulative fraction only gradually.

That combination of a known answer and a deliberately difficult proposal gives the toy problem its role in the paper. The baseline is formally capable of reaching the relevant regions, yet the frequency with which it does so is inadequate on the illustrated run. The auxiliary sequence makes the proposed jump less dependent on a single draw from the initial distribution. The experiment tests whether this extra work within a proposal can yield more useful movement over a comparable effort budget.

#### Logistic variable selection with correlated covariates

The second example uses synthetic data from a logistic response. The observations consist of a binary response and a vector of covariates. The logit link sets the log odds of the response being 1 equal to a linear predictor. Candidate models correspond to different subsets of the covariates, with excluded coefficients set to zero. In this application the authors exclude the candidate with no dependence on any covariate.

```
log[p(X, z) / (1 − p(X, z))] = Xz
```

Here p(X, z) is the conditional probability of a response of 1 given the covariate row X and coefficient column z. The ratio inside the logarithm is the odds of that response. The product Xz is the linear combination specified by the coefficients. For a candidate θ, the computation uses the submatrix of design columns selected by θ and the associated coefficient vector zθ.

The authors generate M = 50 observations with k = 4 covariates. The data-generating coefficients are [1, 0.5, −2, 0.01]. The design uses standard normal vectors, with direct draws for covariates 1, 3, and 4. Covariate 2 is a linear combination of the underlying vectors for the first two columns, with multipliers 0.9 and 0.1. This creates a dataset in which covariates 1 and 2 are correlated. The two corresponding inclusion decisions can be difficult to explore by proposing one coefficient change at a time.

The prior assigns a size factor proportional to λ raised to the number of active covariates and divided by the factorial of that count, with λ fixed and positive. Within an inclusion pattern, the prior on the active coefficients is centered normal. The paper takes its covariance to be the inverse of a scaled cross-product of the active design matrix, with the cross-product divided by 4M. The binary-response likelihood and the prior together give a joint posterior over the inclusion pattern and its coefficients. Integrating out the coefficients would give the posterior probabilities targeted by the marginal birth and death updates.

The fitted coefficients show concretely why the comparison is challenging. The maximum likelihood vector for the saturated model, indexed by 1111, is [5.22445, −3.71672, −2.4011, −0.587472]. The reported maximum likelihood vector for 1011 is [1.73253, −2.30933, −0.648927], and for 0111 it is [1.5968, −1.98855, −0.0922961]. These vectors refer to the fitted coefficients in each candidate’s own active coordinate order. The authors use them to motivate a possible mismatch between the regions of high posterior density in the different dimensions. In particular, dropping a covariate can leave surviving coefficients inherited from a quite different fit. A rule for births based on the saturated fit can also be poorly positioned for some transitions.

The standard reversible-jump comparison is the N = 1 setting. In the reported logistic run, its birth and death updates are supplemented by 10 iterations of a within-model random-walk Metropolis–Hastings procedure per sweep. That procedure updates one variable at a time. The comparison therefore gives the baseline a separate means of moving the coefficients within an inclusion pattern. The pseudo-marginal settings use N = 5, 50, 100, and 200 in addition to the baseline. They estimate a candidate’s marginal probability with the sequential construction rather than relying on the initial draw alone.

The paper reports expected acceptance probabilities of 0.064293 for N = 1, 0.16569 for N = 5, 0.25885 for N = 50, 0.28433 for N = 100, and 0.29371 for N = 200 on this dataset. It also reports 0.29592 as the acceptance figure obtained using the estimated model probabilities from N = 200. That calculation supplies a comparison based on those estimated probabilities. In the synthetic logistic problem, the exact posterior model probabilities are unavailable, so the latter figure has a different evidential status from the analytical benchmark in the toy problem.

Expected acceptance probability on the synthetic logistic variable-selection data Acceptance increases across the reported auxiliary sample sizes, with the largest setting giving the highest reported value.

**The numbers**

| System or setting | expected acceptance probability |
| --- | --- |
| Standard reversible jump (N = 1) | 0.064293 |
| Sequential pseudo-marginal (N = 5) | 0.16569 |
| Sequential pseudo-marginal (N = 50) | 0.25885 |
| Sequential pseudo-marginal (N = 100) | 0.28433 |
| Sequential pseudo-marginal (N = 200) (this paper) | 0.29371 |

The more direct inferential comparison concerns the distribution over whole inclusion patterns. The paper plots their estimated posterior probabilities, ordering the patterns by the decimal representation of the binary indicators. The estimates for N = 1 and N = 5 differ appreciably from those for N = 50, N = 100, and N = 200. The estimates from the latter settings agree with one another. The authors also single out results after 20,000 iterations at N = 50, 10,000 at N = 100, and 5,000 at N = 200. They judge these results more reliable than those from N = 1 after 1,000,000 iterations. These are the horizons singled out in the discussion of reliability. The acceptance table reports separate run lengths in thousands of iterations.

The authors also look at the estimated probability that an individual covariate is included. This quantity pools the posterior probabilities of all patterns containing that covariate. The traces for N = 1 can look settled according to this more aggregated view even though the distribution over whole patterns differs from the results at larger N. Another figure follows examples of the intermediate coefficient draws and their importance weights during proposed jumps at N = 100. It places the coefficient paths alongside the data-generating values and shows how the weights change along the sequence. The plots serve complementary purposes. One exposes the discrepancy between inference about individual inclusion and inference about entire patterns. The other shows the inner simulation that supplies weights to the outer comparison.

### What the ablations show

#### Reusing an estimate changes the stationary law

The paper offers structural analyses and targeted numerical comparisons in place of a factorial experiment that isolates every design choice. Its most tightly controlled comparison is mathematical. Exact pseudo-marginal sampling and MCWM use the same ideal proposal and can use the same construction for a random estimate at a given parameter. The comparison changes what happens to the current group. The exact algorithm keeps the group that was selected by the chain. The noisy algorithm regenerates it from its proposal distribution. The two resulting invariant-distribution statements follow from that single change in the transition.

This comparison separates the quality of the estimates from the rule by which they enter the chain. A low-noise estimator can improve both algorithms’ resemblance to the ideal sampler. The retained-state update has an invariant marginal identity at fixed N under the construction, even if some estimates are highly variable. For the refreshing update, the paper obtains a bound on the error of the invariant law under uniform concentration and convergence assumptions. This distinction is especially relevant if an acceptance rate seems to suggest that both algorithms are moving equally well. How frequently they move and which law those moves approach are different questions.

The enlarged-space analysis also isolates two sources of discrepancy from the ideal algorithm. It compares a reference move drawing an auxiliary group from the weighted conditional with a move drawing from the original proposal. Then it compares an acceptance test using the ideal ratio with one using the ratio of random estimates. The intermediate transition changes one of those features at a time. This makes it possible to bound the effect of the auxiliary proposal and the effect of the random multiplier separately. The concentration argument has to accommodate both, because at a realistic current state the denominator is a retained quantity.

#### More auxiliary draws change the information available to a jump

In the toy example, the change from N = 1 to N = 5 or N = 10 keeps the same marginal target and the same deliberately poor starting proposal for the auxiliary simulation. An attempt at the larger candidate can use a sequence of conditional draws. At N = 1 it relies on the initial proposal alone. Under the authors’ comparable-effort design, the empirical acceptance rises substantially with the sequence, and the known target masses help check the consequences for inference. Acceptance for N = 10 is lower than for N = 5 in these runs, so the results do not establish a monotone increase in observed acceptance with sequence length.

This comparison changes both how many auxiliary values contribute and where the later values come from. Extra draws from a gradient-guided conditional sequence are different from an equally long group of independent draws from the poor initial proposal. The paper does not quantify their separate contributions to the gain. What the comparison establishes in the illustrated setting is that the longer sequential estimator makes better use of a difficult starting proposal while allowing shorter outer runs.

The logistic comparison puts more strain on inference about whole models. The acceptance probabilities increase across the tested values of N, but the contrast between small and large groups also appears in the posterior estimates. The smaller settings disagree with the larger ones on the distribution over patterns, while the larger settings agree. That is a stronger check on the numerical objective than the observation that an algorithm accepted more proposals. The baseline’s additional within-model updates make clear that improving coefficient exploration inside an existing pattern can coexist with difficulty crossing between patterns. The experiments do not isolate the effect of those supplementary updates separately.

#### Convergence diagnostics depend on what is being summarized

The two numerical illustrations offer different checks on apparently settled running estimates. The toy example has known target masses. A flat-looking trace can be judged against those masses directly. The logistic example uses agreement across more substantial runs as a practical comparison, then shows how the conclusion changes when the output is pooled by covariate. A trace of a covariate’s inclusion probability can be relatively insensitive to the distribution of visits across patterns that contain it. Two runs may therefore look similar for an individual inclusion question while painting different pictures of the competition among whole models.

The paper’s uniform and geometric convergence analysis gives a mechanism for long, uninformative stretches of a pseudo-marginal run. An unusually large estimate can sustain a high rejection probability even when fresh proposal estimates typically behave well. The tail condition in Theorem 8 and the proof based on acceptance out of such states show why ordinary summaries of estimator variability or average acceptance cannot by themselves settle the question of geometric convergence. The paper’s discrete independence-sampler example makes a related point from the other direction. Even bounded auxiliary weights can lead to a slower rate than the ideal marginal sampler. Boundedness can support a convergence guarantee without recovering the ideal rate.

### Limitations

#### Limits identified by the authors

Exactness is a statement about the invariant law of the enlarged construction and its marginal. The ordinary convergence theorem requires conditions in addition to that identity. It concerns nearly every starting point under the enlarged target and includes a positive rejection probability at each enlarged state in its hypotheses. It gives no general speed of convergence. In particular, the exact stationary target is compatible with extended stays at a state whose estimate is unusually favorable.

The finite-horizon result depends on a fixed starting θ, a sufficiently accurate initial weight, and an N that can depend on the starting point and desired tolerances. The concentration condition used there is pointwise. The theorem provides a way to describe the approximation for large enough N but supplies no universal choice of N for a particular computation. Its error bound includes a term for the possibility of retaining the initial auxiliary state. The claim concerns iterations and distance to the target. Increasing N also increases the work per outer proposal, which is a separate comparison.

The authors explicitly show that a uniform bound on weights does not ensure the exact algorithm will match the convergence rate of the ideal chain. Their sufficient positive result for uniform ergodicity also requires minorization of the accepted-move kernel. The negative result needs unbounded weights on a set of positive marginal probability. These conditions address particular regimes and do not classify all possible auxiliary proposals. For example, a failure to obtain the upper bound needed by the sufficient condition does not itself establish the positive-mass tail condition used in the negative result.

The comparison theorem for MCWM invokes a stronger uniform concentration condition than the pointwise condition used for the exact algorithm’s finite-horizon result. It assumes an invariant distribution for each noisy chain in its statement. The paper emphasizes that existence is a separate issue in general because the noisy update is not a Metropolis–Hastings update on the enlarged target constructed for the exact algorithm. Even when the theorem bounds the distance between the noisy invariant law and π, the bound describes an approximation.

The authors describe the reversible-jump implementations as illustrations and point to further possibilities for more sophisticated updates. They mention using a shared auxiliary group for the two estimates in a noisy comparison but do not analyze that variation. They also note that updates of the auxiliary variables at fixed θ are possible under the enlarged target. The results for the particular proposal studied in the paper do not establish the performance of every update available under that target.

#### Limits visible in the setup

The conditional support assumption deserves attention when reading the numerical procedure. The general proof uses the fact that each importance derivative has conditional mean 1. In the displayed sequential estimator, the initial normal proposal in the toy problem has full support, but the later normal conditionals are described as truncated around their centers. The toy target’s bivariate normal density has full support. Taken literally, the truncated conditional assigns zero probability outside its ellipsoid, where the target still assigns positive probability. The contribution using that conditional therefore falls outside the support argument used for the general theorem. The application describes no correction to the displayed importance terms for that missing mass. Its numerical performance can be assessed as reported, while applying the general fixed-N exactness guarantee to the literal truncated construction requires an additional justification.

The ground truth in the toy experiment is the marginal distribution the authors chose. The initial bivariate proposal was deliberately poor. This is an informative case for understanding how an auxiliary sequence can rescue a difficult comparison, but the paper does not use it to estimate how often the same gain occurs with well-positioned initial proposals. The runs were designed to have comparable effort, using different outer iteration counts. The results give acceptance and running probability estimates. They provide no timing measurements or numerical comparison of sampling precision per unit of runtime.

In the logistic case, the reported agreement at larger N is an internal check using the same synthetic dataset and related algorithms. The true coefficients used to generate the responses are known, while the exact posterior masses of the candidate patterns are not. Those are distinct quantities. The reported value 0.29592 is likewise based on estimated posterior probabilities. It cannot provide the same external accuracy check as the ideal acceptance probability in the toy example. The paper offers a plausible explanation for the difficulties of births and deaths through the correlated covariates and the fitted coefficient vectors. It does not separate those effects experimentally from the choice of coefficient proposal.

The numerical comparisons vary the size of the auxiliary sequence and, with it, the cost and nature of each proposed move. Outer iteration counts alone do not make those settings a common computational budget. In the logistic example the authors report both acceptance and posterior estimates, which support their assessment of this run. The comparison does not establish an optimal group size for logistic variable selection or identify the best tradeoff for a different design or proposal. Reading the convergence results together with the examples gives conditions for exactness and reasons for the observed improvements, with each performance claim tied to its specific setup.

### What came after

The authors report that further work on the approach was underway, including refinements to the simple reversible-jump strategy. They give no named follow-up study or later result to trace. The directions they identify grow out of the enlarged target. A later algorithm could keep the same target for θ while changing how the auxiliary group is proposed, using information from earlier draws in the group, or updating the group at a fixed θ. Each change would require its own argument that the transition preserves the appropriate target, and its effect on movement would be a separate question.

The paper leaves a precise distinction for that line of work. An estimator design determines how frequently proposed weights are informative and how large the unfavorable tail can be. A transition design determines how realized weights enter the comparison and how long they remain part of the state. The authors’ results show how those choices can be studied separately even when the algorithm uses them together, and their reversible-jump examples show why both choices matter when the goal is to compare posterior probabilities across dimensions.

## Cite

Cite as Christophe Andrieu and Gareth O. Roberts. 2009. The pseudo-marginal approach for efficient Monte Carlo computations. The Annals of Statistics.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1214/07-aos574](https://doi.org/10.1214/07-aos574) · [arXiv 0903.5480](https://arxiv.org/abs/0903.5480)

```bibtex
@article{andrieu2009pseudo,
  title = {{The pseudo-marginal approach for efficient Monte Carlo computations}},
  author = {Christophe Andrieu and Gareth O. Roberts},
  journal = {The Annals of Statistics},
  year = {2009},
  doi = {10.1214/07-aos574},
  eprint = {0903.5480},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1214/07-aos574}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
