An A/B testing analysis project for Shoefly, a fictional shoe company. The goal is to determine which of two ad variants performs better using click-through rate data.
ad_clicks.csv contains ad impression records with the following columns:
| Column | Description |
|---|---|
user_id |
Unique identifier for each visitor |
utm_source |
Traffic source (google, facebook, twitter, email) |
day |
Day of the week the ad was shown |
ad_click_timestamp |
Time of click (null if not clicked) |
experimental_group |
Ad variant shown to the user (A or B) |
The analysis is split across two files:
script.py— standalone Python scriptab_testing_shoefly.ipynb— Jupyter notebook with the same analysis
- Traffic source breakdown — count views per UTM source
- Click-through rate by source — percentage of users who clicked per source
- A/B group distribution — verify even split between groups A and B
- A/B click comparison — overall clicks for Ad A vs Ad B
- Day-by-day breakdown — click-through rate per day of the week for each ad
Ad A outperforms Ad B on most days of the week (all except Tuesday), and has a higher average click-through rate overall. Ad A is the recommended choice.
- Python 3
- pandas
pip install pandas
python script.pyThis project is licensed under the MIT License.