EventPivotTjk

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

A personalized pivot of type Tjk.

Notes

We consider the personalized pivot for the two least-liked candidates of a voter zyx, i.e. situations where, if the voter add a reasonable ballot (z or yz), it becomes a strict pivot for xy. In other words, situations where S_x = S_y > S_z + 1 or S_x = S_y + 1 > S_z + 1.

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)})
>>> EventPivotTjk(candidate_x='a', candidate_y='b', candidate_z='c', tau=tau)
<asymptotic = exp(- 0.1 n + log n - 2.30259 + o(1)), phi_a = 0, phi_c = 1, phi_ab = 1>