Reflection

class telescopic.couplings.Reflection

The reflection-maximal coupling of two Gaussian proposals with a shared covariance.

With \(\delta = B^{-1}(\mu_x - \mu_y)\), the whitened difference of the proposals’ means, \(z \sim \mathcal N(0, I)\) and \(x' = \mu_x + Bz\), the proposals are identical when \(\log u < -z\cdot\delta - \lVert\delta\rVert^2/2\); otherwise \(y' = \mu_y + B(z - 2(e\cdot z)e)\) with \(e = \delta/\lVert\delta\rVert\) (Jacob, O’Leary & Atchadé 2020, sections 4.1 and 4.4). It couples the random-walk and the Langevin proposals.

couple(target, proposal, state_x, state_y, draws)

Draw the coupled proposals of n pairs.

Parameters:
targetTarget

The target that the chains sample.

proposalProposal

The proposal of both chains, one that supports() accepts.

state_x, state_yState

The first and the second chains of the pairs.

drawsDraws

Random numbers for the n pairs.

Returns:
CoupledProposals
supports(proposal)

Whether this coupling couples proposal, matched by its exact type.

Parameters:
proposalProposal

The proposal to check.

Returns:
bool