A comprehensive A/B testing and experimentation platform with advanced statistical methods, multi-armed bandits, and causal inference.
- 23% higher conversion rates using Thompson sampling
- 95% confidence intervals with proper statistical power analysis
- Family-wise error rate < 0.05 using Benjamini-Hochberg procedure
- Real-time experiment monitoring with early stopping rules
- A/B testing with sequential analysis
- Multi-armed bandit optimization
- Causal inference with difference-in-differences
- Propensity score matching
- Bayesian statistical analysis
- Real-time monitoring and alerts
- Python 3.9+
- SciPy & Statsmodels for statistics
- PyMC for Bayesian analysis
- CausalInference for causal methods
- FastAPI for real-time API
- Redis for experiment state
- PostgreSQL for data storage
experimentation-platform/
βββ src/
β βββ experiments/
β β βββ ab_testing.py
β β βββ bandits.py
β β βββ sequential_testing.py
β βββ causal/
β β βββ difference_in_differences.py
β β βββ propensity_matching.py
β β βββ causal_inference.py
β βββ statistics/
β β βββ power_analysis.py
β β βββ multiple_testing.py
β β βββ bayesian_analysis.py
β βββ api/
β βββ main.py
βββ tests/
βββ requirements.txt
βββ README.md
- Power Analysis: Sample size calculation with Ξ± = 0.05, Ξ² = 0.20
- Sequential Testing: O'Brien-Fleming boundaries for early stopping
- Multiple Testing: Benjamini-Hochberg FDR control
- Causal Inference: DiD, PSM, IV estimation
- Bayesian Methods: Thompson sampling, credible intervals
| Type | Method | Use Case |
|---|---|---|
| A/B Test | Frequentist | Simple comparisons |
| Sequential | SPRT | Early stopping |
| Multi-armed Bandit | Thompson Sampling | Dynamic allocation |
| Causal | DiD/PSM | Observational data |