PRACTITIONERCHAPTER 08

Metrics and experiments

A metrics tree that connects the work a team does this week to the number the company cares about, and an A/B test designed and read honestly enough to trust

45 MINPRODUCT MANAGERUPDATED 2026-11-05
PREDICT

Your team runs an A/B test with no real difference between the arms. You check the dashboard every day for two weeks and stop the first time the p-value drops below 0.05. Roughly how often will you declare a false winner?

Writing the PRD ended on success metrics: a measure, a baseline, a target, a date and a guardrail. This chapter is the machinery behind that table. It has two halves. The first is the metrics tree: how the number your team can move this quarter connects to the number the company is judged on. The second is the controlled experiment: how you find out whether your change moved the number, rather than the season, the marketing calendar or chance.

You do not need to be a statistician for either. You need to know enough to design a test that can answer the question, to read a result without fooling yourself, and to know when to call the data scientist. Most bad experiment decisions are made by people who knew the formulas and skipped the checks.

The metrics tree

A metrics tree is a diagram of cause and effect, written down so it can be argued with. At the top is a north star metric: one number that captures the value customers get from the product, and which, if it grows, the business grows. Amplitude’s North Star Playbook, in the reading, gives the tests a good one passes: it expresses customer value, it represents the product strategy, it leads revenue rather than lagging it, it is actionable and understandable, and it is not a vanity metric.

Below it are input metrics: three to five measures that together drive the north star and that teams can move. Below those are the team metrics each squad owns this quarter. Beside the whole tree sit guardrail metrics, numbers no change is allowed to make worse.

For a fictional money-transfer app, the tree might look like this:

Level Metric Who moves it Reads in
North star Transfers completed per week by customers who sent in the previous 30 days the whole company months
Input New senders activated (first transfer within 7 days of sign-up) onboarding team weeks
Input Repeat rate (share of last month’s senders who send again) transfers team weeks
Input Transfer completion rate (completed ÷ started) transfers team days
Input Recipient coverage (share of attempted corridors we support) network team quarters
Guardrail Fraud loss rate, refund rate, p95 send latency, support contacts per 1,000 transfers everyone days

Three things make the tree useful rather than decorative.

Every arrow is a hypothesis. The tree says that raising completion rate raises the north star. That is a claim. If completion rises for a quarter and the north star does not move, the tree is wrong, and finding that out is worth as much as any feature. Write the expected relationship on the arrow (“a 1 point rise in completion should add about 0.6% to weekly transfers”) so you can check it later.

Counts at the top, rates lower down. A north star that is a rate can rise while the business shrinks: completion rate goes up if you make the flow so hard that only the determined start it. Keep the top of the tree a count of value delivered and use rates where a team needs a measure that is not swamped by traffic.

Guardrails are not optional. Goodhart’s law, usually paraphrased as ‘when a measure becomes a target, it ceases to be a good measure’, is the reason. A team told to raise completion can raise it by removing the fraud check. The guardrail column is what stops a win on one branch being paid for on another.

Where practitioners disagree is on the top node. Some argue for one north star the whole company shares, because it forces trade-offs into the open. Others, particularly in marketplaces and multi-product companies, run two or three, one per side or per product, because a single number hides a side that is getting worse. Both positions are defensible. What is not defensible is a tree with eleven metrics at the top, which is a dashboard pretending to be a strategy.

Metric definitions are product decisions

‘Weekly active users’ sounds like a fact. It is a definition, and each word in it is a choice. Active means what: opened the app, or did something that delivered value? Which week: calendar, or rolling seven days? Which users: including employees and test accounts? Two teams with different definitions will report different numbers and both be right.

Write the definition down in a metric spec: the name, the exact event or table it comes from, the filter, the time window, the owner, and the query. This is where SQL earns its place on a PM’s list. You do not need to write production pipelines, but you should be able to read the query behind your north star and spot a join that double-counts. The SQL chapter of the databases course is the level to aim for, and aggregation and window functions covers the rolling windows most product metrics use.

One trap deserves its own mention. Latency guardrails are usually percentiles, p95 or p99, and percentiles cannot be averaged across days or regions. If your dashboard shows the mean of daily p95s, it is showing a number that means nothing. The observability course explains why in histograms and percentiles.

What an A/B test is

An A/B test, or online controlled experiment, splits users at random into a control group that sees the current product and a treatment group that sees the change. Because assignment is random, the only systematic difference between the groups is the change. Anything else that happens during the test, a holiday, a marketing push, an outage, hits both groups alike. That is the whole trick, and it is why a test beats a before-and-after comparison every time the traffic allows one.

The vocabulary you need, from Kohavi, Tang and Xu’s Trustworthy Online Controlled Experiments:

  • Randomisation unit. What gets assigned: a user, a session, a device, an account, a merchant. Usually the user. If the change affects how people interact with each other, as in a messaging product, the unit may need to be a group or a region, because a treated user’s behaviour changes what their control-group friends see.
  • Overall evaluation criterion (OEC). The primary metric the decision rests on, chosen before the test starts. One, or a small weighted set.
  • Guardrail metrics. Including the trust guardrails that check the test itself, of which the sample ratio is the most important.
  • Significance level, α. The false-positive rate you accept: conventionally 0.05, two-sided.
  • Power, 1 − β. The chance of detecting a real effect of the size you care about: conventionally 80%.
  • Minimum detectable effect (MDE). The smallest change worth detecting. This is a product judgement, not a statistical one: what lift would justify the cost of shipping and maintaining this?

A p-value of 0.03 means: if there were no real difference, a result at least this extreme would turn up about 3% of the time. It does not mean there is a 97% chance the change works. Most misreadings of experiments start there.

Sizing the test before you start

The sample size comes from the three numbers above. For a conversion-rate metric, comparing a baseline rate p₁ with a target p₂, the users needed per arm are:

n per arm = (z₁₋α/₂ + z₁₋β)² × [p₁(1 − p₁) + p₂(1 − p₂)] / (p₂ − p₁)²

With α = 0.05 two-sided, z₁₋α/₂ = 1.96; with 80% power, z₁₋β = 0.84; their sum squared is about 7.85. Kohavi’s book gives a shortcut with the same assumptions, n ≈ 16σ²/δ², where σ² is the metric’s variance (p(1 − p) for a rate) and δ the absolute effect. The shortcut and the full formula agree to within a few percent.

Worked through for the money-transfer app, with a completion rate of 62% and 1,500 eligible users starting a transfer each day:

MDE (absolute) Users per arm Days of traffic at 1,500/day
1 point (62% → 63%) 36,788 49
2 points (62% → 64%) 9,144 12.2
3 points (62% → 65%) 4,039 5.4
4 points (62% → 66%) 2,257 3.0

Read the table from the top. Halving the effect you want to detect quadruples the sample, because δ is squared in the denominator. That is why the MDE conversation matters: a team that wants to detect a 1 point lift on this traffic is signing up for seven weeks.

Then round the duration up to whole weeks. Users behave differently on weekdays and weekends; a money-transfer app sees payday spikes; a B2B tool goes quiet on Saturday. A test that runs from Monday to Friday has measured weekday users. Twelve days becomes fourteen. Most experimentation teams treat one full week as the minimum regardless of what the formula says, as a rule of thumb.

Check the numbers with a calculator such as Evan Miller’s, in the reading, and with your data team’s tooling. Write the inputs into the experiment design so a reviewer can redo them.

The ways experiments lie

Kohavi’s book names Twyman’s law: any figure that looks interesting or different is usually wrong. A 12% lift from a button colour is not a discovery; it is a bug report. These are the bugs you will meet most.

