← ModelRisk LabOpen methods and limitations

Transparent methods. Explicit limitations.

ModelRisk Lab is a browser-based teaching and exploratory model-assessment tool. Its checks use independent development and final-test samples, but they are not regulatory approval or substitute for independent validation.

Data, outcome and splitting

The built-in data are fully synthetic Australian home-loan records. The label is a simulated 90+ days arrears event within the next 12 months. It is not represented as APRA's regulatory definition of default. The built-in scenario outcomes are generated by a known synthetic process, not estimated from Australian borrowers.

For dated data, all rows in each distinct time period remain in one chronological partition: model fitting, independent gradient-boosting early stopping, probability calibration, development holdout for assessing alternatives and selecting an illustrative decision threshold, and a final out-of-time evaluation. For uploads without a time column, stratified out-of-sample partitioning is used and every result is labelled as a held-out test rather than out-of-time. Uploads need at least 100 events in total and at least 5 in each partition; below that a run is refused. Above it, a sample adequacy check reports events per partition against role-specific minimums (for example 30 for the development holdout and 50 for the final test) and adds a screening indicator. Identifiers and protected data should not be selected as predictors. Leakage in user-chosen feature columns cannot be detected reliably by software alone.

Metric definitions

AUROC and Gini
AUROC is the area under the receiver operating characteristic curve; Gini = 2 × AUROC − 1. AUPRC uses average precision with thresholds at distinct prediction values. For an uninformative score, event prevalence is a useful precision baseline.
Calibration and Brier score
Brier score = average of (predicted probability − observed binary event) squared. Probability calibration is fit on data kept separate from early stopping. Platt scaling (default) and isotonic regression are supported. Isotonic regression is flagged when the calibration sample has fewer than 50 events, because it then tends to produce a few tied steps that reduce discrimination. Computed PDs are clipped to 0.03%–99.97%. Reliability-diagram bands include Wilson intervals for observed proportions.
Rating grades
Eight illustrative PD bands are compared with observed events. A one-sided binomial upper-tail calculation using the average grade PD provides only an approximation when individual PDs differ. Displayed grades use a Bonferroni-adjusted flag threshold. This is not a substitute for a Poisson-binomial or full bank-grade validation process.
Sample adequacy
Each partition has a different job: fitting, early stopping, calibration, development-holdout selection and final testing. The tool reports event counts per partition and warns when a count is below the level at which that job becomes unreliable. These minimums are practical rules of thumb, not statistical guarantees.
Hosmer–Lemeshow test
An exploratory grouped-calibration diagnostic. Its p-value is sensitive to sample size, bins and group definition, so it is shown as informational and excluded from the overall automated rating.
Population Stability Index
PSI = sum over bins of (new share − reference share) × ln(new share / reference share), with numerical smoothing for empty bins. It measures distribution change, not predictive deterioration, statistical significance or causal attribution.
Confidence intervals
Percentile intervals are based on borrower-level bootstrap resampling of the final test sample. They do not account for dependent loans, repeated customers or calendar clustering. For operational portfolios, use grouped or time-block methods when needed.
Decision economics
For an approved case that later experiences the binary event, the illustrative cost is exposure × LGD. For a declined case with no event, forgone margin is exposure × annual margin × horizon. Theoretical PD break-even = (annual margin × years) / (LGD + annual margin × years). This excludes funding costs, recoveries, operating cost, selection effects and borrower treatment.
Fairness
Group acceptance-rate ratios are shown only as descriptive disparity screens. They are not legal tests, do not control for eligibility or other relevant features, and cannot establish fairness or freedom from discrimination.

Stress and robustness

The synthetic scenario panel re-scores the same fictional loans after controlled changes to rates, income and collateral values. An unobserved shock intentionally makes the application model insufficient as a stress model. Other panels investigate random missing predictors, shifted feature inputs and case–control prevalence resampling. These exercises are sensitivity analyses, not causal conclusions or forward-looking stress forecasts.

Scope and safeguards

The application fits its own logistic and gradient-boosting demonstration models; it does not import externally trained bank models. The reported overall status is an illustrative indicator screen. APRA-regulated use requires independent review, conceptual soundness, clear outcome definitions, risk governance, documentation and appropriate approval. Synthetic results prove nothing about real borrowers.

Because calculations run in the visitor's browser, each concurrent visitor consumes their own CPU and memory, not shared server compute. Large files and model sizes are capped. Browser workers support UI responsiveness, but production-grade processing of sensitive, large financial files requires different security and governance arrangements.

Official context and statistical references

APRA APS 113 (in force 30 June 2026) · APRA APG 113 (current, June 2026) · scikit-learn model evaluation · scikit-learn calibration guide. The repository contains deterministic Node tests and an independent scikit-learn/SciPy cross-check. See the project source code.