Skip to content

Repository files navigation

E-Commerce A/B Testing & Conversion Analysis

πŸ“Œ Project Overview

The objective of this project was to analyze the results of an A/B test for an e-commerce website to determine if a new checkout page UI (Treatment) drove a higher conversion rate than the existing UI (Control).

This project encompasses end-to-end data pipeline execution: extracting and cleaning raw web traffic logs in PostgreSQL, conducting statistical hypothesis testing in Python, and delivering a final business recommendation via a Power BI executive dashboard.

πŸ› οΈ Tech Stack

  • Database & Data Cleaning: PostgreSQL (CTEs, Window Functions)
  • Statistical Analysis: Python (Pandas, Statsmodels, SciPy)
  • Data Visualization: Power BI (DAX, Data Modeling)

πŸ“Š The Process & Methodology

  1. Data Cleaning (SQL): Handled a raw dataset of ~300,000 web sessions. Engineered a SQL script utilizing ROW_NUMBER() window functions to remove duplicate refresh events and isolate 290,584 clean, unique user sessions.
  2. A/B Testing (Python): Formulated the null hypothesis that the new page would not increase conversions. Executed a Two-Proportion Z-Test to calculate statistical significance ($\alpha = 0.05$).
  3. Business Intelligence (Power BI): Developed an executive-facing dashboard to visualize the conversion funnel, daily performance trends, and final KPIs.

πŸ“ˆ Results & Business Recommendation

Power BI Dashboard

  • Control Group (Old Page): 12.04% Conversion Rate
  • Treatment Group (New Page): 11.88% Conversion Rate
  • P-Value: 0.90

Conclusion: The test yielded a p-value of 0.90, failing to reject the null hypothesis. The Treatment group underperformed the Control group consistently over the testing period.

Recommendation: Do not deploy the new checkout page. Retaining the current UI prevents a projected drop in overall purchase conversions, protecting company revenue.

About

Analyzing A/B test results using PostgreSQL, Python, and Power BI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages