Algorithmic Game Theory · Lecture Notes

Chapter 7: Social Choice and Voting

When a group of people must decide together, not everyone wants the same thing. A club elects a president, a committee approves one of several projects, a search engine merges rankings from different sources into a single list. All of these decisions raise the same question: how can a single collective decision be extracted from individual preferences? The field that studies this question is social choice theory. When the most widely used voting rules are applied step by step to a single preference profile, the same ballots produce four different winners. Paradoxes such as the Condorcet cycle, the power of the agenda, and monotonicity violations, the Kemeny rule, and strategic voting, in which voters can change the outcome by lying, are all treated with numerical examples. The theorems of Arrow, Gibbard–Satterthwaite, and May, single-peaked preferences, computational social choice, judgment aggregation, and proportional representation are the remaining topics of these notes.

Learning outcomes

Counting
Apply majority, plurality, Borda, approval, instant-runoff, and Condorcet rules step by step to the same preference profile.
Paradoxes
Demonstrate the Condorcet cycle, the effect of the agenda order, and the monotonicity violation of IRV; find the Kemeny ranking.
Strategic voting
Show numerically tactical voting under plurality and the “burying” manipulation under Borda.
Theorems
Explain what the theorems of Arrow, Gibbard–Satterthwaite, and May say; recognize the escape route offered by single-peaked preferences.

7.1Social choice

In the games of game theory, each player tries to maximize their own payoff, and the outcome results from combining the players' choices. Voting is similar: each voter reports a preference, a rule aggregates these reports, and a single outcome that applies to everyone is produced. The difference is that the outcome is determined by an explicitly written rule. The question of this chapter is: how should this rule be chosen, and what good and bad properties does the chosen rule have?

7.1.1A game to start with: the Condorcet paradox

The chapter opens with a small game played in class. Three voters rank three candidates, A, B, and C, according to their own tastes. Then every pair of candidates is compared by pairwise majority: when A and B are compared, each voter votes for whichever of the two is higher in their own ranking. A candidate who beats all rivals this way is called a Condorcet winner. The name comes from the French mathematician Marquis de Condorcet, who studied such comparisons in the 18th century.

At the first level of the game the voters' rankings are as follows: the first voter has A ≻ B ≻ C, the second B ≻ C ≻ A, and the third C ≻ A ≻ B. Here the symbol “≻” means “is preferred to”; A ≻ B ≻ C reads “I prefer A to B, and B to C.” Figure 7.1 shows the three rankings as columns; the candidate at the top is preferred more. In the triangle on the right, each edge is a pairwise comparison, and the question mark shows that it is not yet known who wins that comparison.

1ABC2BCA3CABvotertop candidateis preferred more???ABCin pairwise majoritywho beats whom?
Figure 7.1: The first level of the Condorcet Paradox game. Left: the rankings of the three voters (the candidate at the top is preferred more). Right: the comparison triangle to be filled in with pairwise majority.

The game asks two questions. First: if each voter’s ranking is consistent in itself, must the community’s preference be consistent too? Second: if one person had the authority to set the order of the votes, could that person make any candidate they like win? The answers to both questions are computed in Section 7.3. In short: the community’s preference can be inconsistent, and the person who sets the voting order can pick the outcome. These two observations show that what is called “the will of the people” is not always automatically well defined.

7.1.2What is social choice?

Social choice is the field that studies rules that turn individual preferences into a collective decision or a social ranking. The aim of the field is not to find a single universal definition of fairness. The aim is to understand which criteria rules satisfy and what trade-offs they create. A rule may satisfy some good properties while violating others; which property matters more depends on the context of the decision.

The areas of application are broad: general elections, committee and club decisions, choosing which activity a class will go to, deciding how to use a shared resource, and online polls. The same questions arise in computer science. Merging the result lists of several search engines into one, having several classifiers vote on a decision, or producing a ranking from user ratings are all problems of extracting a collective ranking from individual rankings.

The basic object of social choice is the preference. A voter’s preference is a ranking that orders the candidates from most liked to least liked. This ranking is assumed to have two properties.

Definition 7.1

Let A be the set of candidates. A voter’s preference is a ranking over A written x ≻ y (“prefers x to y”). This ranking is

  • complete: for every pair of distinct x, y, either x ≻ y or y ≻ x;
  • transitive: if x ≻ y and y ≻ z, then x ≻ z.

Completeness says that the voter can compare any two candidates; there is no “I don’t know” answer. Transitivity means that the ranking is free of internal contradiction. If someone who prefers A to B and B to C also prefers C to A, this person cannot give a consistent answer when asked which of A, B, and C to choose: whichever they pick, there is another candidate they like more. In this chapter every voter’s preference is assumed to be complete and transitive. One of the chapter’s surprising results is this: even if this assumption holds for individuals, it may fail for the community.

Definition 7.2

The list of the preferences of n voters is called a preference profile: (≻1, ≻2, …, ≻n). The ranking a voter reports is called a ballot.

The ballot and the true preference are not the same thing. A voter who really thinks A ≻ B ≻ C may write B ≻ A ≻ C on the ballot. From the game-theoretic viewpoint, the ballot is the voter’s strategy: the voter can choose the ballot that makes the rule’s outcome best for their true preference. This viewpoint is the basis of strategic voting in Section 7.4.

A voting rule takes a preference profile as input and produces an outcome. Two kinds of rules are distinguished according to the type of outcome.

Definition 7.3
  • A social choice function (SCF) assigns a single winning candidate to each profile: f(≻1, …, ≻n) ∈ A.
  • A social welfare function (SWF) assigns a social ranking of the candidates to each profile: F(≻1, …, ≻n) is a ranking over A.

Figure 7.2 summarizes this structure. On the left is the input, the preference profile; each column is the ranking of a group of voters. In the middle stands the rule f, which assigns an outcome to the profile. On the right are the two kinds of output: a single winner (SCF) at the top and a complete social ranking (SWF) at the bottom. In the example in the figure the rule is the Borda count; the winner is B and the ranking is B ≻ D ≻ A ≻ C. Where these numbers come from is computed step by step in Section 7.2.3.

input: preference profile4 votersADBC4 votersCBDA3 votersDBCA2 votersABCDf : profile → outcomethe rule assigning an outcome to the profile(plurality, Borda, IRV, …)Borda winner: Branking: B ≻ D ≻ A ≻ CSCF (social choice function)SWF (social welfare function)each column: the ranking of a group of votersballot = strategy
Figure 7.2: The input and output of a social choice rule. The preference profile goes into the rule; the output is either a single winner (SCF) or a social ranking (SWF). The ballot is the voter’s strategy.

The note “ballot = strategy” below the figure shows the chapter’s link with mechanism design. In mechanism design, a designer asks players to report their private information (their preferences) and picks an outcome according to these reports; often the designer also collects payments from the players or pays them. Voting is the moneyless special case of mechanism design: there are no payments, only rankings. Since there is no money, it is impossible to “punish” a voter for lying or to “reward” them for telling the truth. The consequences of this restriction are seen clearly in the Gibbard–Satterthwaite theorem in Section 7.5.4.

Common mistake

Confusing an SCF with an SWF. An SWF always yields an SCF: the first candidate in the social ranking is the winner. The converse is not true: knowing a winner does not give the social order of the remaining candidates. This distinction matters because Arrow’s theorem is about SWFs (rankings), while the Gibbard–Satterthwaite theorem is about SCFs (a single winner).

7.1.3An example preference profile

Most of the rules in this chapter are compared on a single preference profile. This makes it plain that different rules draw different outcomes from the same votes. The profile is given in Table 7.1.

Table 7.1: An example preference profile: 13 voters, 4 candidates. Each column is a group of voters who gave the same ranking.
rank4 voters4 voters3 voters2 voters
1.ACDA
2.DBBB
3.BDCC
4.CAAD

The table is read as follows. Voters who gave the same ranking are collected in one column; the column heading says how many voters gave that ranking. The first column means “4 voters gave the ranking A ≻ D ≻ B ≻ C.” For these four voters, A is the best and C the worst candidate. The four voters in the second column give C ≻ B ≻ D ≻ A, the three voters in the third column give D ≻ B ≻ C ≻ A, and the two voters in the fourth column give A ≻ B ≻ C ≻ D. Throughout the notes these four columns are referred to as Group 1, Group 2, Group 3, and Group 4 (G1–G4 for short).

The total number of voters is 4 + 4 + 3 + 2 = 13. In some rules a candidate needs more than half of the votes to win. Half of 13 is 6.5; more than half means at least 7 votes. This number is called the majority threshold, and in this profile it is 7.

A few notable features of the profile can be noted in advance. A is the first choice of six voters (G1 and G4) but the last choice of seven voters (G2 and G3): A is a candidate who polarizes the voters. No voter puts B first, but nine voters put B second and nobody puts B last: B is the compromise candidate whom everyone calls “acceptable.” D is the first choice of three voters and the second choice of four. These features explain why each rule picks a different candidate: rules applied to the same profile give four different winners.

Example 7.1

Question: how many voters in the profile prefer D to B? For each group, compare the positions of D and B.

  1. G1 (A ≻ D ≻ B ≻ C): D is second and B third; D ≻ B. 4 voters.
  2. G2 (C ≻ B ≻ D ≻ A): B is second and D third; B ≻ D. 0 voters.
  3. G3 (D ≻ B ≻ C ≻ A): D is first and B second; D ≻ B. 3 voters.
  4. G4 (A ≻ B ≻ C ≻ D): B is second and D fourth; B ≻ D. 0 voters.

Total: 4 + 3 = 7 voters prefer D to B, and 4 + 2 = 6 voters prefer B to D. The two numbers add up to the number of voters (13), because in a complete ranking each voter puts exactly one of the two candidates ahead. This check is the easiest way to catch counting errors in pairwise comparisons.

7.2Voting rules

All of the most widely used voting rules are applied to the same profile in Table 7.1. Three questions are asked for each rule: what does the voter report, how is the count done, and whom does the rule choose in this profile?

7.2.1Overview of the basic voting rules

Rules are distinguished by two questions. First: what does the voter report on the ballot? In some rules only a single candidate is written; in some a complete ranking of the candidates is requested, and in others a set of acceptable candidates. Second: how are the reports counted and how is the winner determined? Table 7.2 summarizes six basic rules according to these two questions.

Table 7.2: Basic voting rules.
RuleWhat does the voter report?Winner
MajorityA single candidateThe candidate with more than half of the votes (no winner if none)
PluralityA single candidateThe candidate with the most first choices; need not exceed half
Borda countFull rankingFor m candidates, rank positions get m − 1, m − 2, …, 0 points; the highest total
ApprovalThe set of approved candidatesThe candidate with the most approvals
Instant-runoff voting (IRV)Full rankingThe candidate with the fewest first choices is eliminated and their votes are transferred; repeat until a majority
CondorcetFull rankingThe candidate who beats every rival in pairwise comparison (may not always exist)

Some of the rules in the table use only a part of the ranking. Majority and plurality look only at the first choice; the voter’s second and third choices are not counted at all. Borda, IRV, and Condorcet use the whole ranking. Using more information does not always give a “fairer” outcome, but it changes which information the outcome is sensitive to.

Common mistake

The sentence “the one with the most votes wins” is the definition of plurality, not of majority. Majority rule requires more than 50% of the votes; if this threshold is not exceeded, there is no winner. In everyday language both are called “majority,” but their consequences differ: in the 13-voter profile, a candidate with 6 votes wins under plurality but does not satisfy majority rule.

7.2.2Majority, plurality, and the two-round system

Definition 7.4

Each voter reports only their first choice. A candidate’s first-choice count is the number of voters who put them first.

  • Majority rule: the candidate whose first-choice count is greater than n/2 wins; if there is no such candidate, there is no winner.
  • Plurality rule: the candidate with the largest first-choice count wins.

Both rules use the same count; the difference is only in how the winner is declared. Majority rule imposes the condition of more than n/2 votes. When this condition holds, it is certain that the winner has a majority of the voters behind them. But the condition does not always hold; then the rule cannot produce a winner and an additional method (such as a second round) is needed. Plurality always produces a winner (together with a tie-breaking rule), but the winner may have only a small minority of the voters behind them.

Example 7.2

The first choices are counted for the profile in Table 7.1. Only the first row of the table is looked at: A, C, D, A.

  1. A: the 4 voters of G1 and the 2 voters of G4 put A first; 4 + 2 = 6.
  2. B: no group puts B first; 0.
  3. C: the 4 voters of G2; 4.
  4. D: the 3 voters of G3; 3.
  5. Check: 6 + 0 + 4 + 3 = 13, equal to the number of voters.

Majority: the threshold is 7 and the highest count is 6 < 7; there is no winner. Plurality: A has the most first choices and wins. But A has only 6/13 of the votes behind them, about 46%.

In practice, the most common solution when a majority is not reached is the two-round system (runoff). The presidential elections in Türkiye and France use this system. If no candidate achieves a majority in the first round, the two candidates with the most votes in the first round go to the second round. In the second round only these two candidates compete; voters vote for whichever of the two they prefer.

Example 7.3

