Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Games & Chance 4 min read

Detecting Loaded Dice

Chi-squared to the rescue.

The test statistic sums the squared deviations between observed and expected counts.

Chi-squared test

Compare observed vs. expected for each face.

χ2=∑i=16(Oi−Ei)2Ei\chi^2 = \sum_{i=1}^{6} \frac{(O_i - E_i)^2}{E_i}

120 rolls, observed: 15,18,22,25,19,21

  1. 1

    Step

    E = 20 for each

  2. 2

    Step

    χ² = (15-20)²/20 + (18-20)²/20 + (22-20)²/20 + (25-20)²/20 + (19-20)²/20 + (21-20)²/20

  3. 3

    Step

    = 1.25 + 0.20 + 0.20 + 1.25 + 0.05 + 0.05 = 3.0

Answer

χ² = 3.0

Decision

With 5 degrees of freedom, the critical value at 95% confidence is 11.07. Our 3.0 is well below — not enough evidence to call it loaded.

χcrit2(5,0.05)=11.07\chi^2_{\text{crit}}(5, 0.05) = 11.07

The formula behind it

Chi-Squared Test

χ2=∑(O−E)2E\chi^2 = \sum \frac{(O-E)^2}{E}
See the full formula, variables and more examples

The takeaway

A χ² of 3.0 vs. a critical value of 11.07 — these dice pass the fairness test.

Back to all stories