You toss a coin at training and get six heads out of ten. Is the coin unfair?
At football training, you toss a coin ten times and get six heads. Your teammate says the coin favours heads. Would you agree after ten tosses, or would you want to see what happens after a thousand?
A fair coin has two equally likely outcomes, heads and tails, so heads has probability one half. For two tosses at training, follow the branches. Either first result can be followed by heads or tails. Multiply two choices for the first toss by two for the second to get four possible sequences.
Six of the ten sections are shaded, one for each head. Divide six by ten to get zero point six. This proportion is the relative frequency of heads. Use it to estimate the probability on the scale from zero, meaning impossible, to one, meaning certain.
You toss a coin twelve times and get seven heads. The other five tosses land tails. Which fraction gives the relative frequency of heads? Pick the fraction that compares heads with all the tosses.
For each toss, the code draws a random number. Below one half counts as heads; otherwise it counts as tails. Divide the running head count by the number of tosses so far. Run the code to see one point per toss, joined in order, with a line at one half for comparison.
Take three checkpoints from the same run. After ten tosses, six heads out of ten gives zero point six. After a hundred, fifty heads out of a hundred gives zero point five. After a thousand, four hundred and eighty heads out of a thousand gives zero point four eight.
In a different run, you get eight heads in the first ten tosses. After a hundred tosses altogether, you have forty-six heads altogether. Pick the estimate based on all one hundred tosses.
Here are three points selected from the running plot. The blue line marks the fair coin's probability, zero point five. At ten tosses the estimate is above it. At a hundred it lands on the line. At a thousand it's slightly below, farther from the line than at a hundred.
Does every extra toss improve your estimate? It can move farther from one half, as you just saw, but one extra toss has less effect in a larger sample. Is heads due after a run of tails? No. The tosses are independent, so the next fair toss still has a one-half chance of heads.
Read the rows for the first toss and the columns for the second. The four pairs are equally likely because both tosses are fair and independent. If asked to find the probability of getting exactly one head, count heads then tails and tails then heads. That's two out of four, or one half.