data-portfolio

← Portfolio · Notebook


A/B Test Framework — Multi-arm Marketing Promotion

Business question

Which of three promotion strategies (Promotion 1 vs. 2 vs. 3) drives the highest sales? A real fast-food chain ran them across stores; we apply a rigorous A/B/n testing framework to draw correct conclusions and recommend the rollout.

The toolkit demonstrated here applies directly to African retail or telecom marketing experiments (e.g., MTN Nigeria push campaigns, Jumia promo strategies).

Data

Run python download_data.py.

EDA targets

Statistical analyses

Test Use
Welch’s two-sample t-test with Bonferroni Pairwise promotion comparisons
One-way ANOVA Joint test across all three promotions
OLS with covariate adjustment + cluster-robust SEs on LocationID Honest inference under store-level clustering
Formal interaction test C(Promotion) × C(MarketSize) Simpson’s-paradox guard with p-value
Flat-prior Normal-Normal posterior on each arm’s mean P(a > b) as a direct probability (acknowledging the flat improper prior, not a true informative Bayesian analysis)

Validation

Deployment sketch

Business outcome