What AI Cannot Predict, and What Not to Trust Blindly

Updated · 10 min read
easyPython 3.13ailimitationsprobabilityrandomnessverificationtrust

AI is very good at finding patterns in data and estimating probabilities. It cannot see the future, know facts it never had access to, or make a truly random process predictable by studying its past. A fluent, confident answer is not proof that it is true. Knowing these limits, and checking AI answers in proportion to what is at stake, is one of the most important skills in this course.

Words to Keep Apart

WordDescription
PredictionAn estimate based on data, assumptions and a model; it can be wrong
ProbabilityIt is used to describe how likely something is under stated conditions
RandomnessOutcomes that can't be predicted from earlier independent outcomes
CorrelationTwo things moving together; it doesn't prove one causes the other
EvidenceIt is used to mean information you can check against a reliable source
Decision supportHelp for a person who still makes, and owns, the decision

Example: AI Cannot Predict the Powerball Lottery

Suppose someone asks an assistant: "Analyze every past Powerball draw and tell me next Wednesday's winning numbers." This program shows why no analysis of past draws can do that. It uses the Powerball format in use since October 2015 (5 white balls from 1 to 69, plus 1 red Powerball from 1 to 26); check the official rules at powerball.com, since games can change. The draws are simulated, fair and independent, like a properly run lottery.

Past draws describe the past; they do not predict a fair future draw
Python
import math
import random
from collections import Counter
 
# The Powerball format since October 2015: 5 white balls from 1-69, plus 1 red Powerball from 1-26
combinations = math.comb(69, 5) * 26
print(f"Possible tickets: {combinations:,}  -> jackpot odds 1 in {combinations:,}")
print("Chance for 1, 2, 3, 4, 5 + 6:            ", f"1 in {combinations:,}")
print("Chance for any other single combination:", f"1 in {combinations:,}")
 
# Simulated history: 1,000 fair, independent draws of the 5 white balls
rng = random.Random(9)
def draw():
    return set(rng.sample(range(1, 70), 5))
history = [draw() for _ in range(1000)]
counts = Counter(n for d in history for n in d)
hot = set(n for n, _ in counts.most_common(5))                     # drawn most often in the past
cold = set(n for n, _ in sorted(counts.items(), key=lambda kv: kv[1])[:5])   # drawn least often ("due")
print(f"\n'Hot' numbers (most frequent in 1,000 past draws): {sorted(hot)}")
print(f"'Cold' numbers (least frequent, supposedly 'due'): {sorted(cold)}")
 
# Now test both strategies on 200,000 NEW independent draws, against a fresh random pick each time
future = [draw() for _ in range(200_000)]
def average_matches(pick):
    return sum(len(pick(i) & d) for i, d in enumerate(future)) / len(future)
print("\nAverage white balls matched per future draw:")
print(f"  hot numbers:    {average_matches(lambda i: hot):.4f}")
print(f"  cold numbers:   {average_matches(lambda i: cold):.4f}")
print(f"  random pick:    {average_matches(lambda i: set(rng.sample(range(1, 70), 5))):.4f}")
print(f"  theory (5x5/69): {25 / 69:.4f}")
 
# The gambler's fallacy: after 5 heads in a row, is tails more likely?
flips = [rng.random() < 0.5 for _ in range(1_000_000)]
after_five_heads = [flips[i] for i in range(5, len(flips)) if all(flips[i - 5:i])]
print(f"\nFair coin: {len(after_five_heads):,} times after 5 heads in a row, the next flip was heads"
      f" {sum(after_five_heads) / len(after_five_heads):.1%} of the time")
Output
Possible tickets: 292,201,338  -> jackpot odds 1 in 292,201,338
Chance for 1, 2, 3, 4, 5 + 6:             1 in 292,201,338
Chance for any other single combination: 1 in 292,201,338
 
'Hot' numbers (most frequent in 1,000 past draws): [22, 24, 25, 58, 60]
'Cold' numbers (least frequent, supposedly 'due'): [28, 37, 38, 56, 68]
 
Average white balls matched per future draw:
  hot numbers:    0.3639
  cold numbers:   0.3595
  random pick:    0.3631
  theory (5x5/69): 0.3623
 
Fair coin: 30,893 times after 5 heads in a row, the next flip was heads 49.5% of the time

Explanation:

  • math.comb(69, 5) * 26 counts every possible ticket: 292,201,338. Each one has the same chance, so 1, 2, 3, 4, 5 + 6 is exactly as likely as any combination that "looks random".
  • "Hot" numbers were drawn most often in 1,000 past draws, and "cold" numbers least often, supposedly "due". On 200,000 new draws, both matched about 0.36 white balls per draw, the same as a random pick (0.3631) and the theory (5 × 5 / 69 = 0.3623). The past frequencies gave no edge at all.
  • The gambler's fallacy: after 5 heads in a row, the next flip was heads 49.5% of the time, not less. A fair coin has no memory, and neither does a fair lottery.
  • If a drawing machine were faulty or rigged, that would need an investigation of the machine, not a pattern-finding model.

A responsible assistant should answer: "I can explain the odds or generate a random ticket for fun, but I can't predict the winning numbers. In a fair drawing every combination has the same chance. Treat the lottery as entertainment, not an investment."

Example: Patterns in Pure Noise

Models, and people, find patterns even where there are none, especially when they try many possibilities. This program compares 100 made-up "signals" with a made-up "result", where all of it is random noise.

Python
import numpy as np
 
# 200 made-up days of a "result" that is pure coin flips, and 100 made-up "signals" that are also pure noise
rng = np.random.default_rng(9)
result = rng.normal(size=200)
signals = rng.normal(size=(100, 200))
 
correlations = np.array([np.corrcoef(s, result)[0, 1] for s in signals])
best = int(np.abs(correlations).argmax())
print(f"Strongest 'pattern' found: signal #{best} with correlation {correlations[best]:+.2f}")
print(f"Signals with |correlation| above 0.15: {(np.abs(correlations) > 0.15).sum()} of 100")
 
# Does the 'pattern' predict new days? Generate 200 fresh days of the same noise
new_result = rng.normal(size=200)
new_signal = rng.normal(size=200)
print(f"Same signal on 200 new days: correlation {np.corrcoef(new_signal, new_result)[0, 1]:+.2f}")
Output
Strongest 'pattern' found: signal #1 with correlation +0.17
Signals with |correlation| above 0.15: 4 of 100
Same signal on 200 new days: correlation -0.07

Explanation: Searching 100 random signals, the best one correlates +0.17 with the result, and 4 pass a "0.15" cut-off. It looks like a discovery. On new data the same kind of signal correlates -0.07: the pattern was luck. Testing many ideas and reporting the best one is called multiple comparisons, and it is why claims need fresh data to confirm them; see "Overfitting and Generalization".

What You Should Never Trust Blindly

AreaWhat AI may get wrongHow to verify
Lotteries and random outcomesClaims to predict or find a "system"Official rules and basic probability
HealthDiagnosis, dosage, drug interactionsA doctor or pharmacist and official medical sources
LawInvented laws, wrong jurisdiction, missed deadlinesOfficial legal sources and a qualified lawyer
Money and investingGuaranteed returns, made-up pricesOfficial filings and market data; qualified advice
Current eventsOutdated or invented newsPrimary sources with dates
Citations and researchFake papers, wrong quotesOpen the original paper and find the exact passage
Statistics and chartsWrong denominators, correlation shown as causeRecalculate from the source data
CodeCode that looks right but fails or is insecureRun tests; review; scan for vulnerabilities
Images, audio and videoDeepfakes and impersonationTrusted provenance and direct confirmation
AI's claims about itself"I tested it", "I sent the email" when it didn'tCheck the actual result or system

The TRUST Checklist

Before acting on an AI answer, ask:

StepQuestion
T: Trace the sourceWhere did this come from? Can I open the original?
R: Recheck the factsCan I verify the important names, numbers, dates and quotes?
U: Understand uncertaintyIs this a fact, an estimate, an opinion or a generated example?
S: Scrutinize consequencesWhat happens if it's wrong? Can it be undone?
T: Take human responsibilityWho is accountable for the decision?

Match the checking to the stakes: a brainstorm needs a quick look; anything about money, health, law, jobs or safety needs independent, authoritative checking and a qualified person. Asking a second AI model is not independent confirmation on its own. See "How to Verify AI Answers".

Common Mistakes

Believing a confident tone. Confidence is a writing style, not evidence.

Thinking "hot" or "due" numbers exist in fair games. Each draw is independent.

Treating a found pattern as proof. Test it on new data first.

Using another AI as the only check. For important claims, go to the original source.

Interview Corner

Can AI predict the next lottery numbers?

No. In a fair lottery every combination is equally likely and each draw is independent of the past, so historical analysis gives no edge. A simulation in this lesson showed hot, cold and random picks all matching about 0.36 white balls per draw, as theory predicts.

How do you decide how much to trust an AI answer?

By the consequences of being wrong: check sources and key facts for everyday use, and require independent authoritative verification and human approval for decisions about health, money, law, jobs or safety. The TRUST checklist covers the steps.

Practice

Exercise: try the fallacy yourself. Change the coin experiment to look at what happens after 8 heads in a row instead of 5. How many times did it happen in a million flips, and what share of next flips were heads?

Check your understanding:

  1. Why is 1, 2, 3, 4, 5 + 6 exactly as likely as any other Powerball ticket?
  2. Why did the "hot" numbers do no better than a random pick?
  3. What made signal #1 look like a discovery, and how was it exposed?

Quick check: what AI cannot predict

4 questions
1What are the jackpot odds for one Powerball ticket in the 5/69 + 1/26 format?
2After 5 heads in a row, how often was the next flip heads?
3What does the T in "Take human responsibility" ask?
4Why isn't asking a second AI enough for an important claim?

Key Takeaways

Quick reference

NeedCode or practice
Count combinationsmath.comb(69, 5) * 26
Random samplerandom.Random(seed).sample(range(1, 70), 5)
Correlationnp.corrcoef(a, b)[0, 1]
Check an answerTrace, Recheck, Understand, Scrutinize, Take responsibility

Was this tutorial helpful?

Lesson 45 of 186