EventDuo

class poisson_approval.EventDuo(candidate_x, candidate_y, candidate_z, tau)[source]

A 2-candidate tie.

Notes

We consider the situations where S_x = S_y. It is not necessarily a pivot, because z can have a greater score.

For parameters and attributes, cf. Event.

Examples

>>> from fractions import Fraction
>>> from poisson_approval import TauVector
>>> tau = TauVector({'a': Fraction(1, 10), 'ab': Fraction(6, 10), 'c': Fraction(3, 10)})
>>> EventDuo(candidate_x='a', candidate_y='b', candidate_z='c', tau=tau)
<asymptotic = exp(- 0.1 n + o(1)), phi_a = 0, phi_c = 1, phi_ab = 1>