EventTrio2t
- class poisson_approval.EventTrio2t(candidate_x, candidate_y, candidate_z, tau)[source]
A 3-candidate almost-tie of the type (X - 1, X - 1, X).
Notes
We consider the trios of type 1, i.e. situations where
S_x + 1 = S_y + 1 = S_z
.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)}) >>> EventTrio2t(candidate_x='a', candidate_y='b', candidate_z='c', tau=tau) <asymptotic = exp(- 0.151472 n - 0.5 log n - 1.18339 + o(1)), phi_a = 0, phi_c = 1.41421, phi_ab = 0.707107>