Back to list
MathematicsStatisticsFairnessScientific Proof

Is Amidakuji Fair? Checking It with Math and Statistics

· · Amida-san

Whether a lottery is fair can be defined in mathematical terms rather than by feel. This article explains what amidakuji guarantees and what it does not, with as few formulas as possible.

Stacks of discs in each color reaching the same height, checked with a ruler

Four Conditions for a Fair Lottery

  1. Equal probability: when n people share n outcomes, each person gets each outcome with probability 1/n
  2. Independence: the previous result does not affect this one
  3. Unpredictability: nobody can know or steer the result before the draw
  4. One-to-one correspondence: everyone gets a different outcome, with no outcome left over or shared

What Amidakuji Always Guarantees

The result is always one-to-one

Each horizontal line simply swaps the destinations of two neighboring vertical lines. However many lines there are, the whole ladder is a sequence of swaps, which in mathematical terms is a permutation.

Diagram: adding one rung swaps where A and B end up, between 1 and 2

A permutation is a bijection, so no matter how the lines are drawn, everyone reaches a different goal. Duplicates and gaps cannot happen. Unlike paper slips, there is no room for a preparation mistake.

Diagram: the paths from A to D each end at a different result, with no duplicates and none left over

Anyone can verify the result

The tracing rule is fixed, so the same ladder always gives the same result. Each participant can follow their own line from top to bottom and confirm it.

What Amidakuji Alone Does Not Guarantee

One-to-one correspondence and equal probability are different properties. Depending on how the lines are drawn, some bias remains.

Few lines keep people near their starting position

When lines are added at random, a small number of lines makes it more likely to end up directly below the start or close to it. The effect is strongest for the outer lines.

Adding lines brings the distribution closer to uniform, but the number needed grows quickly with the number of people. Research on the shuffle that swaps adjacent pairs puts the number of swaps needed for a near-uniform result on the order of the cube of the number of people times its logarithm. With the number of lines people can draw by hand, a large amidakuji is hard to make uniform.

A fixed number of lines cannot reach every order

Each horizontal line flips the parity of the order (even or odd permutation). If the number of lines is fixed in advance, only half of all orders can be reached, so the probabilities cannot be exactly equal.

How to offset the bias

Assigning starting positions at random cancels this bias. If nobody knows their vertical line until just before the draw, nobody can pick a favorable position by looking at the ladder. Amida-san randomly reorders participants when the draw starts and then traces the lines.

Six people join a presentation order draw, and every ball traces the lines to assign the 1st through 6th slots

Comparison with Other Lottery Methods

Method Equal probability One-to-one Verifiable by participants
Amidakuji (paper) Depends on how lines are drawn Always Yes
Paper slips Holds if prepared correctly Can break through preparation mistakes Must trust the preparer
Digital roulette or random numbers Depends on implementation Depends on design Difficult
Rock-paper-scissors Biased by human habits Ties can repeat Yes

Most digital random numbers come from a pseudorandom number generator (PRNG). It produces numbers by a fixed calculation, so anyone who knows the internal state (seed) can predict the result. Participants also cannot inspect the mechanism, which easily breeds distrust.

In theory the best strategy in rock-paper-scissors is to play each hand 1/3 of the time, but people cannot choose truly at random, and ties increase with more players.

For choosing between methods, see the lottery method comparison.

Checking for Bias with Statistics

Chi-square test

Repeat the lottery many times and measure how far the count of each outcome is from the expected count.

χ² = Σ [(observed - expected)² / expected]

Here is an example with 5 outcomes drawn 100 times.

Outcome Observed Expected (O-E)²/E
A 22 20 0.2
B 19 20 0.05
C 18 20 0.2
D 21 20 0.05
E 20 20 0
Total 100 100 0.5

The critical value for 4 degrees of freedom at the 5% level is 9.49. Since χ² = 0.5 is smaller, there is no evidence of bias.

Entropy

Shannon entropy turns randomness into a number.

H = -Σ [P(i) × log₂ P(i)]

It reaches its maximum, log₂ n, when all n outcomes are equally likely. For 5 outcomes that is about 2.32.

Frequently Asked Questions

Can I trust the random numbers in digital tools?

It depends on the tool. Check whether the mechanism is public and whether it uses a cryptographically secure random number generator (CSPRNG). See lottery security and privacy for details.

Is there a fairer method than amidakuji?

For equal probability alone, a true random number generator (TRNG) based on physical phenomena is the best in theory, but participants cannot verify it. The value of amidakuji is that the one-to-one result is certain and anyone can check it.

Summary

Amidakuji always produces a one-to-one result and anyone can verify it. Drawing lines alone does not make the probabilities equal, though, so it needs something like random assignment of starting positions.

See also what amidakuji is.


Try Amida-san Now!

Experience fair and transparent drawing with our simple and easy-to-use online ladder lottery tool.

Try it Now