
Build IFRS 9 probability of default models using PIT and lifetime PD concepts, deploying SAS, SQL, Python, or R to analyze logistic regression and survival data in credit risk.
Explore IFRS 9 fundamentals, including point-in-time versus through-the-cycle PDs and the three-stage model, with PIT PD central to expected credit loss calculations.
Explore IFRS 9 PIT PD modelling. Link point-in-time probabilities of default to current economic conditions, including macroeconomic drivers like GDP and unemployment, with models that respond dynamically to change.
Explore how IFRS 9's three pillars—classification, measurement, and impairment—shape asset recognition, valuation, and impairment decisions.
Link point-in-time PD to macroeconomic drivers such as GDP and unemployment to reflect current economic conditions. Adapt PIT PD models dynamically as conditions change.
Load data in SAS using options like MPRINT, MLOGIC, and SYMBOLGEN. Import the CSV with PROC IMPORT and verify the structure with PROC CONTENTS showing 5000 observations and 15 variables.
Assess data quality on work.pd_data using proc contents to confirm structure, variables, formats; detect outliers with proc means, review categorical distributions with proc freq, and examine tails with proc univariate.
Learn how IFRS 9 PIT PD modeling links current macroeconomic conditions to dynamic PD and expected credit loss calculations, using GDP and unemployment as key drivers.
Review data quality and split the dataset of 5000 observations into 70% development and 30% validation, confirming balanced defaults and non-defaults, and averages for age, score, and days past due.
Create IFRS 9 features by reversing score, logging utilization, and capping days past due; include age squared and one-hot encoding for region and employment, and save DEV_PREP and VAL_PREP.
Estimate a logistic regression model using proc logistic for the default flag with predictors reversed score, log utilization, capped dpd, and age squared; achieve strong fit and perfect discrimination (c=1.000).
Evaluate model performance with AUC and KS, noting KS equals sensitivity minus one minus specificity. Development KS reaches about 0.9, with validation confirming excellent discrimination for IFRS 9 PD.
Calibrate predicted probabilities by ranking validation data into deciles and comparing average predicted PDs with observed defaults, showing the model is well calibrated.
Calculate expected credit loss under IFRS 9 using PD, LGD (0.4), and EAD (1000); compute ECL as PD times LGD times EAD, with a proc print display of all values.
This SAS demo updates the observation and performance window logic, ensuring defaults occur after the report date, aligning with IFRS 9 and forward-looking PD modelling.
Load and clean the IFRS 9 dataset in SAS, validate a dataset of 5000 observations and 20 variables, and prepare model-ready inputs for logistic regression and scenario-based PD forecasting.
In this lecture, we introduce the IFRS 9 standard and its role in credit risk management.
Download the attached student notes (PDF) for a structured summary of the key points.
By the end, you’ll understand the purpose, scope, and regulatory context of IFRS 9.
Review internal and external data sources required for PIT PD models and perform data cleaning steps, including missing values, outlier handling, and format standardisation.
Source reliable data from internal and external systems for IFRS 9 models, then clean data by handling missing values, correcting errors, and ensuring consistency.
Learn how observation windows capture borrower characteristics and how performance windows track defaults, aligning predictors with outcomes in IFRS 9 credit risk modelling.
Explore how observation and performance window lengths influence PD model stability, noting that short windows are responsive but volatile while long windows smooth risk dynamics.
Track cohorts of loans originated in the same period to analyze vintage performance, revealing portfolio seasoning, risk migration, and default emergence patterns in IFRS 9 credit risk modelling.
Wholesale credit risk variables rely on financial ratios, leverage, liquidity, and profitability metrics, with sector-specific drivers such as commodity exposure included.
Understand retail credit risk variables used in retail models, including borrower demographics, credit bureau scores, and behavioural data. Review examples such as utilisation, delinquency history, and recent enquiries.
Explore oversampling techniques to address class imbalance between defaults and non-defaults in IFRS 9 credit risk modelling, including random oversampling, SMOTE, and balanced weighting.
Assess data quality in credit risk modelling by performing accuracy, completeness, consistency, and timeliness checks to ensure valid IFRS 9 PD and ECL calculations.
Explore dataset structure with PROC CONTENTS, summarize variables with PROC MEANS, and examine categories with PROC FREQ to reveal missingness, anomalies, and data imbalances.
Learn mean and median imputation to replace missing values with the mean or median, showing how the median is more robust to skewed distributions and outliers in credit risk modeling.
Explore causes of missing data and the risks of ignoring them, then apply deletion, mean or median imputation, and rule-based approaches to handling missing values in IFRS 9 modelling.
Identify causes of missing data and the risks of ignoring them, and apply deletion, mean or median imputation, and rule-based approaches in credit risk modelling.
Apply missing data treatments for financial modelling using mean, median, mode, regression, hot-deck, and clustering; evaluate IFRS 9 implications and documentation and governance for imputation strategies.
Use binary indicator flags for missing values to create binary variables that reveal whether a field is missing, helping the model learn systematic missingness patterns.
Import data using proc import and treat missing categorical values as separate level. Missing values are coded as 'Missing', preserving rows but diluting predictive power if missingness is not informative.
Group borrowers into clusters with FASTCLUS and impute missing values using cluster means, then discuss limitations when missing variables influence clustering.
apply SME rule-based imputation to fill gaps, such as employment to probationary and marital status to married-assumed when dependents are high, with rules documented and bias monitored under IFRS 9.
Learn how to handle missing data in PROC LOGISTIC by comparing dropping rows, imputation, indicator variables, and excluding variables to achieve robust model estimation under missingness.
Apply regression imputation in IFRS 9 credit risk modeling to predict missing data from observed variables using a regression model, leveraging multivariate relationships while noting potential correlation inflation.
Demonstrate hot-deck imputation in IFRS 9 credit risk modelling by filling missing values from a similar record, retaining realism through careful matching criteria.
Section 2 – Data Preparation and Quality Checks
Learn how to prepare raw credit risk datasets for modeling. This includes handling missing data, variable formatting, and ensuring data quality through automated checks
Develop variable selection and model development strategies for IFRS 9 credit risk, applying WOE, IV, and logistic regression to build Basel-compliant PIT PD, lifetime PD, and ECL models.
Perform exploratory data analysis on distributions, missingness, and balance; apply logs, caps, and standardisation to stabilise effects and reduce skew for a clean modelling table ready for feature engineering.
Perform exploratory data analysis on distributions, missingness, and target balance, then apply logs, caps, and standardisation to stabilise effects and prepare a clean modelling table for feature engineering.
Diagnose multicollinearity using variance inflation factors and correlations; drop or combine redundant predictors to prevent unstable coefficients and keep models interpretable and robust.
Cluster variables into groups using proc varclus in SAS based on shared variance, retain the strongest signal from each cluster, and simplify the model without losing information.
Apply feature engineering techniques—caps, transforms, and grouped categoricals—to produce stronger univariate gradients and cleaner relationships in IFRS 9 credit risk modelling.
Demonstrate proc varclus in sas to cluster variables by shared variance, select a representative feature per cluster with the strongest signal, and simplify the model without losing information.
Rank predictors using IV/WOE, AUC lift, and univariate bad-rate trends in PIT PD modelling to shortlist features for the multivariate model, ensuring stable, monotonic, business-sensible signals.
Explore fine classing to model detailed relationships and coarse classing for stability. Target monotonic WOE trends and minimum bin populations, and validate with IV, PSI, and simple logistic checks.
Demonstrate a fine-to-coarse classing workflow by starting granular, merging by similar WOE or event rates, validating stability, and preparing bins for monotonic effects.
Explore correlation analysis with Spearman and Hoeffding, detect monotonic and broader dependencies missed by Pearson, and prioritize signals that remain stable across samples.
Explore correlation analysis using Spearman and Hoeffding to detect monotonic and broader dependencies that Pearson may miss, and prioritize signals stable across samples.
Combine stepwise heuristics with professional judgement for variable selection in predictive modelling. Evaluate candidate sets using AIC/BIC, c-stat, and calibration on validation to lock a compact, explainable feature set.
Apply stepwise logistic regression with interactions and grouped factors, identify the winner variable: the score × rate interaction with meaningful lift, then add centered main effects and validate on holdout.
Explore interaction effects to model conditional risk, using examples like score × utilisation; center continuous terms and retain only stable, business-plausible interactions.
Examine interaction effects in IFRS 9 credit risk modelling, such as score times utilisation. Center continuous terms for clear main effects and retain only stable, business-plausible interactions.
Assess the linearity of the log-odds in IFRS 9 credit risk by an empirical-logit check, binning scores, plotting elogit versus mean score, and applying regression or loess.
Develop a transparent, defendable baseline logistic regression model for credit risk by modeling default_12m(event='1'), interpreting driver odds ratios, and evaluating discrimination (auc/ks) and goodness of fit (hl) with lift.
Learn logistic regression in SAS with PROC LOGISTIC, using class, model, and store statements for reproducible scoring, export ODS OUTPUT, and save predicted PDs for audit-ready report with key diagnostics.
Explore logistic regression for default probability in IFRS 9 and Basel. Learn about log odds, the logistic transformation, and model evaluation.
Explore logistic regression for credit risk, model default_12m(event='1'), interpret odds ratios for each driver, and assess discrimination (AUC/KS) and HL test with lift to deliver a transparent baseline model.
Handle categorical inputs in credit risk models by addressing high-cardinality, rare levels, and separation problems using grouping (Greenacre, WOE) and reference coding (PARAM=REF) to achieve stable, interpretable effects.
Explore how to handle categorical variables in credit risk modelling by computing odds tables and bad rates, and group noisy categories before multivariate modelling to assess level risk.
Explore advanced techniques for high cardinality categorical inputs in credit risk models, combining hierarchical clustering with Greenacre's method to group and order categories for stable, interpretable SAS and Python workflows.
Apply Greenacre ordering and grouping for a single categorical variable, order levels via correspondence analysis, slice into G01-G03, and confirm gradient with group bad rates using simple logistic.
Assess the linearity of the log-odds with empirical-logit checks by binning the score, plotting elogit against mean score, and applying regression or loess; use transforms or spline effects if curved.
Explore lagged and logistic feature engineering by adding simple lags and log transforms to stabilize timing and skew, then recheck lift and calibration after transformations.
Develop intuition through exploratory data analysis (EDA), grouping, timing, odds, and linearity checks. Standardise naming, track AUC/HL/lift, and package assets for review.
Explore module 4: model validation and performance measurement, examining KS, Gini, AUC, and Brier Score. Learn why validation ensures models are accurate, stable, and IFRS 9 compliant.
Explore logistic regression as the baseline approach for PIT PD modelling in credit risk, linking predictor variables to default probability through the log-odds function.
Import and validate the IFRS 9 dataset, verify structure and statistics, and create a stratified 70/30 train-validation split with reproducible defaults for logistic regression modeling.
Train a logistic regression model on the train set using internal score, age, credit utilization, and DPD; score both train and valid data and assess discrimination and stability with ROC.
Explore the roc curve to analyze model performance by plotting sensitivity against 1-specificity at various thresholds. Learn how auc, or c-statistic, measures overall discrimination, with higher values indicating stronger performance.
Use the ROC curve, AUC, and Gini to evaluate how well the model discriminates defaults from non-defaults, with a baseline AUC around 0.61 and stable training versus validation performance.
Explore Gini, lift, and gains metrics to assess credit risk models; learn that Gini is a scaled AUC, and how lift and gains charts convey ranking of borrowers for stakeholders.
Explore Kolmogorov-Smirnov statistic and gains and lift curves through a SAS-based decile analysis of predicted defaults, highlighting K-s values, decile event rates, and model rank ordering in training and validation.
Use the Hosmer–Lemeshow test to assess calibration by comparing predicted and observed default rates, where a high p-value indicates good fit and a low p-value signals miscalibration.
Evaluate model calibration with the Brier score to measure how accurately predicted probabilities match outcomes; lower scores indicate better calibration.
Rank borrowers into deciles of predicted risk and observe higher default rates in the upper deciles to confirm the model's ranking ability.
Demonstrates the Hosmer-Lemeshow test for calibration of predicted defaults, with observed vs expected defaults and a chi-square of 10.17 (p=0.2533), plus a Brier score of 0.126 indicating moderate accuracy.
Explore penalised likelihood measures BIC, AIC, and -2 log likelihood to evaluate model parsimony and fit. Lower values indicate a better balance between complexity and accuracy.
Explore D-statistic and concordance in credit risk modelling, measuring how often predicted risk aligns with observed defaults and the separation between good and bad borrowers.
Explore how association statistics in logistic regression rank credit default risk on validation data. The results show 61% concordant pairs and modest discrimination, via c-statistic 0.611.
Detect population drift with the population stability index (psi), compute psi in seven steps, and monitor model stability with AUC, Gini, kpss statistic, and Brier score.
Advance model evaluation by balancing discrimination, calibration, and business impact under IFRS 9, using metrics like ROC AUC, Gini, and Brier score to ensure accurate ACL and governance readiness.
Calibrate PIT PDs to observed defaults and apply forward-looking adjustments using macroeconomic forecasts and multiple scenarios.
Calibrate pit pd and apply forward-looking adjustments in SAS, using proc logistic to build baseline pd with logit intercept shifts, then project pd paths under base, upside, and downside scenarios.
Adjust raw probability of default predictions using calibration in the large and Platt scaling to correct level and spread biases, preserving rankings while refining the logit-based PD curve.
Calibrate 12 month point-in-time PD using calibration in the large and Platt scaling in SAS, evaluating AIC, likelihood, odds ratios, and the C statistic to improve calibration.
Learn to calibrate macro inputs for pd modeling using arima forecasts of GDP, unemployment, and interest rates, then build baseline, upside, and downside scenarios to drive IFRS 9 ECL.
Overlay macroeconomic drivers into a point-in-time PDE-based logistic PD model to produce forward-looking IFRS 9 12-month PD paths with macro-adjusted scores.
Celebrate progress through calibration and forward-looking adjustments by practicing with the provided data set and code scripts. Build practical model calibration skills with real data to improve predictions.
Explore IFRS 9 staging and SICR assessment, where stage 1 uses 12-month ECL and stages 2–3 use lifetime ECL, with triggers like PD increases, credit score drops, and qualitative events.
Explore the IFRS 9 modelling workflow by setting up the environment, importing and cleaning data, and evaluating staging with 12-month proxy bad rates.
Evaluate IFRS 9 staging timeliness using a proxy bad flag for defaults or 90 days past due, showing stage 1 and 2 perform and stage 3 is defaulted.
Assess the lift table showing how predicted default scores separate good and bad accounts via deciles and observed defaults, and illustrate transition matrices for stage migrations under IFRS 9.
Implement a simple IFRS 9 staging macro that assigns accounts to stage one, two, or three using rule-based logic, prints sample results, and analyzes stage distribution and PSI drift.
Recaps IFRS 9 staging and evaluation techniques, including macro-based staging framework and diagnostics like default rates, population stability analysis, lift tables, and transition matrices for accurate PD and ECL models.
Explore lifetime probability of default modelling with cohort analysis, survival analysis, and transition matrices, and apply it to stage 2 and stage 3 ECL.
Explore how a Cox survival model derives time-varying and lifetime PD from an enriched loan panel, enabling IFRS 9 expected credit loss calculations with Kaplan-Meier estimation and macro covariates.
Group loans into monthly SAS cohorts, track defaults, estimate 12-month and lifetime PDs with Kaplan-Meier survival, and compute IFRS 9 ECL.
Master the transition matrix method to estimate lifetime PD using a SAS script from loan data, including absorbing states, and compute n-step PDs for IFRS 9 expected credit loss.
Master survival analysis for credit risk and learn forward-looking PD modeling with Kaplan-Meier, Cox proportional hazards model, and transition matrices, preparing for IFRS 9 lifetime and 12-month ECL calculations.
Explore loss given default and its role in the IFRS nine ECL framework. Identify factors such as collateral, loan type, seniority, borrower quality, and macroeconomics that shape LGD.
Learn how to prepare a quality LGD data set for IFRS 9 and Basel 3.1, by defining LGD, setting observation and performance windows, and addressing missing values, outliers, and segmentation.
Explore linear regression as a transparent LGD benchmark, showing how LTV, collateral coverage, and GDP growth influence losses, with SAS and Python implementations.
Explore beta regression and fractional response regression to model loss given default within 0 to 1, using logit links and interpretable coefficients for IFRS nine forecasting.
Explore inflated beta regression for loss given default, combining zero, one, and beta components to model full recoveries, total losses, and partial LGD.
Explore the mixed effects LGD model that combines fixed and random effects to capture unobserved recovery factors across industry, region, and macro conditions, aligned with IFRS Nine and Basel.
Explore model validation for LGD by comparing linear regression, beta regression, inflated beta regression, and mixed effects models, and assess accuracy, stability, and interpretability under IFRS 9 and Basel III.
Explore how loss given default LGD integrates IFRS 9 provisions and Basel 3.1 capital, tying PD, EAD, and ECL to downturn and through-the-cycle calibrations.
Explore an end-to-end LGD modelling case study that delivers production-ready IFRS 9 and Basel 3.1 compliant models using 2007–2018 default data and a four-phase workflow.
Recap advanced LGD modeling from fundamentals to mixed effects, align LGD with IFRS 9 and Basel, and prepare for ECL by linking PD, LGD, and AAD.
Learn to apply logit transformation to LGD, back-transform predictions with inverse logit, and build OLS model on logit space in SAS for IFRS 9 lifetime PD with 70/30 train-test split.
Learn to apply beta regression with SAS GLIMMIX to estimate LGD, bound predictions between 0 and 1, use the logit link, and score new data with PLM.
Explore median quantile regression for loss given default in IFRS 9, using SAS to model LGD at the 50th percentile, with data import, training/testing, bootstrapped CIs, and MAE/RMSE evaluation.
Present a SAS decision tree regression for loss given default, with a 70/30 train-test split, LTV ratio feature, and pruning, highlighting seniority and LTV as key predictors.
Demonstrate loss given default estimation with linear regression in the IFRS 9 framework, including LTV, interest rate, days past due, and guarantee flag as predictors, clipping to 0–1, and evaluation.
Model lgd with a fractional logit using sas proc mixed, keeping predictions in 0–1 via logit link, and highlight ltv and guarantee flag as key drivers for IFRS 9 analysis.
Build a SAS beta regression with random regional effects using proc glimmix on lgd data, then score with plm and report mae and rmse.
Extend the lgd framework to zero, mid, and one outcomes with a two-part A01 inflated beta model, combining multinomial logistic for class probabilities and beta regression for the fractional part.
Master exposure at default (EAD) modelling as the final pillar of the ECL framework, combining PD, LGD, and expected drawdowns with CCFs for IFRS 9 and Basel calculations.
Explore how the credit conversion factor converts undrawn commitments into drawn exposure to estimate exposure at default, and apply it under IFRS 9 and Basel 3.1 for forward-looking EAD modeling.
Explore data preparation for EAD modelling, designing robust, regulator-ready datasets with observation and default windows, calculating CCF, and validating data quality for IFRS 9 compliant exposure analysis.
Explore linear and log linear regression foundations for estimating exposure at default (EAD) using drivers like utilization, rating, tenor, collateral, and GDP growth; set the stage for Tobit models.
Learn Tobit and truncated regression to model EAD and CCF within natural bounds, implement in SAS and Python, and interpret results for IFRS 9 and Basel 3.1 compliance.
Apply beta regression and fractional response regression to model exposure at default and credit conversion factors within 0 to 1, with SAS and Python implementations under IFRS 9 Basel 3.1.
Model the credit conversion factor using regression and logistic methods, interpret drivers, and integrate results into EAD and ECL under IFRS 9 and Basel frameworks.
Learn to validate EAD models across time, portfolios, and economic cycles using quantitative and qualitative checks to ensure IFRS 9 and Basel 3.1 compliance and audit-ready governance.
Integrate IFRS 9 EAD with Basel 3.1 for aligned provisioning and capital adequacy through a shared data foundation, macroeconomic scenarios, and dual calibration driving ECL and RWA.
Transform raw exposure data into an IFRS 9 compliant end-to-end EAD modelling case study, from data prep to ECL integration, using OLS, Tobit, beta regression, and two-stage logistic modeling.
Recap the transition from exposure at default to expected credit loss by integrating PD, LGD, and EAD within IFRS 9 and Basel 3.1 frameworks, with forward-looking, scenario-based validation.
Understand how to compute expected credit loss by multiplying PD, LGD, and EAD, discount with the effective interest rate, and generate portfolio-level reports and IFRS 9 disclosures.
Demonstrate end-to-end IFRS 9 ecl calculation by combining pd, lgd, and ead with discount factors, and aggregate 12-month and lifetime ecl across stages with scenario weighting in sas.
Finish section eight to learn how to combine pd, lgd, and ead into the IFRS 9 ecl formula, calculate 12-month and lifetime ecl, apply discounting, and test scenario sensitivity.
Important Notice
This is an advanced, expert-level English course .
It assumes prior knowledge of credit risk and programming (SAS/Python/R).
If you are a beginner, please take a foundation-level IFRS 9 course before this one.
AI Voice Disclaimer: The lectures are narrated using an AI-generated voice for clarity and consistency.
Who This Course Is For (Intended Learners)
This course is for you if:
You are a Credit Risk Analyst / Data Scientist working in banking or financial services.
You are preparing for IFRS 9, Basel 3.1, or regulatory model validation roles.
You already know logistic regression, survival analysis, or credit risk basics, and want to apply them in SAS/Python.
Not for beginners in finance or programming.
Requirements / Prerequisites
Strong background in statistics / econometrics.
Familiarity with credit risk concepts (PD, LGD, EAD, staging).
Working knowledge of SAS, Python, or R.
Basic understanding of financial regulations (IFRS 9, Basel II/III) is recommended.
What You’ll Learn (Learning Objectives)
By the end of this expert-level course in English, you will:
Build 12-month Point-in-Time (PIT) PD models with SAS & Python.
Develop Lifetime PD models using Cox Proportional Hazard and survival analysis.
Implement IFRS 9 staging rules (Stage 1, 2, 3).
Integrate macroeconomic variables into scenario-based PD forecasting.
Calculate Expected Credit Loss (ECL) under baseline, optimistic, and adverse scenarios.
Validate, monitor, and report IFRS 9 models to meet regulatory standards.