In the first round A got 6 and C got 4 votes, so A and C go to the second round. Each voter’s preference between these two candidates is read from their ranking.

  1. G1 (A ≻ D ≻ B ≻ C): A is above C; 4 votes for A.
  2. G2 (C ≻ B ≻ D ≻ A): 4 votes for C.
  3. G3 (D ≻ B ≻ C ≻ A): their favorite D is not in the race; in their ranking C is third and A fourth, so 3 votes for C.
  4. G4 (A ≻ B ≻ C ≻ D): 2 votes for A.

Second round: A = 4 + 2 = 6, C = 4 + 3 = 7. C wins. A, the leader of the first round, lost the second round, because the 3 voters supporting D prefer C to A.

This example shows why the two-round system can give a different result from plurality: the second round gives the voters of eliminated candidates the opportunity to choose among the remaining candidates. But this opportunity is limited. A candidate who came third or fourth in the first round cannot reach the second round, even if they could beat everyone in a one-on-one race. This is exactly what happens in this profile: as will be seen in Section 7.2.7, D beats all rivals in pairwise comparison, but because D gets only 3 votes in the first round, D cannot reach the second round.

7.2.3The Borda count

Plurality takes no account of the voter’s second choice. A candidate can be everyone’s second choice and still receive zero votes. In the 18th century the French sailor and mathematician Jean-Charles de Borda noticed this problem and proposed a count that gives points to every rank.

Definition 7.5

With m candidates, in the Borda count each voter reports a full ranking. The candidate in position k in a voter’s ranking receives m − k points from that voter: first place m − 1, second place m − 2, …, last place 0 points. A candidate’s Borda score is the sum of the points received from all voters; the candidate with the highest score wins.

The Borda score has a simple interpretation: the points x receives in a voter’s ranking equal the number of candidates that voter places below x. The candidate in first place leaves m − 1 candidates behind, and the last one leaves none. A candidate’s total Borda score is therefore the sum, over all voters, of the number of candidates that x beats. This interpretation helps connect Borda with the pairwise comparisons of Section 7.2.7: the Borda score equals a candidate’s row sum in the pairwise comparison table.

For four candidates the points are 3 for first, 2 for second, 1 for third, and 0 for fourth place. A group’s contribution to a candidate is “number of voters × points.” The count is done group by group.

Example 7.4
  1. G1 (4 voters, A ≻ D ≻ B ≻ C): A 4 × 3 = 12, D 4 × 2 = 8, B 4 × 1 = 4, C 4 × 0 = 0.
  2. G2 (4 voters, C ≻ B ≻ D ≻ A): C 4 × 3 = 12, B 4 × 2 = 8, D 4 × 1 = 4, A 0. Running totals: A 12, B 12, C 12, D 12: after two groups the four candidates are tied.
  3. G3 (3 voters, D ≻ B ≻ C ≻ A): D 3 × 3 = 9, B 3 × 2 = 6, C 3 × 1 = 3, A 0. Running totals: A 12, B 18, C 15, D 21.
  4. G4 (2 voters, A ≻ B ≻ C ≻ D): A 2 × 3 = 6, B 2 × 2 = 4, C 2 × 1 = 2, D 0.

The result is collected in Table 7.3: B = 22, D = 21, A = 18, C = 17. The Borda winner is B.

Table 7.3: Contribution of the groups and totals in the Borda count (points 3, 2, 1, 0).
candidateG1G2G3G4total
A1200618
B486422
C0123217
D849021

The most interesting aspect of the result is that no voter put B first. B’s strength is that no voter put B last and that nine voters put B second. Borda promotes such compromise candidates. This can be seen as a virtue (a candidate everyone can accept) or as a flaw (a candidate nobody really wants).

There is an easy way to check the computation. Each voter distributes a total of 3 + 2 + 1 + 0 = 6 points. 13 voters must distribute a total of 13 × 6 = 78 points. Indeed 18 + 22 + 17 + 21 = 78. If the total does not match, a contribution has been miscomputed somewhere.

Common mistake
  • Starting the points from 1: using 4, 3, 2, 1 points adds 1 extra point from each voter to every candidate. This does not change the winner, but the results then do not match the numbers in these notes, and it causes confusion when the number of candidates changes (when a candidate withdraws). The scale in the definition is m − 1, …, 0.
  • Forgetting the group size: a column is not one voter but a group of voters. G3's contribution to D is not 3 but 3 × 3 = 9.

7.2.4Approval voting

Definition 7.6

In approval voting, each voter marks the set of candidates they accept (approve); they may approve as many candidates as they like. Each approval gives a candidate 1 point; the candidate with the most approvals wins.

In approval voting, what the voter reports is not a ranking but a set. The voter says, “these candidates are acceptable to me, the others are not.” The outcome of approval voting therefore depends not only on the voters' rankings but also on where each voter draws the line. The preference profile alone does not determine the approval winner; how many candidates each voter approves must also be known. An assumption is therefore needed for the approval count.

Example 7.5

Assumption: each voter approves the first two candidates in their ranking. The first two rows of the table are read.

  1. A: G1 (ranked 1st) 4 and G4 (ranked 1st) 2; 4 + 2 = 6.
  2. B: G2 (ranked 2nd) 4, G3 (ranked 2nd) 3, G4 (ranked 2nd) 2; 4 + 3 + 2 = 9.
  3. C: G2 (ranked 1st) 4; 4.
  4. D: G1 (ranked 2nd) 4, G3 (ranked 1st) 3; 4 + 3 = 7.
  5. Check: each voter gives 2 approvals; 13 × 2 = 26 = 6 + 9 + 4 + 7.

The approval winner is B (9). If everyone approved only their first choice, the approval counts would be the same as the first-choice counts (A 6, B 0, C 4, D 3) and A would win.

The example shows two important points. First, when everyone approves their top two candidates, approval voting turns into the 2-approval rule (Section 7.2.5); when everyone approves only their top candidate, it turns into plurality. Approval voting sits flexibly between these two extremes. Second, the result depends on the approval threshold: with the same preferences, when the threshold changes the winner moves from A to B. Since the voter sets the threshold, the approval threshold is also a strategic decision. For example, a voter who supports A, if they know B is a strong rival, may give up approving their second choice B.

Approval voting is used in some scientific society elections and in meeting polls of the “which times are suitable?” kind. In a meeting poll, each participant marks all the times they are available, and the time that suits the most people is chosen; this is exactly approval voting.

7.2.5Positional scoring rules

Plurality, Borda, and approval voting (when everyone approves the same number of candidates) are in fact different forms of the same idea: a fixed score is given to each rank and the scores are added up. This common structure can be written with a single definition.

Definition 7.7

For m candidates, a positional scoring rule is given by a score vector: s = (s1, s2, …, sm), with s1 ≥ s2 ≥ … ≥ sm and s1 > sm. The candidate in position k of a voter’s ranking receives sk points; the candidate with the highest total score wins.

  • Plurality: s = (1, 0, …, 0).
  • k-approval: the first k positions get 1 point, the rest 0; for k = 2, 2-approval.
  • Borda: s = (m − 1, m − 2, …, 0).
  • Veto rule: s = (1, …, 1, 0); only the last position gets 0 points.

The scores are in decreasing order so that a voter never gives fewer points to a candidate they like more. The name of the veto rule comes from its interpretation: each voter “vetoes” just one candidate, that is, rejects them; a candidate’s veto score is the number of voters who did not put them last. The veto rule looks for the candidate whom everyone objects to least.

Figure 7.3 and Figure 7.4 show the count of the same profile with two different score vectors. On the left is the profile; the orange cells are the positions that receive points. On the right, each candidate’s total score is drawn as a bar; the orange bar shows the winner.

s =11st02nd03rd04thpluralityA6B0C4D34 votersADBC4 votersCBDA3 votersDBCA2 votersABCD
Figure 7.3: Plurality, s = (1, 0, 0, 0). Only first place gets points: A = 6, C = 4, D = 3, B = 0; the winner is A.
s =101st52nd33rd04thanother vectorA60B57C55D624 votersADBC4 votersCBDA3 votersDBCA2 votersABCD
Figure 7.4: Another vector, s = (10, 5, 3, 0). D = 62, A = 60, B = 57, C = 55; the winner is D. This vector selects D, the Condorcet winner.

The results of five different vectors are collected in Table 7.4. All the computations are done with the same method: each group’s contribution to each candidate is “number of voters × the points of that position.”

Table 7.4: Five score vectors on the same profile.
RulesScoresWinner
Plurality(1, 0, 0, 0)A 6, C 4, D 3, B 0A
2-approval (top two)(1, 1, 0, 0)B 9, D 7, A 6, C 4B
Borda(3, 2, 1, 0)B 22, D 21, A 18, C 17B
Veto (0 for last)(1, 1, 1, 0)B 13, D 11, C 9, A 6B
Another vector(10, 5, 3, 0)D 62, A 60, B 57, C 55D
Example 7.6

Veto, s = (1, 1, 1, 0): a candidate’s score is the number of voters who did not put them last. Those put last are in the last row of the table: G1 puts C last, G2 and G3 put A last, and G4 puts D last.

  • 4 + 3 = 7 voters put A last; A = 13 − 7 = 6.
  • Nobody puts B last; B = 13.
  • 4 voters put C last; C = 9.
  • 2 voters put D last; D = 11.

The vector (10, 5, 3, 0):

  • A: 1st in G1 (4 × 10 = 40), 4th in G2 and G3 (0), 1st in G4 (2 × 10 = 20); A = 60.
  • B: 3rd in G1 (4 × 3 = 12), 2nd in G2 (4 × 5 = 20), 2nd in G3 (3 × 5 = 15), 2nd in G4 (2 × 5 = 10); B = 57.
  • C: 4th in G1 (0), 1st in G2 (40), 3rd in G3 (3 × 3 = 9), 3rd in G4 (2 × 3 = 6); C = 55.
  • D: 2nd in G1 (4 × 5 = 20), 3rd in G2 (4 × 3 = 12), 1st in G3 (30), 4th in G4 (0); D = 62.

This table gives one of the chapter’s main messages in numbers: with the same ballots, changing only the score vector changes the winner among A, B, and D. There is no mathematical answer as to which score vector is “right.” Vectors that give a lot of weight to first place resemble plurality and promote polarizing candidates (A); vectors that leave equal gaps between positions promote compromise candidates (B).

Scoring rules share one good property: they are monotone. If a voter moves the winning candidate up one position on their ballot, that candidate receives either the same number of points or more, because in a score vector a higher position gives at least as many points as a lower one. The other candidate, with whom the moved candidate swapped places, receives at most the same number of points. The winner’s margin over the other candidates therefore does not shrink, and the winner continues to win. This observation matters because instant-runoff voting does not satisfy this property (Section 7.3.7).

Common mistake

Mistaking instant-runoff voting for a scoring rule. IRV also uses a full ranking, but the vote counted for a candidate in a round depends on which candidates were eliminated earlier. The same ballot may count for A in one round and for C in the next. IRV therefore cannot be written with a single fixed score vector.

7.2.6Instant-runoff voting

One problem with the two-round system is that it takes voters to the polls twice. Another is that only two candidates remain for the second round, so the chances of a candidate who came third in the first round end at once. Instant-runoff voting (IRV; also known as ranked-choice voting) looks for a solution to both problems at once: a full ranking is collected from each voter once, and the rounds are then held “instantly,” by computer or by hand, on these rankings.

Definition 7.8

Each voter reports a full ranking. At the start all candidates are in the race. In each round:

  1. Each ballot is counted for the highest-ranked candidate on that ballot who is still in the race.
  2. If a candidate’s vote count is more than half of the total votes, that candidate wins.
  3. Otherwise the candidate with the fewest votes is eliminated; their ballots pass in the next round to the next candidate still in the race in the ranking.

Under this rule no ballot is wasted: if the voter’s favorite is eliminated, the vote is transferred to the next candidate in the ranking. The difference from the two-round system is that candidates are eliminated one at a time and the votes are redistributed after each elimination.

Example 7.7
  1. Round 1: candidates in the race are A, B, C, D. First choices are A = 6, B = 0, C = 4, D = 3. A majority needs 7; nobody reaches it.
  2. Elimination: the candidate with the fewest votes is B (0 votes). B is eliminated. Since nobody put B first, there are no votes to transfer either.
  3. Round 2: A, C, D are in the race. Each ballot is counted for the highest-ranked candidate in the race; B’s elimination changes the candidate counted on no ballot. A = 6, C = 4, D = 3. Again there is no majority.
  4. Elimination: the candidate with the fewest votes is D (3). D is eliminated. G3's ballot is D ≻ B ≻ C ≻ A; since D and B have been eliminated, the next candidate in the race is C. 3 votes pass from D to C.
  5. Round 3: A and C are in the race. A = 6, C = 4 + 3 = 7. 7 ≥ 7: C wins with a majority.

In this profile the result of IRV is the same as that of the two-round system: C. The reason is that after two candidates are eliminated, the remaining pair is the same as the pair that reaches the second round of the two-round system. In general, however, the two rules can give different results, because in IRV the elimination order can change as votes are transferred. Another notable point: IRV eliminates D, the Condorcet winner, in the second round. Because D’s first-choice count is small, D drops out at an early stage of the race even though D could beat all rivals one on one.

Common mistake

Transferring an eliminated candidate’s votes to the candidate ranked second on the ballot. The vote passes to the next candidate in the ranking who is still in the race. On G3's ballot B comes after D, but since B was eliminated earlier, the vote goes not to B but to C. If the candidate in second place has been eliminated, look at the third; if that one has also been eliminated, the fourth.

7.2.7Condorcet: pairwise comparisons

The rules so far evaluate the candidates all together. Condorcet’s proposal is different: every pair of candidates is compared separately, as if only those two were running. The contest between two candidates is decided by the number of voters who place one of them higher than the other.

Definition 7.9

Let N(x, y) be the number of voters who prefer x to y. If N(x, y) > N(y, x), then x beats y by pairwise majority.

  • A candidate who beats all rivals is the Condorcet winner.
  • A candidate who loses to all rivals is the Condorcet loser.

The idea of a Condorcet winner is very attractive. If the majority of voters prefer a candidate to each rival, then whoever is elected instead, a majority that wants this candidate in their place will be dissatisfied. But a Condorcet winner may not exist in every profile; this is the subject of Section 7.3.

For four candidates there are 4 · 3 / 2 = 6 pairs. In general, for m candidates the number of pairs is m(m − 1)/2. The results are written in a table: cell (x, y) is N(x, y), the number of voters who prefer x to y.

Example 7.8

For each pair the groups are examined one by one. The numbers are numbers of voters; in each row the two numbers must add up to 13.

  1. A – B: those who say A ≻ B are G1 (4) and G4 (2); those who say B ≻ A are G2 (4) and G3 (3). 6 – 7: B wins.
  2. A – C: A ≻ C: G1 (4), G4 (2); C ≻ A: G2 (4), G3 (3). 6 – 7: C wins.
  3. A – D: A ≻ D: G1 (4), G4 (2); D ≻ A: G2 (4), G3 (3). 6 – 7: D wins.
  4. B – C: B ≻ C: G1 (4), G3 (3), G4 (2); C ≻ B: G2 (4). 9 – 4: B wins.
  5. B – D: B ≻ D: G2 (4), G4 (2); D ≻ B: G1 (4), G3 (3). 6 – 7: D wins.
  6. C – D: C ≻ D: G2 (4), G4 (2); D ≻ C: G1 (4), G3 (3). 6 – 7: D wins.
Table 7.5: Pairwise comparison table. Cell (x, y) = number of voters who prefer x to y; wins = the number of entries in the row greater than 6.5.
x ╲ yABCDwins
A—6660
B7—962
C74—61
D777—3

Once Table 7.5 is complete, the result is clear: D beats all three rivals 7–6 and is the Condorcet winner. A loses to everyone 6–7 and is the Condorcet loser. What is surprising is that plurality picked exactly this Condorcet loser, A. A has the highest first-choice count, but all seven voters who do not put A first put A last; these seven voters support every candidate running against A.

The row sums of the table also say something: row A is 6 + 6 + 6 = 18, row B is 7 + 9 + 6 = 22, row C is 7 + 4 + 6 = 17, and row D is 7 + 7 + 7 = 21. These are exactly the Borda scores. This is a consequence of the interpretation in Section 7.2.3: the Borda score is the sum of the votes a candidate collects in all pairwise comparisons. The difference between Borda and Condorcet is also seen here. Condorcet looks only at who wins (is 7 greater than 6?), while Borda also counts the size of the margin. B’s large 9–4 margin over C compensates in the Borda total for its small 6–7 loss to D.

7.2.8The pairwise majority graph and Copeland

The results of pairwise comparisons can also be shown with a graph. In this graph each candidate is a vertex. If x beats y by pairwise majority, an arrow is drawn from x to y. This graph is called the pairwise majority graph.

7–67–67–69–47–67–6DCopeland 3BCopeland 2CCopeland 1ACopeland 0
Figure 7.5: The pairwise majority graph of the example profile. An arrow x → y shows that a majority prefers x to y; the labels are vote counts. The three arrows leaving D are highlighted. Copeland scores are written next to the vertices.

When the number of voters is odd, there can be no tie between two candidates; so there is exactly one arrow between every pair. Such a graph is called a tournament; the name comes from league matches in which every team plays every other team once. In Figure 7.5 three arrows leave D and none enter D. The general rule is:

  • Condorcet winner = the vertex that receives no arrows (D).
  • Condorcet loser = the vertex that receives all arrows and gives none (A).

If every candidate receives at least one arrow, that is, if there is no vertex that receives none, there is no Condorcet winner. In this case the graph contains a cycle: starting from a candidate and following the arrows, one can return to the same candidate. A cycle that covers all candidates causes the absence of a Condorcet winner.

Definition 7.10

In the Copeland rule each candidate’s score is the number of wins in pairwise comparisons, that is, the number of arrows leaving that candidate in the graph. The candidate with the highest score wins. (Where ties are possible, ties earn half a point.)

In the example profile the Copeland scores are D 3, B 2, C 1, A 0; these scores are the same as the last column of Table 7.5. Copeland gives the ranking D ≻ B ≻ C ≻ A, and the winner is D. A good property of the Copeland rule is that it always selects the Condorcet winner if there is one: the Condorcet winner receives the highest possible score with m − 1 wins, and no other candidate can reach this score, because every other candidate loses at least once (to the Condorcet winner). If there is no Condorcet winner, Copeland still gives a ranking, but ties are frequent in this ranking.

7.2.9The same profile, four different winners

So far the votes of the same 13 voters have been counted in seven different ways. The results are put side by side in Table 7.6. The Kemeny row of the table is computed in Section 7.3.4.

Table 7.6: The same profile, different rules.
RuleCountWinner
MajorityA 6 < 7none
PluralityA 6, C 4, D 3, B 0A
Two-round systemC 7 – A 6C
Instant-runoffC 7 – A 6 (round 3)C
BordaB 22, D 21, A 18, C 17B
2-approval (top two)B 9, D 7, A 6, C 4B
CondorcetD 3 winsD
KemenyD ≻ B ≻ C ≻ A (44 agreements)D

Two lessons can be drawn from the table. First: “the will of the people” depends on the rule. Although the voters' ballots do not change, the winner can be A, B, C, or D when the rule changes; that is, the outcome is determined by the rule as much as by the voters. Which rule will be used must therefore be decided explicitly before the vote. Second: some rules can give counterintuitive results. Plurality can select A, the Condorcet loser that loses to everyone; IRV can eliminate D, the Condorcet winner that beats everyone, early.

Why each rule picks a different candidate is explained by the features of the profile noted in Section 7.1.3. Because plurality looks only at first place, it picks A, who has the most “loyal” voters. The two-round system and IRV hold a final contest among the candidates with strong first choices and pick C. Borda and 2-approval, because they also count second places, pick the compromise candidate B. Condorcet and Kemeny, because they look at pairwise contests, pick D, who wins every pairwise contest.

7.2.10Code trace: borda()

Counting under voting rules can be done with programs of a few lines. The short Python function below does the Borda count. The function’s input is a list called ballots. Each element of the list is a pair of the form (count, order): count is the number of voters who gave that ranking, and order is a string that lists the candidates from most preferred. The example profile is written as follows:

ballots = [(4, "ADBC"), (4, "CBDA"), (3, "DBCA"), (2, "ABCD")]
def borda(ballots):
  score = {}
  for count, order in ballots:
    m = len(order)
    for k, cand in enumerate(order):
      p = count * (m - 1 - k)
      score[cand] = score.get(cand, 0) + p
  winner = max(score, key=score.get)
  return winner, score

The code works as follows:

  • score is an empty dictionary; each candidate’s accumulated score is kept here.
  • The outer loop visits each voter group once: count is the size of the group and order is the group’s ranking.
  • m = len(order) is the number of candidates; here 4.
  • The inner loop visits the candidates in the ranking together with their positions. enumerate gives the position to k, starting from 0: first place is k = 0 and last place is k = m − 1.
  • p = count * (m - 1 - k) is the group’s contribution to this candidate. For k = 0 the score is m − 1 = 3, and for k = 3 it is 0. This is the point scale of the definition written with an index that starts from 0.
  • score.get(cand, 0) returns 0 if the candidate is not yet in the dictionary; a candidate seen for the first time thus starts from 0.
  • max(score, key=score.get) returns the key (candidate) with the largest score.

Table 7.7 traces the inner loop of the first group step by step and the other groups in bulk.

Table 7.7: Trace of borda(). The last column is the score dictionary after the step.
groupkcandidatepscore (A, B, C, D)
4 × ADBC0A4 × (3 − 0) = 1212, –, –, –
4 × ADBC1D4 × (3 − 1) = 812, –, –, 8
4 × ADBC2B4 × (3 − 2) = 412, 4, –, 8
4 × ADBC3C4 × (3 − 3) = 012, 4, 0, 8
4 × CBDA0–3C, B, D, A12, 8, 4, 012, 12, 12, 12
3 × DBCA0–3D, B, C, A9, 6, 3, 012, 18, 15, 21
2 × ABCD0–3A, B, C, D6, 4, 2, 018, 22, 17, 21
4 votersADBC4 votersCBDA3 votersDBCA2 votersABCDballots: row = voter group; 1st place 3 points … 4th place 0A18B22C17D21
Figure 7.6: The final state of the borda() trace. On the left the four input groups, on the right the accumulated scores; the longest bar is B’s (22).

The function returns ("B", {"A": 18, "D": 21, "B": 22, "C": 17}). Figure 7.6 shows this final state. The candidate with the highest score is B (22), and no voter put B first.

One subtlety of the code is the tie case. If two candidates receive the same highest score, max returns the one it saw first in the dictionary. For a voting rule this is an arbitrary choice: the outcome is determined by the order in which candidates entered the dictionary, that is, by the order of the input list. Real rules need instead a tie-breaking rule announced in advance: drawing lots, a fixed order of candidates, or a second criterion (for example the first-choice count).

In terms of complexity, the function processes every candidate once for each group. With n voter groups and m candidates, the inner loop runs n · m times in total; the running time is O(nm). Counting is easy; what is hard is understanding which properties the rule satisfies.

7.2.11Code trace: irv()

The code for instant-runoff voting is a little longer than Borda’s, because the count is repeated in rounds. The function takes the ballots list and the list of candidates.

def irv(ballots, cands):
  remaining = list(cands)
  while True:
    tally = {a: 0 for a in remaining}
    for count, order in ballots:
      top = next(a for a in order if a in remaining)
      tally[top] += count
    leader = max(tally, key=tally.get)
    if 2 * tally[leader] > sum(tally.values()):
      return leader
    loser = min(tally, key=tally.get)
    remaining.remove(loser)

The code works as follows:

  • remaining is the list of candidates still in the race; in a tie, the order in the candidate list decides (if a set were used, the order could change from run to run); at the start all candidates are in the race.
  • Each pass of the while True loop is one round. The loop is exited only through return, that is, when a winner is found.
  • tally is a counter starting from 0 for each candidate in the race. The counters are reset in every round; the votes are counted from scratch each round.
  • next(a for a in order if a in remaining) scans the ranking from the beginning and returns the first candidate still in the race. The transfer of votes happens by itself in this line: eliminated candidates are skipped because they are not in remaining.
  • leader is the candidate with the most votes. The condition 2 * tally[leader] > sum(tally.values()) tests whether the leader’s votes exceed half of the total. Multiplying both sides by 2 avoids dealing with fractional thresholds such as 6.5.
  • If there is no majority, min(tally, key=tally.get) finds the candidate with the fewest votes and remaining.remove takes them out of the race.
Table 7.8: Trace of irv() (13 votes in total; majority condition 2 · tally > 13).
roundremainingtallyleaderconditionresult
1A, B, C, DA 6, B 0, C 4, D 3A12 ≤ 13B eliminated
2A, C, DA 6, C 4, D 3A12 ≤ 13D eliminated
3A, CA 6, C 7C14 > 13C returned

In the first round the four ballot groups are processed in turn: for the group ADBC the first candidate in the race is A and tally[A] += 4; for CBDA, tally[C] += 4; for DBCA, tally[D] += 3; for ABCD, tally[A] += 2. The result is A 6, B 0, C 4, D 3. The leader is A, but since 2 × 6 = 12 ≤ 13, there is no majority. B (0), with the fewest votes, is eliminated. In the second round the counters are reset and the count is repeated; since nobody put B first, the numbers do not change. D (3) is eliminated. In the third round the scan of the DBCA group skips D and B and stops at C: tally[C] += 3. This is the transfer of D’s votes to C. Since 2 × 7 = 14 > 13, C is returned.

4 votersADBC4 votersCBDA3 votersDBCA2 votersABCDA6BeliminatedC7Deliminatedmajority: 2·tally > 13faded = eliminated candidate
Figure 7.7: The last round of the irv() trace. Faded cells are eliminated candidates; each group’s vote is counted for the first candidate in the race. A has 6, C has 7; C satisfies the majority condition.
Common mistake
  • Using “≥ half” as the threshold: with an even number of voters, a candidate with exactly half of the votes does not have a majority. The condition is strict inequality: 2 * tally > total.
  • Not thinking about ties: if the two candidates with the fewest votes are tied, min picks one of them. The code eliminates the one that comes first in the remaining list; this result is reproducible but arbitrary, because it depends on the order of the candidate list. In a real count a tie must be broken by a rule announced in advance.

In each round, for n groups the ranking is scanned in at most m steps, so one round takes O(nm). Since there are at most m − 1 rounds, the total time is O(nm2). This is also a fast computation; the difficulties of IRV lie not in the counting but in its properties.

7.3The Condorcet paradox

In the example profile there is a Condorcet winner: D. But not every profile has such a candidate. If there is no such candidate, the order of the votes can determine the outcome. The Kemeny rule produces a social ranking in this case too.

7.3.1The Condorcet cycle

Consider the following profile with nine voters and three candidates: 4 voters have A ≻ B ≻ C, 3 voters have B ≻ C ≻ A, and 2 voters have C ≻ A ≻ B. Each voter’s ranking is consistent by itself, that is, transitive.

Table 7.9: The cycle profile: 9 voters, 3 candidates.
rank4 voters3 voters2 voters
1.ABC
2.BCA
3.CAB
Example 7.9
  1. A – B: those who prefer A to B are column 1 (4) and column 3 (2): 4 + 2 = 6. Those who prefer B are column 2: 3. The majority is A ≻ B (6 – 3).
  2. B – C: those who prefer B are 4 + 3 = 7, and those who prefer C are 2. The majority is B ≻ C (7 – 2). Expectation of transitivity: since A ≻ B and B ≻ C, we should have A ≻ C.
  3. C – A: those who prefer C to A are column 2 (3) and column 3 (2): 3 + 2 = 5. Those who prefer A are 4. The majority is C ≻ A (5 – 4)!

Result: A ≻ B ≻ C ≻ A. The social preference is cyclic. For every candidate there is a majority that beats them; there is no Condorcet winner.

A ≻ B6 – 3B ≻ C7 – 2C ≻ A5 – 4ABC
Figure 7.8: The Condorcet cycle. A beats B (6 – 3), B beats C (7 – 2), and C beats A (5 – 4). The arrows form a circle; no vertex is left without an incoming arrow.

Figure 7.8 shows the situation with the pairwise majority graph. The three arrows form a circle: an arrow enters every vertex, so there is no Condorcet winner. This phenomenon is called the Condorcet paradox or Condorcet cycle.

Definition 7.11

If the pairwise majority relation contains a sequence of candidates in which x1 beats x2, x2 beats x3, …, and xk beats x1, the profile has a Condorcet cycle. In this case the pairwise majority relation is not transitive.

The importance of the paradox is this: individuals being consistent does not guarantee that the community is consistent. The “majority” in the sentences “the majority prefers A to B” and “the majority prefers B to C” is not the same set of people. The first majority is made up of columns 1 and 3, the second of columns 1 and 2. Different majorities make different decisions, and when these decisions are put together, a cycle can arise.

Common mistake

Thinking that the cycle comes from one of the voters being inconsistent. All three rankings in the profile are transitive. The cycle arises from aggregating consistent rankings by majority rule. Another mistake is to count the candidate with “the most pairwise wins” as the Condorcet winner when there is a cycle: in a cycle every candidate has one win, and by definition there is no Condorcet winner.

7.3.2The agenda determines the winner

The cycle has a practical consequence. Many committees and parliaments make decisions by sequential pairwise voting: first two options are voted on, the winner meets the next option, and this continues until the options run out. The order in which the options are voted on is called the agenda. In the cycle profile three different agendas are possible (one chooses which pair is voted on first; the remaining candidate is left for last).

Example 7.10
  1. Agenda 1: first A – B, then C. A – B: 6 – 3, A wins. A – C: 4 – 5, C wins. Winner: C.
  2. Agenda 2: first B – C, then A. B – C: 7 – 2, B wins. B – A: 3 – 6, A wins. Winner: A.
  3. Agenda 3: first A – C, then B. A – C: 4 – 5, C wins. C – B: 2 – 7, B wins. Winner: B.

All three agendas produce different winners.

Table 7.10: Three agendas in the cycle profile.
AgendaFirst voteWinner
(A – B), then CAC
(B – C), then ABA
(A – C), then BCB

The pattern in the example is a general rule: in a three-candidate cycle, the candidate left for last wins. The reason is this: in the first vote two candidates meet, and the winner meets the candidate left for last. In a three-candidate cycle each candidate beats exactly one candidate and loses to exactly one. The winner of the first vote has beaten the only candidate it can beat in the first vote; so the only candidate it loses to is the one left for last, and it loses the final vote. For example, in agenda 1, A beats B; the candidate in the cycle who beats A is C, and C is at the end.

This gives great power to the person who sets the agenda (for example a committee chair). The chair can choose the outcome by putting the candidate they want to win last; and each vote is itself an honest majority vote. This situation is called agenda manipulation. In a profile with a Condorcet winner, however, this power does not exist: whichever order it is voted in, the Condorcet winner beats every candidate it meets and wins in the end.

7.3.3Back to the game: how common are cycles?

The two questions of the game at the start of the chapter can now be answered. The profile at the game’s first level (A ≻ B ≻ C, B ≻ C ≻ A, C ≻ A ≻ B) is a cycle: A – B 2 – 1, B – C 2 – 1, C – A 2 – 1. The social preference is cyclic; there is no Condorcet winner. The answer to the first question is “no”: even if individuals are consistent, the community does not have to be. The answer to the second question is “yes”: the person who sets the agenda chooses the outcome by leaving the candidate they want to win for last. The results of the agendas follow the same pattern as in Table 7.10: C wins under the agenda (A – B) then C, A wins under (B – C) then A, and B wins under (A – C) then B.

A natural question is how often cycles occur. For this a probability model is needed. The simplest model is that each voter chooses one of the six possible rankings with equal probability, independently of the others. For three voters and three candidates the number of possible profiles is 6 × 6 × 6 = 63 = 216. The number of these profiles containing a cycle can be counted: a cycle arises only when the voters' rankings are an arrangement of the triple A ≻ B ≻ C, B ≻ C ≻ A, C ≻ A ≻ B or of its reverse, the triple A ≻ C ≻ B, C ≻ B ≻ A, B ≻ A ≻ C. Each triple can be distributed among three voters in 3! = 6 different ways; there are 2 × 6 = 12 profiles with cycles in total. The probability is 12/216 ≈ 0.056, that is, about 5.6%.

As the number of voters grows very large, in the same random model the probability of a cycle with three candidates rises to about 8.8% (Guilbaud, 1952). As the number of candidates grows, this rate rises quickly too. These numbers may look alarming, but in real election and survey data cycles are seen less often than this “random preference” calculation predicts (Regenwetter et al., 2006). The reason is that real preferences are not random: people’s preferences resemble one another and are often organized along a common axis (for example left–right). Why cycles do not arise with such orderly preferences is explained in Section 7.5.6.

Common mistake

Interpreting rates such as 5.6% or 8.8% as the frequency of cycles in real elections. These numbers are a consequence of the assumption that “every ranking is equally likely.” When the assumption changes, the number changes too; real data show lower rates.

7.3.4The Kemeny rule

When there is a cycle, the Condorcet idea cannot give a winner. A decision still has to be made. John Kemeny (1959) proposed to solve this problem as follows: choose the social ranking that agrees most with the voters' pairwise preferences.

Definition 7.12

The agreement score of a ranking σ of the candidates is the sum, over every pair (x, y) in which x comes before y in σ, of the number of voters who prefer x to y:

agree(σ) = Σx before y (in σ) N(x, y).

The Kemeny rule chooses the ranking with the largest agreement score.

The agreement score has another interpretation. Between a voter’s ranking and σ there is agreement on some pairs and disagreement on others. The agreement score is the sum, over all voters, of the number of pairs they agree on. Maximizing agreement is the same as minimizing the number of pairs they disagree on (the total “distance” between the rankings). In this sense the Kemeny ranking is the ranking “closest on average” to the voters' rankings.

Example 7.11

In the main profile, the agreement score of the ranking D ≻ B ≻ C ≻ A is read off Table 7.5. The six pairs in this ranking and the relevant numbers:

  • D before B: N(D, B) = 7; D before C: 7; D before A: 7.
  • B before C: N(B, C) = 9; B before A: 7.
  • C before A: N(C, A) = 7.

Agreement: 7 + 7 + 7 + 9 + 7 + 7 = 44. In this ranking every pair points in the same direction as that pair’s pairwise majority; each pair’s contribution is the largest possible value. No other ranking can exceed 44; when all 24 rankings are tried, the closest competitors (D ≻ B ≻ A ≻ C and B ≻ D ≻ C ≻ A) stay at 43.

The example shows a general observation: if the pairwise majority relation is transitive (there is no cycle), the ranking that follows this relation receives the largest contribution on every pair and is the Kemeny ranking. In particular, if there is a Condorcet winner, it is placed first in the Kemeny ranking. The reason is this: if the Condorcet winner is not first in a ranking, swapping it with the candidate immediately above raises that pair’s contribution from the smaller number to the larger and changes no other pair; this raises the agreement.

In a cycle too, Kemeny makes a decision. In a cycle profile the three pairwise majorities cannot all be satisfied together; at least one must be violated. Kemeny violates the majority whose violation loses the least agreement, that is, the weakest majority.

A ≻ B 6–3B ≻ C 7–2C ≻ A 5–4ABCdashed: the weakest majority Kemeny overrides (5–4)
Figure 7.9: The Kemeny ranking in the cycle profile. The dashed arrow is the weakest majority, which Kemeny overrides (C ≻ A, 5 – 4). The remaining two majorities give the ranking A ≻ B ≻ C.

Figure 7.9 shows the three edges of the cycle and the vote counts: A ≻ B 6 – 3, B ≻ C 7 – 2, C ≻ A 5 – 4. The edge with the narrowest margin is C ≻ A. When this edge is overridden, the remaining two edges give the ranking A ≻ B ≻ C. The agreement of this ranking is N(A, B) + N(A, C) + N(B, C) = 6 + 4 + 7 = 17. A full comparison of the six rankings is in the code trace in Section 7.3.5.

The Kemeny rule has strong properties, but it also has a price: finding the best ranking is NP-hard (Bartholdi, Tovey, and Trick, 1989). For an NP-hard problem, all known algorithms take time that grows exponentially with the size of the input in the worst case. With few candidates all rankings can be tried, but with 15–20 candidates this is no longer practical. An important application of the Kemeny rule is rank aggregation (Dwork et al., 2001): merging the result lists of several search engines into one list, or combining the rankings of contest juries and committees.

7.3.5Code trace: kemeny()

For a small number of candidates, the Kemeny ranking can be found by trying all rankings. The function below does exactly this. The function uses the permutations function from Python’s standard library; the line from itertools import permutations must therefore appear at the start of the program. permutations(cands) generates all orderings of the candidates one by one.

def kemeny(ballots, cands):
  best, best_score = None, -1
  for order in permutations(cands):
    score = 0
    for i, x in enumerate(order):
      for y in order[i + 1:]:
        score += sum(n for n, b in ballots
                     if b.index(x) < b.index(y))
    if score > best_score:
      best, best_score = order, score
  return best, best_score

The code works as follows:

  • best holds the best ranking found so far and best_score its agreement score. The initial value is −1; the first ranking tried (with a score of at least 0) is thus always accepted as the best.
  • The outer loop tries every ranking order.
  • The two inner loops run over all pairs (x, y) in the ranking; order[i + 1:] gives only the candidates that come after x. Each pair is thus handled once, in the direction “x first in the ranking.”
  • b.index(x) < b.index(y) tests whether that voter group put x before y. The sizes n of the groups satisfying the condition are summed; this is N(x, y).
  • If a ranking’s score is strictly greater than the previous best, the best is updated. Among rankings with equal scores, the first one found is kept.

The trace for the cycle profile ballots = [(4, "ABC"), (3, "BCA"), (2, "CAB")] is given in Table 7.11. For three candidates there are 3! = 6 rankings, and each ranking contains 3 · 2 / 2 = 3 pairs.

Table 7.11: Trace of kemeny() (cycle profile). In the pair columns, N(x, y) in the order of the ranking.
orderpair 1pair 2pair 3scorebest
A ≻ B ≻ CA–B: 6A–C: 4B–C: 717A ≻ B ≻ C (17 > −1)
A ≻ C ≻ BA–C: 4A–B: 6C–B: 212unchanged
B ≻ A ≻ CB–A: 3B–C: 7A–C: 414unchanged
B ≻ C ≻ AB–C: 7B–A: 3C–A: 515unchanged
C ≻ A ≻ BC–A: 5C–B: 2A–B: 613unchanged
C ≻ B ≻ AC–B: 2C–A: 5B–A: 310unchanged
order:C≻B≻AC before B+2C before A+5B before A+3score = 10A ≻ B ≻ C17A ≻ C ≻ B12B ≻ A ≻ C14B ≻ C ≻ A15C ≻ A ≻ B13C ≻ B ≻ A10orders tried (agreement score; orange = best)
Figure 7.10: The last step of the kemeny() trace. At the top, the last ranking tried, C ≻ B ≻ A, and the contributions of its pairs (2 + 5 + 3 = 10); at the bottom, the agreement scores of the six rankings, with the best, A ≻ B ≻ C (17), in orange.

The function returns (("A", "B", "C"), 17). The Kemeny ranking is A ≻ B ≻ C, and only the weakest majority, C ≻ A (5 – 4), has been overridden. The second-best ranking is B ≻ C ≻ A (15); this ranking overrides the majority A ≻ B (6 – 3) and loses 2 more points of agreement. A symmetry of the table is also notable: adding the score of a ranking and the score of its reverse always gives 3 × 9 = 27 (17 + 10, 12 + 15, 14 + 13). The reason is that on every pair, a voter agrees with exactly one of the two rankings.

The cost of this brute-force method grows quickly. For m candidates, m! rankings are tried; each ranking has m(m − 1)/2 pairs, and for each pair n groups are scanned. The total work is of the order m! · m(m − 1)/2 · n. For 4 candidates there are 24 rankings, for 10 candidates 3,628,800, and for 20 candidates about 2.4 × 1018. That Kemeny is NP-hard says that there is no known general way to escape this exponential growth.

7.3.6Which criteria do the rules satisfy?

Different rules choose different winners. Criteria are needed to argue about which is “better.” The criteria used to compare rules in social choice theory are also called axioms. Four basic criteria are defined below, and whether the rules satisfy them is collected in Table 7.12.

Definition 7.13
  • Condorcet consistency: if there is a Condorcet winner, the rule selects it.
  • Condorcet loser criterion: the rule never selects the Condorcet loser.
  • Monotonicity: if a winning candidate is moved up on some voters' ballots (without changing the order of the other candidates relative to each other), it still wins. In short: supporting the winner should not make it lose.
  • Strategy-proofness: no voter can obtain a better outcome, according to their true preference, by reporting a ranking different from their true preference.
Table 7.12: Rules and criteria. The candidate in parentheses shows the violation in the example profile.
RuleSelects the Condorcet winnerNever selects the Condorcet loserMonotoneStrategy-proof
Pluralitynono (A)yesno
Bordano (B)yesyesno
Instant-runoffno (C)yesnono
Approvalnonoyesno
Condorcet (Copeland)yesyesyesno
Kemenyyesyesyesno

The table can be read row by row. In the example profile, plurality selects not the Condorcet winner D but A; A is also the Condorcet loser, so plurality violates both Condorcet criteria. Borda selects B instead of the Condorcet winner D. But Borda never selects the Condorcet loser. The reason is the observation in Section 7.2.7: the Borda score is the sum of the votes received in pairwise comparisons. The Condorcet loser gets fewer than half of the votes in every comparison; its Borda score therefore stays below the average Borda score of the candidates. In the example profile the average is 78 / 4 = 19.5, and A’s score is 18. A candidate below the average cannot get the highest score.

IRV eliminates the Condorcet winner D in the second round and selects C. IRV does not select the Condorcet loser: in the last round two candidates face each other, and the Condorcet loser loses this last contest. But IRV is not monotone (Section 7.3.7). In approval voting, since the outcome depends on approval thresholds, no Condorcet criterion can be guaranteed. Copeland and Kemeny, being based on pairwise comparisons, satisfy both Condorcet criteria.

All the “no” entries in the last column have a common cause: with three or more candidates, no reasonable rule other than a dictatorship is strategy-proof. This general result is the Gibbard–Satterthwaite theorem and is treated in Section 7.5.4.

A Condorcet winner does not exist in every profile; the plain Condorcet rule cannot find a winner in a cycle. Copeland may also fail to decide in a cycle: the scores come out equal (for example in the cycle profile all three candidates have one win each) and a tie-breaking rule is needed. One of the rules that remedies this deficiency is maximin.

Definition 7.14

In the maximin (Simpson) rule, for each candidate the lowest vote count received in pairwise comparisons is found: score(x) = miny ≠ x N(x, y). The candidate with the highest score wins.

Example 7.12

In the main profile the smallest number in each row of Table 7.5 is taken:

  • A: min(6, 6, 6) = 6.
  • B: min(7, 9, 6) = 6.
  • C: min(7, 4, 6) = 4.
  • D: min(7, 7, 7) = 7.

The winner is D. In the cycle profile, A’s worst comparison is 4 against C, B’s is 3 against A, and C’s is 2 against B; maximin selects A. This is the same as the candidate at the head of the Kemeny ranking.

Maximin selects the Condorcet winner if there is one: the Condorcet winner gets more than half of the votes in every comparison, while every other candidate gets fewer than half in at least one comparison (against the Condorcet winner). It decides in a cycle too: the winner is the candidate whose worst defeat is the mildest.

7.3.7Monotonicity violation in instant-runoff voting

Monotonicity seems to be one of the most basic properties one would expect of a voting rule: giving more support to a candidate should not hurt them. Scoring rules always satisfy this property (Section 7.2.5). IRV does not. An example with 17 voters shows this.

Table 7.13: A monotonicity example: 17 voters, 3 candidates (9 votes are needed for a majority).
rank6 voters6 voters5 voters
1.ABC
2.BCA
3.CAB
Example 7.13

Before the campaign (Table 7.13):

  1. Round 1: A = 6, B = 6, C = 5. There is no majority (9); C, with the fewest votes, is eliminated.
  2. C’s 5 votes pass to the next candidate, A. Round 2: A = 6 + 5 = 11, B = 6. A wins.

After the campaign: A campaigns, and 2 of the 6 voters who said B ≻ C ≻ A put A first; they now say A ≻ B ≻ C. The profile: 8 voters A ≻ B ≻ C, 4 voters B ≻ C ≻ A, 5 voters C ≻ A ≻ B. A’s support has only increased; nothing else has changed.

  1. Round 1: A = 8, B = 4, C = 5. There is no majority; this time B, with the fewest votes, is eliminated (not C).
  2. B’s 4 votes pass to the next candidate, C. Round 2: C = 5 + 4 = 9, A = 8. C wins.

A lost because it gained more support: IRV is not monotone.

The mechanism of the violation is this. In IRV, whether a candidate wins depends not only on its own votes but also on whom it will face in the last round. In the first profile A faces B in the last round, and since C’s voters prefer A to B, A wins. The 2 voters who moved to A in the campaign were taken from B; B’s first-choice count falls from 6 to 4, and B drops below C. The elimination order changes: this time B is eliminated and A faces C in the last round. Since B’s voters prefer C to A, C wins. Moving A up changed the elimination order.

The pairwise comparisons in this profile are interesting too: in the first profile A beats B 11 – 6, B beats C 12 – 5, and C beats A 11 – 6. The profile is a Condorcet cycle. Monotonicity violations are mostly seen in profiles like this, where there is no Condorcet winner or the race is very close.

Common mistake

Confusing a monotonicity violation with strategic voting. The 2 voters in the example do not lie; they really change their mind and begin to support A more. The problem is that the rule reacts perversely to this stronger support. Strategic voting, by contrast, is the voter reporting a ballot different from their true preference.

7.4Strategic voting

So far every voter has been assumed to write their true preference on the ballot. But as noted in Section 7.1.2, the ballot is a strategy. A voter who knows how the rule works and how the other voters will vote can write a ballot different from their true preference and obtain a better outcome according to their true preference. This is called strategic voting or manipulation. The example profile shows two kinds of strategic voting with numbers.

7.4.1Tactical voting under plurality

In honest voting the plurality winner is A: A 6, C 4, D 3, B 0. This is the outcome that bothers Group 3 (D ≻ B ≻ C ≻ A) most, because A is their worst candidate.

Example 7.14
  1. Reading the situation: Group 3's favorite D gets only 3 votes; D has no chance of winning. The only candidate who can stop A is C, who is second with 4 votes. Group 3 prefers C to A (in their ranking C is third and A fourth).
  2. The strategic ballot: Group 3 votes for C instead of D; that is, writes C ≻ D ≻ B ≻ A on the ballot.
  3. The new count: A 6, C 4 + 3 = 7, B 0, D 0. C wins.
  4. The outcome for the group: according to their true preference D ≻ B ≻ C ≻ A, C is better than A. Lying has improved this group’s situation.

This behavior is called tactical voting, or the “do not waste your vote” behavior: the voter votes not for their favorite but for the candidate who has a chance of winning and whom they find less bad. The cause of tactical voting is vote splitting: because the votes of the seven voters who oppose A were split between C and D, A was able to win with the support of a minority of voters.

Tactical voting also has a long-term consequence. As voters think that voting for small candidates is wasted, votes concentrate on the two strongest candidates. In political science this observation is called Duverger’s law: a single-round plurality system pushes toward a two-party political structure. Single-member districts in the United Kingdom and the United States are frequently cited examples of this law.

7.4.2Burying under Borda

The Borda count uses more information and is less affected by vote splitting. But it too is open to strategic behavior, and in a different way. In the honest Borda count B = 22 and D = 21. Group 3's favorite D loses by only 1 point.

Example 7.15
  1. Manipulation: the 3 voters of Group 3 push the main rival B from 2nd place to 3rd. While the true ranking is D ≻ B ≻ C ≻ A, the ballot becomes D ≻ C ≻ B ≻ A.
  2. The point difference: for each manipulator, B gets 1 point instead of 2 and C gets 2 points instead of 1. For three voters, B −3 and C +3. A’s and D’s scores do not change.
  3. New totals: A 18, B 22 − 3 = 19, C 17 + 3 = 20, D 21.
  4. Result: D wins. Group 3 got its favorite elected by lying.
Table 7.14: Burying under Borda: honest and strategic counts.
candidatehonestchangestrategic
A18018
B22−319
C17+320
D21021

This manipulation is called burying: the voter “buries” the favorite’s main rival lower on their ballot than its true position. Under Borda, burying is very effective, because every difference in rank turns directly into a difference in points. Pushing a rival to the very bottom reduces the points given to it as much as possible.

Burying has a risk: it can backfire. Pushing a rival down raises the score of another candidate who moves up in its place. If this other candidate is worse for the burying voters and rises enough, that candidate wins. For example, look at this profile with 9 voters: 4 × A ≻ B ≻ C, 3 × C ≻ B ≻ A, 2 × B ≻ C ≻ A. The honest Borda (2, 1, 0) scores are A 8, B 11, C 8, and B wins. If the A voters bury B and report A ≻ C ≻ B, C gains 4 points and B loses 4: A 8, B 7, C 12, and C wins. C is the worst candidate for the A voters; burying has made their situation worse. A successful burying requires accurate information about the other voters' ballots.

Common mistake

Measuring the success of a manipulation by whether the manipulator’s favorite wins. The criterion is whether the outcome improves according to the manipulator’s true preference. In the plurality example Group 3's favorite D does not win, but since the outcome moves from A to C, the group is better off; this too is a successful manipulation.

7.4.3How much does strategic voting disrupt the system?

The effect of strategic behavior differs by rule:

  • Plurality: vote splitting is the basic problem. Two similar candidates share the votes and a third wins. Tactical voting is common and simple; the voter only needs to know who is ahead.
  • Borda: burying the rival at the bottom is very effective. If everyone buries, the reported rankings drift away from the voters' true preferences, and the outcome can be a candidate nobody really wants.
  • Instant-runoff: computing a manipulation is harder but possible; moreover the rule is not monotone. “IRV is immune to strategic voting” is a widespread but wrong belief.
  • The computational barrier: for some rules (for example IRV and a variant of Copeland), finding a profitable manipulation is NP-hard (Bartholdi et al., 1989–91). This difficulty makes manipulation not impossible, but computationally expensive in the worst case.

The effect of strategic voting depends on the distribution of preferences. In close races the strategic behavior of a few voters can change the winner; in races with large margins, the manipulation of small groups has no effect on the outcome. Transparent rules and clear information reduce some manipulations, but no general rule can eliminate strategic behavior in every case. This last sentence is not an observation but a theorem (Section 7.5.4).

7.5Impossibility theorems

In the previous sections a flaw was found in every rule: plurality can select the Condorcet loser, Borda is open to manipulation, IRV is not monotone, a Condorcet winner does not exist in every profile, and in a cycle a rule for a Condorcet extension (maximin, Kemeny) is needed. The natural question is: is there a more cleverly designed rule free of all these flaws? The answer of the theorems in this section, when there are three or more candidates, is “no.” These results teach not to give up the search for rules but to choose consciously which property to give up.

7.5.1Arrow’s conditions

Kenneth Arrow (1951) asked the question in a very general form. Consider a rule that produces a social ranking, that is, a social welfare function (SWF). There are four conditions one might expect of such a rule that look very reasonable at first sight.

Definition 7.15

For an SWF F:

  • Unrestricted domain: every preference profile is admitted and the outcome is always a complete and transitive ranking.
  • Pareto (unanimity): if everyone prefers x to y, society prefers x to y too.
  • Independence of irrelevant alternatives (IIA): the social order of x and y depends only on the voters' x–y order. If in two profiles every voter orders x and y the same way, the social ranking also orders x and y the same way in the two profiles.
  • Non-dictatorship: there is no single voter whose preference is society’s preference in every profile.

Why each condition is reasonable can be explained briefly as follows. Unrestricted domain asks that the rule not restrict in advance what voters may think and that it give a consistent outcome in every case; the Condorcet cycle breaks the “transitive outcome” part of this condition for the majority ranking. Pareto is respect for unanimity: if all voters want the same thing, there is no reason for society to decide otherwise. IIA asks that the decision between two candidates not be affected by the presence or position of a third; for example, it would be odd for someone who says “between fish and chicken I would pick fish” to switch to chicken when pasta is added to the menu. The non-dictatorship condition is the most basic expectation of fairness.

Theorem 7.1 (Arrow, 1951)

If there are at least 3 candidates, there is no social welfare function that satisfies unrestricted domain, Pareto, IIA, and non-dictatorship together. In other words, every SWF that satisfies unrestricted domain, Pareto, and IIA is a dictatorship.

The proof of the theorem is outside the scope of these notes; readable proofs can be found in the sources in Further reading. The theorem does not hold for two candidates: with two candidates, simple majority satisfies all four conditions. This case is the subject of May’s theorem in Section 7.5.5.

Common mistake

Understanding IIA as “if a non-winning candidate withdraws, the winner should not change.” This is a common but incomplete interpretation. Arrow’s IIA can be violated with the candidate set fixed: a change in the social order of x and y when voters change only the positions of other candidates is also an IIA violation. The example in Section 7.5.2 shows both kinds.

7.5.2Borda and irrelevant alternatives

The Borda count satisfies unrestricted domain (in every profile the scores are added and a ranking comes out), satisfies Pareto (if everyone puts x above y, every voter gives x more points), and is not a dictatorship. By Arrow’s theorem it must violate IIA. The example profile shows this violation clearly.

Example 7.16
  1. With four candidates: Borda B = 22 > D = 21. Society puts B ahead of D.
  2. C withdraws from the race. C was neither winning nor second; C is an “irrelevant” candidate with respect to the B–D ranking. C is deleted from the rankings: 4 × A ≻ D ≻ B, 4 × B ≻ D ≻ A, 3 × D ≻ B ≻ A, 2 × A ≻ B ≻ D.
  3. Borda (2, 1, 0) for three candidates:
    • A: 4 × 2 + 0 + 0 + 2 × 2 = 12.
    • B: 4 × 0 + 4 × 2 + 3 × 1 + 2 × 1 = 13.
    • D: 4 × 1 + 4 × 1 + 3 × 2 + 2 × 0 = 14.
  4. Result: D = 14 > B = 13. The social order has flipped.

No voter’s B–D order has changed: 6 voters prefer B to D and 7 prefer D to B, both before and after. But the social ranking has flipped from B ≻ D to D ≻ B. Borda violates IIA.

Table 7.15: Borda scores when C withdraws (4 candidates: 3, 2, 1, 0; 3 candidates: 2, 1, 0).
candidate4 candidateswithout C
A1812
B2213
C17—
D2114

Why does this happen? By the interpretation in Section 7.2.3, a candidate’s Borda score is the number of candidates the voters put below it. When C withdraws, each candidate loses 1 point from every voter who put C below it. The voters who put C below B are G1, G3, and G4: 4 + 3 + 2 = 9 people; B falls to 22 − 9 = 13. Those who put C below D are only G1 and G3: 7 people; D falls to 21 − 7 = 14. Those who put C below A are G1 and G4: 6 people; A falls to 18 − 6 = 12. C was giving B more “intermediate points” than it gave D; when C withdraws this difference disappears. The Borda score measures the distance between two candidates (how many candidates lie between them), and this distance depends on the other candidates. IIA, however, asks that only the relative order of the two candidates be looked at.

IIA can also be violated without changing the candidate set. Let the 4-voter group A ≻ D ≻ B ≻ C only swap C and B and say A ≻ D ≻ C ≻ B. These voters' B–D order does not change (D is still ahead of B). But B’s score drops from 1 to 0 for each of them: B falls from 22 to 22 − 4 = 18. D stays at 21, while C rises to 17 + 4 = 21. The social B–D order flips again. Although no voter’s B–D order has changed, the social order of B and D has changed.

7.5.3The practical meaning of Arrow’s theorem

Arrow’s theorem is often misinterpreted. What it says and what it does not say should be separated.

  • What it says: collective decision rules cannot satisfy all reasonable criteria at once; every rule gives up one condition.
  • What it does not say: it does not say that voting is meaningless. It does not ban or recommend any particular rule. Nor does it deny that most rules give reasonable results in most profiles; it says only that a condition will fail in some profiles.
  • Who gives up what? Borda gives up IIA (Section 7.5.2). The Condorcet or majority ranking gives up transitivity, and hence the “transitive outcome” part of unrestricted domain (the cycle). A dictatorship gives up fairness.
  • For institutions: which criterion is given priority should be stated explicitly and documented. Choosing a rule is choosing which flaw to accept.

The ways out of the theorem are to relax the conditions. The first is to restrict the domain of preferences: if not all profiles but only profiles of a certain structure are allowed, positive results are possible. The most important example is single-peaked preferences (Section 7.5.6). The second is to use intensity information instead of rankings. In Arrow’s framework the voter reports only a ranking; there is no difference between “I slightly prefer A to B” and “I strongly prefer A to B.” Tools that carry intensity information, such as score voting or money, are outside this framework.

7.5.4The Gibbard–Satterthwaite theorem

Arrow’s theorem is about social rankings and does not deal directly with strategic behavior. The question of strategic voting was answered by Allan Gibbard (1973) and Mark Satterthwaite (1975) independently of each other. Two conditions are needed to state the theorem.

Definition 7.16

For a social choice function (SCF) f:

  • Surjectivity (onto): every candidate wins in at least one profile.
  • Strategy-proofness: for every voter i, every profile, and every false ballot ≻'i of i, the outcome f(≻i, ≻−i) is not worse than f(≻'i, ≻−i) according to i's true preference ≻i. Here ≻−i denotes the ballots of the other voters.
Theorem 7.2 (Gibbard 1973, Satterthwaite 1975)

If there are at least 3 candidates and each voter can report any strict ranking over the candidates (unrestricted domain), every social choice function that selects a single winner in every profile, is onto, and is strategy-proof is a dictatorship.

The definition of strategy-proofness reads in game-theoretic language as follows: the truthful ballot is a dominant strategy for every voter. Whatever the other voters report, telling the truth is at least as good for the voter as lying. The theorem says that this strong property, with three or more candidates and unrestricted preferences, is possible only for a dictatorship among single-winner rules in which every candidate can win (onto). (A constant rule that always picks the same candidate is also strategy-proof, but it is not onto.) A dictatorship really is strategy-proof: the dictator’s first choice wins, the dictator gains nothing by lying, and the ballots of the other voters do not affect the outcome at all.

The example profile makes the theorem concrete. Group 3's tactical vote for C under plurality (Section 7.4.1) and the burying of B under Borda (Section 7.4.2) are proofs that these two rules are not strategy-proof. According to the theorem, this is not a flaw of these two rules alone: every onto rule other than a dictatorship can be manipulated in some profile.

Its relation to Arrow: Arrow’s theorem is about rankings, and Gibbard–Satterthwaite is about a single winner. The two theorems are closely linked; the Gibbard–Satterthwaite theorem can be derived from Arrow’s theorem. In terms of mechanism design, the meaning is this: in a moneyless setting, there is no general incentive-compatible rule for choosing among three or more alternatives. When money can be used, the situation changes; payments allow the cost of lying to be adjusted, and strategy-proof mechanisms such as the VCG mechanism become possible.

The goal of design is therefore not to eliminate strategic behavior but to limit it. Three ways of doing this are commonly used: voters knowing little about the other ballots (manipulation requires information about the profile), manipulation being computationally hard (Section 7.6.1), and restricting the domain of preferences (Section 7.5.6).

Common mistake

Drawing from the theorem the conclusion that “every voter always lies.” The theorem says only that there is at least one profile in which the rule can be manipulated. In most profiles and for most voters, an honest vote may be the best option. Another mistake is to think the theorem also holds for two candidates; with two candidates the majority rule is strategy-proof.

7.5.5May’s theorem: simple majority for two candidates

The theorems of Arrow and of Gibbard–Satterthwaite both require at least three candidates. With two candidates the situation is much better. Kenneth May (1952) asked which rule is “fair” when there are two candidates (x and y) and showed that the only rule satisfying three conditions is simple majority. In simple majority, the candidate with more votes wins; if the votes are equal, the result is a tie.

Definition 7.17

For a rule with two candidates:

  • Anonymity: voters' names do not matter; if the votes are permuted among the voters, the result stays the same.
  • Neutrality: candidates' names do not matter; if every voter swaps x and y, the result also swaps.
  • Positive responsiveness: if the result is a tie or x is winning, and a voter changes their vote in favor of x (the others staying the same), then x strictly wins.
Theorem 7.3 (May, 1952)

For two candidates, a rule satisfies anonymity, neutrality, and positive responsiveness if and only if it is simple majority.

One direction of the theorem is easy to see: simple majority satisfies all three conditions. It is anonymous, because the outcome depends only on how many votes each candidate gets; which voter cast which vote does not change the counts. It is neutral, because when every voter swaps x and y, the two candidates' vote counts swap and the winner swaps. It is positively responsive, because in a tie, one voter moving to x puts x one vote ahead; if x is already ahead, it increases the margin. The real strength of the theorem lies in the other direction: there is no other rule satisfying these three conditions. Why each condition is necessary is seen from the rules that violate it.

Table 7.16: The conditions of May’s theorem and the rules that violate them.
ConditionMeaningViolating rule
AnonymityVoters' names do not matter; if votes are permuted the result is the sameDictator; weighted voting
NeutralityCandidates' names do not matter; the two candidates are treated symmetrically“The status quo does not change without ⅔” (qualified majority)
Positive responsivenessIn a tie, or when x is winning, if a voter moves to x then x strictly wins“Always a coin flip”; “whoever gets an odd number of votes wins”
Example 7.17

In a cooperative, 9 members vote on replacing the current bylaws (the status quo, x) with new bylaws (y). The rule: “the bylaws change only with at least ⅔ of the votes.” ⅔ of 9 is 6.

  • 5 members say y and 4 say x: y does not reach 6; x stays.
  • Now let every member reverse their vote: 5 members say x and 4 say y. x stays again.

Neutrality would require that when the votes are reversed, the outcome also be reversed (y wins). The rule violates neutrality because it favors the status quo. The rule is anonymous (who votes does not matter).

Qualified majority rules are used deliberately for important decisions such as constitutional amendments; the aim is to make the status quo hard to change. May’s theorem says this has a price: such a rule does not treat the two options equally. The “always a coin flip” rule does not respond to the votes at all; in the “whoever gets an odd number of votes wins” rule, one voter moving to x can make x lose by turning its vote count from even to odd or from odd to even.

The message of May’s theorem is this: with two candidates the debate over rules ends; simple majority is by far the most natural choice. The difficulties (the cycle, Arrow, Gibbard–Satterthwaite) begin with three or more candidates.

7.5.6An escape route: single-peaked preferences

The common assumption of the Arrow and Gibbard–Satterthwaite theorems is unrestricted domain: every possible preference profile is allowed. But in many real situations preferences are not random; they have a certain structure. The most important of these structures is single-peakedness.

Definition 7.18

Let the candidates be ordered from left to right on an axis (for example the political left–right, an amount of budget, or a location on a street). If a voter has a most-liked position (the peak) and the voter’s utility falls in whichever direction a candidate moves away from this peak, the voter’s preference is single-peaked. If all voters' preferences are single-peaked with respect to the same axis, the profile is single-peaked.

x1x2x3x4x5leftrightvoter 1voter 3voter 2 (median)
Figure 7.11: Positions x1–x5 on the left–right axis and the single-peaked utility curves of three voters. Voter 1's peak is x2, voter 2's is x3, and voter 3's is x4. The median peak is x3 (voter 2).

In Figure 7.11 each curve has a single summit and falls off on both sides of it. For example, suppose a city council votes on the budget to allocate to a park. Each member has an ideal amount in mind; proposals much higher or much lower please them less. Such preferences are naturally single-peaked.

Theorem 7.4 (Median voter theorem; Black, 1948)

If preferences are single-peaked and the number of voters is odd, then when the peaks are sorted, the peak of the middle voter (the median voter) is the Condorcet winner. Moreover, no Condorcet cycle arises: since single-peakedness is preserved on every subset of candidates, every subset has a Condorcet winner; a subset consisting of the candidates in a cycle could not.

Let the number of voters be n = 2k + 1 and the median peak t. By definition there are at least k + 1 voters whose peak is at or to the left of t, and at least k + 1 voters whose peak is at or to the right of t. Consider a candidate z to the right of t. For a voter whose peak is at or to the left of t, both t and z are to the right of the peak, and t is closer to the peak. By single-peakedness, this voter prefers t to z. These voters number at least k + 1, that is, they are a majority; t beats z. For a candidate to the left of t, the same argument is made with the voters whose peak is at or to the right of t. So t beats every rival and is the Condorcet winner. □

The theorem has two important consequences. First, there are no Condorcet cycles in single-peaked profiles; this explains why the fact that real preferences are often organized along an axis makes cycles rare. Second, the rule “report your peak, pick the median” is strategy-proof. By reporting a false peak, a voter can only move the median away from their own peak. A voter whose peak is to the left of the median does not change the median by reporting a peak further left; by reporting a peak to the right, beyond the median, they shift the median to the right, that is, away from themselves. There is no lie that would bring the median closer to their own peak.

Example 7.18

Let the peaks of five voters on the axis be 2, 3, 7, 8, 9. The value in the middle (third) of the sorted list is 7; the median peak is 7.

  • Comparing 7 with a position to its left (for example 5), the 3 voters with peaks 7, 8, 9 choose 7; 7 wins 3 – 2.
  • Comparing 7 with a position to its right (for example 8.5), the 3 voters with peaks 2, 3, 7 choose 7; 7 again wins 3 – 2.

The average of the peaks is (2 + 3 + 7 + 8 + 9)/5 = 5.8, but the average is not the Condorcet winner: comparing 5.8 with 7, the 3 voters with peaks 7, 8, 9 choose 7. If the voter with peak 2 reports their peak as 0, the sorted list becomes 0, 3, 7, 8, 9 and the median is still 7; the lie gains nothing.

The median voter theorem does not contradict the Gibbard–Satterthwaite theorem; it removes one of its assumptions, unrestricted domain. The Gibbard–Satterthwaite theorem speaks about all profiles; once the domain is restricted to single-peaked profiles, the theorem no longer applies. The median mechanism used for facility location in mechanism design is an application of this idea: if a library or hospital is to be placed on a street and everyone wants the nearest location, the median of the reported locations is chosen and nobody can gain by reporting a false location.

Common mistake
  • Taking the mean instead of the median: the mean is affected by extreme values and is not strategy-proof; a voter can pull the mean toward themselves by exaggerating their peak.
  • Assuming every preference is single-peaked: single-peakedness is an assumption. For example, the preference of a voter who says “either a very large budget or no budget; the middle is the worst” is not single-peaked. If there are such voters, the median theorem cannot be applied.

7.5.7The four results side by side

The four results in this section are compared in Table 7.17.

Table 7.17: Assumptions, conclusions, and escape routes of the four results.
TheoremAssumptionsConclusionEscape route
Arrow (1951)≥ 3 candidates, unrestricted domain, Pareto, IIAThe rule is a dictatorshipRestrict the preference domain (single-peaked); give up IIA; cardinal information instead of rankings (scores, intensity)
Gibbard–Satterthwaite (1973, 1975)≥ 3 candidates, unrestricted domain, onto (every candidate can win), strategy-proofThe rule is a dictatorshipSingle-peaked preferences; randomized rules (e.g. random dictator); money (VCG)
May (1952)2 candidates; anonymity, neutrality, positive responsivenessThe rule is simple majority (and conversely)Not needed: a characterization, not an impossibility
Single-peaked preferences (Black, 1948)Candidates on an axis, each voter has a single peak, an odd number of votersThe median voter’s peak is the Condorcet winner; the median rule is strategy-proofIs itself an escape route: restricts the unrestricted domain assumption

The “random dictator” rule in the table deserves an explanation: one of the voters is chosen by lot and that voter’s first choice wins. This rule is strategy-proof (for the chosen voter, lying only costs them their favorite) and no voter is a dictator in advance. Since the Gibbard–Satterthwaite theorem holds only for deterministic (non-randomized) rules, this rule falls outside the theorem.

In the theorems of Arrow and of Gibbard–Satterthwaite, the dictatorship appears when all the assumptions are demanded together. When one assumption is relaxed, positive results become possible: two candidates (May), single-peaked preferences (Black), randomness, or money. The practical value of these theorems is that they show the designer which doors are closed and which are open.

7.6Computational social choice and applications

Social choice meets computer science and finds counterparts in real institutions. The computational cost of rules, collective decisions on propositions, the rules used in real elections, and proportional representation, in which several seats are allocated, are the main topics of this meeting.

7.6.1Computational social choice

Computational social choice is the intersection of computer science, economics, and social choice. In this field, rules are studied not only by which criteria they satisfy but also by their computational cost. Three kinds of questions stand out: how hard is it to compute the winner, how hard is it to compute a manipulation, and how much information must be collected from voters to determine the winner?

Computing the winner. Plurality and Borda are computed in O(nm) time for n voters and m candidates; each ballot is read once (Section 7.2.10). For Copeland, the pairwise comparison table is filled first: for each of the m(m − 1)/2 pairs, n ballots are scanned; the time is O(nm2). By contrast, finding the winner under the Kemeny rule and the Dodgson rule is NP-hard (Bartholdi, Tovey, and Trick, 1989). The Dodgson rule was proposed by Lewis Carroll (real name Charles Dodgson), the author of Alice in Wonderland: the candidate who needs the fewest adjacent swaps (exchanging the positions of two neighboring candidates in a ranking) on the ballots to become the Condorcet winner wins. If a Condorcet winner exists, it needs zero changes and wins. The idea is natural, but computing this smallest number is in general very hard.

There is an irony here: some rules that satisfy the Condorcet criteria and decide sensibly in a cycle (Kemeny, Dodgson) are the computationally most expensive rules. In practice with few candidates this is not a problem; with many candidates, approximation algorithms and integer programming solvers are used.

Computing manipulation. The Gibbard–Satterthwaite theorem says that manipulation is possible, but how hard it is to find a profitable false ballot is a separate question. A single manipulator finds a profitable ballot under plurality and Borda in polynomial time with a greedy algorithm: place the favorite first and fill in the remaining positions so as to threaten the favorite as little as possible. Under IRV, however, the problem is NP-hard (Bartholdi and Orlin, 1991). This hardness can be regarded as a “barrier” against manipulation. But the barrier holds only for the worst case: although some instances of an NP-hard problem are hard, most instances encountered in real elections can be solved easily.

Preference elicitation. How much information is needed to learn a voter’s full ranking? For m candidates there are m! different rankings. Each yes/no question (one bit) halves the number of possible rankings at best. A full ranking therefore needs at least log2(m!) bits. For m = 10, 10! = 3,628,800 and log2(3,628,800) ≈ 21.8, that is, about 22 bits. In large elections or online systems with many candidates this communication cost matters. Preference elicitation studies asking voters questions step by step and collecting only the information sufficient to determine the winner. For example, under plurality the first choice alone is enough; asking for the full ranking is unnecessary.

The field has two more topics: fair division (sharing divisible or indivisible resources without creating envy) and judgment aggregation (Section 7.6.2).

7.6.2Judgment aggregation: the doctrinal paradox

Voting is not used only to choose among candidates. A panel of judges, a board of directors, or a scientific committee often decides on propositions: “is the contract valid?”, “was the contract breached?”. Turning individual judgments into a collective judgment is called judgment aggregation.

Consider a court with three judges. The defendant pays damages only if both propositions p (the contract is valid) and q (the contract was breached) are true. The conclusion proposition is p ∧ q (“p and q”).

Table 7.18: The doctrinal paradox: three judges, two premises, one conclusion.
JudgepqConclusion: p ∧ q
Judge 1yesyesyes
Judge 2yesnono
Judge 3noyesno
Majorityyes (2–1)yes (2–1)no (1–2)

Each judge is consistent: Judge 1 accepts both premises and awards damages; Judges 2 and 3 each reject one of the premises and oppose damages. But when the propositions are voted on one by one, the majority says “p is true, q is true, p ∧ q is false.” This is a logically inconsistent collective judgment. This situation is called the doctrinal paradox (discursive dilemma; Kornhauser and Sager, 1986).

The practical consequence of the paradox is that the decision depends on procedure. If the court decides by premises (first p and q are voted on separately, and the conclusion is derived from them), the defendant pays. If it decides by conclusion (p ∧ q is voted on directly), the defendant does not pay. Two different decisions come from the same judgments. This is the counterpart of the Condorcet cycle in judgments: individuals are consistent, the majority is inconsistent.

List and Pettit (2002) turned this observation into a theorem: there is no aggregation rule that is anonymous, systematic (each proposition is decided by the same method and only according to the votes on that proposition), and always produces a consistent collective judgment. This is the counterpart of Arrow’s theorem for judgments.

7.6.3Voting rules in the real world

Most of the rules in this chapter are used in real institutions:

  • The two-round system: presidential elections in Türkiye and France. If no majority is reached in the first round, the top two candidates compete in the second round.
  • Instant-runoff: elections to the Australian House of Representatives and some US cities. The voter gives a full ranking.
  • Plurality: single-member districts in the United Kingdom and the United States. In each district the candidate with the most votes is elected.
  • Borda-like scoring: in the Eurovision Song Contest, each country gives 12, 10, 8, 7, … points to the songs it likes; similar scoring is used in sports awards (for example in most valuable player votes).
  • Approval: some scientific society elections; “times when I am available” polls.
  • Online: Reddit and forum voting, community polls, class and club decisions.

Eurovision’s score vector (12, 10, 8, 7, 6, 5, 4, 3, 2, 1, 0, …) is a positional scoring rule. Giving first place 2 points more than second place is meant to reward the first choice a little more than Borda does. This design choice is also an example of the discussion in Section 7.2.5: the score vector sets the balance between compromise candidates and candidates with strong base support.

7.6.4Several seats: proportional representation and D’Hondt

The rules so far choose a single winner. In parliamentary elections, however, several seats, say S, are allocated from one electoral district. The aim then is not to find a winner but to share the seats among parties. According to the principle of proportional representation, each party’s share of seats should be close to its share of votes. Since seats are integers, exact proportionality is generally impossible, and how to round is a choice of method.

Definition 7.19

D’Hondt method: each party’s votes are divided by 1, 2, 3, …. All the quotients of all the parties are sorted in a single list from largest to smallest; the largest S quotients each win one seat. A party’s number of seats is the number of its own quotients among these S quotients.

In Türkiye’s parliamentary elections the D’Hondt method is applied in each electoral district; in addition there is a nationwide threshold.

Example 7.19

6 seats; votes A 42,000, B 31,000, C 15,000, D 12,000 (100,000 in total).

  1. Each party’s votes are divided by 1, 2, 3, 4 (Table 7.19).
  2. All the quotients are arranged from largest to smallest: 42,000 (A ÷ 1), 31,000 (B ÷ 1), 21,000 (A ÷ 2), 15,500 (B ÷ 2), 15,000 (C ÷ 1), 14,000 (A ÷ 3), 12,000 (D ÷ 1), ….
  3. The largest six quotients get seats: three of A’s, two of B’s, and one of C’s. D’s 12,000, in seventh place, is left out.

Result: A 3, B 2, C 1, D 0.

Table 7.19: D’Hondt quotients. The highlighted cells are the largest six quotients.
DivisorABCD
÷142,00031,00015,00012,000
÷221,00015,5007,5006,000
÷314,00010,3335,0004,000
÷410,5007,7503,7503,000
Seats3210

The division has an interpretation: a party’s kth quotient is the number of “votes per seat” if the party takes one more seat when it already has k − 1 seats. Each seat is given to the party that would represent the most votes per seat at that moment. As a result, A takes 50% of the seats with 42% of the votes, and D, with 12% of the votes, gets no seats. D’Hondt slightly favors large parties.

Another method is the largest remainder (Hare) method. Each party’s “entitled” number of seats is computed as vote share × S: A 0.42 × 6 = 2.52, B 0.31 × 6 = 1.86, C 0.15 × 6 = 0.90, D 0.12 × 6 = 0.72. Each party first gets as many seats as the integer part of this number: A 2, B 1, C 0, D 0; 3 in total. The remaining 3 seats are given one by one to the parties with the largest fractional parts: C (0.90), B (0.86), D (0.72). A’s fractional part (0.52) is the smallest. Result: A 2, B 2, C 1, D 1. With the same votes, D’Hondt gives A 3 seats, and the largest remainder method gives D 1 seat.

As with single-winner rules, every method here is a trade-off. D’Hondt emphasizes government stability, that is, the ability of large parties to form a majority; the largest remainder method emphasizes the representation of small parties.

7.6.5Which voting rule is fair?

All the results of the chapter show that there is no single answer to this question. Judging fairness depends on criteria such as representation, majority support, protection of minorities, and strategy-proofness, and these criteria conflict with one another.

  • Plurality is simple and fast, but it can lead to vote splitting and to a winner without majority support (in the example profile, A with 6/13 of the votes).
  • Borda uses more preference information and promotes the compromise candidate (B), but it is open to strategic ranking, especially burying.
  • Instant-runoff seeks majority support, but it does not fully solve the problems of monotonicity and strategic voting.
  • Condorcet methods respect pairwise majorities but need an additional rule in a cycle; those that also decide in a cycle, such as Kemeny, are hard to compute.

The choice of rule should be made according to the context of the decision and the priority criteria. For a club presidency, a fast and understandable plurality may be enough; for choosing a class activity with many candidates, a ranking-based rule (Borda or a Condorcet method) may give a more balanced outcome. What matters is that the rule is determined explicitly before the vote and that it is known which flaws are accepted.

