Counting single transferable votes


The single transferable vote is a voting system based on proportional representation and ranked voting. Under STV, an elector's vote is initially allocated to his or her most-preferred candidate. After candidates have been either elected by reaching quota or eliminated, surplus votes are transferred from winners to remaining candidates according to the surplus ballots' ordered preferences.
The system minimizes "wasted" votes and allows for approximately proportional representation without the use of party lists. A variety of algorithms carry out these transfers.

Voting

When using an STV ballot, the voter ranks the candidates on the ballot. For example:
Andrea2
Carter1
Brad4
Delilah3

Quota

The quota is the number of votes a candidate must receive to be elected. The Hare quota and the Droop quota are commonly used to determine the quota.

Hare quota

When Thomas Hare originally conceived his version of Single Transferable Vote, he envisioned using the quota:
In the unlikely event that each successful candidate receives exactly the same number of votes, not enough candidates can meet the quota and fill the available seats in one count. Thus the last candidate cannot not meet the quota, and it may be fairer to eliminate that candidate.
To avoid this situation, it is common instead to use the Droop quota, which is always lower than the Hare quota.

Droop quota

The most common quota formula is the Droop quota, which given as:
Droop produces a lower quota than Hare. If each ballot has a full list of preferences, Droop guarantees that every winner meets the quota rather than being elected as the last remaining candidate after lower candidates are eliminated. The fractional part of the resulting number, if any, is dropped
It is only necessary to allocate enough votes to ensure that no other candidate still in contention could win. This leaves nearly one quota's worth of votes unallocated, but counting these would not alter the outcome.
Droop is the only whole-number threshold for which a majority of the voters can be guaranteed to elect a majority of the seats when there is an odd number of seats; for a fixed number of seats.
Each winner's surplus votes transfer to other candidates according to their remaining preferences, using a formula s/t*p, where s is a number of surplus votes to be transferred, t is a total number of transferable votes and p is a number of second preferences for the given candidate. Meek's counting method recomputes the quota on each iteration of the count.

Example

Two seats need to be filled among four candidates: Andrea, Brad, Carter, and Delilah. 57 voters cast ballots with the following preference orderings:
The quota is calculated as.
In the first round, Andrea receives 40 votes and Delilah 17. Andrea is elected with 20 surplus votes. Ignoring how the votes are valued for this example, 20 votes are reallocated according to their second preferences. 12 of the reallocated votes go to Carter, 8 to Brad.
As none of the hopefuls have reached the quota, Brad, the candidate with the fewest votes, is excluded. All of his votes have Carter as the next-place choice, and are reallocated to Carter. This gives Carter 20 votes and he fills the second seat.
Thus:

Counting rules

Under the single transferable vote system, votes are successively transferred to hopefuls from two sources:
The possible algorithms for doing this differ in detail, e.g., in the order of the steps. There is no general agreement on which is best, and the choice of exact method may affect the outcome.
  1. Compute the quota.
  2. Assign votes to candidates by first preferences.
  3. Declare as winners all candidates who received at least the quota.
  4. Transfer the excess votes from winners to hopefuls.
  5. Repeat 3–4 until no new candidates are elected.
If all seats have winners, the process is complete. Otherwise:
  1. Eliminate one or more candidates, typically either the lowest candidate or all candidates whose combined votes are less than the vote of the lowest remaining candidate.
  2. Transfer the votes of the losers to remaining hopeful candidates.
  3. Repeat 3–7 until all seats are full.

    Surplus allocation

To minimize wasted votes, surplus votes are transferred to other candidates. The number of surplus votes is known; but none of the various allocation methods is universally preferred. Alternatives exist for deciding which votes to transfer, how to weight the transfers, who receives the votes and the order in which surpluses from two or more winners are transferred. Reallocation occurs when a candidate receives more votes than necessary to meet the quota. The excess votes are reallocated to still other candidates.

Random subset

Some surplus allocation methods select a random vote sample. Sometimes, ballots of one elected candidate are manually mixed. In Cambridge, Massachusetts, votes are counted one precinct at a time, imposing a spurious ordering on the votes. To prevent all transferred ballots coming from the same precinct, every th ballot is selected, where is the fraction to be selected.

Hare

Reallocation ballots are drawn at random from those transferred. In a manual count of paper ballots, this is the easiest method to implement; it is close to Thomas Hare's original 1857 proposal. It is used in elections in the Republic of Ireland to Dáil Éireann, to local government, to the European Parliament, and to the university constituencies in Seanad Éireann. Exhausted ballots cannot be reallocated, and therefore do not contribute to any candidate.

Cincinnati

Reallocation ballots are drawn at random from all of the candidate's votes. This method is more likely than Hare to be representative, and less likely to suffer from exhausted ballots. The starting point for counting is arbitrary. Under a recount the same sample and starting point is used in the recount.
Hare and Cincinnati have the same effect for first-count winners, since all the winners' votes are in the "last batch received" from which the Hare surplus is drawn.

Wright

The Wright system is a reiterative linear counting process where on each candidate's exclusion the quota is reset and the votes recounted, distributing votes according to the voters' nominated order of preference, excluding candidates removed from the count as if they had not nominated.
For each successful candidate that exceeds the quota threshold, calculate the ratio of that candidate's surplus votes divided by the total number of votes for that candidate, including the value of previous transfers. Transfer that candidate's votes to each voter's next preferred hopeful. Increase the recipient's vote tally by the product of the ratio and the ballot's value as the previous transfer
The UK's Electoral Reform Society recommends essentially this method. Every preference continues to count until the choices on that ballot have been exhausted or the election is complete. Its main disadvantage is that given large numbers of votes, candidates and/or seats, counting is administratively burdensome for a manual count due to the number of interactions. This is not the case with the use of computerised distribution of preference votes.
From May 2011 to June 2011, The Proportional Representation Society of Australia reviewed the Wright System noting:

Hare-Clark

This is a variation on the original Hare method that used random choices. It is used in some elections in Australia. It allows votes to the same ballots to be repeatedly transferred. The surplus value is calculated based on the allocation of preference of the last bundle transfer. The last bundle transfer method has been criticised as being inherently flawed in that only one segment of votes is used to transfer the value of surplus votes denying voters who contributed to a candidate's surplus a say in the surplus distribution. In the following explanation, Q is the quota required for election.
  1. Separate all ballots according to their first preferences.
  2. Count the votes.
  3. Declare as winners those hopefuls whose total is at least Q.
  4. For each winner, compute surplus as total minus Q.
  5. For each winner, in order of descending surplus:
  6. # Assign that candidate's ballots to hopefuls according to each ballot's preference, setting aside exhausted ballots.
  7. # Calculate the ratio of surplus to the number of reassigned ballots or 1 if the number of such ballots is less than surplus.
  8. # For each hopeful, multiply ratio * the number of that hopeful's reassigned votes and add the result to the hopeful's tally.
  9. Repeat 3–5 until winners fill all seats, or all ballots are exhausted.
  10. If more winners are needed, declare a loser the hopeful with the fewest votes, recompute Q and repeat from 1, ignoring all preferences for the loser.
Example: If Q is 200 and a winner has 272 first-choice votes, of which 92 have no other hopeful listed, surplus is 72, ratio is 72/ or 0.4. If 75 of the reassigned 180 ballots have hopeful X as their second-choice, and if X has 190 votes, then X becomes a winner, with a surplus of 20 for the next round, if needed.
The Australian variant of step 7 treats the loser's votes as though they were surplus votes. But redoing the whole method prevents what is perhaps the only significant way of gaming this system – some voters put first a candidate they are sure will be eliminated early, hoping that their later preferences will then have more influence on the outcome.

Gregory

Another method, known as Senatorial rules, or the Gregory method eliminates all randomness. Instead of transferring a fraction of votes at full value, transfer all votes at a fractional value.
In the above example, the relevant fraction is. Note that part of the 272 vote result may be from earlier transfers; e.g., perhaps Y had been elected with 250 votes, 150 with X as next preference, so that the previous transfer of 30 votes was actually 150 ballots at a value of. In this case, these 150 ballots would now be retransferred with a compounded fractional value of.
In the Republic of Ireland, the Gregory Method is used for elections to the 43 seats on the vocational panels in Seanad Éireann, whose franchise is restricted to 949 members of local authorities and members of the Oireachtas. In Northern Ireland, the Gregory Method has been used since 1973 for all STV elections, with up to 7 fractional transfers, and up to 700,000 votes counted.
An alternative means of expressing Gregory in calculating the Surplus Transfer Value applied to each vote is
The Unweighted Inclusive Gregory Method is used for the Australian Senate.

Secondary preferences for prior winners

Suppose a ballot is to be transferred and its next preference is for a winner in a prior round. Hare and Cincinnati ignore such preferences and transfer the ballot to the next preference.
Or the vote could be transferred to that winner and the process continued. For example, a prior winner X could receive 20 transfers from second round winner Y. Then select 20 at random from the 220 for transfer from X. However, some of these 20 ballots may then transfer back from X to Y, creating recursion. In the case of the Senatorial rules, since all votes are transferred at all stages, the recursion is infinite, with ever-decreasing fractions.

Meek

In 1969, B.L. Meek devised an algorithm based on Senatorial rules, which uses an iterative approximation to short-circuit this infinite recursion. This system is currently used for some local elections in New Zealand, and for elections of moderators on some internet websites, e.g. Stack Exchange Network portals.
All candidates are allocated one of three statuses – Hopeful, Elected, or Excluded. Hopeful is the default. Each status has a weighting, or keep value, which is the fraction of the vote a candidate will receive for any preferences allocated to them while holding that status.
The weightings are:
Hopeful
Excluded
Elected
which is repeated until for all elected candidates

Thus, if a candidate is Hopeful they retain the whole of the remaining preferences allocated to them, and subsequent preferences are worth 0.
If a candidate is Elected they retain the portion of the value of the preferences allocated to them that is the value of their weighting; the remainder is passed fractionally to subsequent preferences depending on their weighting, using the formula:
For example, consider a ballot with top preferences A, B, C, where the weightings of the three candidates are,, respectively. From this ballot A will retain, B will retain, and C will retain.
This may result in a fractional excess, which is disposed of by altering the quota. Meek's method is the only method to change quota mid-process. The quota is found by
a variation on Droop. This has the effect of also altering the weighting for each candidate.
This process continues until all the Elected candidates' vote values closely match the quota.

Warren

In 1994, C. H. E. Warren proposed another method of passing surplus to previously-elected candidates. Warren is identical to Meek except in the numbers of votes retained by winners. Under Warren, rather than retaining that proportion of each vote's value given by multiplying the weighting by the vote's value, the candidate retains that amount of a whole vote given by the weighting, or else whatever remains of the vote's value if that is less than the weighting.
Consider again a ballot with top preferences A, B, C, where the weightings are a, b, and c. Under Warren's method, A will retain a, B will retain b if, and C will retain c if <c — or 0 if.
Because candidates receive different values of votes, the weightings determined by Warren are in general different than Meek.
Under Warren, every vote that contributes to a candidate contributes, as far as it is able, the same portion as every other such vote.

Distribution of excluded candidate preferences

