Scoring Models · CPR monthly projection (12-month voluntary-prepay path)
What it does
Composite discrete-time hazard model that projects the voluntary-prepay CPR path for a Fannie-eligible conventional loan over the next 1-60 months (default 12). Output is a vector — one SMM / annualized CPR per loan-age month, plus the aggregate prepay probability over the horizon — rather than a single number. This is the shape that MSR-valuation stacks, recapture-marketing funnels, and portfolio CPR forecasting work in.
Architecture. Four age-bucket HGB + isotonic classifiers (ages 1-3, 4-12, 13-24, 25-60) dispatch internally based on the month being scored, and a case-cohort prior correction undoes the stratified-sampling bias introduced at training time. Trained on 18.4M FNM_SFP originations across 2018-2023 (698M loan-months of observation).
Phase 3 portfolio reconciliation vs
mortgage.benchmark_cpr_cdr_monthly. On the
2024-2025 out-of-time window, aggregated predicted voluntary CPR
matches the Fannie-published series within 0.70 pp MAE
across 178 (vintage, observation-month) cells. Industry acceptable
band is 1-2 pp; RiskSpan's own cited bar is 1-2% monthly CPR MAE.
Per-vintage breakdown: 2021 at 0.08 pp off (basically perfect),
2020 at 0.19 pp, 2022 at 0.15 pp, 2023 at 0.49 pp. Only vintage
2018 exceeds 1 pp and that's the ages_25_60 bucket extrapolating
outside the training range. See the predicted-vs-actual overlay on
the /benchmarks page.
Fair-lending audit ACCEPTABLE across race (AIR 0.919), ethnicity (0.972), and sex (0.998). Loan-level predictions aggregated across each loan's observed months, then weighted by HMDA state×demographic composition. All three dimensions comfortably inside the 4/5ths rule.
Rate forecast — bring your own curve. The
refi-incentive feature is updated per projected month. Three
forecast modes, highest precedence first: market_rate_forecast
is a list of per-month rate percents of length = horizon (a true
forward curve); expected_market_rate is a single value
held flat for all months; neither passed defaults to today's
Fannie-median 30yr. The response includes the actual
market_rate_curve_used_pct so scenarios are
inspectable.
Use case: MSR valuation (loan-level CPR input to a servicing-cash- flow model), recapture marketing (target borrowers likely to refi), portfolio-level CPR forecasting, model-governance benchmarking against AD&Co LoanDynamics / RiskSpan Edge output. What it is NOT: an underwriting decision, a vendor substitute at full hazard-stack depth, a credit-events model (voluntary prepay only), or a dynamic rate-scenario engine (v1 uses a static curve per request).
Why it matters. Industry monthly-CPR projection is how MSR desks price a book, how servicers plan recapture capacity, and how portfolio managers forecast prepayment speed. The published vendors (AD&Co LoanDynamics, RiskSpan Edge) run hazard-model stacks structurally similar to this one; their stated acceptable monthly-CPR MAE is 1-2 pp. Our 0.70 pp on the 2024-2025 window puts this model inside that band without licensing a vendor, with the added upside that the composite scoring function supports an explicit forward-curve override — so you can run a rate-view scenario in one call rather than batching through a vendor's UI.
› Try it on the home page (Loan-level model scoring → CPR monthly projection)
API connector
Programmatic access. Calibrated probability + risk band + operating recommendation in the response.
POST /api/score_cpr_monthly_projection
Content-Type: application/json
{
"borrower_fico": 740,
"co_borrower_fico": null,
"original_ltv": 80,
"original_cltv": 80,
"dti": 36,
"mi_percent": 0,
"original_upb": 420000,
"original_interest_rate": 7.125,
"original_loan_term_months": 360,
"loan_purpose": "P",
"channel": "R",
"property_type": "SF",
"number_of_units": 1,
"occupancy": "P",
"number_of_borrowers": 1,
"first_time_homebuyer": "N",
"product_type": "FRM",
"property_state": "TX",
"property_valuation_method": "Full Appraisal",
"origination_year": "2026",
"origination_month": "08",
"hpa_volatility_20yr": 6.5,
"hpa_mean_20yr_yoy": 4.2,
"unemp_volatility_20yr": 1.5,
"unemp_mean_20yr": 4.5,
"horizon_months": 12, // optional, 1-60, default 12
"expected_market_rate": 6.25, // optional flat rate forecast
"market_rate_forecast": [6.1, 6.0, 5.9, 5.8, 5.7, 5.6,
5.5, 5.4, 5.3, 5.2, 5.1, 5.0]
// optional forward curve
}
Response includes monthly_path (vector with
loan_age, bucket_model,
predicted_smm, predicted_cpr_annualized,
and the monthly_prepay_prob_given_survival_to_now),
the aggregate_prepay_probability_over_horizon,
the market_rate_curve_used_pct that drove each month,
and a governance block with the Phase 3 MAE and
Phase 4 AIR numbers.
Schema reference (request / response shape): GET /api/score_cpr_monthly_projection/schema
Model metadata (training cohort, AUC, calibration): GET /api/score_cpr_monthly_projection/info
mortgagetape™