Point-in-Time PD
Install and import#
npm install fintech-algorithmsimport { pointInTimePd } from "fintech-algorithms/credit-risk-and-default/probability-of-default/point-in-time-pd";Signature#
pointInTimePd(through_the_cycle_pd_value, borrower_log_odds_shift, macro_factor_z, macro_sensitivity, alert_threshold)Worked example#
verified This is the worked example published in the article, replayed by the test suite on every run. The output cannot drift.
Input#
0.030.250.80.550.06Call#
pointInTimePd(through_the_cycle_pd_value, borrower_log_odds_shift, macro_factor_z, macro_sensitivity, alert_threshold)Returns#
object with 9 fields: through_the_cycle_pd, baseline_log_odds, borrower_log_odds_shift, macro_log_odds_shift, point_in_time_pd, cycle_uplift, alert_threshold, state, …
{
"through_the_cycle_pd": 0.03,
"baseline_log_odds": -3.476098689835,
"borrower_log_odds_shift": 0.25,
"macro_log_odds_shift": 0.44,
"point_in_time_pd": 0.058080015587,
"cycle_uplift": 0.028080015587,
"alert_threshold": 0.06,
"state": "below-alert",
"reason": "declared-log-odds-overlay-not-universal-ifrs-or-regulatory-formula"
}Other exports#
This module also exports
logisticPdModel, probitPdModel, throughTheCyclePd, mertonDistanceToDefault, campbellHilscherSzilagyiDistressProbability, bharathShumwayNaiveDistanceToDefault, calculate. Every module additionally exports run as an alias of its
primary function, and a meta object carrying its catalog id, domain, family,
shape and article URL.
Diagrams#
How it works#
This page states the contract — how to call it correctly. The article explains the concept: why it works, and where it breaks.
References#
- A survey of cyclical effects in credit risk measurement models — Linda Allen and Anthony Saunders
- IFRS 9 Financial Instruments — International Accounting Standards Board
- IRB approach: minimum requirements to use IRB approach — Basel Committee on Banking Supervision
- Supervisory Guidance on Model Risk Management — OCC, Board of Governors of the Federal Reserve System, and FDIC
- Evidence boundary