Twyman's Law: Interesting Data is Usually Wrong
Twyman's Law states that any data point that looks interesting is probably wrong. Before celebrating a sudden 10x spike in user engagement, first suspect a bug in your analytics pipeline or a bot attack.
The mental model
Twyman's Law is a principle of data analysis that urges skepticism towards any figure that looks particularly interesting or unusual. The core idea is that the more surprising the data, the more likely it is the result of an error in measurement, collection, or processing, rather than a reflection of a real-world phenomenon. It's a professional's version of the saying, "If it looks too good to be true, it probably is."
How it works
This law is a heuristic, not a formula. When an analyst encounters an outlier—a data point that deviates significantly from the norm—their first step should be to investigate the data's lineage, not to explain the phenomenon. This means checking the tracking code, database queries, and any data transformation jobs. The working assumption is that an error is the most probable cause for any dramatic deviation. Only after all potential sources of error have been ruled out should one begin to explore a real-world explanation for the interesting figure.
When to use it
This law applies universally in any field involving data analysis, especially business intelligence, A/B testing, and system monitoring. If a dashboard shows a 50% drop in daily active users overnight, the first hypothesis should not be "half our users quit," but rather "the analytics job probably failed." If an A/B test shows a new button color increases conversions by 200%, suspect a bug in how conversion events are fired before rolling it out.
When not to use it
The law is a guide for investigation, not a rule for discarding data. You should not automatically delete outliers. After a thorough investigation proves the data is correct, the outlier might represent a genuine, important event like a viral social media mention or a critical system failure. The law guides your initial reaction and investigative priority; it does not give you permission to ignore data you have validated as accurate just because it is surprising.
One canonical example
A marketing team sees a 1000% increase in website traffic from a small country. A junior analyst might get excited, thinking a campaign went viral. Applying Twyman's Law, a senior analyst would immediately suspect a botnet. They would investigate the IP addresses and on-site behavior of the new traffic. In most cases, they'll find it's junk traffic, and the "interesting" figure was just an error in what should be measured.
Interview question
Upon observing a sudden, significant spike in user engagement data, what initial action does Twyman's Law recommend?
- a.Remove the anomalous data points from the dataset to avoid skewing future analysis.
- b.Prioritize investigating potential errors in the data's collection or processing.Correct
- c.Analyze recent marketing campaigns to identify the cause of the increased engagement.
- d.Immediately prepare a presentation to highlight the positive trend.
Why? this is the answer
Twyman's Law advises that the first step when encountering unusually interesting data is to suspect and investigate errors in its measurement, collection, or processing. Only after ruling out such errors should one explore real-world explanations, making 'investigating potential errors' the correct initial action, not discarding the data or immediately seeking external causes.
Just read this? Test yourself on what you have been reading.
Read the original → en.wikipedia.org
- #analytics
- #metrics
- #data analysis
- #heuristics
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on analytics — each one lists the topics its interview covers.
See open roles