Randomization &
Experiment Design
Learn how random assignment eliminates bias and how control and treatment groups reveal true causal effects in business analytics.
Why Do We Run Experiments?
In business, we constantly ask causal questions: Does this new ad increase sales? Does a redesigned checkout page reduce cart abandonment? Observational data alone can't answer these because of confounding variables: hidden factors that influence both the treatment and the outcome.
Core Vocabulary
Anatomy of an Experiment
The Principle of Randomization
Randomization ensures that, on average, every confounding variable: age, income, prior behavior, motivation: is distributed equally across groups. This means any observed difference in outcomes can be attributed to the treatment itself.
Observational vs. Experimental
| Observational Study | Experiment | |
|---|---|---|
| Assignment | Self-selected or natural | Researcher-controlled, random |
| Confounders | Likely unbalanced | Balanced on average |
| Causal Claims | No: correlation only | Yes: cause and effect |
| Cost / Effort | Lower | Higher |
| Example | Survey of ad viewers | A/B test of two ad variants |
Essential Design Elements
How to Design an Experiment
Example 1: A/B Test for Email Subject Lines
A retailer wants to know if a personalized subject line increases email open rates compared to a generic one. They have \( n = 10{,}000 \) email subscribers.
Example 2: Using Blocking
A software company tests a new onboarding flow. They suspect user experience level (novice vs. expert) will affect the outcome. So they block first, then randomize within each block.
Example 3: Is the Result Significant?
Returning to the email A/B test: the treatment had a 28% open rate and the control had a 22% open rate. The difference is +6 percentage points. But could this have happened by chance?
Why Sample Size Matters
Larger samples give experiments more statistical power: the ability to detect a real effect when one exists. Too few subjects and you might miss a genuine improvement.
Blinding and the Placebo Effect
Even in business experiments, awareness of being tested can change behavior (the Hawthorne effect). Blinding mitigates this.
Common Mistakes
Experiment Design Checklist
| Element | Purpose | How To |
|---|---|---|
| Randomization | Balances confounders | Use RNG or coin flip |
| Control Group | Provides a baseline | Assign "no change" group |
| Replication | Ensures reliability | Compute required \( n \) |
| Blocking | Reduces known variability | Group by key variable first |
| Blinding | Prevents bias | Hide assignments from subjects |
Question 1 of 5
What is the primary purpose of random assignment in an experiment?
Question 2 of 5
A company lets customers choose whether to try a new feature or keep the old one. They find that users of the new feature have higher engagement. Can they conclude the feature caused higher engagement?
Question 3 of 5
In an A/B test, the control group receives:
Question 4 of 5
A researcher suspects that age is a major confounder. Before randomizing, she divides subjects into age brackets and then randomly assigns within each bracket. This technique is called:
Question 5 of 5
An analyst runs an A/B test and checks results every day. On day 3, the \( p \)-value dips below \( 0.05 \) and she immediately declares the treatment a success. What is the problem?