Card Fraud Analytics — Analytical Brief
Example output. This brief was generated by a Runbook run (Phase 9) over the sample dataset in
datasets/. It's committed as a worked example of what the methodology produces — not a hand-written document. See README.md for the framework.
Prepared for: Fraud Operations and Risk Strategy
Analyst: Data Science, Fraud Analytics
Window analyzed: Jan 1 2017 – Dec 31 2017 (labeled corpus)
Dashboard: http://localhost:3000 · Companion artifacts: artifacts/
1. Executive Summary
Across 254,224 labeled card transactions (Jan–Dec 2017), 9.47% were confirmed fraud — an elevated but plausible rate for this bank's channel mix. The signal is not distributed evenly. One-third of all fraud concentrates in three places: 46 merchants with historical fraud rates over 28%, the $2–$5 micro-transaction bucket (47.9% fraud), and cards making ≥ 1 authorization within the prior hour (22.9% fraud). The single highest-leverage operational control is signature capture — signed transactions show a 4.5% fraud rate versus 10.6% for unsigned ones, a 2.3× protection factor. A transaction-only XGBoost model achieves AUC 0.764 on the holdout (0.759 ± 0.003 across 5 folds), confirming the findings translate into a usable risk-scoring tool; the primary gap to production-grade performance is device/IP/3DS signals, which aren't in this dataset.
2. Data Overview
What was provided. Three CSV tables — transactions.csv (327,005 rows, 9 cols), cardholder_info.csv (44,335 rows, 7 cols), merchant_info.csv (70,086 rows, 5 cols). Join keys (card_id, merchant_id) are both 100% covered — no orphan transactions.
Grain and class balance. One row per transaction authorization attempt. authorized_flag has three states:
| State | Meaning | Count | Share |
|---|---|---|---|
| 1 | authorized / legitimate | 230,144 | 70.4% |
| 0 | unauthorized / fraud | 24,080 | 7.4% |
| NULL | pending / disputed | 72,781 | 22.3% |
All 254,224 labeled rows fall in 2017. All 72,781 NULL (pending) rows fall in Jan–Apr 2018. This is structural: the dataset hands us a clean training-era corpus and a contemporaneous review backlog, with no labeled 2018 data to validate temporal drift. The model is trained and evaluated entirely on 2017.
Quality verdict: PASS. 99.2% of non-label cells are populated; no fraud-conditional null asymmetries (a leakage sentinel); all card and merchant coordinates are geographically valid; 355 negative-amount rows (refunds/reversals) were retained at baseline fraud rate.
Temporal triage — what was excluded and why. Of the 19 available columns, 18 are unambiguously recorded at transaction time and were kept. authorized_flag is the label itself (post-determination). fico_score was excluded as ambiguous — credit bureau scores are continuously updated, and this dataset does not document whether the stored value reflects account-open snapshot or a post-transaction refresh. If the data team can confirm the former, it's likely a strong feature worth revisiting.
Trust calibration. This is a credit-card authorization dataset without device, IP, merchant-terminal, or 3DS auxiliary signals. Findings are confident at the transaction-population level; recommendations should be treated as directional for real-time rules engines until validated on 2018+ outcomes when they settle.
3. Key Findings
Finding 1 — Merchant concentration: 46 merchants carry the top decile of fraud density; the top ten alone account for 5,500 transactions at 30–82% fraud rate
What we found. Of merchants with ≥ 20 transactions in window, 46 operate at fraud rates above 28.4% (3× the 9.47% baseline). These 46 merchants represent roughly 0.07% of the 70,086-merchant registry but collectively held 6,784 transactions and 2,650 fraud cases — 11% of all fraud in the dataset. The most extreme, M_ID_d8ccfbe91b, sits at 81.9% fraud across 83 transactions. The top ten-by-rate:
| Merchant ID | n | fraud | rate |
|---|---|---|---|
| M_ID_d8ccfbe91b | 83 | 68 | 81.93% |
| M_ID_318c1d6957 | 51 | 25 | 49.02% |
| M_ID_e93df2c7cc | 79 | 38 | 48.10% |
| M_ID_629e6f07c9 | 50 | 24 | 48.00% |
| M_ID_9e84cda3b1 | 393 | 161 | 40.97% |
| M_ID_3111c6df35 | 626 | 254 | 40.58% |
| M_ID_445742726b | 790 | 306 | 38.73% |
| M_ID_52d3026407 | 55 | 21 | 38.18% |
| M_ID_6f274b9340 | 824 | 301 | 36.53% |
| M_ID_fc7d7969c3 | 2,114 | 765 | 36.19% |
Why it matters. A fraud rate above ~25% sustained over hundreds of transactions is not organic — it indicates either a compromised terminal, a cloned POS, or an operator who is knowingly processing fraudulent volume. These are investigation leads, not model artifacts. merchant_fraud_rate is also the model's #1 feature by SHAP importance (mean |SHAP| = 1.01).
What to do about it. Hand the top-10 merchant IDs to Investigations this week. For each merchant with ≥ 25% fraud rate sustained over n ≥ 50, route all incoming transactions through secondary review and begin a terminal audit. Formalize a monthly "merchant-rate review" process: any new merchant crossing 3× baseline over a 100-transaction rolling window auto-routes to review.
Finding 2 — The $2–$5 micro-transaction bucket is 48% fraud — a textbook card-testing signature
What we found. Fine-grained amount cuts reveal a sharp, isolated spike in the $2–$5 band: 47.9% fraud across 1,477 transactions. Both neighbors are near baseline (sub-$2 is a ~3-row tail; $5–$10 runs at 12.1%). The amount curve then climbs again at the high end (16.9% at $1,000+), producing a clean U-shape:
| Bucket | n | fraud rate |
|---|---|---|
| $2–$5 | 1,477 | 47.9% |
| $5–$10 | 6,284 | 12.1% |
| $10–$50 | 77,706 | 7.9% |
| $50–$500 | 135,023 | 8.9% |
| $500–$1k | 22,404 | 11.2% |
| $1k+ | 11,060 | 16.9% |
Why it matters. The $2–$5 band is where card-testers deliberately operate: amounts small enough to fly under threshold rules, large enough to trigger a real authorization flow. Once a card clears a micro-test it moves to the $1k+ extraction band. Combining micro-transactions with velocity ≥ 1/h (Finding 3) produces a 77.9% fraud rate across 127 transactions — the cleanest operational signature of card testing in the dataset.
What to do about it. Deploy a real-time rule: amount < $5 AND velocity_1h ≥ 1 → step-up authentication (3DS or decline). Expect ~130 flags/year at this threshold with 78% precision — low false-positive cost, high recovery value. Add is_micro_transaction to the watchlist feature panel in the investigator console.
Finding 3 — A single prior authorization in the past hour more than doubles fraud risk (9.1% → 22.9%)
What we found. velocity_1h_count produces the largest fraud-rate range of any dimension cut — 90.9 percentage points across its discrete buckets. The operational break is at v1h = 1, not at v1h = 5 or v1h = 10 as is commonly assumed:
| Prior txns in last hour | n | fraud rate | multiplier |
|---|---|---|---|
| 0 | 248,340 | 9.12% | 1.0× |
| 1 | 5,596 | 22.87% | 2.5× |
| 2 | 243 | 45.27% | 5.0× |
| 3 | 28 | 67.86% | 7.4× |
| 4+ | 22 | 86.4% | 9.5× |
Why it matters. The fraud-rate climb is monotonic but the business-relevant step is at the first threshold. Waiting for v1h ≥ 5 to trigger a rule misses 95% of the operational opportunity — those cases exist but are sample-thin. The 0→1 transition is where concentrated decisioning lives.
What to do about it. Set velocity_above_1_per_hour as a soft-flag: route ≥1 prior-hour transactions to elevated-risk scoring, not auto-decline. This is too broad for hard-decline alone (22.9% fraud ≠ 99% fraud), but it's exactly the right prior for conditional escalation when paired with any other signal (Findings 2, 7, 8).
Finding 4 — Subsector risk splits into a high-risk five (luxury goods, consumer electronics, internet, insurance, gas) and a low-risk tail
What we found. The 38 merchant subsectors span a 13.4-point fraud-rate range. Five subsectors run 10.7–14.0% (above baseline); another cluster — including flights, advertising services, restaurants, beauty & personal care — runs below 1.5%.
| High-risk top 5 | n | rate | Low-risk bottom 5 | n | rate | |
|---|---|---|---|---|---|---|
| luxury goods | 35,946 | 14.03% | advertising services | 975 | 0.62% | |
| consumer electronics | 39,851 | 12.19% | flights | 655 | 0.76% | |
| internet | 39,198 | 11.95% | semiconductors | 881 | 0.91% | |
| insurance | 37,594 | 11.16% | beauty & personal care | 3,614 | 0.91% | |
| gas | 41,388 | 10.73% | restaurant/dining | 12,024 | 1.01% |
Why it matters. The risk split reflects economic rationality: fungible deliverables (luxury goods, electronics), subscription/online products (internet), and high-amount categories (insurance) are where stolen cards produce the most value per test. Low-risk subsectors are either B2B (advertising, semiconductors) or identity-locked (flights require passenger documentation). subsector_freq is the model's #2 feature by SHAP (mean |SHAP| = 0.59).
What to do about it. Route luxury goods and consumer electronics transactions to elevated scoring in the rules engine. Treat low-risk subsectors (flights, restaurants, B&PC) as a de-prioritized tier for review queues. Flag merchant onboarding in the high-risk subsectors for enhanced due diligence.
Finding 5 — Signature capture is the single highest-leverage control available: unsigned transactions run at 2.3× the signed rate
What we found. 81% of transactions (206,229 rows) carry no signature; these run at 10.6% fraud. The 19% with signature (47,995 rows) run at 4.5% — less than half.
Why it matters. SHAP ranks signature_provided as the #3 feature (mean |SHAP| 0.26), exceeding its univariate variance rank (#6). Trees extract the protection effect across interactions — signature status, conditional on merchant context, is the third most informative bit the model has. The operational implication is that the pipeline producing this column is valuable and should be preserved (or extended — chip/PIN telemetry carries similar structural friction).
What to do about it. Audit the 81% unsigned baseline. Some fraction is legitimately card-not-present (where signature is unavailable), but the share above that fraction is a missed control. Work with Channels / POS engineering to identify where signature capture is being skipped on signable transactions.
Finding 6 — The 65+ age segment is protected (5.8% fraud vs 9.5% baseline); everyone else runs slightly above baseline
What we found. Fraud rate by age bucket is near-monotone with a sharp drop at 65+:
| Age bucket | n | rate |
|---|---|---|
| < 25 | 37,499 | 10.90% |
| 25–34 | 55,387 | 10.40% |
| 35–49 | 67,298 | 10.25% |
| 50–64 | 44,598 | 9.98% |
| 65+ | 49,442 | 5.82% |
Why it matters. Likely a spending-mix effect, not an intrinsic difference: older cardholders make fewer online / high-risk-subsector purchases. age_bucket is the model's #5 feature by SHAP. Useful for risk scoring but not actionable on its own.
What to do about it. No direct action. Note the pattern when calibrating age-conditioned alert thresholds — a 12% flag on a 65+ customer is a much stronger signal than the same flag on a 25-year-old.
Finding 7 — Impossible-travel flagging is spurious in this dataset
What we found. The impossible_travel_flag (consecutive transactions implying > 800 km/h card movement) fires on 4,306 rows — but those rows run at 7.66% fraud, below baseline. The flag has inverse directional meaning in this corpus.
Why it matters. The mechanism is almost certainly that card billing coordinates and merchant coordinates are both static registry fields that don't reflect CNP reality. A cardholder billed in Dallas transacting at an online retailer registered in Delaware will generate a "1,500 km in 3 minutes" flag whenever their previous transaction was local. Calling this "impossible travel" in a rules engine would generate high-volume false positives.
What to do about it. Deprecate impossible_travel_flag as a standalone rule. Reframe it as "card-merchant registration distance," which is what the data actually supports. Real impossible-travel detection would require device / IP geolocation per transaction — flag for the data-source recommendation list.
4. Model Summary
What the model is. An XGBoost classifier (max_depth 4, 300 estimators with early stopping) trained on 203,379 labeled transactions with scale_pos_weight = 9.56 to handle the 9:1 imbalance. 32 features spanning temporal, amount, geographic, velocity, behavioral, identity, and categorical-encoding families, plus merchant_fraud_rate — computed per CV fold on the fold's training subset only to prevent leakage from the full-labeled-set computation used during feature engineering.
What the model can do.
| Metric | Value |
|---|---|
| K-Fold AUC (5-fold stratified, on 80% train) | 0.7593 ± 0.0032 |
| Holdout AUC (stratified 20%, untouched until final) | 0.7640 |
| Holdout PR-AUC | 0.3292 |
| Operating threshold | 0.8588 → 50% precision, 17% recall |
CV std of 0.003 (well below the 0.05 instability threshold) confirms the model generalizes consistently across folds. The 0.7640 holdout AUC is slightly higher than the CV mean — normal noise.
What the model cannot do. It cannot achieve production-grade discrimination on transaction features alone. The §6.6 expected range for transaction-only fraud models is 0.62–0.78 AUC; this model sits at the top of that band but the remaining gap to the 0.90+ seen in production systems is filled by data the bank does not have in this dataset: device fingerprinting, IP geolocation, 3DS authentication outcomes, and real-time network-wide velocity from the card network.
Top features by SHAP mean |SHAP|:
| # | Feature | Mean |SHAP| | Direction |
|---|---|---|---|
| 1 | Merchant Historical Fraud Rate | 1.012 | Higher → fraud (logarithmic saturation past 30%) |
| 2 | Merchant Subsector Frequency | 0.593 | Low-freq subsector → fraud (step at ~0.14) |
| 3 | Signature Provided | 0.255 | Signed → legit |
| 4 | Card-to-Merchant Distance | 0.180 | Very high distance → legit (registry artifact) |
| 5 | Cardholder Age Bucket | 0.175 | Higher age → legit |
SHAP vs. Phase 5 agreement. subsector_freq is the only direct top-3 match between SHAP and Phase 5's univariate variance ranking. Two coherent gaps explain the difference: (a) merchant_fraud_rate was built after Phase 5 Pass 1, so it couldn't have appeared in the original variance table — its SHAP dominance confirms the §5.6 trigger was correctly prioritized; (b) velocity_above_1_per_hour ranks outside the SHAP top-10 because it fires on only 2.3% of rows — mean |SHAP| over all rows dilutes rare-event features, but those features still drive the model's highest-confidence predictions (see the individual force plots). Verdict: MINOR disagreement — fully explained, no investigation required.
5. Recommendations — Ranked by Expected Impact
| # | Action | Evidence | Owner |
|---|---|---|---|
| 1 | Investigate the 46 merchants with fraud rate > 3× baseline, starting with the top-10-by-rate (n ≥ 50). Begin with M_ID_d8ccfbe91b (82% fraud, 83 txns). Audit terminals, onboarding documentation, and settlement flow. | Finding 1 — 11% of all fraud sits in 0.07% of the merchant base | Investigations |
| 2 | Deploy a $2–$5 micro-transaction × velocity_1h ≥ 1 hard-decline rule. Expected impact: ~130 annual flags at 78% precision. | Finding 2 + Finding 3 + interaction verification (77.9% fraud on the combo) | Rules Engine |
| 3 | Route luxury-goods and consumer-electronics transactions to elevated-scoring tiers; de-prioritize low-risk subsectors (flights, restaurants, B&PC) in review queues. | Finding 4 — 14.0% vs 1.0% subsector fraud rate spread | Fraud Ops |
| 4 | Audit the 81% unsigned-transaction baseline. Identify the share that is signable-but-unsigned and partner with Channels to fix capture gaps. | Finding 5 — 2.3× protection factor on signed vs unsigned | Channels / POS Eng |
| 5 | Deprecate impossible_travel_flag as a rules trigger; reframe as "registration distance." | Finding 7 — flag fires below baseline | Rules Engine |
| 6 | Procure device fingerprint / IP / 3DS signals from the authentication layer and rebuild the model. Expected AUC uplift from ~0.76 to the 0.85–0.90 range seen in production fraud systems. | §6.6 — transaction-only feature ceiling | Data Platform / Vendor Mgmt |
| 7 | Monthly operational cadence: rerun merchant-rate analysis on a rolling 90-day window; auto-route any merchant crossing 3× baseline to review queue. | Finding 1 — sustained merchant compromise is the highest-persistence fraud vector | Fraud Analytics |
6. Limitations and Caveats
- No 2018 labeled data. All 254,224 labeled rows are 2017. We cannot validate model drift or whether the 2017 patterns still hold in the 72,781 pending 2018 transactions. Recommend: once the 2018 backlog is reviewed and labeled, re-evaluate the model on that slice before promoting any of the recommendations to production.
fico_scoreexcluded as ambiguous. The column is populated for all rows, but the dataset does not document whether the value is account-open-snapshot or continuously updated. If Data Engineering can confirm snapshot provenance, FICO bands very likely carry additional signal — rerun the orientation and feature-engineering phases.- Impossible-travel flag is a registry artifact, not a geography signal. Billing and merchant coordinates are static; the flag conflates CNP distance with real movement. Real impossible-travel detection requires per-transaction device / IP geolocation not available in this corpus.
merchant_fraud_rateis a training-period statistic. It reflects 2017 merchant behavior. New merchants — or previously-clean merchants that become compromised — will be assigned the portfolio baseline (9.47%) until they accumulate ≥ 5 training observations. In production, this feature must be recomputed on a rolling window to keep the model responsive.- Rare high-signal features are under-represented in global SHAP rankings. Features like
is_micro_transactionandvelocity_above_1_per_hourfire on < 3% of rows, so their mean |SHAP| ranks outside the top-10. They remain operationally critical — investigator dashboards and rules engines should use them directly, not through the global SHAP lens. - No device, IP, 3DS, or terminal-ID signals. The model is trained on transaction-level features only. The achievable AUC ceiling on this data class is ~0.78 per §6.6 calibration; any improvement beyond that requires additional data sources. This is not a weakness of the methodology — it's a capability limit of the input.
- Class balance reflects enriched sampling. The 9.47% fraud rate is far above a raw card-payments fraud rate (typically 0.1–1%). Either the data has been oversampled for analytical purposes, or this is a high-risk channel slice. Treat all base-rate numbers as specific to this population; do not port absolute thresholds to other channels without re-baselining.
Narrative prepared per Playbook v3.2 Phase 9. Companion artifacts live in artifacts/; dashboard at http://localhost:3000.