Sub topic 7
The Gambler's Fallacy and How Players Perceive Chance
Prerequisites and the core mistake
This chapter assumes that you understand basic percentages, independent dice or card draws, and simple Python code. You should also know that a random event can have a known probability without having a predictable result.
The gambler's fallacy is the belief that a random event becomes more likely because its opposite happened several times before. For example, after a coin lands heads five times, a player may say, “Tails is due.” If the coin is fair, the next flip is still 50% heads and 50% tails. Previous flips do not change the physical coin.
Players often expect randomness to look evenly mixed in the short term. A sequence such as HTHHTTHT feels random. A sequence such as HHHHHHTT may feel rigged, even though both can occur in fair coin flips. This perception matters because players judge fairness from their recent experience, not from the long-run average.
Why streaks are normal
A streak is a run of repeated results. Streaks happen because each trial is separate. When a game gives a 50% chance of a hit on every attack, six misses in a row have probability:
\[ (0.5)^6 = 0.015625 \]
That is about 1.56% for one specific group of six attacks. Across thousands of players and many attacks, such groups will appear regularly.
The following program generates 100 fair coin flips and finds the longest streak. The fixed seed makes the example repeatable.
import random
def longest_streak(flips):
if not flips:
return 0
best = run = 1
for previous, current in zip(flips, flips[1:]):
run = run + 1 if current == previous else 1
best = max(best, run)
return best
rng = random.Random(7)
flips = [rng.choice("HT") for _ in range(100)]
print("".join(flips))
print("Longest streak:", longest_streak(flips))The result is not evidence that the generator is broken. A long streak is one possible shape of a random sequence.
Designing for perceived fairness
A mathematically fair system can still feel unfair. A designer therefore has two related goals:
- Preserve the intended long-run probability.
- Prevent short-term experiences that damage trust.
First, communicate the chance clearly. “This attack has a 30% hit chance” is more useful than a vague label such as “unlikely.” Second, show enough history for players to compare results with the stated chance. Third, decide whether independent randomness fits the emotional goal.
For a high-stakes reward, uninterrupted failures may feel unacceptable even when they are mathematically valid. A shuffle bag, pity timer, or other protection can reduce extreme streaks. These systems change the distribution deliberately. They do not correct the gambler's fallacy by making a success “due”; they add a design rule that limits bad outcomes.
The opposite mistake is also common. Players may believe that success creates more success, known as the hot-hand belief. Unless the game includes a combo rule or another dependency, each result remains governed by the stated probability.
Exercise
Exercise
A reward has a 10% chance on every independent attempt. After nine failures, should the tenth attempt have a higher chance because the player is due?
Show answer
No. Without a pity rule, the tenth attempt still has a 10% chance. If the design wants to limit long failure streaks, it must add an explicit rule that changes the probability.