Sub topic 10
Vanity metrics, moving goalposts and other traps
This chapter assumes you already know what a success criterion is. You should also know how to pick a metric, and how a threshold and a minimum sample fit together. Here we look at the ways a well-meant plan goes wrong, so you can spot each trap before launch and again when the results arrive.
Vanity metrics
A vanity metric is a number that rises easily and cannot change a decision. Total sign-ups, page views and cumulative downloads are common examples. They only go up over time, so they always look like progress.
A useful test is to ask what you would do differently if the number were half as large. If the answer is "nothing", the metric is vanity. Compare these pairs:
| Vanity metric | Actionable version |
|---|---|
| Total registered users | Share of sign-ups that send a reminder within 7 days |
| Page views | Visitors who start the sign-up flow, as a share of visitors |
| Cumulative downloads | Users still active in week 4, as a share of week 0 sign-ups |
An actionable metric is a ratio over a defined group and period. It can fall as well as rise, and either result points to a next step.
Moving goalposts
Moving the goalposts means changing the threshold, the metric or the time window after you have seen the data. It usually happens quietly. A result of 22% against a 30% target becomes "good enough for an early product". A failed 7-day window becomes "really, 14 days is the fairer window".
The defence is the pre-committed rule. The code below applies thresholds fixed before launch, so the outcome for any result is settled in advance.
def decide(activated, users, min_users=100, target=0.30, floor=0.10):
"""Apply pre-committed thresholds to an activation rate."""
if users < min_users:
return "keep collecting"
rate = activated / users
if rate >= target:
return "persevere"
if rate < floor:
return "stop or pivot"
return "iterate once, then re-evaluate"
print(decide(activated=12, users=80)) # keep collecting
print(decide(activated=45, users=120)) # persevere
print(decide(activated=9, users=120)) # stop or pivot
print(decide(activated=25, users=120)) # iterate once, then re-evaluateIf someone wants to change a threshold later, the criteria document should force a visible step. Record the change, the date and the reason, and treat the run as a new experiment with its own clock.
Small samples and noisy rates
A rate from a small group can swing widely. The Wilson score interval shows the plausible range around an observed rate.
import math
def wilson_interval(successes, n, z=1.96):
"""95% Wilson score interval for a proportion."""
if n == 0:
return (0.0, 1.0)
p = successes / n
denom = 1 + z**2 / n
centre = p + z**2 / (2 * n)
margin = z * math.sqrt((p * (1 - p) + z**2 / (4 * n)) / n)
return ((centre - margin) / denom, (centre + margin) / denom)
low, high = wilson_interval(successes=12, n=40)
print(f"observed 30%, plausible range {low:.0%} to {high:.0%}")With 12 activations out of 40 users, the observed rate is exactly 30%. The plausible range is roughly 18% to 45%, which spans both the stop floor and the persevere target. Declaring success at that point would be reading noise. This is why the minimum sample belongs in the criteria, and why the decision rule returns "keep collecting" below it.
Other common traps
- Confirmation bias. You notice the segment that did well and ignore the rest. Fix the population in the definition, such as "all users who sign up".
- Cherry-picked segments. Slicing results after the fact until one group passes. If you want to test a segment, name it as a separate hypothesis before launch.
- Friendly users. Friends, colleagues and early fans are more forgiving and more patient than real customers. Record how each user was acquired and report the numbers with and without them.
- Stopping early. Ending the test the first day the rate crosses the target. Rates wander, so wait for the minimum sample and the time box.
- Sunk-cost drift. After weeks of work, a "stop" result feels unacceptable. Decide in advance who makes the call and that the rule binds them.
- Unmeasurable criteria. "Users like it" cannot be checked. If you cannot write the numerator and denominator, the criterion is not ready.
A pre-launch trap check
Before you launch, read your criteria document against this list:
- Could each metric fall as well as rise?
- Are the numerator, denominator and time window written down?
- Is there a minimum sample, and does the rule respect it?
- Is the decision date set, and is
decided_before_launchtruthfully true? - Is there a rule for how any later change would be recorded?
Exercise
A team targets 30% activation with a minimum sample of 100 users. After 40 users they see 12 activations (30%). A teammate says the target is met and the team should stop the test and celebrate. Name two traps in this reasoning and say what the rule says to do.
Show answer
The team is stopping early and reading noise from a small sample. The 95% Wilson interval for 12 of 40 runs from about 18% to 45%, so the true rate could be below the 10%-to-30% iterate band or above the target. The pre-committed rule says "keep collecting" until 100 users have signed up, then decide on that result.