Peeking. The test was sized for fourteen days, the dashboard updates hourly, and someone stops it the first time it shows green. As the Predict above showed, daily looks with that stopping rule turn a 5% false-positive rate into something nearer 20%. The fix is either discipline, deciding only at the planned sample size, or a method built for continuous monitoring, such as sequential testing or always-valid p-values, which most commercial platforms now offer. Know which one your platform uses.

Underpowered winners. An early, small sample that does reach significance overstates the effect, because only the lucky draws clear the bar. If the test was designed for a 2 point MDE and shows 4 points after two days, the honest expectation is that the true effect is smaller, possibly zero.

Novelty and primacy effects. Users click a new thing because it is new, and the lift fades over two or three weeks. The opposite, a primacy effect, is regular users being slowed by change and recovering later. Plot the treatment effect by day. If it slopes, the first week does not predict the tenth.

Weekly seasonality. Covered above. A Friday-to-Sunday test measures weekend users, who are a different population.

Sample ratio mismatch (SRM). You configured a 50/50 split; you got 50,000 users in control and 48,800 in treatment. That looks close. A chi-square test says otherwise: χ² ≈ 14.6, p ≈ 0.0001. Something is dropping treatment users: a redirect that loses some, a crash on the new code path, a bot filter that treats the variants differently. Fabijan and colleagues at Microsoft, in the reading, catalogue the causes. The rule is absolute: if the ratio is off, stop reading the metrics and find the bug. A common threshold is to flag SRM when the chi-square p-value is below 0.001, as a rule of thumb that keeps false alarms rare on a platform running many tests.

Many metrics, one α. Check twenty metrics at 0.05 and expect one to be ‘significant’ by chance. Name the primary metric in advance and treat surprises in secondary metrics as hypotheses for the next test, not findings.

Interference. In a messaging app, if treated users send more messages, their control-group friends receive more and reply more. Both arms move and the measured difference shrinks. The fix is cluster randomisation, by group or geography, and it costs sample size.

When not to run an experiment

The ‘test everything’ school, strongest at companies with large consumer traffic, argues that intuition about which ideas will work is poor, and the Bing story supports it. The judgement school, strongest in B2B and early-stage products, argues that most changes cannot be tested meaningfully and that waiting for significance is a way of avoiding decisions. Both are right about their own context.

Do not run an A/B test when the traffic cannot detect any effect you care about (run the table above first), when the change is a legal or contractual requirement, when the effect takes months to show (pricing changes that affect renewal), or when the treatment cannot be withheld fairly. Use instead: a staged rollout with guardrails, a before-and-after comparison with a holdout region, qualitative research, or a decision made on judgement and recorded as such in the PRD’s decision log. A decision taken without a test is not a failure. A decision dressed up as a test result when the test could not answer the question is.

Day to day

Weekly, thirty minutes: the metrics review. You look at the tree with your engineering manager and designer, or with the whole team. Not every number, only the inputs your team owns and the guardrails. The question each week is whether anything moved that you did not expect. Most weeks nothing did. When something did, you open an investigation before you open a ticket.

Per experiment, before launch: the design review. You write the experiment design (the artefact below) and review it with a data scientist or analyst, forty-five minutes. They check the sample size, the randomisation unit, the metric definitions and the guardrails. Engineering checks the instrumentation: are the events for the primary metric firing in both arms? Run an A/A test on new instrumentation, with no change between arms, to confirm the plumbing before you trust it.

Day one and day two of a running test: health only. Check the sample ratio and the guardrails. Do not look at the primary metric, or if your dashboard shows it, agree in advance that nobody acts on it. If a guardrail breaks badly, stop the test; that is what guardrails are for.

At the planned end: the readout. A one-page result: hypothesis, what happened to primary and guardrail metrics with confidence intervals, the SRM check, the effect plotted by day, and the decision. Ship, iterate, or kill. Post it where the team and adjacent PMs will see it; at larger companies there is a weekly experiment review where readouts are presented and challenged.

