A good experiment tests the riskiest assumption cheaply first. Name the hypothesis, the randomisation unit (user, account, city, time slot), the primary metric it's powered to move, the guardrails you'll watch, the smallest effect worth detecting, and how long it runs — at least one full weekly cycle, longer when novelty matters.
When
After metrics. In an interview, one well-specified experiment beats a list of tests.
Common mistakes
- No primary metric, or five “primary” metrics.
- Running for three days: novelty effects and weekly cycles make early results lie.
- Randomising users in a product where users affect each other (social graphs, shared supply), so control gets contaminated.
- Planning to “see if it's significant” without knowing the smallest effect you could detect.
“We'll A/B test it and see if it's significant.”
“A user-level test on commuters in three cities with good transit data, four weeks: primary metric weekly guided commute trips (MDE 3%), guardrails notification disables and late arrivals.”
How interviewers probe it
“How long would you run it?”
Until it can detect the smallest effect worth shipping with enough power — and never less than a full week, two if behaviour is weekly. Then check whether the effect is stable or fading.
“Why randomise by city and not by user?”
Because treated users would affect control users — shared drivers, shared feeds — so the gap between arms would be biased. Cities or time slots keep the arms apart, at the cost of fewer units and more noise.
“What if the result is flat?”
Check power first (could we have detected the effect we expected?), then segments, then whether users actually saw the change. Flat with enough power is an answer: don't ship.
By business model
- Consumer
- User-level A/B works unless there's a social graph; then cluster by graph or region.
- Marketplace
- Interference is the default. Use city- or time-based (switchback) randomisation, and measure both sides.
- B2B
- Units are accounts, there are few of them, and contracts limit what you can change: expect pilots, staged rollouts and before/after comparisons more than A/B tests.