Choosing primary, secondary and guardrail metrics for an experiment, and the risks of surrogate metrics
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: medium
Interview Round: Other
When designing an experiment, how do you select and define the primary, secondary, and guardrail metrics, what makes a good experiment metric, and what are the risks of using surrogate metrics?
```hint Start from the decision
Ask which single number should make the ship or no-ship call, and what else could get worse without that number noticing.
```
```hint Stress-test a candidate metric
For any metric you propose, ask what happens if it barely moves in two weeks, if it is very noisy, or if a team could raise it without helping users.
```
```hint Proxies
Think of a change where a short-term number goes up while the outcome you care about over several months goes down.
```
### What a Strong Answer Covers
- The role of each metric type: one primary metric that decides, secondary metrics that explain the mechanism, and guardrails that block harm, including trust checks such as sample ratio mismatch.
- How to define a metric precisely: a unit of analysis that matches the randomization unit, a time window, the numerator and denominator, and outlier handling.
- The properties of a good experiment metric: aligned with long-term value, sensitive enough to move within the test, low in variance, hard to game and easy to interpret.
- How surrogate metrics fail, including Goodhart's law and treatments that move the proxy without moving the outcome, and how to validate a surrogate before relying on it.
- Fixing the metric set and decision rule before launch, and the multiple comparison problem when there are many secondary metrics.
### Follow-up Questions
- The goal is 90-day retention, but the test runs two weeks. What do you measure, and how do you check that it is a valid stand-in?
- The treatment wins on the primary metric and loses 2% on a revenue guardrail. Walk through the decision.
- You track 40 secondary metrics and three of them come out significant. How do you interpret that?
- How would you make revenue per user sensitive enough to detect a small effect?
Overview: Explain how to choose and define primary, secondary and guardrail metrics for an A/B test, what properties make a metric useful for experiments, and how surrogate metrics can mislead. Tests metric design judgment, including sensitivity, alignment with long-term value and validation of proxies.