Staging, Scenario ECL and POCI

Staging consumes documented facts and policy thresholds. Credit impairment has priority over SICR, and days-past-due presumptions remain subject to governed rebuttal rather than being hard-coded as an automatic conclusion.

facts <- list(instrument_id="loan-1",impairment_scope="GENERAL_ECL",
              days_past_due=35,rating_orig=3,rating_current=5)
stage <- assess_stage(facts)
stage[c("stage","stage_reason")]
#> $stage
#> [1] "STAGE_2"
#> 
#> $stage_reason
#> [1] "PAST_DUE_REBUTTABLE_PRESUMPTION+RATING_MIGRATION"

Scenario ECL calculates each scenario before probability weighting. Stage 1 uses defaults within one year; lifetime stages use all supplied years.

instrument <- list(instrument_id="loan-1",impairment_scope="GENERAL_ECL",
                   ecl_method="COMPONENT_PD_LGD_EAD",eir=.05,overlay=0)
pd <- list(list(scenario_id="base",year=1,marginal_pd=.02))
lgd <- list(list(scenario_id="base",year=1,lgd=.40))
ead <- list(list(scenario_id="base",year=1,ead=100000))
loss <- scenario_ecl(instrument,"STAGE_1",pd,lgd,ead,c(base=1))
stopifnot(abs(loss$summary$final_ecl-761.904761904762)<1e-8)
loss$details
#> [[1]]
#> [[1]]$instrument_id
#> [1] "loan-1"
#> 
#> [[1]]$scenario_id
#> [1] "base"
#> 
#> [[1]]$year
#> [1] 1
#> 
#> [[1]]$marginal_pd
#> [1] 0.02
#> 
#> [[1]]$ead
#> [1] 1e+05
#> 
#> [[1]]$lgd
#> [1] 0.4
#> 
#> [[1]]$discounted_ecl
#> [1] 761.9048
#> 
#> [[1]]$formula_id
#> [1] "F-ECL-001"

POCI allowance movements remain signed so favourable changes are not converted into ordinary positive loss allowances.

poci_allowance_change(20,30)
#> [1] -10