Books · The Fiddler: Solutions
Chapter 71
Can You Break the Bell Curve?
A bean machine has rows alternating between three pins (two slots) and two pins (three slots), many rows deep, with buckets below the bottom row. A ball at a leftmost pin always goes right; at a rightmost pin always left; at any middle pin it goes right with probability and left with probability . Dropped into the top-left slot, what is the probability the ball lands in bucket (far left)?
The Fiddler, Zach Wissner-Gross, January 17, 2025(original post)
Solution
Because the board has a fixed width, the ball’s slot is a tiny Markov chain alternating between a two-slot state and a three-slot state . Crossing a three-pin row (which has a middle pin) sends and crossing a two-pin row (edge pins only, plus the next middle pin) sends After many rows the two-slot distribution settles at its fixed point. Writing and composing the two steps, , whose fixed point with is . The bucket (three-slot) distribution is then The rightward bias piles the balls into bucket and leaves only in reaching the far-left bucket.
The computation
Iterate the actual board: push the two-slot distribution through a three-pin row then a two-pin row, repeatedly, until it stops moving, then read off the bucket split from one more three-pin row.
from fractions import Fraction as F
def cycle(pL, pR):
qL, qM, qR = pL/4, 3*pL/4 + pR/4, 3*pR/4 # two-slot -> three-slot
return qL + qM/4, 3*qM/4 + qR, (qL, qM, qR) # three-slot -> two-slot
p = (F(1), F(0))
for _ in range(80): p = cycle(*p)[:2]
print(cycle(*p)[2]) # (1/40, 3/10, 27/40)
Extra Credit
On a wider board (rows of six then five pins), with balls fed into the top three slots in ratios summing to , which ratios make some six-slot row show the trapezoid ?
This is a linear-algebra question, finding feed vectors whose image under the row-transfer matrix has the prescribed symmetric-trapezoid shape. It is the source’s paywalled extra credit; rather than assert the family of triples without being able to check it against the official set, I flag it as a linear system to be solved, not a single number.