If you roll a fair die 2,000 times, how close to one in six will your sixes be?
At a school fair in Leeds, you win a sticker if you roll a six. You could test the game with twenty rolls or two thousand. Which run would you trust more to estimate your chance of winning?
The tree starts with twenty rolls. Two are sixes, so divide two by twenty to get zero point one. The other eighteen give zero point nine. Each roll is counted once. These relative frequencies use the same zero to one scale as probabilities.
A fair die has six equally likely faces. One face gives a six, with probability one sixth. The other five give a probability of five sixths. Every roll is in exactly one group, so the probabilities add to one. For the expected frequency, multiply the number of trials by the outcome's probability.
The chance of winning a different stall game is zero point two each time you play. If you play fifty times, calculate the expected number of wins. Pick an answer.
The probability of a six is one sixth. Multiply twenty by one sixth to get ten thirds. Multiply two thousand by one sixth to get one thousand thirds. These predictions can be fractions because they're averages. Divide either expected count by its trial count and you get one sixth again.
Now roll a fair die ninety times. You're watching for sixes again, so the chance on each roll is one sixth. Calculate the expected number of sixes and pick an answer.
You can simulate both sets in Python. Start a fresh count of sixes for twenty rolls, then for two thousand rolls. Each call models an independent roll by choosing from one to six with equal chance. Count the sixes, then print the counts and the proportion of sixes.
Here are two possible results. Two sixes out of twenty gives ten per cent. Three hundred and twenty out of two thousand gives sixteen per cent. The larger run misses its expected count by more, but its proportion is closer to one sixth, about sixteen point seven per cent.
Suppose you get no sixes in your first five rolls. It might feel as if the sixth roll has to make up for that. With independent fair rolls, the next roll still has a one in six chance of a six. The earlier rolls can't make a six more likely.
If an exam asks you to evaluate this claim, remember that larger samples of fair rolls tend to give closer estimates. But five sixes in thirty rolls gives exactly one sixth. Eight in forty gives one fifth. That's one thirtieth away, so the larger sample can give a worse estimate.