Why Voting Is Hard
How Voting Systems Work ๐
Chapter 1 ยท Why Voting Is Hard
Counting votes sounds like the easiest job in the world: add them up and the biggest number wins. Yet the same pile of ballots can name different winners depending on the rule you use to read it, and which rule is “right” is a question people have argued about for more than two centuries. This course takes the rules apart one at a time, from the simplest to the strangest, and tests each with small Python programs. This first chapter sets up the vocabulary, shows the problem with a nine-voter election you can check by hand, and builds the tally code that later chapters reuse. You need arithmetic and a little algebra; the maths stays light, and every idea is something you can run.
What Is a Vote For?
A vote is a small piece of information from one person, and an election is a rule for turning many such pieces into one decision. The decision might be a single winner (a mayor), several winners (a council), or a yes or no (a referendum). Notice that the word “winner” hides a choice about what the group is trying to find: the option the most people put first, the option most people can live with, or the option that beats every rival one on one. Those are different targets, and a voting system is a bet on which one matters.
Voting systems also differ in what each voter is allowed to say. That is the first thing to look at, because it limits everything that can be done afterwards.
| Ballot type | What the voter writes | What the counter learns |
|---|---|---|
| Choose one | a single candidate | only each voter’s first choice |
| Ranked | candidates in order of preference | the whole order, so pairwise comparisons are possible |
| Approval | a tick for every acceptable candidate | who is acceptable, but not the order |
| Score | a number (say 0 to 5) for each candidate | strength of feeling, as the voter chooses to scale it |
The next chapters cover these ballot types and the rules that go with them: How Voting Systems Work 2 for choose-one ballots, How Voting Systems Work 3 and 4 for ranked ballots, and How Voting Systems Work 5 for approval and score ballots. In this chapter we use ranked ballots, because a ranked ballot contains enough information to simulate nearly every other kind.
Preferences and Ballots
A preference is what a voter privately thinks; a ballot is what the voter is allowed to write down. For a ranked ballot with three candidates there are 3 × 2 × 1 = 6 possible strict orders, and in Python a ballot is simply a tuple with the favourite first. An electorate is then a list of ballots, and a list can hold repeats, so “four voters share this order” is just four copies.
Our running example has nine voters and three candidates, A, B and C. Four voters rank A, B, C; three rank B, C, A; two rank C, B, A. The first tally is the one most people think of as “the election”: count first choices.
Candidate A wins a plurality with 4 of 9 first-choice votes (44.4%), but does not reach a majority, which means more than half. The Wikipedia article on plurality voting defines plurality voting as a system in which the candidate who polls more than any other (a plurality, or relative majority) is elected, and says that it does not require a majority. In the UK the system is called first past the post for general elections (the article does not give a separate US term, but says it is widely used in most of the United States). Critics, the article says, point to wasted votes, pressure toward tactical voting, and the spoiler effect, where similar candidates split the vote. How Voting Systems Work 2 looks at all three.
| Term | Meaning | In our nine-voter example |
|---|---|---|
| Plurality | more votes than any rival | A has 4, ahead of B with 3 and C with 2 |
| Majority | more than half of the votes | needs 5 of 9; nobody has it |
| Preference | what a voter thinks | never seen directly by the counter |
| Ballot | what a voter writes | a full ranking of A, B and C |
The Same Votes, a Different Winner
Winning with 44% looks fine until you ask who the other 56% would have picked. Look at the ballots from the bottom instead of the top:
The plurality winner is the last choice of five of the nine voters, a majority, while B is last for nobody. That is uncomfortable. Now compare the candidates head to head: for every pair, give each voter's vote to whichever of the two they rank higher.
B beats A by 5 to 4 and beats C by 7 to 2, so B would win a straight contest against either rival. A candidate who beats every other candidate head to head is called a Condorcet winner, after the Marquis de Condorcet, whose 1785 Essai sur l’application de l’analyse à la probabilité des décisions rendues à la pluralité des voix is the source the Wikipedia article on the Condorcet paradox cites. Here the plurality rule picks A, while the head-to-head rule picks B. Neither answer is a mistake in counting; they are two definitions of “best”. How Voting Systems Work 4 builds the full pairwise matrix.
| Rule | Question it asks | Winner here |
|---|---|---|
| Plurality | who has the most first places? | A (4 first places) |
| Condorcet | who beats every rival one on one? | B (5 to 4 and 7 to 2) |
| Fewest last places | who is disliked by the fewest voters? | B (0 of 9), a rough guide only |
When No One Wins: The Cycle
The Condorcet winner in the example was lucky to exist. The Wikipedia article on the Condorcet paradox gives a three-voter example: one voter ranks A, B, C; one ranks B, C, A; one ranks C, A, B. Every pairwise contest ends 2 to 1, and the majority preferences form a loop, so no candidate beats all the others. The article says the paradox shows that majority rule can be self-contradictory even when every individual's preferences are rational (each voter's own ranking is perfectly consistent).
A beats B, B beats C and C beats A. No candidate is the winner by this definition, and a rule that insists on a Condorcet winner has nothing to say. The same article credits the 13th-century Catalan writer Ramon Llull with describing the paradox first, in a work lost until the 21st century, but the page as fetched gave no title or year for it, and older accounts credit only Condorcet (check). Cycles are the root of the impossibility result in How Voting Systems Work 6.
Why This Is Hard
Put the pieces together and you can see the problem the rest of the course explores. The counter sees only ballots, not preferences. Different rules read the same ballots as asking different questions. Some rules sometimes have no answer, or give answers that depend on details such as who else is standing. Every system you meet later can be judged on what it asks, how easy it is to explain, and how it can go wrong.
A club of 15 members (assumed numbers) ranks four candidates. Write a program that finds the plurality winner and its share of the vote, says whether it is a majority, plays every head-to-head contest, and reports the Condorcet winner if there is one. Do the two methods agree?
๐ View solutionHow common are cycles? List all 216 ways three voters can each pick one of the six rankings of three candidates and count the electorates with a cycle. Then simulate random electorates of 3, 11 and 101 voters (seeded) and compare the rates. Does a bigger electorate remove the problem?
๐ View solutionStart from the nine-voter electorate. Move k of the four A-first voters so that they rank B first instead, for k from 0 to 4, and report the plurality winner and the Condorcet winner each time. How many voters have to change before the plurality winner changes, and why does the Condorcet winner not move?
๐ View solutionQuick Reference
- Ballot: what the voter writes (one choice, a ranking, approvals or scores); the counter never sees the underlying preference
- Plurality: the most votes; majority: more than half; a plurality winner need not have a majority
- Condorcet winner: beats every rival head to head; it may not exist
- Condorcet cycle: A beats B, B beats C, C beats A, each by majority
- Python habit: a ranked ballot is a tuple, an electorate is a list, and
Countertallies first choices - Check before trusting a winner: which rule, what the ballot allowed, and whether the numbers are real or illustrative