A fair coin has just landed heads five times in a row, and a tail starts to feel overdue. The long-run frequency of heads settles near one half, so it seems natural that the coin should now start correcting the imbalance. This lesson computes the probability for the next toss exactly, shows how an early imbalance fades from the running proportion without any correction, and separates a known model with independent trials from situations where the probability is unknown or the trials are dependent.
Key terms
Streak
Definition In a sequence of trials, a run or streak of length is a block of consecutive trials that all have the same outcome. A run is maximal when the trials just before and just after it, where they exist, have a different outcome. A sequence contains a streak of heads when it has at least one block of consecutive heads, wherever that block starts.
In plain words A streak is several equal results in a row. It catches the eye, yet for a fair coin tossed independently a sequence with a long streak is exactly as likely as any other specified sequence of the same length.
Example The record HHTHHHHT has the maximal runs HH, T, HHHH and T, so its longest run of heads has length 4. In six fair independent tosses each of the sequences has probability , so the streak HHHHHH and the alternating sequence HTHTHT are equally likely. The event of exactly three heads is more likely, with probability
because it contains 20 different sequences. The comparison is between one sequence and a collection of sequences, not between tidy and messy patterns.
Gambler’s fallacy
Definition Let be independent trials, where means success and every trial has the same known success probability . For every event determined by the first trials with , independence gives , and therefore
The gambler’s fallacy is the mistaken belief that in such a process an outcome becomes less likely, and the opposite outcome more likely, because the first outcome has occurred unusually often in the recent past.
In plain words With a fixed known probability and independent trials, the next trial does not depend on the record. Five heads create no debt that the coin must repay, and they do not make heads more likely either. The argument uses both assumptions, so it says nothing about a process in which the probability is unknown or the trials are dependent.
Example Let be the event that the first five of six fair independent tosses are heads, and the event that the sixth toss is a tail. The event is the single sequence HHHHHT, so
Before any toss, six heads in a row has probability . Once five heads are known, the probability of completing six heads is . The two numbers answer different questions, one asked before the record and one asked given the record.
Compensation misconception
Definition The compensation misconception is the belief that the law of large numbers works by correction, so that after an excess of one outcome the future trials must produce an excess of the other outcome until the counts balance. For independent trials with known success probability , the number of successes among the next trials has whatever the record. So if the record has successes in trials, the excess of the total success count over times the number of trials, , has expected value for every .
In plain words The future does not pay back the past. The law of large numbers is about proportions, and a proportion can settle near while the expected excess in the count stays exactly where it was.
Example After five known heads, plan 100 more fair independent tosses. Their expected numbers of heads and tails are both 50, so the expected difference between the total numbers of heads and tails is still 5 at the end. The heads minus tails difference among the new tosses has mean and variance , so it has standard deviation . No excess of tails is expected. The new tosses add fluctuation of their own, and on average they leave the old imbalance in the counts unchanged.
Dilution
Definition Suppose a record has successes in its first trials and is followed by new independent trials, each a success with probability . Let be the number of successes among the new trials, and let be the overall success proportion. Since ,
Dilution is the effect by which the fixed early excess is divided by a growing number of trials, so its contribution to the expected proportion tends to as grows. The realized proportion also converges to in probability as grows, by the weak law of large numbers applied to the new trials.
In plain words An early imbalance becomes a smaller and smaller share of a longer record. The expected proportion moves toward because the denominator grows, not because the trials start favoring the other outcome.
Example After five known heads and then 100 new fair tosses, the expected head proportion is
which is still above one half by . After 1000 new tosses instead, it is , only above one half. In both cases the new tosses are expected to split evenly between heads and tails.
Run at a preselected position
Definition A run at a preselected position is the event that a run occupies trials chosen before the data are seen. Write for the event that trials are all successes, with fixed in advance. For independent trials with success probability this event has probability . The event that a run of at least successes occurs somewhere among trials is the union of the events for the possible starting positions . Its probability is at least , and larger when and . The union bound
gives an upper bound. When and the bound is strictly larger than the probability, because overlapping windows such as and can occur together.
In plain words Asking for five heads in tosses 1 to 5 is a narrow question. Asking for five heads in a row anywhere in a long record gives the pattern many chances to appear, so finding one after searching is much less surprising. Selection matters too. A record shown because it had the longest streak among many records is not a typical record, and its streak should not be judged by the probability of one preselected window.
Example In 100 fair independent tosses, heads in tosses 1 through 5 has probability . There are 96 windows of five consecutive tosses, and the sum of their probabilities is , which tells us nothing, since every probability is at most . A recurrence that tracks the length of the current run of heads gives the exact probability of at least one run of five or more heads, about .
Learning about an unknown probability
Definition When the success probability is not known, it can be modeled as a random parameter, with trials that are independent given its value. Unless the parameter is certain to take one value, the trials are then dependent, because the record carries information about the parameter. The probability of success on the next trial given the record is found with Bayes’ theorem and can differ from the probability before the record. This is learning about an unknown probability, and it is a different situation from the gambler’s fallacy.
In plain words A streak can be evidence about the device. If the coin might favor heads, a run of heads makes that more plausible and raises the prediction for heads. Dependence through the mechanism, as in drawing without replacement or a machine that stays in a faulty state, can also make the past matter. Each of these cases needs its own model, and none of them follows from how long a streak feels.
Example A coin is chosen from two coins, each with probability . One is fair and the other lands heads with probability , and given the coin the tosses are independent. Before any toss the probability of heads is . After five heads, Bayes’ theorem gives the biased coin the probability
so the next toss lands heads with probability
The prediction moved toward heads, the opposite of what the gambler’s fallacy expects.
Check yourself
- Trials are independent, and each is a success with known probability . The first four trials were all successes. Find the probability that trial 5 is a success, the expected number of successes in the next 20 trials, and the expected overall success proportion once those 20 trials are added to the four known ones. Must the next 20 trials contain extra failures?
Show the answer
By independence, the probability that trial 5 is a success is still . The next 20 trials have expected success count . Adding the four known successes gives the expected overall proportion
It is above because the known streak is still a large part of a short record. The next 20 trials need no extra failures. Their expected failure count is , the same as for any 20 trials of this process, and the early excess fades through dilution as the record grows.
- Five fair coins are tossed independently. Find the probability that tosses 1, 2 and 3 are all heads, and the probability of at least one run of three or more heads anywhere in the five tosses. Why is wrong for the second probability?
Show the answer
The preselected run has probability . For a run anywhere, sort the sequences by where their first run of three heads starts. A start at toss 1 leaves tosses 4 and 5 free, which gives 4 sequences. A start at toss 2 needs a tail at toss 1 and leaves toss 5 free, which gives 2. A start at toss 3 needs a tail at toss 2 and leaves toss 1 free, which gives 2. So 8 of the 32 sequences qualify, and the probability is . The sum counts every sequence once per window it fills. HHHHT and THHHH fill two windows and HHHHH fills three, so the window counts add to 12 rather than 8, and the sum is only an upper bound.
- A box holds 4 red and 4 black balls, and each draw is equally likely to be any ball still in the box. Three balls are drawn without replacement, and all three are red. Find the probability that the next draw is black. A friend says that expecting black now is the gambler’s fallacy. Is that right, and what changes if every ball is put back and mixed before the next draw?
Show the answer
The box now holds 1 red and 4 black balls, so the next draw is black with probability . This is not the gambler’s fallacy. Draws without replacement are dependent, and the record changed the contents of the box, so the higher probability comes from the actual mechanism. With replacement and mixing, the draws are independent and each is black with probability . Then three reds leave the probability of black at , and expecting black would be the gambler’s fallacy.