01 / 20
R

Randomization &
Experiment Design

Learn how random assignment eliminates bias and how control and treatment groups reveal true causal effects in business analytics.

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

Treatment Group
Subjects who receive the intervention (new ad, new feature, discount).
Control Group
Subjects who receive no intervention or a placebo. They provide the baseline.
Random Assignment
Each subject has an equal chance of being placed in any group, eliminating selection bias.

Anatomy of an Experiment

Population
\( N \) subjects
Random Assignment coin flip / RNG Treatment receives intervention Control no intervention Compare Outcomes

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

Replication
Use enough subjects so results are statistically reliable, not due to chance.
Blocking
Group similar subjects together before randomizing to reduce variability.
Blinding
Subjects (single-blind) or researchers (double-blind) don't know group assignments.

How to Design an Experiment

1
Define the question. What causal claim do you want to test?
2
Identify the response variable. What measurable outcome reflects success?
3
Choose the treatment. Define what the treatment group will experience differently.
4
Select subjects and randomize. Recruit participants and use random assignment to form groups.
5
Collect data and compare. Measure outcomes in both groups and test for a statistically significant difference.

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.

10,000 subscribers RNG Treatment: 5,000 "Hi [Name], ..." Control: 5,000 "Check out our sale!" 28% open rate 1,400 opens 22% open rate 1,100 opens Difference: +6 percentage points

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.

Block 1: Novice Users Treatment (New Flow) randomized novices Control (Old Flow) randomized novices Block 2: Expert Users Treatment (New Flow) randomized experts Control (Old Flow) randomized experts

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.

Power Sample Size per Group 0.0 0.25 0.50 0.75 1.0 0 100 200 300 400 0.80 Power Curve

Blinding and the Placebo Effect

Even in business experiments, awareness of being tested can change behavior (the Hawthorne effect). Blinding mitigates this.

Single-Blind
Subjects don't know which group they're in. Example: users don't know they're seeing a redesigned page.
Double-Blind
Neither subjects nor analysts know group assignments until data is collected and locked.

Common Mistakes

No Control Group
Testing a change with no baseline makes it impossible to attribute results to the treatment.
Self-Selection Bias
Letting participants choose their group. Motivated users pick the treatment, inflating results.
Peeking at Results
Stopping the experiment early when results "look good" inflates the false positive rate.

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?