# 026. Campaign population drift

**Question:** How do response and campaign intensity change across source-order quarters?

## Result

The largest computed metric is 0.2782 for 4.0; the smallest is 0.03601 for 1.0. Metric: rate (Subscription share).

Source order is documented as chronological, but block sizes are counts, not equally spaced calendar durations.

![Campaign population drift](outputs/chart.png)

| block | events | n | rate | wilson_lower | wilson_upper | mean_campaign_contacts | previously_contacted_share |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 407 | 11303 | 0.03601 | 0.03273 | 0.0396 | 2.695 | 0 |
| 2 | 681 | 11303 | 0.06025 | 0.05601 | 0.06479 | 3.639 | 0 |
| 3 | 1057 | 11303 | 0.09351 | 0.08828 | 0.09902 | 2.644 | 0.2543 |
| 4 | 3144 | 11302 | 0.2782 | 0.27 | 0.2865 | 2.077 | 0.4763 |

The chart shows 4 of 4 result rows; the table previews the first 4 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

Four contiguous observation blocks with response intervals and contact-count summaries.

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

Test temporal stability rather than assuming a pooled response rate persists.

Observational marketing records do not identify campaign uplift. Month and row order are not precise timestamps; repeated-client identifiers are unavailable. Models are research diagnostics, not financial eligibility or automated contact decisions. 

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/026-campaign-population-drift/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

[Bank Marketing](https://archive.ics.uci.edu/dataset/222/bank+marketing), Moro, Rita and Cortez (2014). [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Source data are transformed and aggregated in this study. [Source provenance](../../data/provenance/bank.json) and [prepared-data audit](../../data/provenance/bank_prepared.json) record the downloaded files, field coverage and hashes.
