Maximal

class telescopic.couplings.Maximal

The rejection maximal coupling of two random-walk proposals.

Each pair draws from its own generator by the rejection maximal coupling with \(\eta = 1\) of \(\mathcal N(x, BB^\top)\) and \(\mathcal N(y, BB^\top)\) (Jacob, O’Leary & Atchadé 2020, Algorithm 2). Its meeting probability is maximal, but its meeting times grow exponentially with the dimension; it is for comparison.

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