Overview
An experiment starts as a draft: a description of the change, who it applies to, what it should move and what would count as harm. You create one with New experiment on the Experiments list. The draft can be edited as often as you like until it is registered. Saving writes over the draft; if someone else saved a newer edit since you opened it, your save is refused so that neither edit is lost silently, and you can reload and try again. You fill the draft in with a plain form. The form is the only way to write a design: an experiment is a record kept by Oxygen, not a file in your workspace, so there is nothing to import or commit. This page walks through the form section by section, then explains how to choose a design shape. The next step, testing the design against your history, is Pricing and power.What it tests
Outcome
Choosing the outcome
A change adds roughly the same dollars no matter which measure you point at. A new drink adds, say, $15 a day whether you read it in beverage revenue or in total revenue. But total revenue is far noisier, so the same $15 is much harder to see in it. On a typical restaurant panel, pointing at beverage revenue instead of net revenue let the design detect an effect 6.7 times smaller, with the same data and the same number of days. Lengthening the window from 28 to 84 days bought only 1.7 times.Drivers: turning an effect into a slope
Without a driver, the result is the effect of this change: “the promo added $22 per shopper per day”. That is a one-off, and it is not written into the World Model. With a driver, the experiment also measures how far the lever moved the driver, for example ”+$45 of ad spend per market-day”. Dividing one by the other gives a slope: dollars of outcome per dollar of driver. That slope can be compared with the one your semantic model already holds, and, when the measurement is solid, proposed as a correction to it. See Predicted against measured and Proposing a slope. A filtered outcome or driver never produces a slope proposal, because the semantic model’s edge links the unfiltered measures.Lever
The lever is the change, made by two automations you already have.What the automation receives
Each run of a lever automation receives variables it can use to do the right thing:unit: the unit being switched (one run per unit), orunits: the list for the whole wave (one run per wave).state:onoroff.experiment: the experiment’s name.wave: which wave this switch belongs to.members: when units are groups, the members of the group as they were fixed when the run started.
Why the switch is confirmed in the data
An automation finishing without an error does not mean the change is live. A promo can be “enabled” in an API and still not show on the till. The experiment’s dates only mean something if the change really happened then, so Oxygen checks your confirm conditions against the warehouse and records, for each unit, whether and when the change landed. This is the compliance record shown in the report.Schedule
Quality floors
Guardrails
Guardrails are safety limits. Each one aborts the run when it trips, and the change is turned off.Choosing a design shape
The right shape depends on how many units you have, whether you can hold some back, and whether the change spills over between neighbours. You do not have to decide alone: the pricing panel prices several shapes side by side on your own data, so you can compare them.One wave with a control group
The plainest design. Some units switch on one date; the rest stay as they are for the whole experiment and serve as the comparison. It is the simplest to read, because every untreated unit is a control for the whole run.Staggered waves: everyone gets it, just not the same week
This is what operators usually do: roll the change out in waves, a few weeks apart. It works because on any date some units have not switched yet, and those units are the controls for the waves that went before. Each wave is read against only the units still untouched for the whole of that wave’s after window, including their anticipation buffer. A unit that has already switched is never used as a control. That restriction matters: the obvious shortcut, comparing everyone who has switched with everyone who has not, can under realistic conditions report an effect with the wrong sign.The staggered promo from the worked examples: wave 1 on 130 days ago, wave 2 two weeks later, 24 shoppers never switched. Each wave is read in its own shaded after window against the never-switched shoppers.
Groups of units
Sometimes single units cannot carry a test:- Most units are tiny. In a product catalogue, a few products sell most of the volume and the rest sell occasionally. Their day-to-day noise swamps any effect.
- The change spills over. An ad on one product takes sales from its neighbours. If a neighbour is in the control group, the control group shows a drop that the ad caused, and the effect is counted twice.
Example: grouping by region
Example: grouping by region
Blocks: stopping a lopsided draw
When a few units are much larger than the rest, a plain random draw can put all of them on one side. Those few units then decide the result. Blocks prevent that draw from happening: pricing sorts the units by their recent average, cuts the list into blocks of similar size, and draws within each block, so every block contributes to both sides. The blocks are saved with the design so the analysis uses the same ones.Matched pairs: few units, such as a couple of dozen markets
Match in pairs is the finest blocking. Units are paired by recent average, the two largest together, then the next two, and so on. In each pair a coin decides which one gets the change. An odd unit out joins as a control. It needs at least four units. It is the natural choice for geographic tests with a few dozen markets, where a careless draw can easily be lopsided.The 24 example markets, ranked by size and paired. Las Vegas and Minneapolis are the two largest, so they form a pair, and a coin decides which gets the change. A plain random draw could instead put both, and several more of the largest markets, on the same side.
Switchback: the whole fleet takes turns
Some changes cannot hold a control group: one ad account runs the whole catalogue, or a chain of six has too few stores to leave three without the change. A switchback turns the change on and off for everyone, over periods in a random order. This is not the same as switching everyone on one date, which Oxygen refuses. A single switch makes the change indistinguishable from the calendar. A switchback switches many times, so the “on” periods are a random sample of the calendar and are compared with “off” periods from the same stretch.A switchback over eight weeks: four pairs, and in each pair a coin chose which week was on.
- Periods come in pairs. In each pair of consecutive periods a coin decides which half is on. A slow drift over the run moves both halves of a pair together and cancels inside it.
- Use whole weeks. A 7- or 14-day period holds every weekday equally. At day grain, pricing warns when periods are not whole weeks.
- The washout repeats at every switch, and must be shorter than the period. So must the grace period, or no day of a period would be both settled and confirmed.
- You need enough pairs. At a significance level of 0.05 a switchback needs at least six pairs; at 0.2, four. Fewer cannot reach a result however large the effect, and pricing refuses them.