Jump to content

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

From mediawiki.org

Comments

[edit]

Case: 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

[edit]

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

Actual tally: SP 3.0.0 (58bf4c8)

[edit]

Elected

[edit]

Election for 6 seats with 20 candidates. Total 5,000 votes.

  1. "2"
  2. "4"
  3. "6"
  4. "8"
  5. "17"
  6. "9"

Eliminated/Not elected

[edit]
  • "10"
  • "5"
  • "12"
  • "13"
  • "14"
  • "15"
  • "16"
  • "18"
  • "19"
  • "20"
  • "1"
  • "11"
  • "3"
  • "7"

Rounds table

[edit]

The 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
  1. "8": 985
  2. "4": 985
  3. "6": 985
  4. "2": 984
  5. "1": 67
  6. "9": 67
  7. "11": 67
  8. "7": 67
  9. "3": 67
  10. "5": 66
  11. "10": 66
  12. "12": 66
  13. "13": 66
  14. "14": 66
  15. "15": 66
  16. "16": 66
  17. "17": 66
  18. "18": 66
  19. "19": 66
  20. "20": 66
Quota: 714.285715
2
  1. "8": 985
  2. "4": 985
  3. "6": 985
  4. "2": 984
  5. "1": 67
  6. "9": 67
  7. "11": 67
  8. "7": 67
  9. "3": 67
  10. "5": 66
  11. "10": 66
  12. "12": 66
  13. "13": 66
  14. "14": 66
  15. "15": 66
  16. "16": 66
  17. "17": 66
  18. "18": 66
  19. "19": 66
  20. "20": 66
Quota: 714.285715

Elected: "2", "4", "6", "8"

3
  1. "17": 66 - 65 = 1,147.857139
  2. "8": 985 - 270.714285 = 714.285715 (keep factor: 0.725163)
  3. "4": 985 - 270.714285 = 714.285715 (keep factor: 0.725163)
  4. "2": 984 - 269.714285 = 714.285715 (keep factor: 0.725900)
  5. "6": 985 - 270.714285 = 714.285715 (keep factor: 0.725163)
  6. "1": 67
  7. "9": 67
  8. "11": 67
  9. "3": 67
  10. "7": 67
  11. "10": 66
  12. "5": 66
  13. "12": 66
  14. "13": 66
  15. "14": 66
  16. "15": 66
  17. "16": 66
  18. "18": 66
  19. "19": 66
  20. "20": 66
Quota: 714.285715

Elected: "17" Transferring votes

4
  1. "8": 714.285715 (keep factor: 0.725163)
  2. "4": 714.285715 (keep factor: 0.725163)
  3. "6": 714.285715 (keep factor: 0.725163)
  4. "17": 1,147.857139 + 713.285715 = 714.285715 (keep factor: 0.622278)
  5. "2": 714.285715 (keep factor: 0.725900)
  6. "9": 67 + 408.641741 = 475.641741
  7. "1": 67
  8. "11": 67
  9. "3": 67
  10. "7": 67
  11. "10": 66
  12. "5": 66
  13. "12": 66
  14. "13": 66
  15. "14": 66
  16. "15": 66
  17. "16": 66
  18. "18": 66
  19. "19": 66
  20. "20": 66
Quota: 710.724332

Transferring votes

5
  1. "17": 714.285715 + 5.259093 = 719.544808 (keep factor: 0.619175)
  2. "2": 714.285715 - 3.561383 = 710.724332 (keep factor: 0.722281)
  3. "8": 714.285715 - 3.561383 = 710.724332 (keep factor: 0.721548)
  4. "4": 714.285715 - 3.561383 = 710.724332 (keep factor: 0.721548)
  5. "6": 714.285715 - 3.561383 = 710.724332 (keep factor: 0.721548)
  6. "9": 475.641741 + 8.781666 = 484.423407
  7. "1": 67
  8. "11": 67
  9. "3": 67
  10. "7": 67
  11. "10": 66
  12. "5": 66
  13. "12": 66
  14. "13": 66
  15. "14": 66
  16. "15": 66
  17. "16": 66
  18. "18": 66
  19. "19": 66
  20. "20": 66
Quota: 710.695079

Transferring votes

6
  1. "17": 719.544808 - 8.778168 = 710.766640 (keep factor: 0.611560)
  2. "8": 710.724332 - 0.029253 = 710.695079 (keep factor: 0.721518)
  3. "4": 710.724332 - 0.029253 = 710.695079 (keep factor: 0.721518)
  4. "6": 710.724332 - 0.029253 = 710.695079 (keep factor: 0.721518)
  5. "2": 710.724332 - 0.029253 = 710.695079 (keep factor: 0.722251)
  6. "9": 484.423407 + 8.392574 = 492.815981
  7. "1": 67
  8. "11": 67
  9. "3": 67
  10. "7": 67
  11. "10": 66
  12. "5": 66
  13. "12": 66
  14. "13": 66
  15. "14": 66
  16. "15": 66
  17. "16": 66
  18. "18": 66
  19. "19": 66
  20. "20": 66
Quota: 710.623278

Eliminated: "10", "5", "12", "13", "14", "15", "16", "18", "19", "20" Transferring votes

7
  1. "17": 710.766640 + 201.806216 = 912.572856 (keep factor: 0.611436)
  2. "8": 710.695079 - 0.071801 = 710.623278 (keep factor: 0.721445)
  3. "4": 710.695079 - 0.071801 = 710.623278 (keep factor: 0.721445)
  4. "2": 710.695079 - 0.071801 = 710.623278 (keep factor: 0.722178)
  5. "6": 710.695079 - 0.071801 = 710.623278 (keep factor: 0.721445)
  6. "9": 492.815981 + 128.472847 = 621.288828
  7. "1": 67
  8. "11": 67
  9. "3": 67
  10. "7": 67
Quota: 663.479257

Eliminated: "1", "11", "3", "7" Transferring votes

8
  1. "9": 621.288828 + 342.824894 = 964.113722
  2. "17": 912.572856 - 165.263957 = 747.308899 (keep factor: 0.444540)
  3. "4": 710.623278 - 47.144021 = 663.479257 (keep factor: 0.673583)
  4. "6": 710.623278 - 47.144021 = 663.479257 (keep factor: 0.673583)
  5. "8": 710.623278 - 47.144021 = 663.479257 (keep factor: 0.673583)
  6. "2": 710.623278 - 47.144021 = 663.479257 (keep factor: 0.674268)
Quota: 623.619951

Elected: "9" Transferring votes

(Results from 14:17, 31 August 2021)

[edit]
  • Admin
  • Talk
  • Preferences
  • Watchlist
  • Contributions
  • Log out
  • Special page

Tools

[edit]
  • Special pages
  • Printable version



Expected

[edit]

Output from OpenSTV: https://phabricator.wikimedia.org/P16852

Files

[edit]
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]