EventPivotWeak
- class poisson_approval.EventPivotWeak(candidate_x, candidate_y, candidate_z, tau)[source]
A 2-candidate weak pivot.
Notes
We consider the weak pivot between
x
andy
, i.e. situations whereS_x = S_y >= 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)}) >>> event = EventPivotWeak(candidate_x='c', candidate_y='b', candidate_z='a', tau=tau) >>> event <asymptotic = exp(- 0.151472 n - 0.5 log n - 0.836813 + o(1)), phi_a = 0, phi_c = 1.41421, phi_ab = 0.707107> >>> print(event.asymptotic) exp(- 0.151472 n - 0.5 log n - 0.836813 + o(1)) >>> event.mu -0.151471862576143 >>> event.nu -0.5 >>> event.xi -0.8368125164616638 >>> event.phi_a 0.0