Datasets:
Tasks:
Tabular Classification
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
< 1K
License:
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -32,10 +32,10 @@ cannot tell whether last-click / linear / time-decay / Markov / Shapley attribut
|
|
| 32 |
## Files
|
| 33 |
- `touchpoints.parquet` — one row per touchpoint: `journey_id, step, channel, t_hours, cost`.
|
| 34 |
- `journeys.parquet` — one row per journey: `journey_id, n_touch, n_channels, converted, conv_prob`, and the ground-truth credit `gt_shapley_<channel>` (0 if the channel is absent or the journey did not convert).
|
| 35 |
-
- `ground_truth.json` — the DGP parameters (channel weights, base logit, half-life) and the aggregate true channel contribution.
|
| 36 |
|
| 37 |
## Channels & true weights (DGP)
|
| 38 |
-
| channel | weight |
|
| 39 |
|---|---|---|---|
|
| 40 |
| paid_search | 1.1 | 0.9 | 1.2 |
|
| 41 |
| social | 0.7 | 0.85 | 0.8 |
|
|
@@ -45,76 +45,21 @@ cannot tell whether last-click / linear / time-decay / Markov / Shapley attribut
|
|
| 45 |
| direct | 1.0 | 0.4 | 0.0 |
|
| 46 |
| referral | 0.5 | 0.3 | 0.1 |
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
Base logit = -3.2; exposure half-life = 168h; journey window = 720h.
|
| 49 |
Conversion ~ Bernoulli(sigmoid(base + Σ_channel weight·saturate(decayed_exposure))).
|
| 50 |
Ground-truth credit = exact Shapley value of each channel under that value function.
|
| 51 |
|
| 52 |
-
## Model comparison (demo notebook)
|
| 53 |
-
|
| 54 |
-
`attribution_demo.ipynb` runs Last-Click, First-Click, Linear, Time-Decay and exact Shapley
|
| 55 |
-
against the known ground truth. Key results (MAE = mean absolute error on channel credit share):
|
| 56 |
-
|
| 57 |
-
| Model | MAE vs ground truth |
|
| 58 |
-
|---|---|
|
| 59 |
-
| **Shapley** | **~0.000** (reads exact labels) |
|
| 60 |
-
| Last-Click | ~0.040 |
|
| 61 |
-
| Time-Decay | ~0.042 |
|
| 62 |
-
| Linear | ~0.042 |
|
| 63 |
-
| First-Click | ~0.050 |
|
| 64 |
-
|
| 65 |
-
Shapley recovers causal truth with ~15× lower MAE than Last-Click.
|
| 66 |
-
|
| 67 |
-
**Key finding:** `email` is the most distorted channel across position-based heuristics —
|
| 68 |
-
high causal weight (0.90), very low cost (0.05), but arrives early in the journey and gets
|
| 69 |
-
starved of budget when Last-Click or Time-Decay is used.
|
| 70 |
-
|
| 71 |
-

|
| 72 |
-
|
| 73 |
-

|
| 74 |
-
|
| 75 |
-

|
| 76 |
-
|
| 77 |
-
## Uniqueness
|
| 78 |
-
|
| 79 |
-
As of 2026-06-14, this is the **only dataset on Hugging Face** combining:
|
| 80 |
-
1. Interpretable channel names (not hashed)
|
| 81 |
-
2. Exact per-journey Shapley ground truth (`gt_shapley_*` columns)
|
| 82 |
-
3. Fully documented, reproducible DGP
|
| 83 |
-
|
| 84 |
-
Real-world datasets (Criteo, RetailRocket) have hashed features and no ground truth,
|
| 85 |
-
making it impossible to evaluate whether any attribution model is *correct*.
|
| 86 |
-
|
| 87 |
## Suggested uses
|
| 88 |
- **Benchmark attribution models**: score last-click/first-click/linear/time-decay/Markov
|
| 89 |
against `gt_shapley_*` (MAE on channel credit shares).
|
| 90 |
- **tabular-classification**: predict `converted` from journey features.
|
| 91 |
- Teaching material for CRO / marketing attribution.
|
| 92 |
|
| 93 |
-
## GA4 DDA vs. Exact Shapley — comparison study
|
| 94 |
-
|
| 95 |
-
`ga4_dda_comparison.ipynb` runs three GA4-style approximations against the exact Shapley
|
| 96 |
-
ground truth on 500,000 journeys (`dda_comparison_results.json`).
|
| 97 |
-
|
| 98 |
-
| Method | MAE vs exact Shapley | Error source |
|
| 99 |
-
|---|---|---|
|
| 100 |
-
| Temporal removal (GA4 modern / Shender 2023) | **0.0218** | Order bias — negligible |
|
| 101 |
-
| LOO marginal | 0.0228 | Ignores synergies — negligible |
|
| 102 |
-
| **Zhao 2018 (Ads Data Hub `SHAPLEY_VALUES`)** | **0.0429** | **2× worse — confuses frequency with causality** |
|
| 103 |
-
|
| 104 |
-

