How do you choose the randomisation unit for an A/B test, and why is user-level randomisation often preferred?

Quick Overview

Asks how to pick the randomisation unit for an A/B test, why that choice affects bias and variance, and why product changes are usually split by user. Tests experiment design judgment about contamination, analysis units and network effects.

How do you choose the randomisation unit for an A/B test, and why is user-level randomisation often preferred?

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: hard

Interview Round: Other

How do you choose the appropriate randomisation unit for an A/B test, why is this choice critical, and why is user-level randomisation often preferred for product changes? ```hint Where a person sees the change Picture one person whose traffic is split at a smaller unit than the person. What do they experience, and what does that do to the comparison between arms? ``` ```hint Check independence Compare the unit you assign with the unit your metric is computed over, and ask whether the observations in each arm are still independent. ``` ### What a Strong Answer Covers - What the randomisation unit is, and why it must match where the treatment acts and stay independent across units - What goes wrong when the unit is too fine, and what you give up when it is too coarse - How the analysis unit relates to the randomisation unit, and how to get a correct variance when they differ - Why user or account level fits most product changes, and the identity problems that come with it - When interference calls for cluster, geo or time-based randomisation ### Follow-up Questions - You randomise by user but report click-through rate per page view. How do you compute the standard error? - Logged-out traffic only has a cookie ID. What problems does that cause, and how would you reduce them? - How would you test a new pricing algorithm in a two-sided marketplace? - When is session-level or request-level randomisation acceptable?

Overview: Asks how to pick the randomisation unit for an A/B test, why that choice affects bias and variance, and why product changes are usually split by user. Tests experiment design judgment about contamination, analysis units and network effects.

General logo
General
Nov 24, 2026
hardData ScientistOtherAnalytics & Experimentation
0
0

How do you choose the appropriate randomisation unit for an A/B test, why is this choice critical, and why is user-level randomisation often preferred for product changes?

What a Strong Answer Covers Guidance

  • What the randomisation unit is, and why it must match where the treatment acts and stay independent across units
  • What goes wrong when the unit is too fine, and what you give up when it is too coarse
  • How the analysis unit relates to the randomisation unit, and how to get a correct variance when they differ
  • Why user or account level fits most product changes, and the identity problems that come with it
  • When interference calls for cluster, geo or time-based randomisation

Follow-up Questions Guidance

  • You randomise by user but report click-through rate per page view. How do you compute the standard error?
  • Logged-out traffic only has a cookie ID. What problems does that cause, and how would you reduce them?
  • How would you test a new pricing algorithm in a two-sided marketplace?
  • When is session-level or request-level randomisation acceptable?