Skip to content

JayDS22/Real-Time-Experimentation-Platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Real-Time Experimentation Platform

A comprehensive A/B testing and experimentation platform with advanced statistical methods, multi-armed bandits, and causal inference.

Key Results

  • 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

Features

  • 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

Tech Stack

  • 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

Project Structure

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

Statistical Methods

  • 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

Experiment Types Supported

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

About

πŸ§ͺ A/B testing platform with Thompson sampling multi-armed bandits achieving 23% higher conversion rates πŸ“Š Sequential testing framework with Benjamini-Hochberg correction, causal inference, and Bayesian analysis for robust experimentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages