Website-AB-Testing-Python

🌗 Light vs Dark Theme Website Performance

Analyzing User Behavior Insights & A/B Testing Website Metrics with Python

This project analyzes website performance metrics to compare “Light Theme” and “Dark Theme” using a dataset (data/abt.csv) with 1000 user records. Built in Python within a Jupyter Notebook (abt.ipynb), it leverages pandas, numpy, scipy, seaborn, matplotlib, and scikit-learn for data processing, statistical testing, and visualizations.


Dataset Overview

The dataset (data/abt.csv) contains website user interaction data with 1000 rows (486 Light Theme, 514 Dark Theme). A preview of key columns:

Theme Click_Through_Rate Conversion_Rate Bounce_Rate Scroll_Depth Age Location Session_Duration Purchases Added_to_Cart
Light Theme 0.032 0.208 0.754 73.02 52 Chennai 1176 No Yes
Light Theme 0.143 0.028 0.306 35.02 33 Pune 780 Yes Yes
Dark Theme 0.323 0.179 0.297 45.74 27 New Delhi 912 No No
Light Theme 0.489 0.326 0.649 79.37 41 Chennai 1345 No Yes
Light Theme 0.098 0.273 0.438 72.18 36 Pune 645 Yes Yes

Analysis Sections and Visualizations

1. Data Summary

Provides descriptive statistics for numerical and categorical variables.


2. Theme Performance Comparison

Compares mean metrics between themes.


3. Hypothesis Testing

Tests for significant differences using Welch’s t-tests (alpha = 0.05).


4. Correlation Analysis

Examines linear relationships between metrics.


5. Distribution Analysis

Explores metric distributions by theme.


6. Location-Based Analysis

Assesses bounce rates by location and theme.


7. Predictive Modeling

Predicts Purchases using logistic regression.


Key Findings


Methodology


Usage

  1. Setup: Install dependencies: ```bash pip install pandas numpy scipy seaborn matplotlib scikit-learn IPython

Author

Author Banner

Author: [Pavan Yellathakota]
Date: MAR 2025


Contact Information

You can reach out to me through the following channels:

For more projects and resources, check out:


”””