7.7Summary

  • Social choice studies rules that turn individual preferences (the preference profile) into a collective decision (SCF) or a social ranking (SWF). The ballot is the voter’s strategy; voting is a moneyless mechanism design problem.
  • Rules: majority, plurality, the two-round system, Borda, approval, positional scoring, instant-runoff, Condorcet, Copeland, maximin, and Kemeny. In the 13-voter example profile these rules give four different winners: plurality A, two-round and IRV C, Borda and 2-approval B, Condorcet and Kemeny D.
  • The Condorcet paradox: transitive individual preferences can produce a cyclic social preference (A ≻ B ≻ C ≻ A). In a cycle, whoever controls the agenda chooses the outcome; the candidate left for last wins. Kemeny chooses the ranking that disagrees least with the pairwise majorities (in a three-candidate cycle it overrides the weakest majority), but it is NP-hard to compute.
  • Criteria: plurality can select the Condorcet loser; Borda and IRV may not select the Condorcet winner; IRV is not monotone; Copeland and Kemeny are Condorcet consistent.
  • Strategic voting: tactical voting under plurality (avoiding vote splitting), burying under Borda. Honesty is not the best strategy under every rule; burying can also backfire.
  • Arrow: with at least 3 candidates, unrestricted domain, Pareto, IIA, and non-dictatorship cannot all hold together. Borda violates IIA.
  • Gibbard–Satterthwaite: with at least 3 candidates, every strategy-proof and onto rule is a dictatorship.
  • May and single-peakedness: with 2 candidates, simple majority is the only rule satisfying anonymity, neutrality, and positive responsiveness. With single-peaked preferences, the median voter’s peak is the Condorcet winner and the median rule is strategy-proof.
  • Computational social choice: plurality and Borda O(nm), Copeland O(nm2); Kemeny and Dodgson are NP-hard; manipulation under IRV is NP-hard. The doctrinal paradox is the counterpart of the cycle for judgments. D’Hondt slightly favors large parties.

7.8Key terms

  • social choice
  • preference profile
  • ballot
  • transitivity
  • social welfare function (SWF)
  • majority rule
  • plurality rule
  • two-round (runoff) system
  • Borda count
  • approval voting
  • positional scoring rule
  • k-approval
  • 2-approval
  • veto rule
  • instant-runoff voting (IRV)
  • Condorcet winner
  • Condorcet loser
  • pairwise majority graph
  • tournament
  • Copeland rule
  • tie-breaking rule
  • Condorcet paradox / cycle
  • sequential pairwise voting
  • agenda (manipulation)
  • Kemeny rule
  • rank aggregation
  • monotonicity
  • maximin (Simpson) rule
  • strategic voting
  • tactical voting (plurality)
  • vote splitting
  • Duverger’s law
  • burying
  • Arrow’s impossibility theorem
  • unrestricted domain
  • Pareto (unanimity) condition
  • independence of irrelevant alternatives (IIA)
  • non-dictatorship
  • Gibbard–Satterthwaite theorem
  • surjectivity (onto)
  • May’s theorem
  • simple majority
  • anonymity
  • neutrality
  • positive responsiveness
  • qualified majority
  • single-peaked preferences
  • median voter theorem
  • median mechanism
  • computational social choice
  • Dodgson rule
  • preference elicitation
  • judgment aggregation
  • doctrinal paradox
  • proportional representation
  • D’Hondt method
  • largest remainder (Hare) method

7.9Test Yourself

  1. 11 voters: 5 × A ≻ B ≻ C, 4 × B ≻ C ≻ A, 2 × C ≻ B ≻ A. Who are the majority, plurality, IRV, Borda (2, 1, 0), and Condorcet winners? Is there a Condorcet loser in the profile?

    Answer

    First choices are A 5, B 4, C 2. The threshold is 6; since 5 < 6 there is no majority winner. Plurality selects A. IRV: C (2) is eliminated and the votes pass to the next candidate, B; B 4 + 2 = 6, A 5; B wins. Borda: A 5 × 2 = 10, B 5 × 1 + 4 × 2 + 2 × 1 = 15, C 4 × 1 + 2 × 2 = 8; B wins. Pairwise: B – A 6 – 5, B – C 9 – 2, C – A 6 – 5. B is the Condorcet winner. A loses 5 – 6 to both rivals: A is the Condorcet loser, and plurality selected exactly A.

  2. In the same profile consider the scoring rules s = (1, a, 0) (0 ≤ a ≤ 1). What is each candidate’s score in terms of a? For which values of a does A win? Can C ever win?

    Answer

    A is never second in any ranking: A = 5. B is the first choice of 4 voters and the second choice of 5 + 2 = 7 voters: B = 4 + 7a. C is the first choice of 2 voters and the second choice of 4 voters: C = 2 + 4a. For A to beat B we need 5 > 4 + 7a, that is, a < 1/7 (at a = 1/7, A and B are tied). In this range A also beats C (5 > 2 + 4a). C cannot win for any a, because 4 + 7a > 2 + 4a for every a ≥ 0.

  3. In the same profile the honest plurality winner is A. (a) How can the 2 voters with C ≻ B ≻ A vote under plurality to get a better outcome according to their preferences? (b) If Borda (2, 1, 0) is used, what happens if the A voters bury the main rival B and report A ≻ C ≻ B?

    Answer

    (a) C (2 votes) has no chance of winning. If these two voters vote for B, B gets 4 + 2 = 6, A gets 5, and B wins. According to their true ranking C ≻ B ≻ A, B is better than A: the tactical vote is profitable. (b) For each A voter, B gets 0 points instead of 1 and C gets 1 point instead of 0: B 15 − 5 = 10, C 8 + 5 = 13, A 10. C wins. C is the worst candidate for the A voters; the burying has backfired.

  4. 7 voters: 3 × A ≻ B ≻ C, 2 × B ≻ C ≻ A, 2 × C ≻ A ≻ B. What are the results of the pairwise comparisons, the Kemeny ranking, and the maximin winner? How should the agenda be set up in sequential pairwise voting for B to win?

    Answer

    A – B: 3 + 2 = 5 – 2, A ≻ B. B – C: 3 + 2 = 5 – 2, B ≻ C. C – A: 2 + 2 = 4 – 3, C ≻ A. There is a cycle. Agreement scores: A ≻ B ≻ C 5 + 3 + 5 = 13, B ≻ C ≻ A 11, C ≻ A ≻ B 11, A ≻ C ≻ B 10, B ≻ A ≻ C 10, C ≻ B ≻ A 8. The Kemeny ranking is A ≻ B ≻ C; the weakest majority, C ≻ A (4 – 3), is overridden. Maximin: A’s worst comparison is 3 (against C), B’s is 2, and C’s is 2; A wins. For B to win, B is left for last: first A – C (C wins 4 – 3), then C – B (B wins 5 – 2).

  5. Three rules are proposed for decisions with two options (x and y): (i) “The chair’s vote counts double, and whoever gets the most votes wins”; (ii) “at least ⅗ of the votes are needed to accept y, otherwise x stays”; (iii) “if the number of votes for x is even, x wins; if odd, y wins.” Which condition of May’s theorem does each violate?

    Answer

    (i) Anonymity: the outcome can change when the votes of the chair and another member are swapped. (ii) Neutrality: the two options are not symmetric. For example, with 11 members, if 6 members say y and 5 say x, x stays since 6/11 < 3/5. When the votes are reversed (6 members say x, 5 say y), x stays again; the outcome does not reverse. (iii) Positive responsiveness: when x is winning, one voter moving to x makes the count odd and makes x lose.

  6. The peaks of 7 voters with single-peaked preferences on an axis are 1, 1, 2, 4, 6, 9, 10. Which position is the Condorcet winner? What is the average of the peaks? In the rule “report your peak, pick the median,” what happens if the voter with peak 10 reports their peak as 20 or as 3?

    Answer

    The median is the fourth value of the sorted list: 4. By the median voter theorem the Condorcet winner is 4. The average is 33/7 ≈ 4.71; comparing 4 with 4.71, the 4 voters with peaks 1, 1, 2, 4 choose 4. If the voter reports 20, the list becomes 1, 1, 2, 4, 6, 9, 20 and the median is still 4; the exaggeration does not work. If they report 3, the list becomes 1, 1, 2, 3, 4, 6, 9 and the median falls to 3; the outcome moves even farther from this voter’s peak. Lying does not pay.

  7. 7 seats; votes A 47,000, B 33,000, C 20,000. What is the seat allocation under the D’Hondt and largest remainder (Hare) methods?

    Answer

    D’Hondt quotients: A 47,000, 23,500, 15,667, 11,750; B 33,000, 16,500, 11,000; C 20,000, 10,000. The largest seven quotients are 47,000 (A), 33,000 (B), 23,500 (A), 20,000 (C), 16,500 (B), 15,667 (A), 11,750 (A): A 4, B 2, C 1. Hare: the entitled numbers are A 0.47 × 7 = 3.29, B 2.31, C 1.40; the integer parts are 3, 2, 1 (6 in total). The remaining 1 seat goes to the largest fractional part (C, 0.40): A 3, B 2, C 2. D’Hondt gives the large party one seat more.

  8. A Kemeny count with 8 candidates is to be done by brute force. How many rankings are tried, and how many pairs are examined in each ranking? At least how many bits are needed to learn one voter’s full ranking?

    Answer

    8! = 40,320 rankings are tried. Each ranking has 8 · 7 / 2 = 28 pairs; in total 40,320 × 28 = 1,128,960 pair evaluations are needed (each one a scan of n groups). A full ranking needs log2(8!) = log2(40,320) ≈ 15.3, that is, at least 16 bits (the number of bits must be an integer).

7.10Further reading

  • F. Brandt, V. Conitzer, U. Endriss, J. Lang, A. D. Procaccia (eds.), Handbook of Computational Social Choice, Cambridge University Press, 2016. The main reference for computational social choice; its chapters on Kemeny, Dodgson, the complexity of manipulation, and judgment aggregation elaborate the topics of these notes.
  • D. Easley, J. Kleinberg, Networks, Crowds, and Markets, Cambridge University Press, 2010, Chapter 23 (Voting). Presents a short and readable proof of Arrow’s theorem and single-peaked preferences with little mathematics.
  • A. Karlin, Y. Peres, Game Theory, Alive, AMS, 2017. The chapter on social choice and voting gives proofs of the Arrow and Gibbard–Satterthwaite theorems.
  • N. Nisan, T. Roughgarden, É. Tardos, V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 9. Places social choice in the framework of mechanism design and contains a proof of the Gibbard–Satterthwaite theorem.

7.11References

  1. K. J. Arrow, Social Choice and Individual Values, Wiley, 1951.
  2. M. Balinski, H. P. Young, Fair Representation, Yale University Press, 1982.
  3. J. J. Bartholdi, J. B. Orlin, “Single transferable vote resists strategic voting”, Social Choice and Welfare 8(4), 1991.
  4. J. J. Bartholdi, C. A. Tovey, M. A. Trick, “The computational difficulty of manipulating an election”, Social Choice and Welfare 6, 1989.
  5. J. J. Bartholdi, C. A. Tovey, M. A. Trick, “Voting schemes for which it can be difficult to tell who won the election”, Social Choice and Welfare 6, 1989.
  6. D. Black, “On the rationale of group decision-making”, Journal of Political Economy 56(1), 1948.
  7. F. Brandt, V. Conitzer, U. Endriss, J. Lang, A. D. Procaccia (ed.), Handbook of Computational Social Choice, Cambridge University Press, 2016.
  8. C. Dwork, R. Kumar, M. Naor, D. Sivakumar, “Rank aggregation methods for the web”, WWW, 2001.
  9. D. Easley, J. Kleinberg, Networks, Crowds, and Markets, Cambridge University Press, 2010 (Chapter 23).
  10. A. Gibbard, “Manipulation of voting schemes: a general result”, Econometrica 41(4), 1973.
  11. G.-Th. Guilbaud, “Les théories de l’intérêt général et le problème logique de l’agrégation”, Économie appliquée 5(4), 1952.
  12. A. Karlin, Y. Peres, Game Theory, Alive, AMS, 2017.
  13. J. G. Kemeny, “Mathematics without numbers”, Daedalus 88(4), 1959.
  14. L. A. Kornhauser, L. G. Sager, “Unpacking the court”, Yale Law Journal 96(1), 1986.
  15. C. List, P. Pettit, “Aggregating sets of judgments: an impossibility result”, Economics and Philosophy 18(1), 2002.
  16. K. O. May, “A set of independent necessary and sufficient conditions for simple majority decision”, Econometrica 20(4), 1952.
  17. N. Nisan, T. Roughgarden, É. Tardos, V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007 (Chapter 9).
  18. M. Regenwetter, B. Grofman, A. A. J. Marley, I. M. Tsetlin, Behavioral Social Choice, Cambridge University Press, 2006.
  19. M. A. Satterthwaite, “Strategy-proofness and Arrow’s conditions”, Journal of Economic Theory 10, 1975.

Course pages: Procaccia 15-896 (CMU) · Shah CSC304 (Toronto) · © Sercan Külcü. All rights reserved.