# Exercise 8: A/B Test — Business Decision **Core path** | **Data:** `data/experiments.csv` **Not a statistics exam** — you are recommending a business action. ## What leadership needs 1. Conversion rate for variant **A** vs **B** 2. **Lift** in percentage points (e.g. B is 1.5 pp higher) 3. Is the lift large enough to matter operationally? (e.g. ≥ 0.5 pp) 4. Clear recommendation: roll out B, keep A, or run longer ## Tasks 1. Load data and compute conversion rate by `variant`. 2. Calculate lift: `(rate_B - rate_A) * 100` percentage points. 3. Write a **3-sentence memo** a non-technical manager can read. 4. *(Optional)* Run `scipy.stats` test — see Lesson 9 reference only if you want a p-value to support your memo. ## Decision template ``` Observation: B converts at __% vs A at __% (+__ pp). Business impact: At our traffic volume, that equals roughly __ extra conversions per month. Recommendation: [Roll out B / Stay on A / Test 2 more weeks] because __. ``` ## Starter code ```python import pandas as pd exp = pd.read_csv("data/experiments.csv") rates = exp.groupby("variant")["conversion"].mean() print(rates) lift_pp = (rates["B"] - rates["A"]) * 100 print(f"Lift: {lift_pp:.2f} percentage points") ``` ## Optional (statistics reference) If you need a p-value, see `docs/09-statistics-fundamentals.md` — not required to complete this exercise.