Data science · Experiments — the checks before the result

Randomisation, sample-ratio mismatch, and guardrails

Before an experiment can be right about its effect it has to be right about its assignment. This lesson picks the unit of randomisation, computes the sample-ratio-mismatch statistic that invalidates a test outright, shows an aggregate check passing while a per-day check fails, and defines the guardrail metrics that stop a winning test from shipping damage.

26 min read Full lesson in the app Patterns: sample-ratio-mismatch, guardrail-metric, pre-treatment-check

What you'll be able to do

Before this: the-two-errors-and-the-size-of-the-test

Log in to read the rest of this lesson

Before an experiment can be right about its effect it has to be right about its assignment. This lesson picks the unit of randomisation, computes the sample-ratio-mismatch statistic that invalidates a test outright, shows an aggregate check passing while a per-day check fails, and defines the guardrail metrics that stop a winning test from shipping damage. This walkthrough runs about 26 minutes, with runnable code you can edit and re-run as you read. A new account gets 7 days of Pro free, no card required.

Log in to continue

The first module of every track is free to read on the web: see what's open in Data science.