Jump to content

Anti-Harassment Tools/SecurePoll Improvements/Test Results/math-stackexchange-com-2011-election-results/archive

From mediawiki.org

Patch 28

[edit]

SecurePoll tally page (patch 28):

Elected

[edit]

Election for 2 seats with 4 candidates. Total 211 votes.

  1. "Candidate 1"
  2. "Candidate 2"

Eliminated

[edit]

Rounds table

[edit]
Round Number Tally Result
1
  1. "Candidate 1":124
  2. "Candidate 2":48
  3. "Candidate 3":24
  4. "Candidate 4":15
Quota: 70.333334
2
  1. "Candidate 1":124
  2. "Candidate 2":48
  3. "Candidate 3":24
  4. "Candidate 4":15
Quota: 70.333334

Elected: "Candidate 1"

3
  1. "Candidate 2":48 + 22.938172 = 70.938172
  2. "Candidate 1":124 - 53.666666 = 70.333334 (keep factor: 0.567204)
  3. "Candidate 3":24 + 14.715053 = 38.715053
  4. "Candidate 4":15 + 8.655914 = 23.655914
Quota: 67.880825

Elected: "Candidate 2" Transferring votes

(Results from 13:55, 29 July 2021)

Patch 17

[edit]

Output from SecurePoll:

array(3) {
  ["elected"]=>
  array(2) {
    [0]=>
    int(1)
    [1]=>
    int(2)
  }
  ["eliminated"]=>
  array(0) {
  }
  ["rounds"]=>
  array(3) {
    [0]=>
    array(8) {
      ["round"]=>
      int(1)
      ["surplus"]=>
      int(0)
      ["rankings"]=>
      array(4) {
        [1]=>
        array(3) {
          ["votes"]=>
          int(0)
          ["earned"]=>
          int(124)
          ["total"]=>
          int(124)
        }
        [2]=>
        array(3) {
          ["votes"]=>
          int(0)
          ["earned"]=>
          int(48)
          ["total"]=>
          int(48)
        }
        [3]=>
        array(3) {
          ["votes"]=>
          int(0)
          ["earned"]=>
          int(24)
          ["total"]=>
          int(24)
        }
        [4]=>
        array(3) {
          ["votes"]=>
          int(0)
          ["earned"]=>
          int(15)
          ["total"]=>
          int(15)
        }
      }
      ["totalVotes"]=>
      int(211)
      ["keepFactors"]=>
      array(4) {
        [1]=>
        int(1)
        [2]=>
        int(1)
        [3]=>
        int(1)
        [4]=>
        int(1)
      }
      ["quota"]=>
      int(71)
      ["elected"]=>
      array(0) {
      }
      ["eliminated"]=>
      array(0) {
      }
    }
    [1]=>
    array(8) {
      ["round"]=>
      int(2)
      ["elected"]=>
      array(1) {
        [0]=>
        int(1)
      }
      ["eliminated"]=>
      array(0) {
      }
      ["surplus"]=>
      int(53)
      ["keepFactors"]=>
      array(4) {
        [1]=>
        int(1)
        [2]=>
        int(1)
        [3]=>
        int(1)
        [4]=>
        int(1)
      }
      ["quota"]=>
      int(71)
      ["rankings"]=>
      array(4) {
        [1]=>
        array(3) {
          ["votes"]=>
          int(124)
          ["earned"]=>
          int(0)
          ["total"]=>
          int(124)
        }
        [2]=>
        array(3) {
          ["votes"]=>
          int(48)
          ["earned"]=>
          int(0)
          ["total"]=>
          int(48)
        }
        [3]=>
        array(3) {
          ["votes"]=>
          int(24)
          ["earned"]=>
          int(0)
          ["total"]=>
          int(24)
        }
        [4]=>
        array(3) {
          ["votes"]=>
          int(15)
          ["earned"]=>
          int(0)
          ["total"]=>
          int(15)
        }
      }
      ["totalVotes"]=>
      int(211)
    }
    [2]=>
    array(8) {
      ["round"]=>
      int(3)
      ["elected"]=>
      array(1) {
        [1]=>
        int(2)
      }
      ["eliminated"]=>
      array(0) {
      }
      ["surplus"]=>
      float(5.6532258064516)
      ["keepFactors"]=>
      array(4) {
        [1]=>
        float(0.57258064516129)
        [2]=>
        int(1)
        [3]=>
        int(1)
        [4]=>
        int(1)
      }
      ["quota"]=>
      int(68)
      ["rankings"]=>
      array(4) {
        [1]=>
        array(3) {
          ["votes"]=>
          int(124)
          ["earned"]=>
          float(-53)
          ["total"]=>
          float(71)
        }
        [2]=>
        array(3) {
          ["votes"]=>
          int(48)
          ["earned"]=>
          float(22.653225806452)
          ["total"]=>
          float(70.653225806452)
        }
        [3]=>
        array(3) {
          ["votes"]=>
          int(24)
          ["earned"]=>
          float(14.532258064516)
          ["total"]=>
          float(38.532258064516)
        }
        [4]=>
        array(3) {
          ["votes"]=>
          int(15)
          ["earned"]=>
          float(8.5483870967742)
          ["total"]=>
          float(23.548387096774)
        }
      }
      ["totalVotes"]=>
      float(203.73387096774)
    }
  }
}