Anti-Harassment Tools/SecurePoll Improvements/Test Results/stackoverflow-com-2011-election-results

Comments edit

SecurePoll and OpenSTV agree on elected candidates.

Election setup edit

  • Candidates: 10
  • Seats: 3
  • Votes: 4843

Actual results latest edit

See https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1187

Actual results archive edit

SecurePoll tally page (patch 27):

Elected edit

  1. "Candidate 8"
  2. "Candidate 4"
  3. "Candidate 6"

Eliminated edit

  • "Candidate 7"
  • "Candidate 10"
  • "Candidate 3"
  • "Candidate 9"
  • "Candidate 5"
  • "Candidate 2"

Rounds table edit

Will not paste into VisualEditor

Patch 17: Output from SecurePoll (var_dump( $this->tallier->resultsLog );): https://phabricator.wikimedia.org/P16869

Expected edit

Output from OpenSTV: https://stackoverflow.com/election/1

Loading ballots from file stackoverflow-com-2011-election-results.blt.
Ballot file contains 10 candidates and 4843 ballots.
No candidates have withdrawn.
Ballot file contains 4843 non-empty ballots.

Counting votes for Stack Overflow Moderator Election 2011 using Meek STV.
10 candidates running for 3 seats.

 R|Candidate 1   |Candidate 2   |Candidate 3   |Candidate 4   |Candidate 5   
  |--------------+--------------+--------------+--------------+--------------
  |Candidate 6   |Candidate 7   |Candidate 8   |Candidate 9   |Candidate 10  
  |--------------+--------------+--------------+--------------+--------------
  |Exhausted     |Surplus       |Threshold     
=============================================================================
 1|    550.000000|    459.000000|    391.000000|    591.000000|    407.000000
  |    506.000000|    186.000000|    959.000000|    444.000000|    350.000000
  |      0.000000|      0.000000|   1210.750001
  |--------------------------------------------------------------------------
  | Count of first choices.
=============================================================================
 2|    571.000000|    472.000000|    401.000000|    611.000000|    441.000000
  |    517.000000|              |    982.000000|    456.000000|    374.000000
  |     18.000000|      0.000000|   1206.250001
  |--------------------------------------------------------------------------
  | Count after eliminating Candidate 7 and transferring votes. All losing
  | candidates are eliminated.
=============================================================================
 3|    612.000000|    497.000000|    434.000000|    671.000000|    495.000000
  |    581.000000|              |   1029.000000|    477.000000|              
  |     47.000000|      0.000000|   1199.000001
  |--------------------------------------------------------------------------
  | Count after eliminating Candidate 10 and transferring votes. All losing
  | candidates are eliminated.
=============================================================================
 4|    672.000000|    564.000000|              |    743.000000|    531.000000
  |    652.000000|              |   1083.000000|    513.000000|              
  |     85.000000|      0.000000|   1189.500001
  |--------------------------------------------------------------------------
  | Count after eliminating Candidate 3 and transferring votes. All losing
  | candidates are eliminated.
=============================================================================
 5|    734.000000|    637.000000|              |    808.000000|    573.000000
  |    723.000000|              |   1182.000000|              |              
  |    186.000000|     17.749999|   1164.250001
  |--------------------------------------------------------------------------
  | Count after eliminating Candidate 9 and transferring votes. All losing
  | candidates are eliminated. Candidate Candidate 8 has reached the
  | threshold and is elected.
=============================================================================
 6|    801.000000|    708.000000|              |    906.000000|              
  |    812.000000|              |   1272.000000|              |              
  |    344.000000|    147.249999|   1124.750001
  |--------------------------------------------------------------------------
  | Count after eliminating Candidate 5 and transferring votes. All losing
  | candidates are eliminated.
=============================================================================
 7|    838.506888|    725.364300|              |    939.339456|              
  |    826.470250|              |   1124.750736|              |              
  |    388.568370|     11.142828|   1113.607908
  |--------------------------------------------------------------------------
  | Count after transferring surplus votes. Keep factors of candidates who
  | have exceeded the threshold: Candidate 8, 0.884238.
=============================================================================
 8|    945.474842|              |              |   1029.696554|              
  |   1003.438204|              |   1208.753346|              |              
  |    655.637054|    161.912609|   1046.840737
  |--------------------------------------------------------------------------
  | Count after eliminating Candidate 2 and transferring votes. All losing
  | candidates are eliminated.
=============================================================================
 9|    985.863905|              |              |   1067.242985|              
  |   1020.257110|              |   1046.841765|              |              
  |    722.794235|     53.981866|   1030.051442
  |--------------------------------------------------------------------------
  | Count after transferring surplus votes. Keep factors of candidates who
  | have exceeded the threshold: Candidate 8, 0.765795. Candidate Candidate 4
  | has reached the threshold and is elected.
=============================================================================
10|    996.543101|              |              |   1033.809418|              
  |   1027.539034|              |   1035.198921|              |              
  |    749.909526|     26.729516|   1023.272619
  |--------------------------------------------------------------------------
  | Count after transferring surplus votes. Keep factors of candidates who
  | have exceeded the threshold: Candidate 4, 0.965152 and Candidate 8,
  | 0.753513. Candidate Candidate 6 has reached the threshold and is elected.

Winners are Candidate 4, Candidate 6, and Candidate 8.

Files edit

Environment edit

  • Where you tested: local docker using phpunit
  • Latest version of SecurePoll tested: 3.0.0 (f06e679) 21:48, 24 August 2021