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
npairs.- Parameters:
- target
Target The target that the chains sample.
- proposalProposal
The proposal of both chains, one that
supports()accepts.- state_x, state_y
State The first and the second chains of the pairs.
- draws
Draws Random numbers for the
npairs.
- target
- Returns:
- CoupledProposals