Skip to content

slfdstrctd/ab_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A/B Testing Tool

Automated statistical analysis system for A/B experiments that processes user behavior data and makes data-driven decisions.

Approach

The system uses multiple statistical methods to analyze experiments:

  1. Bootstrap resampling - 10000 iterations
  2. T-test (parametric)
  3. Mann-Whitney U (non-parametric)

Decision criteria:

  • ACCEPT: p-value < 0.12, positive effect, adequate sample size
  • REJECT: No significant positive effects or negative effects detected
  • KEEP RUNNING: Inconclusive results or insufficient sample size

Installation

pip install -r requirements.txt

Data

Put CSV files into ./data folder.

The system expects:

  • Users files: user_id, ts, and ampl_user_data (JSON)
  • Messages files: user_id and messages_count
  • Payments files: user_id and price_usd

Usage

Web Interface

streamlit run web_app.py

Command Line

# Analyze experiment (e.g. add_bttn_fix)
python main.py -e add_bttn_fix

# Analyze all experiments
python main.py --all-experiments

# Custom parameters
python main.py -e experiment_name --significance-level 0.1 --metrics revenue_usd messages_count

Command Line Options

  • -e, --experiment: Experiment name
  • -d, --data-dir: CSV files directory (default: all_csv_files)
  • -o, --output-dir: Output directory (default: outputs)
  • -m, --metrics: Metrics to analyze (default: revenue_usd, messages_count)
  • -s, --significance-level: P-value threshold (default: 0.12)
  • --effect-sizes: Effect sizes to test (default: 1.0, 2.0, 5.0, 10.0)
  • --all-experiments: Analyze all experiments

Demo

Web Interface

Web Interface Demo

The web interface provides an intuitive way to analyze A/B tests with interactive visualizations and real-time results.

Demo Screenshot 1 Demo Screenshot 2 Demo Screenshot 3

Command Line Interface

CLI Demo

About

Automated statistical analysis system for A/B experiments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages