Anti-Harassment Tools/SecurePoll Improvements/Test Results/20 6 5000 698142105

From mediawiki.org
Jump to navigation Jump to search

Comments[edit]

Case: All but one seat filled, one hopeful candidate, rest of candidates eliminated.

SecurePoll and OpenSTV agree on final results.

Election setup[edit]

  • Candidates: 20
  • Seats: 6
  • Votes: 5000

Actual results latest[edit]

Output from SecurePoll tally.php: /actual

Output from SecurePoll var_export( $this->tallier->resultsLog );: https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/20_6_5000_698142105.blt.php

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

Actual results archive[edit]

/archive

Expected[edit]

Output from OpenSTV:

Loading ballots from file 20_6_5000_698142105.blt.
Ballot file contains 20 candidates and 5000 ballots.
No candidates have withdrawn.
Ballot file contains 5000 non-empty ballots.

Counting votes for ElectionTitle using Meek STV.
20 candidates running for 6 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| 857.000000| 857.000000| 857.000000| 857.000000| 858.000000| 714.000000
  |   0.000000|   0.000000|   0.000000|   0.000000|   0.000000|   0.000000
  |   0.000000|   0.000000|   0.000000|   0.000000|   0.000000|   0.000000
  |   0.000000|   0.000000|   0.000000| 714.571425| 714.285715
  |-----------------------------------------------------------------------
  | Count of first choices. Candidates 1, 2, 3, 4, and 5 have reached the
  | threshold and are elected.
==========================================================================
 2| 714.286361| 714.286361| 714.286361| 714.286361| 714.285858| 714.000000
  |           |           |           |           |           |           
  |           |           |           |           |           |           
  |           |           | 714.568698| 612.204470| 612.204472
  |-----------------------------------------------------------------------
  | Count after transferring surplus votes. Keep factors of candidates who
  | have exceeded the threshold: 1, 0.833473; 2, 0.833473; 3, 0.833473; 4,
  | 0.833473; and 5, 0.832501. Candidate 6 has reached the threshold and
  | is elected.

Winners are 1, 2, 3, 4, 5, and 6.

Files[edit]

Environment[edit]

  • Where you tested: beta and local docker
  • Latest version of SecurePoll tested: 3.0.0 (b7a4ccb) 06:16, 1 September 2021