Glossary
Domain and package-specific terms used throughout cranalytics.
cranalytics vocabulary
Terms that name the package's own concepts. Alphabetical sections below define the credit-risk terms these build on.
Workflows and inputs
Workflow A user-facing analysis a risk manager picks: one business question, one input, one first result. There are eight, listed in the Workflow Map. Not a code seam, a data shape or a validation rule; those have their own terms. Avoid: pipeline, analysis path, module (for the user-facing unit)
First win The first useful result a workflow produces for a new user, such as a fitted curve or a reserve estimate. Each workflow names its own.
Data shape
One of the three canonical layouts of input data: loan snapshot, loan history, rollforward aggregate. Converters between shapes live in data_shapes.py. Vintage observations and the modeling frame are derived inputs, not data shapes.
Avoid: schema, format, input type
Loan tape
Loan-level data supplied by a lender, in either of two kinds: a loan snapshot or a loan history. The loan_tape package validates and normalizes both kinds.
Avoid: loan file, tape (alone)
Portfolio A lender's set of loans, which changes over time as loans are funded, paid down, paid off and charged off. A portfolio is the thing being measured; a loan snapshot or loan history is data about it. Avoid: book, loan file, loan tape
Loan snapshot
The state of a portfolio at one date: one row per loan.
Avoid: portfolio file, portfolio (the portfolio is the thing; the snapshot is data about it)
In cranalytics: every row carries the same file-level as_of_date.
Loan history
Many loan snapshots stacked over time, so each loan appears once per observation date. It shows how the portfolio evolved.
Avoid: loan panel, ledger, loan-month panel
In cranalytics: snapshot and history share the same required columns and differ only in whether as_of_date is single or repeated.
Portfolio view
A way of looking at a portfolio: a defined set of its loans at a point in time. The view can be the whole portfolio, one segment (defined by a loan characteristic), one vintage (defined by when an event happened), or a combination such as a segment within a vintage. A snapshot's dates can be used to derive views at earlier dates. A concept, not a data shape: a snapshot or history is the data, and a view is how you slice and read it.
Avoid: portfolio (alone, when a particular slice or date is meant)
In cranalytics: earlier-date views use fund_date, payoff_date and chargeoff_date. They give existence and terminal state, not balance or delinquency.
Portfolio input contract
The legacy forecast-input layout (principal, annual_rate, term_months, start_date, status, optional fico_score) that lifetime loss, segmentation and simulation still consume to receive a portfolio view. Built from a loan snapshot by loan_snapshot_to_portfolio, which renames columns, drops as_of_date and collapses pre-due loans to Current. Also called the portfolio contract.
Avoid: portfolio schema, portfolio file
Rollforward aggregate
A data shape with one row per segment per month on book, holding aggregated payments, charge-offs and remaining balance. The input to the Rollforward workflow and to fit_flow_hazard_curves. See Input Data Contracts.
Avoid: rollforward data, aggregated flows
Input contract
The validation rules that decide whether a file is fit for a workflow. A contract can be shared: several workflows validate against the portfolio contract.
Avoid: schema, validator, check profile
Workflow result
What a workflow returns: a headline summary, the tables behind it, a standard chart, and the assumptions that produced it. An analyst builds a report from a workflow result; the result is not itself the report.
Avoid: report, output
In cranalytics: every workflow run() returns one, with summary(), tables(), plot(), assumptions() and to_dict().
Check
Any test that confirms whether something will work, or did work. A check reports; it does not transform, rename or map anything. Before a run, a contract check tests a file's layout against an input contract, and readiness tests whether Rollforward data is fit for operational use. After a run, operational status reports whether it worked.
Avoid: validate, verify, test (as synonyms for the umbrella)
In cranalytics: ca.check and cranalytics <workflow> check are contract checks, plus role checks for ML Modeling and Survival. Known departure from the definition, recorded for the design work: ca.check also detects the workflow from column names and lists compatible workflows. cranalytics rollforward readiness runs readiness, kept separate from the <workflow> check commands. CheckReport.readiness records how deep a check went and is unrelated to Readiness.
Forecasting and modeling systems
Model
A stateless prediction unit — either a cranalytics lens or custom user code — that takes data as of one date and emits a forecast.
Avoid: modeling system, pipeline, variant (a variant is a named configuration of a model)
Forecast
Standardized predicted values emitted by a model for a given forecast_as_of across entities or segments, a time axis (calendar date and/or MOB), and credit metrics.
Avoid: prediction table, run output
Forecast run
One immutable recorded execution of a model, capturing its forecast_as_of, identity (model, version, variant), input data fingerprint, and assumptions.
Avoid: run log, snapshot (reserved for loan snapshot)
Forecast ledger The append-only record of forecast runs and their forecasts across time, enabling longitudinal comparison against realized actuals. Avoid: model registry (a ledger records forecast outputs and provenance, not serialized model weights)
Modeling system The layer above individual models that records forecast runs in a forecast ledger, tracks forecasts against realized actuals over time, and orchestrates governance workflows such as backtests, champion/challenger promotion, and forecast revision attribution. Avoid: model (a single model predicts at one date; a modeling system manages models across time)
Rollforward and flows
Rollforward
The workflow that forecasts payments and charge-offs by segment from a rollforward aggregate. It fits flow hazard curves, backtests variants against holdouts, and promotes a champion.
Avoid: roll-rate forecast, flow workflow
In cranalytics: the Rollforward object runs in three ways: in memory, writing artifacts, or as a readiness assessment.
Flow
The dollars paid or charged off in one period for a group of loans, observed against the outstanding balance. The two flows are payments and charge-offs.
Avoid: cash flow (cash flows are a simulation output)
In cranalytics: monthly, per segment, in the payments and chargeoffs columns.
Flow hazard A flow divided by outstanding balance: the monthly share of balance that is paid or charged off. Fitted as a flow hazard curve across months on book. Not the same as a roll rate, which counts loans changing status, or a survival hazard rate, which is per borrower. Avoid: roll rate
Variant A named configuration of a model (for example, segmented vs. pooled or a different smoothing window). One variant is the baseline; variants compete in a backtest or live forecast ledger. Avoid: model (a variant is a configuration of one model), challenger (that is a role a variant plays) In cranalytics: Rollforward defines segmented/pooled smoothing variants; any forecast run may carry a variant name.
Backtest Forecasting from a past cutoff and scoring the forecast against the actuals that followed, in the holdout period. Avoid: validation (reserved for contract checks)
Readiness
A Rollforward assessment of whether a rollforward aggregate is fit for operational use. It combines contract issues with backtest accuracy into a score and a verdict (Ready, Needs Review, Not Ready). Specific to Rollforward.
Avoid: check, data quality score
Operational status
The shared pass, attention, blocker summary of any Rollforward result. blocker means the run is not usable as is.
Avoid: status (alone; each result surface also has its own raw status)
Loans and outcomes
Loan state
The standing of a loan in one period. The four canonical states are Current, Delinquent, Charged Off and Paid Off. Transition matrices and loan histories use these names.
Avoid: status (when a canonical state is meant), Default
Performance flag
A binary per-loan outcome, such as FPF, that analysis tries to separate and models try to predict.
Avoid: target (for the column in feature analytics), label
In cranalytics: Feature Analytics and ML Modeling use it; FPF flags are fpf30_flag and fpf60_flag.
Vintage observations Long-format cumulative loss rates by vintage and months on book, the input to Vintage Curve Fitting. Derived from loan-level data by grouping loans into vintages and aggregating loss at each age. The wide vintage triangle is built from them internally. A derived input, not a data shape. Avoid: loss triangle (for the long format)
Goals, lenses, and cross-lens reconciliation
Multiple model families in cranalytics deliberately overlap on the same credit-risk question. Overlap is a governance feature, not duplication: running a second lens on the same portfolio is how risk teams challenge assumptions and catch blind spots before they hit P&L.
Analytical goal
The underlying credit-risk decision being supported — independent of which model family is used. cranalytics organizes overlap around five canonical goals: Lifetime loss / reserve, Loss emergence & timing, Underwriting rank-ordering, Cashflow & liquidity projection, and Portfolio drift & reserve attribution.
Avoid: workflow (a workflow is one implementation path; multiple workflows can serve the same goal)
Lens One analytical approach to an analytical goal, with explicit visibility and known blind spots. Choosing a challenger means pairing two lenses whose blind spots do not overlap. Avoid: model type (alone, when comparing across workflows)
Cross-lens reconciliation
Running two or more lenses on the same underlying portfolio or loan history under matched units (as_of_date, horizon, LGD, EAD). Under stationary assumptions, reconciled lenses should converge; when they diverge, the gap diagnoses a specific regime shift or assumption violation.
| Analytical goal | Lenses in cranalytics |
What each lens sees | What each lens is blind to | Canonical reconciliation units |
|---|---|---|---|---|
| Lifetime loss / reserve | Lifetime Loss (loss_forecasting), Vintage (vintage), Survival (survival), Rollforward (rollforward) |
Transition matrix sees current delinquency roll-rates; Vintage sees cohort seasoning shape; Survival sees timing & competing payoff/default; Rollforward sees segment balance flows | Transition matrix misses cohort seasoning unless segmented; Vintage misses uncharged-off delinquency spikes; Kaplan-Meier without competing risks overstates default when prepayments are high | lifetime_loss_dollars, reserve_ratio, cumulative_loss_rate, lgd, as_of_date |
| Loss emergence & timing | Vintage (vintage), Survival (survival), Simulation (simulation) |
Vintage sees cumulative curve shape by MOB; Survival sees hazard timing & censoring; Simulation sees month-by-month balance runoff | Vintage aggregates away borrower covariates; Survival ignores amortization unless paired with cashflow balances | mob / timeline, cumulative_loss_rate, cumulative_incidence, defaults |
| Underwriting rank-ordering | Feature Analytics (feature_analytics), ML Modeling (predictive), FICO Segmentation (portfolio) |
Feature Analytics ranks univariate separation (IV/WoE, KS, FPF); ML Modeling captures multivariable lift with temporal backtesting; Segmentation gives transparent policy tiers | Univariate metrics miss interactions; static cross-sectional splits leak future labels without label_available_col / target_horizon_months |
gini, ks, auc, iv, fpf30_flag / fpf60_flag |
| Cashflow & liquidity projection | Simulation (simulation), Rollforward (rollforward) |
Simulation projects loan-level principal, interest, prepayments, and defaults; Rollforward projects segment-level payments and charge-offs from flow hazards | Static simulation assumes time-invariant roll rates; Rollforward cannot see loan-level rate/term heterogeneity | scheduled_principal, prepayments, defaults, interest, ending_balance |
| Portfolio drift & reserve attribution | Reserve Walk (reserve), Score Monitoring (feature_analytics), Segmentation (portfolio) |
Reserve Walk decomposes reserve delta into runoff, originations, seasoning, migration, and assumption changes; Score Monitoring tracks PSI and A/E drift | Point-in-time mix tables hide offsetting flows (e.g., new originations masking worsening roll rates) | prior_reserve, current_reserve, psi, ae_ratio |
Reading cross-lens divergence (diagnostic guide):
- Transition matrix > Vintage curve → Near-term delinquency has spiked before charge-offs have posted to historical vintage curves (early-warning signal).
- Kaplan-Meier
(1 - S(t))> Aalen-Johansen default incidence → Voluntary payoffs are materially competing with default; use competing risks rather than censoring payoffs. - Simulation defaults ≠ Lifetime loss forecast (at
lgd=1.0,cpr=0,amortize=True) → Horizon, state-name mapping, or exposure basis mismatch between the two runs.
A
Absorbing state
A state in a transition matrix from which there is no exit — once a loan enters it, it stays there. Charged Off and Paid Off are typically absorbing states. Their diagonal value is 1.0 and all off-diagonal values in the same row are 0.
A/E ratio (Actual-to-Expected) The ratio of observed event rates to model-predicted rates over a validation period. An A/E of 1.0 means the model is perfectly calibrated; values above 1.0 indicate underprediction.
C
CGCO (Cumulative Gross Charge-Off)
The sum of all charge-off dollars from origination through the current observation date, expressed as a percentage of original principal (cgco_pct). The primary output metric of vintage curve analysis.
Champion/challenger
A model governance pattern where a primary ("champion") model is monitored against one or more alternative ("challenger") models. cranalytics uses this pattern in backtest variant selection for both rollforward and vintage models.
Charged Off
The canonical terminal loss state for loan snapshots, loan history, and transition-matrix examples in cranalytics. It represents a loan that has been written off on the lender's books and is treated as the absorbing loss state in package examples. This is the event that "default" refers to in PD, EAD, LGD, and Recovery rate.
Avoid: Default (as a state name), Loss
Cohort A group of subjects that share a starting event in the same period (month, quarter or year), tracked as they age together so one cohort can be compared with those before and after it. The general term, used outside lending too. In lending it is interchangeable with vintage. Avoid: batch, class
Concordance index (C-index) A discrimination metric for survival models. Ranges 0–1; 0.5 is random, 1.0 is perfect. Measures the probability that a model correctly ranks two randomly chosen borrowers by their event time.
Cox PH (Cox Proportional Hazards)
A semi-parametric survival regression model that estimates how covariates (e.g., FICO score, DTI) scale the baseline hazard rate. Available via cranalytics.survival.
D
Default
An input alias for Charged Off: older data and transition matrices may label the loss state Default, and cranalytics normalizes it to Charged Off on load (simulation.run also treats the two as the same state: loss_terminal_state="Default" selects Charged Off in a matrix that has no Default column, and the reverse). In the standard credit-risk terms PD, EAD, and LGD, "default" means a loan reaching Charged Off, not merely being 90+ days past due. Prefer "charge-off" in prose, and keep "default" for those standard terms.
Avoid: Default as a separate loan state
DPD (Days Past Due)
The number of calendar days since the last required payment was missed. Used to define delinquency buckets (Late-30, Late-60, Late-90).
DTI (Debt-to-Income ratio) A borrower characteristic: total monthly debt obligations divided by gross monthly income. Expressed as a decimal (0.35 = 35%) in model features.
E
EAD (Exposure at Default)
The outstanding principal balance at the time a loan reaches Charged Off. In cranalytics, this is typically the principal column of a portfolio DataFrame.
Expected loss
The statistical average loss on a portfolio: EAD × PD × LGD, summed across all loans. The output of forecast_lifetime_loss.
F
FICO band
A bucketed grouping of FICO scores used for portfolio segmentation:
<600 / 600–649 / 650–699 / 700–749 / 750–799 / 800+
FICO score
A credit score from 300 (highest risk) to 850 (lowest risk) produced by Fair Isaac Corporation. Used throughout cranalytics for segmentation and feature engineering.
FPF (First Payment Failure)
When a borrower misses their very first scheduled loan payment. A binary target for early-warning predictive models. Variants: fpf30_flag, fpf60_flag.
G
Gini coefficient
A model discrimination metric equal to 2 × AUC − 1. Ranges −1 to 1; higher is better. Computed by calculate_gini.
Gompertz curve
A parametric sigmoid curve used for vintage loss projection. Suitable for portfolios where loss acceleration slows earlier in the vintage life. One of the four built-in distribution families in cranalytics.vintage._distributions.
H
Hazard rate
The instantaneous probability that an event (payment or charge-off) occurs in a given period, given that it has not yet occurred. Monthly hazard rates in cranalytics represent: "of the balance that has not yet been paid off or charged off, what fraction exits this month?"
Holdout period
In backtesting, the set of recent observations withheld from model training and used to measure out-of-sample forecast accuracy. Configured via holdout_months in the CLI and workflow functions.
I
IV (Information Value)
A scalar measure of a feature's predictive power for a binary target. Computed alongside WOE by compute_woe_iv. Rule of thumb: < 0.02 = not predictive; 0.02–0.1 = weak; 0.1–0.3 = medium; > 0.3 = strong.
K
Kaplan-Meier
A non-parametric estimator of the survival function — the probability of surviving (not defaulting, not prepaying) past time t. Does not require a distributional assumption. Available via cranalytics.survival.
KS statistic (Kolmogorov-Smirnov)
The maximum separation between the cumulative distributions of positive and negative classes in a scorecard. Ranges 0–1; higher is better. Computed by calculate_ks.
L
LGD (Loss Given Default)
The fraction of EAD lost after recovery efforts once a loan has reached Charged Off: LGD = 1 − (Recovery / EAD). Computed by calculate_lgd. Expressed as a decimal (0.6 = 60% loss).
Lifetime loss The expected total credit loss on a portfolio from the current date through final resolution of all loans. The primary output of the loss forecasting workflow.
Lognormal curve A parametric curve used for vintage loss projection where the loss rate follows a lognormal CDF as a function of MOB. One of the four built-in distribution families.
M
MAPE (Mean Absolute Percentage Error) The average of |actual − predicted| / actual across validation observations. Used to score backtest variants. Lower is better.
Migration matrix See transition matrix.
Mix shift
A change in portfolio composition over time — e.g., a shift toward lower-FICO borrowers — that can cause aggregate performance changes independent of individual loan performance. Analyzed via calculate_fico_mix.
MOB (Months on Book)
The age of a loan cohort in months, measured from origination. MOB 1 is the first full month after origination. The primary x-axis variable in vintage analysis. Column name: mob or month_on_book.
Odds ratio (per bin)
In a WOE table, the odds of the event (bad) in a bin divided by the odds in all other bins combined. Above 1 means a riskier bin. Charted with plot_odds_ratio_chart, which draws a log-scale forest plot with Woolf confidence intervals.
P
Preflight check An assessment of the data and selected assumptions for a particular credit-risk workflow, with an explicit boundary between what has been checked and what still requires assessment.
PD (Probability of Default)
The probability that a loan reaches Charged Off over a specified horizon. In transition-matrix forecasting, this is the cumulative probability of reaching the Charged Off state from the current state; older matrices may still label that absorbing state Default.
PSI (Population Stability Index)
Measures how much a score distribution has shifted between a reference period and a current period. PSI < 0.1 = stable; 0.1–0.25 = moderate shift; > 0.25 = significant shift. Computed by compute_psi.
R
Recovery rate The fraction of charged-off principal recovered through collections, liquidation, or sale. Recovery rate = 1 − LGD.
Reserve ratio
Lifetime loss divided by total portfolio balance. The primary output ratio of summarize_lifetime_loss.
Risk grade
A cranalytics-specific integer label (1–6) mapped from FICO band, where 1 = lowest risk (800+) and 6 = highest risk (<600). Added by segment_fico.
Roll rate The monthly share of loans moving from one delinquency status to another (e.g., from Current to Late-30). The empirical basis for fitting a transition matrix. Not the same as a flow hazard, which is a dollar rate on balance.
S
Scorecard
A predictive model that assigns a numeric risk score to each loan or borrower. cranalytics supports binary classification scorecards via train_binary_model.
Segment A portfolio view defined by a shared loan characteristic (FICO band, product type, origination channel). A segment is fixed at origination, so a loan stays in it as it ages, unless the segment is explicitly defined on a current value such as delinquency bucket. Vintage and rollforward analyses can be run independently per segment. Avoid: bucket (reserved for delinquency buckets), slice
Survival function The probability S(t) that a loan survives (does not default or prepay) past time t. The complement of the cumulative hazard function. Estimated by Kaplan-Meier or parametric models.
T
Transition matrix A square DataFrame where rows and columns are loan states and each cell [i, j] is the monthly probability of moving from state i to state j. Rows must sum to 1.0. See Input Data Contracts — Transition Matrix.
U
Ultimate loss
The final cumulative loss rate a vintage is expected to reach at full maturity. The asymptote of a fitted vintage loss curve. Stored as CurveFitter.ultimate_ after fitting.
UPB (Unpaid Principal Balance)
Synonym for outstanding principal balance. Common column alias for outstanding_balance in rollforward data.
V
Vintage
A cohort of loans, the lending term for the same idea. Loans are grouped by when some event happened (application, funding, charge-off, a customer's first loan), and each group's performance is read by age and compared with other vintages. The anchor event is a choice, not part of the definition. We prefer "vintage" in lending contexts.
In cranalytics: the anchor is the funding date, and the label is carried in the vintage_name column (for example "2023-Q1").
Vintage triangle A matrix where rows are vintages, columns are months on book, and each cell is the cumulative loss rate for that vintage at that age. The raw data format for vintage curve fitting before reshaping to long format.
W
Workflow A path from a credit-risk question and its required inputs to a useful analytical result. Avoid: Data shape (a workflow can require several inputs, and one data shape can support several workflows).
Workflow compatibility Whether supplied data satisfies a workflow's assessed input requirements. Compatibility alone establishes neither suitability for the user's analytical question nor validation of every assumption or secondary input. Avoid: Ready to run (compatibility does not guarantee successful execution).
WAL (Weighted Average Life)
The average time until principal is returned, weighted by the amount repaid at each period. Computed by calculate_wal.
Weibull curve A parametric curve used for vintage loss projection where loss development follows a Weibull CDF. Flexible shape makes it suitable for a wide range of portfolio types. One of the four built-in distribution families.
WOE (Weight of Evidence)
A transformation that replaces feature bin values with log(P(good) / P(bad)) in each bin, linearizing the relationship between a feature and a binary target. Computed by compute_woe_iv and fit_woe_binning.