A/B experiments
Goal: understand and apply the concepts in the modules through the proposed exercises. Mark each module after studying it. Use the assessment to check your understanding. You may start this course directly without mandatory prerequisites.
Learning plan
- Estimand and design
- Power and minimum effect
- Inference and checks
- Monitoring and multiplicity
- Decision and side effects
- Case design and comparison validity
- Marginal efficiency and constraints
- Sensitivity and conditional recommendation
Recommended knowledge (not mandatory): Data literacy and metrics, Management dashboards.
1. Estimand and design
Define eligible population, treatment, control and estimand before observing outcomes. Randomisation should occur at a unit minimising contamination, such as user or team. Analyse by original assignment when estimating the effect of assignment policy, without arbitrarily excluding post-treatment cases.
Exercise: in a fictional scenario, create a protocol with estimand and randomisation unit. Justify your choices and identify one limitation.
2. Power and minimum effect
Plan sample size using baseline rate, minimum relevant effect, significance level and desired power. An underpowered test may miss useful effects. A huge test can detect economically trivial differences; link the minimum effect to the decision.
Exercise: in a fictional scenario, create a power and minimum-effect parameter sheet. Justify your choices and identify one limitation.
3. Inference and checks
Compare rates with absolute differences and intervals appropriate to the design. Check unexpected allocation imbalance, missing data and event integrity before interpreting significance. A p-value is not the probability that the null is true and does not directly measure importance.
Exercise: in a fictional scenario, create a table of integrity checks before inference. Justify your choices and identify one limitation.
4. Monitoring and multiplicity
Repeatedly checking a fixed-horizon test and stopping when significance appears changes false-positive error. Use a valid sequential plan or predefined horizon. When evaluating multiple metrics or variants, distinguish primary hypotheses from exploration and adjust inference when needed.
Exercise: in a fictional scenario, create a fixed duration and primary metric plan. Justify your choices and identify one limitation.
5. Decision and side effects
Assess economic impact, guardrail metrics and prespecified heterogeneity. Higher conversion may accompany more returns. Define scale, reject or investigate decisions based on effect and uncertainty, maintaining subsequent monitoring and reversibility.
Exercise: in a fictional scenario, create a decision rule with return rate as a guardrail. Justify your choices and identify one limitation.
6. Case design and comparison validity
Entirely fictional scenario: Two variants in a fictional conversion experiment. Each alternative, A and B, is evaluated on 100 units. A valid outcome means assigned units with valid conversion. A produces 44 valid outcomes with 176 minutes of total effort; B produces 62 with 320 minutes. These figures are training data, not observed market outcomes. The rate divides valid outcomes by evaluated units; absolute rate differences are expressed in percentage points. For example, going from 20% to 30% represents ten percentage points, not a ten percent relative increase. To compare average effort, divide minutes by valid outcomes. Define identical counting rules for both alternatives and record data provenance. The analysis unit must be defined before the test. Comparability requires checking composition, measurement conditions, missingness and possible dependencies. For this domain, it is particularly important to check allocation, missing data, minimum effect and guardrail metrics. Specify which variables should be stratified and how outcomes are reconciled with the reference source. If assignment is not random, treat the difference as descriptive until adequate causal evidence exists.
Exercise: write a protocol specifying population, unit, success definition, exclusions, reference source and comparison method; identify two case-specific threats to validity.
7. Marginal efficiency and constraints
The marginal effort cost of moving from A to B is the difference in minutes divided by the difference in valid outcomes, not B’s average effort. Assume a ceiling of 248 minutes and a minimum target of 45 valid outcomes. Compare both constraints simultaneously. If neither option meets both, redesign the approach or seek a decision on which constraint may change. Descriptive improvement does not prove causation or guarantee repetition. Before deciding, check allocation, missing data, minimum effect and guardrail metrics. Record observations, assumptions and missing information. Distinguish a hard constraint from a negotiable preference. B uses 144 additional minutes and A leaves 72 minutes of capacity under the ceiling. If there is additional benefit per outcome, compare it against the opportunity cost of additional minutes; without appropriate valuation financial return cannot be inferred. The decision must also consider quality, distribution of effects and dependencies.
Exercise: calculate average effort, marginal effort and shortfall against each constraint. Propose a third alternative preserving quality, identifying which assumption requires testing.
8. Sensitivity and conditional recommendation
Test the robustness of the comparison of two variants in a fictional conversion experiment. Suppose a quality review reduces B’s valid outcomes by 20, with effort unchanged. Calculate the new rate and difference relative to A. The tie threshold is the loss of 18 valid outcomes; larger losses reverse the ranking. This scenario is not a probability forecast: it is an explicit perturbation of an assumption. Also test scenarios involving increased effort, measurement failures and capacity constraints. Validation must include the need to check allocation, missing data, minimum effect and guardrail metrics. Produce a recommendation with a stop condition, guardrail indicator, required data and review date, avoiding extrapolation from 100 units to the whole population without justification.
Exercise: build a three-scenario matrix covering the stated loss, increased effort and their combination. Identify the reversal threshold, data to collect and rollback condition.
Final assessment
Answer all ten questions, with three options and one correct answer. To obtain the participation certificate, mark every module and achieve at least 80% (eight correct answers). You can repeat the assessment without limit. No passing grade is required between modules.
Participation certificate
Participation document issued by the independent Academia Digital 360 project. It is not an official, accredited or professional certification and does not confer any academic degree or recognised qualification. Identity and participation are not independently verified.