Condorcet jury theorem and voting
Majority vote accuracy, \(\sum_{i>k/2}\binom{k}{i}p^i(1-p)^{k-i}\), and the correlation ceiling
Takeaway
independent voters at % each reach 83.7% by majority vote. If % of their errors are shared, they reach 79.6%, and no number of voters gets past 91%.
Change the blue numbers. Every figure on this page updates with them.
Why care
Asking several models, or one model several times, and taking the majority is one of the simplest ways to raise accuracy when no checker exists.
Self-consistency, model ensembles and multi-agent juries all rely on the same 18th-century result: if each voter is right more often than wrong, and voters err independently, the majority becomes almost certainly right as the jury grows. Both conditions fail quietly in practice. Samples from one model share its blind spots, and a voter that is worse than chance on a question type drags the majority down. This page shows how much each condition matters, and why adding a different model usually beats adding another sample of the same one.
The intuition
Picture five people guessing the answer to a yes-or-no question, each right 70% of the time. For the majority to be wrong, at least three of the five must be wrong at once. If they guess independently, that is unlikely: about 16% of the time.
Now suppose they all read the same misleading article first. On questions where the article is wrong, they are all wrong together, and voting cannot help. Shared errors behave like a single voter, however many people are in the room.
The last row is the theorem's other half: when voters are wrong more often than right, voting makes things worse, and more voters make it worse faster.
The math
With \(k\) voters (odd), each independently correct with probability \(p\), the majority is correct when more than half are:
To allow for shared errors, assume that on a share \(\rho\) of questions every voter gives the same answer (right with probability \(p\)), and on the rest they vote independently:
- \(k\)
- number of voters: models, samples or agents (odd, so there are no ties)
- \(p\)
- accuracy of each voter on its own
- \(\rho\)
- share of questions on which voters err (or succeed) together
- \(w_j\)
- weight of voter \(j\) in a weighted vote, \(\ln\frac{p_j}{1-p_j}\)
- The theorem: if \(p > \tfrac12\) and errors are independent, \(P_{\text{maj}} \to 1\) as \(k\) grows. If \(p < \tfrac12\), it goes to 0.
- The ceiling: shared errors cap the vote at \(1-\rho(1-p)\). At \(p = 0.7\) and \(\rho = 0.3\), that is 91%.
- Measuring \(\rho\): for two voters, \(\Pr(\text{both wrong}) = \rho q + (1-\rho)q^2\) with \(q = 1-p\), so \(\rho = (\Pr(\text{both wrong}) - q^2)/(q - q^2)\).
- Unequal voters: weight each by its log-odds \(\ln\frac{p_j}{1-p_j}\). This is the optimal rule for independent voters, and it lets one strong model outvote two weak ones.
Where each of these comes from is worked through in Derivations at the end of the page.
Interactive calculator
Set each voter's accuracy, the size of the panel and how much of their error is shared. Try an accuracy below 50% to see voting backfire.
Worked example: flagging contract clauses
A legal-review agent decides whether each clause in a supplier contract needs a lawyer's review. On 400 labeled clauses, its main model is right 78% of the time. The team tried two ways to vote.
First, sampling the same model several times at temperature 0.7. Pairs of samples were both wrong on 15.1% of clauses, where independent errors would give \(0.22^2 = 4.8\%\). That gives \(\rho = (0.151 - 0.048)/(0.22 - 0.048) \approx 0.6\): most of the model's mistakes repeat on every sample. Second, asking three different model families, at 78%, 75% and 72%, whose errors overlapped far less, \(\rho \approx 0.15\).
| Approach | Calls per clause | Accuracy |
|---|---|---|
| Main model, once | 1 | 78.0% |
| Same model, 3 samples, majority | 3 | 81.8% |
| Same model, 5 samples, majority | 5 | 83.8% |
| Same model, unlimited samples (ceiling) | ∞ | 86.8% |
| Three different models, majority | 3 | 83.0% |
| Different models, ceiling at \(\rho = 0.15\) | ∞ | 96.3% |
For the same three calls, three different models beat three samples of one model by 1.2 points, and their ceiling is nearly ten points higher. The team kept the three-model panel and routed the clauses where the panel split 2–1 to a lawyer, which caught most of the remaining errors at a small fraction of the review load.
Assumptions and where it breaks
- Accuracy varies by question. A voter at 70% overall may be 95% on easy questions and 30% on hard ones. On the hard ones, voting makes things worse. Check accuracy per segment before trusting a vote there.
- Open-ended answers need a way to match. With free-text answers, "the majority" means clustering equivalent answers first. Plurality voting over many options needs fewer votes than binary voting to win, but is also easier to win wrongly.
- The shared-error model is a simplification. Real correlation is partial and varies by question. Treat \(\rho\) as a summary measured on your own data, not a constant.
- Voters may not be independent by design. Agents that see each other's answers before voting tend to converge on the first confident answer. Collect votes blind, then share.
- Cost scales with voters. Each voter is a full call. Voting only on uncertain cases, or using a cascade (M11), keeps the cost in check.
How to apply it
- Measure each voter's accuracy on a labeled sample, per segment if your traffic mixes easy and hard cases.
- Measure shared errors. Count how often pairs of voters are both wrong, and compute \(\rho\).
- Prefer diversity over repetition. Different model families, prompts or retrieved contexts lower \(\rho\) more than extra samples do.
- Weight unequal voters by log-odds, and drop any voter that is below 50% on a segment.
- Use disagreement as a signal. A split vote is a cheap, well-calibrated trigger for escalation to a stronger model or a human.
How to explain it to a stakeholder
"Asking the same model five times is like asking one expert five times: you mostly get the same mistake back. Asking three different experts catches far more, and when they disagree, that's exactly the case to send to a person."
Related models and patterns
For coding agents
A machine-readable summary and a reference implementation. The same spec is embedded in this page as <script type="application/json" id="model-spec">, and the whole series is listed in models.json.
id: condorcet-voting
number: M10
name: Condorcet jury theorem and majority voting
family: multi-model
answers: "When does majority voting across models or samples raise accuracy?"
formula:
majority: "sum_{i > k/2} comb(k, i) p**i (1-p)**(k-i)"
with_shared_errors: "rho*p + (1 - rho) * majority(k, p)"
ceiling: "1 - rho*(1 - p) when p > 0.5"
rho_from_pairs: "(P(both wrong) - q**2) / (q - q**2), q = 1 - p"
weighted_vote: "weights ln(p_j / (1 - p_j))"
inputs:
p: {type: float, meaning: accuracy of each voter}
k: {type: int, meaning: number of voters, odd}
rho: {type: float, meaning: share of questions where voters err together}
assumptions:
- binary answers (cluster free-text answers first)
- same accuracy on every question (segment otherwise)
- votes collected blind
use_when:
- choosing between more samples and more model families
- deciding whether a vote will help on a question type
related_patterns: [parallelization, debate, human-in-the-loop]import math
from math import comb
from itertools import product
def majority(k, p):
return sum(comb(k, i) * p**i * (1 - p)**(k - i) for i in range(k // 2 + 1, k + 1))
def vote_accuracy(k, p, rho=0.0):
return rho * p + (1 - rho) * majority(k, p)
def rho_from_pairs(p, both_wrong):
q = 1 - p
return (both_wrong - q * q) / (q - q * q)
def weighted_majority(ps):
"""Exact accuracy of a log-odds-weighted vote among independent voters."""
w = [math.log(p / (1 - p)) for p in ps]
acc = 0.0
for votes in product([1, 0], repeat=len(ps)):
pr = math.prod(p if v else 1 - p for p, v in zip(ps, votes))
if sum(wi if v else -wi for wi, v in zip(w, votes)) > 0:
acc += pr
return acc
if __name__ == "__main__":
print(majority(5, 0.7)) # 0.837
print(vote_accuracy(5, 0.7, 0.3)) # 0.796
print(rho_from_pairs(0.78, 0.151)) # 0.60
print(weighted_majority([0.78, 0.75, 0.72])) # 0.844, same as plain majority hereDerivations
For the math-curious: where each result in The math comes from. Nothing above depends on reading this.
The jury theorem
The number of correct voters is binomial with mean \(kp\) and standard deviation \(\sqrt{kp(1-p)}\). The majority is wrong only if this count falls below \(k/2\), which is \(k(p-\tfrac12)\) below the mean. Measured in standard deviations that gap is \(\sqrt k\,(p-\tfrac12)/\sqrt{p(1-p)}\), which grows like \(\sqrt k\). So for \(p > \tfrac12\), the chance of a wrong majority shrinks toward zero (exponentially fast, by Hoeffding's inequality: at most \(e^{-2k(p-1/2)^2}\)). For \(p < \tfrac12\) the same argument runs in reverse.
Shared errors and the ceiling
Condition on whether a question is one where voters act as one (probability \(\rho\)) or independently (\(1-\rho\)). In the first case the vote is right with probability \(p\), like a single voter. In the second it is right with \(P_{\text{maj}}(k,p)\). Adding the two cases gives \(P_{\text{vote}}\). As \(k\) grows with \(p > \tfrac12\), \(P_{\text{maj}}\to 1\), leaving \(\rho p + 1 - \rho = 1 - \rho(1-p)\).
Measuring \(\rho\) and the effective number of voters
Two voters are both wrong if the question is a shared one and the shared answer is wrong (\(\rho q\)), or it is not and both err independently (\((1-\rho)q^2\)). Solving \(\Pr(\text{both wrong}) = \rho q + (1-\rho)q^2\) for \(\rho\) gives the formula. Under this model, \(\rho\) is also the correlation between two voters' correctness, so \(k\) voters carry about as much information as \(k_{\text{eff}} = k/(1+(k-1)\rho)\) independent ones: at \(\rho = 0.6\), five samples are worth about 1.5 independent voters.
Why log-odds weights are optimal
Given independent votes, the posterior odds that the answer is "yes" multiply by \(\frac{p_j}{1-p_j}\) for each voter saying yes and divide by it for each voter saying no. Taking logs, the decision "yes" is right when \(\sum_j \pm\ln\frac{p_j}{1-p_j} > 0\), with the sign set by each vote (and equal priors). This is the weighted majority, and no other rule using the same votes is more accurate. When one voter's weight exceeds all the others combined, it decides alone.
References
- Condorcet, Marquis de (1785). Essai sur l'application de l'analyse à la probabilité des décisions rendues à la pluralité des voix. The original jury theorem.
- Wang, X. et al. (2022). Self-Consistency Improves Chain of Thought Reasoning in Language Models. Majority voting over sampled reasoning paths.
- Ladha, K. K. (1992). The Condorcet jury theorem, free speech, and correlated votes. American Journal of Political Science 36(3), 617–634. How correlation between voters weakens the theorem.