# 061. Seasonal session conversion

**Question:** How does observed purchase conversion vary across recorded months?

## Result

The largest computed metric is 0.2535 for Nov; the smallest is 0.0163 for Feb. Metric: rate (Purchase-session share).

The file does not provide exact dates or a complete calendar-year panel. Different traffic mixes may explain the differences.

![Seasonal session conversion](outputs/chart.png)

| month | events | n | rate | wilson_lower | wilson_upper |
| --- | --- | --- | --- | --- | --- |
| Aug | 76 | 433 | 0.1755 | 0.1426 | 0.2142 |
| Dec | 216 | 1727 | 0.1251 | 0.1103 | 0.1415 |
| Feb | 3 | 184 | 0.0163 | 0.00556 | 0.04683 |
| Jul | 66 | 432 | 0.1528 | 0.1219 | 0.1898 |
| June | 29 | 288 | 0.1007 | 0.07103 | 0.1409 |
| Mar | 192 | 1907 | 0.1007 | 0.08797 | 0.115 |
| May | 365 | 3364 | 0.1085 | 0.09843 | 0.1195 |
| Nov | 760 | 2998 | 0.2535 | 0.2383 | 0.2694 |
| Oct | 115 | 549 | 0.2095 | 0.1775 | 0.2455 |
| Sep | 86 | 448 | 0.192 | 0.1582 | 0.231 |

The chart shows 10 of 10 result rows; the table previews the first 10 in the analysis-defined order. [Download the full result table](outputs/results.csv). Numerical values are computed from the source; missing results stay unavailable.

## Method

Session conversion rates with sample sizes and Wilson intervals.

The study uses shared source preparation and reusable statistical routines. Its specific transformations are in [analysis.py](analysis.py), and common model/evaluation code is in [portfolio/methods.py](../../portfolio/methods.py). The [notebook](analysis.ipynb) executes the study and displays the saved results.

## Decision and limitations

Use monthly differences to form a seasonal experiment or data-collection question.

One observation is a completed session. End-of-session behavior cannot support an early-session prediction claim. PageValues is excluded from purchase models because it can encode downstream purchase information. Associations are not experiment results. 

Related studies may share observations or holdouts. These are focused analytical studies, not independent replications or deployed business systems. Any model refinements informed by these results need new untouched evaluation data. No commercial impact is inferred from an association or backtest.

## Reproduce

From the repository root, after installing `requirements.txt`:

```powershell
python projects/061-seasonal-session-conversion/analysis.py
```

Source data are downloaded automatically if absent. Original archives are retained unchanged and checked by SHA-256. The cleaned cache normalizes column names; field-specific changes are visible in [data preparation](../../portfolio/data.py). Runtime evidence is in [receipt.json](outputs/receipt.json).

## Source

[Online Shoppers Purchasing Intention](https://archive.ics.uci.edu/dataset/468/online+shoppers+purchasing+intention+dataset), Sakar and Kastro (2018). [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Source data are transformed and aggregated in this study. [Source provenance](../../data/provenance/shoppers.json) and [prepared-data audit](../../data/provenance/shoppers_prepared.json) record the downloaded files, field coverage and hashes.
