Uncertainty and variance
Accepting that every measurement has noise around it.
Metrics move randomly from day to day. Knowing the normal variance tells you whether a change is meaningful. Reporting a range instead of a single number is the honest default.
Why it matters for a product engineer
Every metric moves a little every day, with no cause at all. If you do not know how much it usually moves, you cannot tell a real change from noise, and every dip starts an investigation. A range is more honest than a single number, and it protects a product engineer from building on noise.
How to do it
- Measure the normal variation first. Look at the metric over several weeks with no changes, or run an A/A test, where both groups get the same experience.
- Report a range with every estimate, such as a confidence interval.
- Remember that the difference between two numbers is noisier than each number on its own.
- Expect segments to be noisier than the total, because they contain fewer people.
- Look for several moves in the same direction before you call something a trend.
Common mistakes
- Reacting to one day’s dip.
- Reporting “up 3%” without a range.
- Finding big differences between small segments.
- Using the margin of one estimate as the margin of a difference.
Example
Pew Research Center explains this with election polls. A random sample of 1,067 people has a margin of error of about 3 points for one candidate’s support. In Pew’s example, the margin for the lead between two candidates is about 6 points. For a change in the lead between two polls, it is 8 points, so a 3-point shift could be noise. In a subgroup of about 160 people, the margin for the lead is 16 points.
Margin of error in Pew's poll example, by what is compared
- One candidate's support3 points
- The lead between two6 points
- Change in lead, two polls8 points
- The lead, in a subgroup16 points
The same poll is precise for one number and cannot see small changes. Each comparison, and each smaller group, adds noise.
ReportedPew Research Center, 8 Sep 2016
Sources: Understanding the margin of error in election polls (Pew Research Center) ↗ · Seeing Theory: a visual introduction to probability and statistics (Brown University) ↗
Resources
1- courseStart here
Seeing Theory: a visual introduction to probability and statistics ↗
Daniel Kunin and others (Brown University) · 2017Interactive visualizations of distributions, inference and confidence intervals. The fastest way to build intuition for the basics.
Tools
1- ToolFree
Evan's Awesome A/B Tools
Free calculators for sample size, significance of results and sequential tests.