Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

A/B-Testing-Project, E-commerce Conversion Optimization

πŸ“Œ Overview

This project demonstrates how A/B testing can be applied to measure the impact of product or design changes on conversion rates. The dataset comes from an e-commerce experiment where users were randomly assigned to: - Control Group β†’ old website design - Treatment Group β†’ new website design The business goal is to evaluate whether the new design improves conversion rates.

🎯 Objectives

  1. Define and test hypotheses for conversion improvement.
  2. Explore and visualize the dataset.
  3. Perform a two-proportion z-test to check statistical significance.
  4. Compute confidence intervals for conversion rate differences.
  5. Conduct power analysis to ensure the test is adequately powered.
  6. Translate results into business insights & recommendations.

πŸ—‚οΈ Dataset

  • Columns:
    • user_id β†’ Unique identifier for users
    • timestamp β†’ Date of visit
    • group β†’ Control (old) or Treatment (new)
    • landing_page β†’ Page version shown
    • converted β†’ 1 if user converted, 0 otherwise
  • Source: Kaggle – E-commerce A/B Testing Dataset

πŸ” Methodology

  1. Data Cleaning
    • Removed duplicates and missing values.
    • Checked balance between control & treatment groups.
  2. Exploratory Data Analysis (EDA)
    • Conversion rates by group.
    • Distribution of users across groups.
    • Visual comparisons (bar plots, line trends).
  3. Statistical Testing
    • Null Hypothesis (Hβ‚€): Conversion rates are equal.
    • Alternative Hypothesis (H₁): Conversion rates are different.
    • Applied two-proportion z-test with Ξ± = 0.05.
    • Calculated 95% confidence interval for conversion difference.
  4. Power Analysis
    • Checked statistical power (>0.8 preferred).
    • Ensured sample size was adequate for detecting meaningful effects.

πŸ“Š Results

 - Z-statistic: 1.19
 - P-value: 0.2323
 - 95% Confidence Interval for difference: [-0.0009, 0.0038]

βœ… Interpretation

  • Since p-value > 0.05, we fail to reject the null hypothesis.
  • The confidence interval for the difference includes 0, suggesting no statistically significant improvement in conversion.
  • In other words, the new design did not significantly outperform the old design.

πŸ’‘ Business Insights

  • The test suggests rolling out the new design may not yield higher conversions.
  • Further experiments could explore: - Segment-level testing (e.g., by device type, geography). - Alternative design changes or content personalization. - Running the test longer to collect more data.

πŸ› οΈ Tech Stack

  • Python (pandas, numpy, matplotlib, seaborn)
  • Statsmodels (proportions z-test, confidence intervals, power analysis)
  • Google Collab for analysis and storytelling

About

Conducted an A/B test on e-commerce landing pages to evaluate conversion impact of a new design. Applied statistical testing (two-proportion z-test, confidence intervals, power analysis) and found no significant improvement over the old design. Insights recommend deeper segmentation and further experimentation before rollout.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages