Anti-Harassment Tools/SecurePoll Improvements/Test Results/20 4 5120 824772467

Comments
In this case, candidates 19 and 20 are both tied for equal lowest votes.

Our algorithm eliminates them both at the same time, so neither get a seat. In the end, only 3 candidates get enough votes to meet the quota (out of 4 seats).

OpenSTV eliminates one of candidate 19 or 20 at random. Their votes get reallocated to the other candidate, who goes on to get enough votes to meet the quota and get a seat. So, either candidate 19 or candidate 20 gets a seat, depending on who is eliminated first.

Election setup

 * Candidates: 20
 * Seats: 4
 * Votes: 5120

Actual results latest
Output from SecurePoll : /actual

SecurePoll tally page: https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1050

Actual results archive
Archive

Expected
Loading ballots from file 20_4_5120_824772467.blt. Ballot file contains 20 candidates and 5100 ballots. No candidates have withdrawn. Ballot file contains 5100 non-empty ballots.

Counting votes for ElectionTitle using Meek STV. 20 candidates running for 4 seats.

R|1         |2          |3          |4          |5          |6 |---+---+---+---+---+--- |7          |8          |9          |10         |11         |12           |---+---+---+---+---+---  |13         |14         |15         |16         |17         |18           |---+---+---+---+---+---  |19         |20         |Exhausted  |Surplus    |Threshold

=
============================================================= 1| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000| 256.000000 | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  | 200.000000| 200.000000|   0.000000|   0.000000|1020.000001  |---  | Count of first choices.

=
============================================================= 2| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000| 256.000000 | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  | 400.000000|           |   0.000000|   0.000000|1020.000001  |---  | Count after eliminating 20 and transferring votes. All losing | candidates are eliminated. Candidates 19 and 20 were tied when | choosing candidates to eliminate. Candidate 20 was chosen by breaking | the tie randomly.

=
============================================================= 3| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000| 256.000000 | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  |           | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  | 400.000000|           | 256.000000|   0.000000| 968.800001  |---  | Count after eliminating 13 and transferring votes. All losing | candidates are eliminated. Candidates 6, 7, 8, 9, 10, 11, 12, 13, 14, | 15, 16, 17, and 18 were tied when choosing candidates to eliminate. | Candidate 13 was chosen by breaking the tie randomly.

=
============================================================= 4| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  |           | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  | 400.000000|           | 512.000000|   0.000000| 917.600001  |---  | Count after eliminating 6 and transferring votes. All losing | candidates are eliminated. Candidates 6, 7, 8, 9, 10, 11, 12, 14, 15, | 16, 17, and 18 were tied when choosing candidates to eliminate. | Candidate 6 was chosen by breaking the tie randomly.

=
============================================================= 5| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            | 256.000000| 256.000000| 256.000000| 256.000000|           | 256.000000  |           | 256.000000| 256.000000| 256.000000| 256.000000| 256.000000  | 400.000000|           | 768.000000|   0.000000| 866.400001  |---  | Count after eliminating 11 and transferring votes. All losing | candidates are eliminated. Candidates 7, 8, 9, 10, 11, 12, 14, 15, 16, | 17, and 18 were tied when choosing candidates to eliminate. Candidate | 11 was chosen by breaking the tie randomly.

=
============================================================= 6| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            | 256.000000| 256.000000| 256.000000| 256.000000|           | 256.000000  |           | 256.000000| 256.000000|           | 256.000000| 256.000000  | 400.000000|           |1024.000000|   0.000000| 815.200001  |---  | Count after eliminating 16 and transferring votes. All losing | candidates are eliminated. Candidates 7, 8, 9, 10, 12, 14, 15, 16, 17, | and 18 were tied when choosing candidates to eliminate. Candidate 16 | was chosen by breaking the tie randomly.

=
============================================================= 7| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            | 256.000000| 256.000000| 256.000000| 256.000000|           | 256.000000  |           |           | 256.000000|           | 256.000000| 256.000000  | 400.000000|           |1280.000000|   0.000000| 764.000001  |---  | Count after eliminating 14 and transferring votes. All losing | candidates are eliminated. Candidates 7, 8, 9, 10, 12, 14, 15, 17, and | 18 were tied when choosing candidates to eliminate. Candidate 14 was | chosen by breaking the tie randomly.

=
============================================================= 8| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            | 256.000000| 256.000000| 256.000000| 256.000000|           |             |           |           | 256.000000|           | 256.000000| 256.000000  | 400.000000|           |1536.000000|   0.000000| 712.800001  |---  | Count after eliminating 12 and transferring votes. All losing | candidates are eliminated. Candidates 7, 8, 9, 10, 12, 15, 17, and 18 | were tied when choosing candidates to eliminate. Candidate 12 was | chosen by breaking the tie randomly.

=
============================================================= 9| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            | 256.000000| 256.000000| 256.000000| 256.000000|           |             |           |           | 256.000000|           |           | 256.000000  | 400.000000|           |1792.000000|   0.000000| 661.600001  |---  | Count after eliminating 17 and transferring votes. All losing | candidates are eliminated. Candidates 7, 8, 9, 10, 15, 17, and 18 were | tied when choosing candidates to eliminate. Candidate 17 was chosen by | breaking the tie randomly.

=
============================================================= 10| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            | 256.000000| 256.000000| 256.000000|           |           |             |           |           | 256.000000|           |           | 256.000000  | 400.000000|           |2048.000000|   0.000000| 610.400001  |---  | Count after eliminating 10 and transferring votes. All losing | candidates are eliminated. Candidates 7, 8, 9, 10, 15, and 18 were | tied when choosing candidates to eliminate. Candidate 10 was chosen by | breaking the tie randomly.

=
============================================================= 11| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           | 256.000000| 256.000000|           |           |             |           |           | 256.000000|           |           | 256.000000  | 400.000000|           |2304.000000|   0.000000| 559.200001  |---  | Count after eliminating 7 and transferring votes. All losing | candidates are eliminated. Candidates 7, 8, 9, 15, and 18 were tied | when choosing candidates to eliminate. Candidate 7 was chosen by | breaking the tie randomly.

=
============================================================= 12| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           | 256.000000| 256.000000|           |           |             |           |           | 256.000000|           |           |             | 400.000000|           |2560.000000|   0.000000| 508.000001  |---  | Count after eliminating 18 and transferring votes. All losing | candidates are eliminated. Candidates 8, 9, 15, and 18 were tied when | choosing candidates to eliminate. Candidate 18 was chosen by breaking | the tie randomly.

=
============================================================= 13| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           | 256.000000|           |           |             |           |           | 256.000000|           |           |             | 400.000000|           |2816.000000|   0.000000| 456.800001  |---  | Count after eliminating 8 and transferring votes. All losing | candidates are eliminated. Candidates 8, 9, and 15 were tied when | choosing candidates to eliminate. Candidate 8 was chosen by breaking | the tie randomly.

=
============================================================= 14| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           | 256.000000|           |           |             | 400.000000|           |3072.000000|   0.000000| 405.600001  |---  | Count after eliminating 9 and transferring votes. All losing | candidates are eliminated. Candidates 9 and 15 were tied when choosing | candidates to eliminate. Candidate 9 was chosen by breaking the tie | randomly.

=
============================================================= 15| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 400.000000|           |3328.000000|  45.599999| 354.400001  |---  | Count after eliminating 15 and transferring votes. All losing | candidates are eliminated. Candidate 19 has reached the threshold and | is elected.

=
============================================================= 16| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 354.400400|           |3373.599600|   9.120319| 345.280081  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.886001.

=
============================================================= 17| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 345.280400|           |3382.719600|   1.824319| 343.456081  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.863201.

=
============================================================= 18| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 343.456400|           |3384.543600|   0.365119| 343.091281  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.858641.

=
============================================================= 19| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 343.091600|           |3384.908400|   0.073279| 343.018321  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.857729.

=
============================================================= 20| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 343.018400|           |3384.981600|   0.014719| 343.003681  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.857546.

=
============================================================= 21| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 343.004000|           |3384.996000|   0.003199| 343.000801  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.857510.

=
============================================================= 22| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 343.001200|           |3384.998800|   0.000959| 343.000241  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.857503.

=
============================================================= 23| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 343.000400|           |3384.999600|   0.000319| 343.000081  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.857501.

=
============================================================= 24| 300.000000| 300.000000| 258.000000| 257.000000| 257.000000|            |           |           |           |           |           |             |           |           |           |           |           |             | 343.000400|           |3384.999600|   0.000319| 343.000081  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 19, 0.857501.

=
============================================================= 25| 300.000000| 300.000000| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 343.000400|           |3641.999600|  68.200157| 291.600081  |---  | Count after eliminating 4 and transferring votes. Candidates tied | within precision of computations. Candidates 4 and 5 were tied when | choosing candidates to eliminate. Candidate 4 was chosen by breaking | the tie randomly. Candidates 1 and 2 have reached the threshold and | are elected.

=
============================================================= 26| 291.600300| 291.600300| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 291.600400|           |3710.199000|  40.920397| 277.960201  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.972001; 2, 0.972001; and 19, | 0.729001.

=
============================================================= 27| 277.960500| 277.960500| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 277.960400|           |3751.118600|  24.552557| 269.776281  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.926535; 2, 0.926535; and 19, | 0.694901.

=
============================================================= 28| 269.776500| 269.776500| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 269.776400|           |3775.670600|  14.731757| 264.865881  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.899255; 2, 0.899255; and 19, | 0.674441.

=
============================================================= 29| 264.866100| 264.866100| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 264.866000|           |3790.401800|   8.839277| 261.919641  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.882887; 2, 0.882887; and 19, | 0.662165.

=
============================================================= 30| 261.919800| 261.919800| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 261.920000|           |3799.240400|   5.303837| 260.151921  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.873066; 2, 0.873066; and 19, | 0.654800.

=
============================================================= 31| 260.152200| 260.152200| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 260.152000|           |3804.543600|   3.182557| 259.091281  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.867174; 2, 0.867174; and 19, | 0.650380.

=
============================================================= 32| 259.091400| 259.091400| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 259.091600|           |3807.725600|   1.909757| 258.454881  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.863638; 2, 0.863638; and 19, | 0.647729.

=
============================================================= 33| 258.455100| 258.455100| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 258.455200|           |3809.634600|   1.146157| 258.073081  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.861517; 2, 0.861517; and 19, | 0.646138.

=
============================================================= 34| 258.073200| 258.073200| 258.000000|          | 257.000000|             |           |           |           |           |           |             |           |           |           |           |           |             | 258.073200|           |3810.780400|   0.843916| 257.843921  |---  | Count after transferring surplus votes. Keep factors of candidates who | have exceeded the threshold: 1, 0.860244; 2, 0.860244; and 19, | 0.645183. Candidate 3 has reached the threshold and is elected.

Winners are 1, 2, 3, and 19.

Files
array ( 7 =>   array ( 'count' => 256, 'rank' => array (     1 => 7,    ), ), 9 =>   array ( 'count' => 256, 'rank' => array (     1 => 9,    ), ), 3 =>   array ( 'count' => 258, 'rank' => array (     1 => 3,    ), ), 13 =>   array ( 'count' => 256, 'rank' => array (     1 => 13,    ), ), 8 =>   array ( 'count' => 256, 'rank' => array (     1 => 8,    ), ), '19_20' =>   array ( 'count' => 200, 'rank' => array (     1 => 19,      2 => 20,    ), ), 16 =>   array ( 'count' => 256, 'rank' => array (     1 => 16,    ), ), '20_19' =>   array ( 'count' => 200, 'rank' => array (     1 => 20,      2 => 19,    ), ), 14 =>   array ( 'count' => 256, 'rank' => array (     1 => 14,    ), ), 6 =>   array ( 'count' => 256, 'rank' => array (     1 => 6,    ), ), 17 =>   array ( 'count' => 256, 'rank' => array (     1 => 17,    ), ), 11 =>   array ( 'count' => 256, 'rank' => array (     1 => 11,    ), ), 12 =>   array ( 'count' => 256, 'rank' => array (     1 => 12,    ), ), 4 =>   array ( 'count' => 257, 'rank' => array (     1 => 4,    ), ), 15 =>   array ( 'count' => 256, 'rank' => array (     1 => 15,    ), ), 18 =>   array ( 'count' => 256, 'rank' => array (     1 => 18,    ), ), 10 =>   array ( 'count' => 256, 'rank' => array (     1 => 10,    ), ), 1 =>   array ( 'count' => 300, 'rank' => array (     1 => 1,    ), ), 2 =>   array ( 'count' => 300, 'rank' => array (     1 => 2,    ), ), 5 =>   array ( 'count' => 257, 'rank' => array (     1 => 5,    ), ), )
 * blt: https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/20_4_5120_824772467.blt
 * php:

Environment

 * Where you tested: beta
 * Latest version of SecurePoll tested: 3.0.0 (5986646) 22:04, 23 September 2021.