P1 · Loan default risk · chart pack (static, aggregates only)
Freddie Mac 2014 vintage sample — 50,000 mortgages
Default = ever 90+ days delinquent through March 2026 (subsumes REO & adverse terminations). Model = grouped-binomial logistic regression on licence-safe aggregate cells, trained on Jan–Jun 2014 originations and validated on 33,691 newer loans. All figures verified 2026-10-21 → 24.
50,000loans
3.39Mmonthly rows
3.87%default rate (1,936)
81.6%prepaid before risk
≈0.69AUC (cell approx)
1.02calibration slope, out-of-cohort (origination-time)
47%defaults in riskiest 20% cells
6bugs caught pre-ship → AI_GOT_IT_WRONG.md
Risk gradients (descriptive)
Censoring & temporal stability
Model — odds ratios & out-of-cohort (origination-time) calibration
Provenance & how to read
- Data: Freddie Mac Single-Family Loan-Level Dataset, 2014-vintage random sample (50,000 loans), free research registration via Clarity. Only aggregated counts/rates are shown — raw rows are licence-restricted and never published.
- Verification: every band table re-sums to 50,000/1,936; join check 50,000/50,000; band counts reconciled against an independent origination re-parse; cell tables parsed machine-side, never re-typed.
- Labels: "cell-level approximation" = computed on band aggregates with within-cell homogeneity assumed — stated wherever used. Small cells (n<10) suppressed: 34 loans, 1 default, disclosed.
- Reproduce:
01-loan-default/R/01_import_checks.R(audit) → aggregates →R/02_model.R(model + validation). Seeded, zero-dependency base R. - Assistance: AI-assisted build with full disclosure; six bugs caught and logged in
AI_GOT_IT_WRONG.md.
Named paths (R/…, AI_GOT_IT_WRONG.md, SOLUTIONS_LOG.md) are relative to this project's repo folder — browse the files on GitHub ↗ (verified live 2026-10-25).