|
| 105 |
-
|
| 106 |
-

|
| 107 |
-
|
| 108 |
-

|
| 109 |
-
|
| 110 |
-
**Key finding:** The order-bias hypothesis (GA4 uses temporal order instead of all
|
| 111 |
-
permutations) does not explain the error. The real problem is Zhao 2018's R(S): it counts
|
| 112 |
-
converting journeys that visited *all* channels in S, which conflates high-frequency channels
|
| 113 |
-
with high-impact channels. `display` (freq=0.80, causal weight=0.35) is over-attributed
|
| 114 |
-
by +0.095; `paid_search` (freq=0.90, causal weight=1.10) is under-attributed by -0.116.
|
| 115 |
-
|
| 116 |
-
Counterintuitively, GA4's modern TTE algorithm (free product) is more accurate than the
|
| 117 |
-
Ads Data Hub `SHAPLEY_VALUES` API (paid product, uses Zhao 2018).
|
| 118 |
-
|
| 119 |
## License
|
| 120 |
Synthetic data, no PII. CC BY 4.0.
|
|
|
|
| 32 |
## Files
|
| 33 |
- `touchpoints.parquet` — one row per touchpoint: `journey_id, step, channel, t_hours, cost`.
|
| 34 |
- `journeys.parquet` — one row per journey: `journey_id, n_touch, n_channels, converted, conv_prob`, and the ground-truth credit `gt_shapley_<channel>` (0 if the channel is absent or the journey did not convert).
|
| 35 |
+
- `ground_truth.json` — the DGP parameters (channel weights, base logit, half-life) and the aggregate true channel contribution.
|
| 36 |
|
| 37 |
## Channels & true weights (DGP)
|
| 38 |
+
| channel | weight | mix_weight | cost |
|
| 39 |
|---|---|---|---|
|
| 40 |
| paid_search | 1.1 | 0.9 | 1.2 |
|
| 41 |
| social | 0.7 | 0.85 | 0.8 |
|
|
|
|
| 45 |
| direct | 1.0 | 0.4 | 0.0 |
|
| 46 |
| referral | 0.5 | 0.3 | 0.1 |
|
| 47 |
|
| 48 |
+
`mix_weight` is a **categorical mixture weight**, not an independent arrival rate.
|
| 49 |
+
Each touchpoint in a journey is sampled from a single categorical draw over all channels,
|
| 50 |
+
with probabilities proportional to these weights — not from independent Poisson processes
|
| 51 |
+
per channel. Journeys that happen to contain a channel multiple times do so by repeated
|
| 52 |
+
draws, not by a separate channel-level process.
|
| 53 |
+
|
| 54 |
Base logit = -3.2; exposure half-life = 168h; journey window = 720h.
|
| 55 |
Conversion ~ Bernoulli(sigmoid(base + Σ_channel weight·saturate(decayed_exposure))).
|
| 56 |
Ground-truth credit = exact Shapley value of each channel under that value function.
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
## Suggested uses
|
| 59 |
- **Benchmark attribution models**: score last-click/first-click/linear/time-decay/Markov
|
| 60 |
against `gt_shapley_*` (MAE on channel credit shares).
|
| 61 |
- **tabular-classification**: predict `converted` from journey features.
|
| 62 |
- Teaching material for CRO / marketing attribution.
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
## License
|
| 65 |
Synthetic data, no PII. CC BY 4.0.
|