# 017. Contact channel response

**Question:** How do observed subscription rates differ by recorded contact channel?

## Result

The largest computed metric is 0.1492 for cellular; the smallest is 0.04071 for unknown. Metric: rate (Subscription share).

Unknown is retained as its own category. Channel assignment was not randomized.

![Contact channel response](outputs/chart.png)

| contact | events | n | rate | wilson_lower | wilson_upper |
| --- | --- | --- | --- | --- | --- |
| cellular | 4369 | 29285 | 0.1492 | 0.1452 | 0.1533 |
| telephone | 390 | 2906 | 0.1342 | 0.1223 | 0.1471 |
| unknown | 530 | 13020 | 0.04071 | 0.03745 | 0.04424 |

The chart shows 3 of 3 result rows; the table previews the first 3 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

Group conversion rates with Wilson intervals and sample sizes.

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 the observed differences to design a channel experiment, accounting for who receives each contact.

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/017-contact-channel-response/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.
