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

The rest of this lesson is in the app

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.

Continue in ChannelPulse

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