WorkSessionICCondorcet#

class actinvoting.WorkSessionICCondorcet(m)[source]#

A work session dedicated to Impartial Culture, implementing the second term in the asymptotic expansion.

asymptotics(n)[source]#

The beginning of the asymptotic expansion: limit + term in n^{-1/2}.

Parameters:

n (int) – The number of voters

Returns:

The estimated probability, using the first two terms of the asymptotic expansion.

Return type:

float

property critical_candidates#

The critical candidates.

In practice, we compute the critical candidates as those for which tau[j] is numerically close enough to 0.

Returns:

The critical candidates.

Return type:

set of int

property subcritical_candidates#

The subcritical candidates.

In practice, we compute the subcritical candidates as those for which tau[j] is less than 0, but not numerically too close to 0 (cf. critical candidates).

Returns:

The subcritical candidates.

Return type:

set of int