Quick answer
Twyman's law is the data-analysis rule that any figure that looks interesting or different is usually wrong. When a metric jumps far beyond its normal range, assume a measurement fault (a deploy, duplicated events, a shrunken denominator, bots or a broken split) until checks rule it out.
What is Twyman's law?
Twyman's law is a rule of thumb from data analysis: any figure that looks interesting or different is usually wrong. It is named after William Anthony (Tony) Twyman, a UK radio and television audience-measurement researcher. Kohavi, Tang and Xu open the trustworthiness chapter of their 2020 book on online experiments with it, and note that Twyman apparently never wrote the law down himself, which is why several wordings circulate.
The law does not say surprising numbers are always false. It says where to put your first hour of work. When a metric moves much more than it normally does, the most likely explanation is a change in how the number was produced, such as a new tag, a duplicated event, a filter or a broken split, not a change in what people did. So you treat the jump as a data bug until the checks below have ruled the bugs out, and only then go looking for a real cause.
Two practical consequences follow:
- The bigger and better the surprise, the harder you check. A small dip gets a glance; a conversion rate that rises by 60% overnight gets the full checklist before anyone presents it.
- You check in a fixed order, cheapest and most likely first, so the review does not depend on who happens to be looking.
Why do surprising numbers usually turn out to be errors?
Because the ways a number can break are common, and real step changes in behaviour are rare. Three published figures show the base rates:
- Broken experiment splits. In a 2020 article, Microsoft's Experimentation Platform team reported that about 6% of A/B tests analysed there had a sample ratio mismatch (SRM): the share of users in each variant differed from the configured split by more than chance allows. These teams had been checking for SRM for years.
- Automated traffic. The 2025 Imperva Bad Bot Report (Thales, April 2025) found that automated traffic made up 51% of all web traffic in 2024, and that bad bots alone made up 37%, up from 32% in 2023. A change in how many bots get through, or get filtered, moves any per-visitor rate.
- Bots inside experiments. The same Microsoft article describes an MSN test in which the new variant was so engaging that a bot-detection algorithm classified some real users as bots and removed them from the analysis, which created the mismatch.
Random noise rarely produces a big jump on its own. Take a site that converts 2.1% of about 12,000 visitors a day. The standard error of that daily rate is √(0.021 × 0.979 ÷ 12,100) ≈ 0.13 percentage points. A reading of 3.4% is (3.4 − 2.1) ÷ 0.13 ≈ 10 standard errors away. Chance does not do that, so it is either a big real change or a measurement change, and measurement changes are the more common of the two.
In what order should you check a result that looks too good?
Run these five checks in order. Stop celebrating at the first one that fails, but finish the list before you call the result real.
- What changed on the day? Look for a deploy, a tag-manager publish, a new consent banner, a change to the goal definition, a pricing change or a campaign launch on the date the number moved. If something shipped that day, it is your first suspect.
- Is the numerator inflated? Compare event counts with distinct people. If conversion events rose but distinct converters did not, the same people are being counted more than once (a page reload, a second tag or a retry).
- Did the denominator shrink? Compare visitors or sessions with the trailing 7-day average. A new bot filter, a consent change or a broken pageview tag can remove a block of visitors and make every rate look better.
- Did the bot share move? Compare the share of traffic identified as automated with the previous week. A crawler that floods one page, or a bot rule that starts excluding traffic, changes rates without any human doing anything different.
- Is the comparison fair? If two groups are compared, such as test variants or chatters versus non-chatters, check that each group has the size you expected (the SRM test below) and that both were measured the same way.
A result that passes all five has earned an investigation into real causes: a segment, a channel, a page.
Worked example: conversion jumps from 2.1% to 3.4% overnight
Sample data. A store's dashboard shows conversion as conversion events ÷ visitors. Over the previous 28 days it ranged from 1.9% to 2.4%.
| Day | Visitors | Conversion events | Distinct converters | Rate shown | Events per converter |
|---|---|---|---|---|---|
| Monday | 12,000 | 252 | 247 | 2.1% | 1.02 |
| Tuesday | 12,100 | 411 | 262 | 3.4% | 1.57 |
Three different faults could each produce a 3.4% reading on Tuesday:
| Candidate cause | What the numbers would have to look like | What Tuesday shows | Verdict |
|---|---|---|---|
| Numerator inflated (duplicates) | Events up, distinct converters flat | 411 events from 262 people | Found |
| Denominator shrank (filter, consent, tag) | Visitors near 252 ÷ 0.034 ≈ 7,412, a 38% drop | 12,100, in line with the 7-day average | Not the cause |
| Bot share moved | Automated share changes sharply | Stable against last week | Not the cause |
Walk the checklist:
- What changed? A release went out on Monday evening with a redesigned order-confirmation page. Suspect.
- Numerator. 411 events came from 262 people, 1.57 per converter, against 1.02 the day before. The new page fires the purchase event again when the customer refreshes or returns to it. This is the fault.
- Corrected rate. Using distinct converters, Monday was 247 ÷ 12,000 = 2.06% and Tuesday 262 ÷ 12,100 = 2.17%: up 0.11 points, inside the normal 1.9–2.4% range.
- Denominator and bots. Both are normal, so nothing else contributed.
The 62% "improvement" (3.4 ÷ 2.1 − 1) was a tracking bug. Fix the page so the event fires once per order, add a note on the chart for the affected days, and report the distinct-converter rate for those days.
How do you check for a sample ratio mismatch?
When the surprise comes from a comparison between groups, test whether the group sizes match the configured split before reading any metric. Use a chi-square goodness-of-fit test:
χ² = Σ (observed − expected)² ÷ expected, with 1 degree of freedom for two groups.
Sample data: a 50/50 test ends with 10,000 users in control and 10,600 in treatment. Expected is 20,600 ÷ 2 = 10,300 each.
χ² = (10,000 − 10,300)² ÷ 10,300 + (10,600 − 10,300)² ÷ 10,300 = 8.74 + 8.74 = 17.48
With 1 degree of freedom, that gives p ≈ 0.00003. The split is 48.5/51.5, which looks harmless, but it is far beyond chance. Microsoft's team flags an SRM at p < 0.0005, a deliberately strict threshold that keeps false alarms down on platforms that test continuously. Under that rule this test has an SRM, and its metric results should not be trusted until the cause is found: assignment, redirects, bot filtering or a logging join. An A/A test, where both groups get the same experience, is the routine way to catch these faults before a real test depends on them.
How does Twyman's law relate to outliers and data reliability?
| Idea | Question it asks | Typical action |
|---|---|---|
| Twyman's law | Is this surprising aggregate real, or did the measurement change? | Run the check order before reporting |
| Outlier | Is this single value far from the rest of the distribution? | Inspect, cap or segment it; see outliers in data |
| Sample ratio mismatch | Do the group sizes match the configured split? | Chi-square test; do not read metrics if it fails |
| A/A test | Does the system report a difference when there is none? | Run before or alongside real tests |
| Data reliability | Can this source be trusted day to day? | Ongoing tests for completeness and consistency; see reliable data |
Twyman's law is the trigger, and the others are tools you pick up once it fires. An outlier check looks at one row. Twyman's law looks at a headline number that a whole team may act on.
What mistakes do teams make with Twyman's law?
- Checking only good news. Bugs inflate and deflate numbers alike. A sudden drop deserves the same five checks, and skipping them for good news is how a bug ends up in a board deck.
- Stopping at the first plausible story. "The new page is better" is a story; 1.57 events per converter is evidence. Finish the list.
- Treating the law as a reason to dismiss results. Once the checks pass, a large effect is a finding. The law sets the order of work. It is not a veto.
- Fixing the data silently. Mark the affected dates on the chart and say which number you report instead, so the next reader does not rediscover the jump.
- Reading rates without their parts. Always keep the numerator and denominator next to the percentage; most of the checks above need them.
How do you apply Twyman's law in TapCub?
The Tuesday jump from the example, checked in TapCub:
- See whether something shipped. Configuration › Annotations marks releases, campaigns and incidents on trend charts as a dashed line or a band, and app and mini program versions are added automatically as Release annotations the first day they appear. A jump that starts on an annotated date points to check 1.
- Compare conversions with distinct converters. Web analytics › Goals lists, for each goal, conversions and distinct converters side by side; the conversion rate there divides distinct converters by distinct visitors, so a duplicated event shows up as a gap between the two counts rather than as a higher rate. The data report in Web analytics › Reports divides conversion count by sessions, so a duplicate inflates that rate; seeing the two disagree is itself a clue.
- Check the denominator and the bots. By default, recognized bots and AI crawlers go only to Web analytics › Bots and are excluded from human visitors, sessions and pageviews, so a crawler surge does not change the human denominator. Compare visitors with the previous week, and look at the bots report to see whether automated traffic moved.
- Confirm the events arrive as designed. In All-platform analytics › Data › Tracking plan, Live verification (24 h) shows each event's hits in the last 24 hours and how complete its required properties are, which catches an event that suddenly fires twice as often.
- Get warned next time. All-platform analytics › Operations › Monitors can watch a metric with a period-change, forecast-band or anomaly condition and notify you; a dry run shows how often the rule would have fired in the last 30 days. Monitors only notify; they do not change data.
TapCub does not run A/B tests or split traffic, so the SRM check applies to experiments you run in another tool; TapCub supplies the visitor and conversion counts you compare.
Sources
- Ron Kohavi, Diane Tang & Ya Xu. Twyman's Law and Experimentation Trustworthiness, chapter 3 of Trustworthy Online Controlled Experiments, Cambridge University Press, 2020, pp. 39–57 — origin and variants of the law. Checked 2026-11-28.
- Aleksander Fabijan et al., Microsoft Experimentation Platform. Diagnosing Sample Ratio Mismatch in A/B Testing, 14 September 2020 — about 6% of A/B tests with an SRM, the p < 0.0005 threshold and the MSN bot-filter case. Checked 2026-11-28.
- Thales. 2025 Imperva Bad Bot Report press release, 15 April 2025 — automated traffic 51% of web traffic in 2024; bad bots 37%, up from 32%. Checked 2026-11-28.
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Analyst
Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.