AI Glossary / Data science and analytics / Advanced

Twyman's law

Definition

Twyman's law is a practical warning that an unusually interesting result deserves especially careful checking because an error may explain it. It is commonly attributed to audience researcher Tony Twyman. Despite its name, it is a rule of thumb for scrutiny, not a mathematical law proving that surprising findings are false.

What it means

A dramatic improvement is attractive: it promises a successful campaign, a better AI model or a discovery worth sharing. That attraction can encourage people to invent explanations before confirming what was measured.
Twyman's law prompts a pause between noticing the result and believing the story. Check the measurement and analysis, then investigate the explanation. An extraordinary number can be real, but its appeal does not strengthen its evidence.
The principle should not become an excuse to preserve existing beliefs. If checks and independent evidence support the finding, update the conclusion. The useful habit is disciplined curiosity, including curiosity about apparently disappointing or ordinary results.

How it works

Start by restating the claim precisely. Identify the population, period, unit, numerator, denominator and comparison. A headline such as doubled engagement leaves too many possibilities unresolved.
Trace the result back to its inputs. Look for repeated records, missing observations, changed event definitions, inconsistent time zones, filtering errors and changes in the people or items being measured. Recalculate a small sample independently.
Then examine the analytical design. A before-and-after difference may include seasonal or audience changes. A model evaluation may accidentally include training examples. Choosing the most impressive result from many comparisons can exaggerate apparent evidence.
Preserve the initial result and document corrections. Where appropriate, seek replication with new data and the same stated measurement procedure. Verification should make the evidence clearer, rather than merely search until an agreeable explanation appears.

Three practical examples

  • Website analytics: Newsletter registrations apparently jump after a redesign. The team checks whether the new page records both button clicks and completed registrations under the same event name.
  • AI evaluation: A model suddenly achieves near-perfect classification. Reviewers examine whether a feature contains the answer label or whether duplicate documents appear in training and evaluation sets.
  • Personal tracking: A fitness dashboard reports twice the usual walking distance. The user checks whether two connected devices uploaded overlapping activity before assuming a major behavioral change.

Think of it this way

Think of a kitchen scale displaying an extraordinary weight. You inspect the unit, the container and whether the scale was reset before announcing an extraordinary ingredient. That inspection does not prove the ingredient is ordinary. It makes the eventual measurement more trustworthy, whatever it turns out to be.

Worked example

A learning website records 10,000 eligible visits and 400 completed registrations before a page update. Its reported registration rate is 400 / 10,000 = 4%.
After the update, the dashboard shows 10,000 eligible visits and 800 registration events. The apparent rate is 8%, a rise of four percentage points and a relative increase of 100%.
An audit finds that each completed registration now sends the event twice. There are still only 400 unique completed registrations. Recalculating with the correct unit returns 400 / 10,000 = 4%.
The apparent uplift disappears because the event-count definition changed. This does not prove the redesign had no other effect or establish a causal estimate of its registration impact. It shows that this particular comparison did not measure the claimed improvement.
Had the 800 records represented 800 distinct valid registrations, duplicate-event checking would not refute the increase. The team would still examine whether the two groups of visits were comparable before attributing the difference to the redesign.

Illustrative case study

Fictional training provider Aspen Academy tests an AI recommendation panel. A weekly report shows an exceptional rise in course completions. Before expanding the panel, an analyst traces several completion records to their source.
The investigation reveals that a data import replayed historical completion messages. The dashboard used ingestion dates, making old completions appear new. Aspen rebuilds the report using the intended completion timestamps and a documented rule for duplicate records.
The team also checks unaffected periods and adds a reconciliation between unique completions and incoming messages. It retains the original report with an explanation of the correction. This fictional case illustrates a measurement audit; it does not imply that every strong recommendation result is a logging error.

Common misconceptions and mistakes

The word law does not supply a probability that a particular result is wrong. Such a probability requires assumptions and evidence beyond the maxim.
Statistical significance does not repair a broken measurement process. A precise calculation can still describe incorrectly collected data.
Automatically discarding outliers is not verification. Unusual observations can contain the most valuable information.
Checking only impressive successes creates another bias. Unexpected failures and implausibly stable results also deserve examination.
A plausible explanation is not a demonstrated explanation. Several changes occurring together do not identify which one caused an observed outcome.

Business use

Use the principle as a review habit before committing resources on the strength of an exceptional metric. Assign responsibility for metric definitions, keep reproducible calculations and allow time for independent checks. Record what the investigation establishes and what remains uncertain. The aim is better decisions, including recognizing real improvements once their evidence survives scrutiny, rather than producing an endless obstacle to action.

People also ask

Is it a formal statistical test?

No. It suggests scrutiny; it does not specify a test statistic or rejection threshold.

Should every surprising finding be rejected?

No. Verify it and revise beliefs when the evidence warrants that.

Does it apply to AI-generated analysis?

Yes. Check the underlying records and calculations, even when the written explanation sounds convincing.

Check your understanding

Why did the example's rate return to 4%?

Answer: The 800 events represented only 400 unique registrations.

Did that correction prove the redesign ineffective?

Answer: No. It corrected one invalid measurement claim.

What should happen if independent checks support a surprising result?

Answer: Treat that support as evidence, rather than dismissing the result because it is surprising.

Related terms

  • Replication (statistics)
  • Data leakage
  • Statistical significance
  • Confirmation bias
  • Causal inference
  • Data validation
  • instrumentation
  • replication
  • duplicate records
  • metric definition

Learn next

Audit one surprising metric from its headline back to individual records. Write down its unit, denominator and collection rule, and separate the observed result from explanations that still need testing.

More in Data science and analytics

  • Total Variation Distance (Tvd) - Total variation distance, usually abbreviated TVD or TV, measures how different two probability distributions are.
  • True negative - A true negative is an outcome in which a classifier predicts the negative class and the reference label is also negative.
  • True positive - A true positive is an outcome in which a classifier predicts the positive class and the reference label confirms that class.
  • Type-Casting - Type-casting is the conversion of a value from one data type to another according to a programming language or database system's rules.
  • Undercoverage Bias - Undercoverage bias is systematic distortion in an estimate caused by failing to cover part of the intended population, when the omitted part differs in ways...
  • Unicity (data analysis) - Unicity measures how often a limited set of observations singles out one individual's record or trace within a dataset.

Sources

Ronny Kohavi, Twyman's Law, written 2013 and updated 2017: practitioner discussion, historical attribution and the importance of checking unusual experimental results. https://www.exp-platform.com/Documents/TwymansLaw.pdf Kohavi's account does not establish an original publication of the maxim by Twyman. The registration calculations, practical examples and Aspen Academy case here are original illustrations, not cases reproduced from the presentation.

Previous: Two­way factorial design Next: Type-1 OWA operators

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer