🧮 Brain Teaser

The Wisdom of Crowds: When Does Averaging Hurt?

You have BB independent classifiers, each achieving accuracy pp on a binary classification problem (labels {1,+1}\{-1, +1\}). You form a majority-vote ensemble.

Part (a): If p>1/2p > 1/2, show that as BB \to \infty (odd), the ensemble accuracy approaches 11.

Part (b) (the twist): Now suppose the BB classifiers are not independent, but instead all share a common "error core": with probability ρ\rho, all classifiers are simultaneously wrong; with probability 1ρ1 - \rho, each makes an independent error with probability q<1/2q < 1/2.

For large BB, what does the majority-vote accuracy converge to?

In particular, show there is a hard ceiling on ensemble accuracy that averaging can never break, no matter how many classifiers you add. What is it?

(Assume for simplicity that q0q \to 0 so individual errors outside the shared core vanish.)

ensemble methodsmajority votecorrelationlaw of large numbersbias-variance

Answer: The Wisdom of Crowds: When Does Averaging Hurt?

Key Idea / Intuition

When classifiers are truly independent, their errors cancel out under majority vote — the law of large numbers drives ensemble error to zero. But when there is a shared failure mode (a correlated error component), adding more classifiers only averages out the independent noise; the correlated part never cancels. The ensemble hits a wall at exactly the probability of the shared failure event. This is the core message of error correlation in ensembles: diversity, not just quantity, is what matters.


Formal Proof / Solution

Part (a): Independent classifiers, p>1/2p > 1/2

Let each classifier hih_i be correct independently with probability p>1/2p > 1/2. The majority vote is correct when more than B/2B/2 classifiers are correct. Let S=i=1B1[hi correct]S = \sum_{i=1}^B \mathbf{1}[h_i \text{ correct}], so SBinomial(B,p)S \sim \text{Binomial}(B, p).

P(ensemble correct)=P ⁣(S>B2).P(\text{ensemble correct}) = P\!\left(S > \frac{B}{2}\right).

By the Law of Large Numbers, S/Bp>1/2S/B \to p > 1/2 almost surely. Thus for large BB:

P ⁣(SB>12)1.P\!\left(\frac{S}{B} > \frac{1}{2}\right) \to 1.

More precisely, by Hoeffding's inequality:

P ⁣(SB2)exp ⁣(2B ⁣(p12)2)0.P\!\left(S \leq \frac{B}{2}\right) \leq \exp\!\left(-2B\!\left(p - \tfrac{1}{2}\right)^2\right) \to 0.

So ensemble accuracy 1\to 1 exponentially fast. \checkmark


Part (b): Correlated failure core — the hard ceiling

Model: For each test point, with probability ρ\rho all BB classifiers are simultaneously wrong (the "shared error event" EE). With probability 1ρ1 - \rho, the shared error does not occur and each classifier errs independently with probability qq.

Taking q0q \to 0 (independent errors outside the core vanish), the majority vote fails if and only if the shared error event EE occurs.

Why?

  • If EE occurs (prob ρ\rho): all BB classifiers are wrong \Rightarrow majority vote is wrong.
  • If EE does not occur (prob 1ρ1-\rho): as BB \to \infty with q0q \to 0, essentially all classifiers are correct \Rightarrow majority vote is correct.

Therefore:

P(ensemble wrong)  B,q0  ρ.P(\text{ensemble wrong}) \;\xrightarrow{B\to\infty,\, q\to 0}\; \rho.

P(ensemble correct)1ρ.\boxed{P(\text{ensemble correct}) \to 1 - \rho.}

The hard ceiling is 1ρ1 - \rho: no matter how many classifiers you add, you can never exceed accuracy 1ρ1 - \rho because the correlated failure mode is irreducible — majority vote is powerless against errors that all classifiers share simultaneously.


Takeaway

The decomposition of ensemble error is:

Ensemble errorρirreducible correlated component+(1ρ)f(B,q)0 as B.\text{Ensemble error} \approx \underbrace{\rho}_{\text{irreducible correlated component}} + \underbrace{(1-\rho) \cdot f(B, q)}_{\to\, 0 \text{ as } B \to \infty}.

This is why in practice (random forests, boosting), the critical design principle is encouraging diversity — reducing ρ\rho — rather than simply increasing BB. The formula also connects to the bias-variance decomposition for ensembles studied in ESL Chapter 8: variance (independent noise) is reduced by averaging, but bias and correlated errors are not.

Source: The Elements of Statistical Learning, Ch. 8 (Hastie, Tibshirani, Friedman)

Type: ML/StatsSource: The Elements of Statistical Learning, Ch. 8 (Hastie, Tibshirani, Friedman)Edit on GitHub ↗