| scr_irb_rw | R Documentation |
The asymptotic single risk factor function, vectorized over exposures:
PD floors by asset class, LGD input floors for own estimates
(approach = "airb"; the unsecured column of params$lgd_floor unless
collateral names another column, blended with secured_share), the
asset correlation of the class (with the firm-size adjustment of
corporate_sme from sales and the multiplier for large or unregulated
financial institutions when fi is TRUE), the maturity adjustment for
wholesale classes only (m clipped to params$m_range, params$m_default
when missing or under the foundation approach) and
scr_irb_rw(
pd,
lgd,
ead = 1,
m = NULL,
asset_class,
sales = NULL,
fi = FALSE,
defaulted = NULL,
elbe = NULL,
params = scr_irb_params("bcb"),
approach = c("airb", "firb"),
apply_floors = TRUE,
collateral = NULL,
secured_share = NULL,
claim = NULL
)
pd, lgd, ead |
Numeric vectors: probability of default, loss given default (decimals) and exposure at default (currency). |
m |
Effective maturity in years, non-negative (wholesale classes
only, ignored and reported as |
asset_class |
One of |
sales |
Annual sales of |
fi |
Logical: regulated financial institution above the size threshold, or unregulated one (correlation multiplier). |
defaulted |
Optional 0/1 or logical vector. |
elbe |
Optional vector with the best estimate of expected loss of
the defaulted rows (decimal of |
params |
An |
approach |
|
apply_floors |
|
collateral |
Optional column of |
secured_share |
Optional secured share in |
claim |
Under |
K = \left[LGD \cdot N\left(\frac{G(PD) + \sqrt{R}\,G(0.999)}{\sqrt{1-R}}\right) - PD \cdot LGD\right] \cdot MA \cdot s
with s = params$scaling_factor and, for wholesale classes,
MA = (1 + (M - 2.5)\,b) / (1 - 1.5\,b),
b = (0.11852 - 0.05478 \ln PD)^2 (MA = 1 for retail). Below
PD = 1e-5, reachable only without a PD floor (sovereigns), b is
held at its value at 1e-5: the regulatory b makes 1 - 1.5 b vanish
near PD = 2.9e-6, where the adjustment would explode and change sign.
Defaulted rows carry K = max(0, LGD - ELBE) under "airb" and zero under "firb"; a missing elbe is taken
equal to lgd. RW = 12.5 K and RWA = RW * ead.
A data.table with one row per exposure: pd_used, lgd_used
(after floors; PD one on defaulted rows), m (after clipping;
params$m_default under "firb"; NA on retail rows), r,
b, ma, k, rw, rwa; attribute floors_hit counts the rows
where each floor was binding.
Basel Committee on Banking Supervision (2023). The Basel Framework, CRE31 (IRB approach: risk-weight functions) and CRE32 (risk components). BCBS (2005). An explanatory note on the Basel II IRB risk weight functions.
Other irb-capital:
scr_capital(),
scr_ecl(),
scr_el(),
scr_pd_stress(),
scr_sa_rw()
scr_irb_rw(0.01, 0.45, m = 2.5, asset_class = "corporate")
scr_irb_rw(c(0.01, 0.02), c(0.20, 0.80), asset_class = c("retail_mortgage", "qrre_revolver"))
r <- scr_irb_rw(1e-4, 0.5, asset_class = "retail_other")
attr(r, "floors_hit")
# foundation approach: the supervisory LGD of the claim type
scr_irb_rw(0.01, lgd = 0, m = 2.5, asset_class = "corporate", approach = "firb",
claim = "senior_unsecured")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.