Quarterly: check the tree. Did the input metrics you moved move the north star by the amount the arrows predicted? If not, redraw the tree before you plan the next quarter. At Head level the same tree supplies the key results for the whole org; Product leadership covers OKRs built on it.

In the middle of a quarter, metrics and experiments cost a PM two to four hours a week: the review, a design or a readout, and the questions that come from both. Writing a first metric spec and tree for a new area takes two or three days, mostly spent finding out how the numbers are actually computed.

BY ORG SIZE
STARTUPunder 30 people

You probably do not have the traffic to A/B test anything except the highest-volume flow, and you do not have a data team. Pick one north star with the founders and write its definition and query yourself, in SQL, so it means the same thing every Monday. Draw the tree with three inputs. Use staged rollouts, cohort charts and customer conversations instead of experiments, and say in the decision log that you did. When you do test, run the sample size first; most startup tests are too small to answer anything and should not be run.

SCALE-UP30 to 300

Traffic now supports experiments on the main flows, and the company is choosing or building an experimentation platform. This is where the habits get set. Push for a written design before every test, SRM checks on by default, guardrails shared across teams, and a weekly readout forum. The metrics tree becomes a company artefact, with each team owning an input, and arguments about metric definitions become arguments about whose dashboard is right. Settle them with a metric spec and an owner per metric, not by meeting.

ENTERPRISE300 and up

A platform team runs the experimentation system, with sequential testing, variance reduction such as CUPED, automatic SRM alerts and hundreds of concurrent tests. Your problem is no longer how to run a test but how to get one through: shared guardrails owned by other teams, interaction effects with other experiments, a central metrics council that owns the definitions. The north star is set above you, and a team’s input metric can be gamed in ways that hurt a neighbour. Learn the platform’s conventions and keep your readouts honest; reputations here are built on results that replicate.

ARTEFACT Build the metrics tree and design one experiment ~75 MIN
YOU PRODUCEMetrics tree and experiment design

Template

# Metrics tree: <product area>
Owner · Date · Reviewed with: <data lead>

## North star
**Metric:** <name>
**Definition:** <event/table, filter, window>   **Query:** <link>
**Current value:** <n, period>   **Why this one:** <customer value it captures>

## Input metrics
| Input | Definition | Owner | Current | Expected effect on north star |
|---|---|---|---|---|
| | | | | <"+1 pt here ≈ +x% north star"> |

## Guardrails
| Guardrail | Current | Threshold that stops a test |
|---|---|---|

# Experiment design: <name>
**Hypothesis:** If we <change> for <users>, then <behaviour> will change,
which will raise <primary metric> by at least <MDE>, because <evidence>.
**Randomisation unit:** <user / account / cluster>   **Split:** <50/50>
**Eligible population:** <who enters the test, at what point>

| Primary metric (OEC) | Baseline | MDE | α | Power |
|---|---|---|---|---|

**Sample size:** n per arm = (z₁₋α/₂ + z₁₋β)² × [p₁(1−p₁) + p₂(1−p₂)] / (p₂−p₁)² = <n>
**Traffic:** <eligible users/day>   **Duration:** <days> → rounded to <whole weeks>
**Stopping rule:** <fixed horizon, or sequential method named>
**Guardrails checked:** <list>   **SRM check:** chi-square, flag at p < 0.001
**Decision table:**
- Primary up, guardrails flat → <ship / ramp>
- No significant effect → <kill / iterate; what we learned>
- Guardrail breached → <stop; who decides>
- SRM detected → <stop reading; debug assignment>
WORKED EXAMPLE

Tern is a fictional money-transfer app with 400,000 monthly senders in four corridors and two product teams. The transfers team’s PM wrote this.

North star: transfers completed per week by customers who sent in the previous 30 days. Currently 118,000. Chosen because a repeat transfer is the moment the customer got what they came for, and it leads revenue.

