Anti-Harassment Tools/SecurePoll Improvements/Test Results/20 6 5000 2048723651
Comments
editCase: All but two seats filled, rest of candidates hopeful. 2nd preferences transferred to candidate 17. 3rd preferences transferred to candidate 9.
SecurePoll and OpenSTV agree on winning candidates.
Election setup
edit- Candidates: 20
- Seats: 6
- Votes: 5000
Actual
editOutput from SecurePoll (var_dump( $this->tallier->resultsLog );
): https://phabricator.wikimedia.org/P16851
Actual tally: SP 3.0.0 (58bf4c8)
editElected
editElection for 6 seats with 20 candidates. Total 5,000 votes.
- "2"
- "4"
- "6"
- "8"
- "17"
- "9"
Eliminated/Not elected
edit- "10"
- "5"
- "12"
- "13"
- "14"
- "15"
- "16"
- "18"
- "19"
- "20"
- "1"
- "11"
- "3"
- "7"
Rounds table
editThe following table describes the calculations that happened in order to achieve the result above. In each round of calculation, the candidate(s) who achieved more votes than the quota are declared elected. Their surplus votes above the quota are redistributed to the remaining candidates. If nobody achieves the quota, the lowest ranking candidate is eliminated and their votes are redistributed to the remaining candidates. To understand this better, please refer to this link.
Round Number | Tally | Result |
---|---|---|
1 |
|
Quota: 714.285715 |
2 |
|
Quota: 714.285715
Elected: "2", "4", "6", "8" |
3 |
|
Quota: 714.285715
Elected: "17" Transferring votes |
4 |
|
Quota: 710.724332
Transferring votes |
5 |
|
Quota: 710.695079
Transferring votes |
6 |
|
Quota: 710.623278
Eliminated: "10", "5", "12", "13", "14", "15", "16", "18", "19", "20" Transferring votes |
7 |
|
Quota: 663.479257
Eliminated: "1", "11", "3", "7" Transferring votes |
8 |
|
Quota: 623.619951
Elected: "9" Transferring votes |
(Results from 14:17, 31 August 2021)
Navigation menu
edit- Admin
- Talk
- Preferences
- Watchlist
- Contributions
- Log out
- Special page
- Main page
- Recent changes
- Random page
- Help about MediaWiki
Tools
edit- Special pages
- Printable version
Expected
editOutput from OpenSTV: https://phabricator.wikimedia.org/P16852
Files
edit- blt: https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/20_6_5000_2048723651.blt
- php:
array ( '15_17_9' => array ( 'count' => 66, 'rank' => array ( 1 => 15, 2 => 17, 3 => 9, ), ), '4_17_9' => array ( 'count' => 985, 'rank' => array ( 1 => 4, 2 => 17, 3 => 9, ), ), '8_17_9' => array ( 'count' => 985, 'rank' => array ( 1 => 8, 2 => 17, 3 => 9, ), ), 9 => array ( 'count' => 67, 'rank' => array ( 1 => 9, ), ), '2_17_9' => array ( 'count' => 984, 'rank' => array ( 1 => 2, 2 => 17, 3 => 9, ), ), 20 => array ( 'count' => 66, 'rank' => array ( 1 => 20, ), ), '12_17_9' => array ( 'count' => 66, 'rank' => array ( 1 => 12, 2 => 17, 3 => 9, ), ), 11 => array ( 'count' => 67, 'rank' => array ( 1 => 11, ), ), 18 => array ( 'count' => 66, 'rank' => array ( 1 => 18, ), ), '19_17_9' => array ( 'count' => 66, 'rank' => array ( 1 => 19, 2 => 17, 3 => 9, ), ), '5_17_9' => array ( 'count' => 66, 'rank' => array ( 1 => 5, 2 => 17, 3 => 9, ), ), 16 => array ( 'count' => 66, 'rank' => array ( 1 => 16, ), ), 13 => array ( 'count' => 66, 'rank' => array ( 1 => 13, ), ), '10_17_9' => array ( 'count' => 66, 'rank' => array ( 1 => 10, 2 => 17, 3 => 9, ), ), 17 => array ( 'count' => 66, 'rank' => array ( 1 => 17, ), ), 3 => array ( 'count' => 67, 'rank' => array ( 1 => 3, ), ), 7 => array ( 'count' => 67, 'rank' => array ( 1 => 7, ), ), '6_17_9' => array ( 'count' => 985, 'rank' => array ( 1 => 6, 2 => 17, 3 => 9, ), ), 1 => array ( 'count' => 67, 'rank' => array ( 1 => 1, ), ), 14 => array ( 'count' => 66, 'rank' => array ( 1 => 14, ), ), )
Environment
edit- Where you tested: local docker using phpunit
- Version of SecurePoll: commit 271145d5f3cae3b0a1b76d0f5dfeb609615d60b7 (patch 16 from https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/704454/)