The method used in determining the order of exclusion and distribution of a candidates' votes can affect the outcome. Multiple methods are in common use for determining the order polyexclusion and distribution of ballots from a loser. Most systems were designed for manual counting processes and can produce different outcomes.
The general principle that applies to each method is to exclude the candidate that has the lowest tally. Systems must handle ties for the lowest tally. Alternatives include excluding the candidate with the lowest score in the previous round and choosing by lot.
Exclusion methods commonly in use:
Bulk exclusion rules can reduce the number of steps required within a count. Bulk exclusion requires the calculation of breakpoints. Any candidates with a tally less than a breakpoint can be included in a bulk exclusion process provided the value of the associated running sum is not greater than the difference between the total value of the highest hopeful's tally and the quota.
To determine a breakpoint, list in descending order each candidates' tally and calculate the running tally of all candidates' votes that are less than the associated candidates tally.
The four types are:
Quota breakpoints may not apply with optional preferential ballots or if more than one seat is open. Candidates above the applied breakpoint should not be included in a bulk exclusion process unless it is an adjacent quota or running breakpoint.

Example

Quota breakpoint
CandidateBallot positionGroupAbGroup nameScoreRunning sumBreakpoint / Status
MACDONALD, Ian DouglasJ-1LNPLiberal345559Quota
HOGG, John JosephO-1ALPAustralian Labor Party345559Quota
BOYCE, SueJ-2LNPLiberal345559Quota
MOORE, ClaireO-2ALPAustralian Labor Party345559Quota
BOSWELL, RonJ-3LNPLiberal2844881043927Contest
WATERS, LarissaO-3ALPThe Greens254971759439Contest
FURNER, MarkM-1GRNAustralian Labor Party176511504468Contest
HANSON, PaulineR-1HANPauline101592327957Contest
BUCHANAN, JeffH-1FFPFamily First52838226365Contest
BARTLETT, AndrewI-1DEMDemocrats45395173527Contest
SMITH, BobG-1AFLPThe Fishing Party20277128132Quota Breakpoint
COLLINS, KevinP-1FPAustralian Fishing and Lifestyle Party19081107855Contest
BOUSFIELD, AnneA-1WWWWhat Women Want 1728388774Contest
FEENEY, Paul JosephL-1ASPThe Australian Shooters Party1285771491Contest
JOHNSON, PhilC-1CCCClimate Change Coalition870258634Applied Breakpoint
JACKSON, NoelV-1DLPD.L.P. - Democratic Labor Party725549932
Others4267742677

Running breakpoint
CandidateBallot positionGroupAbGroup nameScoreRunning sumBreakpoint / Status
SHERRY, NickD-1ALPAustralian Labor Party46693Quota
COLBECK, Richard MF-1LPLiberal46693Quota
BROWN, BobB-1GRNThe Greens46693Quota
BROWN, CarolD-2ALPAustralian Labor Party46693Quota
BUSHBY, DavidF-2LPLiberal46693Quota
BILYK, CatrynaD-3ALPAustralian Labor Party37189Contest
MORRIS, DonF-3LPLiberal28586Contest
WILKIE, AndrewB-2GRNThe Greens1219327607Running Breakpoint
PETRUSMA, JacquieK-1FFPFamily First647115414Quota Breakpoint
CASHION, DebraA-1WWWWhat Women Want 24878943Applied Breakpoint
CREA, PatE-1DLPD.L.P. - Democratic Labor Party20276457
OTTAVI, DinoG-1UN313474430
MARTIN, SteveC-1UN18483083
HOUGHTON, Sophie LouiseB-3GRNThe Greens3532236
LARNER, CarolineJ-1CECCitizens Electoral Council3111883
IRELAND, BedeI-1LDPLDP2981573
DOYLE, RobynH-1UN22451275
BENNETT, AndrewK-2FFPFamily First1741030
ROBERTS, BettyK-3FFPFamily First158856
JORDAN, ScottB-4GRNThe Greens139698
GLEESON, BelindaA-2WWWWhat Women Want 135558
SHACKCLOTH, JoanE-2DLPD.L.P. - Democratic Labor Party116423
SMALLBANE, ChrisG-3UN3102307
COOK, MickG-2UN374205
HAMMOND, DavidH-2UN253132
NELSON, KarleyC-2UN13579
PHIBBS, MichaelJ-2CECCitizens Electoral Council2344
HAMILTON, LukeI-2LDPLDP2121