Where's the maths? This is probability and statistics — the branch of mathematics that measures chance and then describes what a whole pile of random results looks like. Each ball meets a row of pegs, and at every row it independently goes left or right, going right with probability p. One ball is unpredictable, so the maths of a single ball is a tree diagram: you multiply the probabilities along a branch to get the chance of one particular path. Ten thousand balls are extremely predictable, and the maths of the pile is a histogram with a mean and a standard deviation. The numbers that turn one into the other are the entries of Pascal's triangle, because they count how many different paths land in the same bin. So the same board shows you probability (going down) and statistics (looking across), and the bell shape at the bottom is not put there by hand — it is what counting paths forces to happen.
Beyond the syllabus: the normal distribution is not examined.
Follow one ball down a board with n rows. It makes n independent choices, so one particular route — say R, L, R, R, L — has probability p·q·p·p·q, where q = 1 − p. Multiplying along a branch of a tree diagram is exactly the Sec 3/4 rule for independent events.
The ball lands in bin k if it went right k times, in any order. Every such route has the same probability pkqn−k, so all that is left is to count the routes — and that count is the Pascal's triangle number nCk. Turn the peg numbers on: each one is the number of ways of reaching that peg, and it is the sum of the two above it, because a ball can only arrive from the left or from the right.
P(X = k) = nCk pk(1 − p)n−k
Drag to orbit the board, scroll or pinch to zoom. Sliders change the board and start a fresh count.