Inputs. New senders activated within 7 days (onboarding team, 41%). Repeat rate, month on month (transfers team, 58%). Transfer completion rate, completed ÷ started (transfers team, 62%). Corridor coverage (network team, 87%). The PM’s estimate, from last year’s data: one point of completion adds about 0.6% to weekly transfers.

Guardrails. Fraud loss rate under 0.08% of volume. Refund rate under 1.2%. p95 time to confirm under 4 seconds. Support contacts under 9 per 1,000 transfers.

Experiment: repeat-transfer shortcut. Hypothesis: if returning senders see their last recipient and amount pre-filled, fewer will abandon at the amount screen, raising completion by at least 2 points, because session recordings show 31% of abandoners stall there. Unit: user. Split 50/50. Eligible: senders with a completed transfer in the last 90 days who start a new one, about 1,500 a day.

Primary: completion rate, baseline 62%, MDE 2 points (62% to 64%), α 0.05 two-sided, power 80%. n per arm = 7.849 × (0.2356 + 0.2304) / 0.0004 ≈ 9,144. Total 18,288 users at 1,500 a day is 12.2 days, rounded up to 14. Fixed horizon: no decision before day 14. Guardrails and SRM checked daily. Decision: ship if completion rises and no guardrail breaks; if no effect, interview ten abandoners before iterating; if fraud loss rises, stop and review with risk.

Now you

You are the PM for group chats at a fictional messaging app with 2.1 million weekly active users. The company’s north star is messages sent per week by users active in the previous 28 days. Your team wants to test a ‘reply in thread’ feature, expecting it to raise the share of group-chat sessions where the user sends a message, currently 34%. About 60,000 eligible group-chat sessions start each day. Leadership wants the result in one week. Two complications: treated users will send messages that control users receive, and the notifications team is running its own test on the same users. Build the metrics tree from the north star to your team’s inputs with guardrails, then design the experiment: hypothesis, randomisation unit, primary and guardrail metrics, MDE with its justification, sample size with the formula, duration, and what you tell leadership about the one-week request.

Self-check

DECIDE

Tern's repeat-transfer shortcut test was designed for 9,144 users per arm over 14 days, fixed horizon. It started on a Saturday. On Monday morning the dashboard shows completion at 66.1% in treatment against 62.0% in control, p = 0.02, with 1,560 and 1,480 users. The head of product sees it in the weekly review and asks why it is not shipped. The guardrails are flat. What do you do?

READING
  1. BOOK
    Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing Ron Kohavi, Diane Tang, Ya Xu, 2020

    The reference for everything in the second half of this chapter, from three people who ran experimentation at Microsoft, Google and LinkedIn. Read the chapters on Twyman's law, sample ratio mismatch and guardrail metrics first. Read: Cambridge University Press.

  2. HANDBOOK
    The North Star Playbook John Cutler and Amplitude

    How to choose a north star metric and break it into inputs a team can own, with the tests a good north star passes. The source for the metrics tree in this chapter.

  3. POST
    How Not To Run an A/B Test Evan Miller

    The clearest short explanation of why peeking inflates false positives, with the fix. The same site's sample size calculator is the one to check your own arithmetic against.

  4. PAPER
    Diagnosing Sample Ratio Mismatch in Online Controlled Experiments Aleksander Fabijan et al., 2019

    A catalogue of what causes the arms to receive the wrong share of users, drawn from Microsoft's experimentation platform. Read it before your first SRM, so you know where to look. Read: KDD 2019.

  5. POST
    Patterns of Trustworthy Experimentation: Pre-Experiment Stage Microsoft Experimentation Platform team, 2020

    What to settle before a test starts: falsifiable hypotheses, metric choice, randomisation unit, A/A checks. A checklist version of the experiment design artefact.

  6. POST
    The Surprising Power of Online Experiments Ron Kohavi and Stefan Thomke, 2017

    The Bing story from the opening, and the case for an experimentation culture written for executives. Useful when you need to argue for a platform.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Working with engineering →