# 019. Previous campaign outcomes

**Question:** Do prior successful campaign records identify a different response population?

## Result

The largest computed metric is 0.6473 for success; the smallest is 0.09162 for unknown. Metric: rate (Subscription share).

Unknown prior outcomes remain separate from failure. Historical success is an association, not a guarantee.

![Previous campaign outcomes](outputs/chart.png)

| poutcome | events | n | rate | wilson_lower | wilson_upper |
| --- | --- | --- | --- | --- | --- |
| failure | 618 | 4901 | 0.1261 | 0.1171 | 0.1357 |
| other | 307 | 1840 | 0.1668 | 0.1505 | 0.1846 |
| success | 978 | 1511 | 0.6473 | 0.6228 | 0.6709 |
| unknown | 3386 | 36959 | 0.09162 | 0.08872 | 0.0946 |

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

Response rates by recorded previous outcome.

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

Review how prior engagement should enter a future campaign experiment.

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/019-previous-campaign-outcomes/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.
