Shared

class telescopic.couplings.Shared

The coupling of two independence proposals that gives both chains one proposal.

With the shared uniform of the acceptance, it is a maximal coupling of the two kernels: a pair meets when both chains accept (O’Leary, Wang & Jacob 2021).

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