✕
Finance & Accounting

Credit Risk Analytics using Python and R Training

Credit Risk Analytics using Python and R Training is an intensive 10-day programme that equips finance and risk professionals with the quantitative skills and programming expertise needed to build, validate, and interpret credit risk models. Participants learn to apply Python and R across the full credit risk lifecycle — from data preparation and scorecard development to regulatory capital estimation and model governance. The course blends rigorous statistical theory with hands-on coding exercises drawn from real banking and lending datasets.

⏱ 10 Days 📡 In-Person 🎯 Intermediate From KES 160,000
🏦 Part of our Banking & Financial Services Industry Training Series — browse all related courses →

About This Course

Credit risk remains one of the most consequential disciplines in modern banking and financial services. As regulators raise expectations around model transparency, stress testing, and capital adequacy, institutions are increasingly demanding professionals who can combine deep credit risk knowledge with practical data science capabilities. The ability to build probability-of-default models, estimate loss given default, and validate scorecards using open-source tools such as Python and R has become a core competency for risk analysts, quantitative modellers, and credit officers alike.

This 10-day programme delivered by TrainingComplex provides a rigorous, end-to-end curriculum that bridges credit risk theory and applied analytics. Beginning with the foundations of credit risk measurement and the Basel regulatory framework, the course progresses through data wrangling, exploratory analysis, logistic regression, machine learning-based credit models, and survival analysis techniques. Each day builds on the last, ensuring participants develop both conceptual clarity and the hands-on coding confidence to implement solutions in their own organisations.

Python and R are taught in tandem throughout the programme, allowing participants to appreciate the complementary strengths of each language — Python's extensive machine learning ecosystem and R's mature statistical modelling and visualisation libraries. Real banking datasets are used throughout, and participants complete a capstone project in which they design, build, and present a full credit risk model pipeline from raw data through to regulatory reporting outputs.

This course is ideal for professionals working in credit risk, retail and corporate lending, model validation, treasury, or financial regulation who wish to upgrade their analytical toolkit and contribute meaningfully to data-driven risk management. No prior Python or R experience beyond basic familiarity is assumed, though participants with some quantitative background will progress the furthest.

Who Should Attend

Learning Objectives

Course Modules

Module 1: Foundations of Credit Risk and the Regulatory Landscape

  • Definition and taxonomy of credit risk: default risk, concentration risk, counterparty risk, and country risk
  • Key credit risk metrics: Probability of Default (PD), Loss Given Default (LGD), Exposure at Default (EAD), and Expected Loss (EL)
  • Basel II, III, and IV frameworks: standardised approach vs. internal ratings-based (IRB) approach
  • IFRS 9 expected credit loss model: three-stage classification and forward-looking provisioning requirements
  • Role of credit rating agencies and internal rating systems in risk measurement
  • Overview of model risk management: SR 11-7, EBA guidelines, and the model lifecycle

Module 2: Python and R Environment Setup for Credit Risk Analytics

  • Setting up Anaconda, Jupyter Notebook, and RStudio for a reproducible credit analytics workflow
  • Key Python libraries for credit risk: pandas, NumPy, matplotlib, seaborn, scikit-learn, statsmodels, and lifelines
  • Key R packages: tidyverse, scorecard, caret, survival, ggplot2, and xgboost
  • Data import and export: reading loan tapes, credit bureau extracts, and financial datasets in CSV, Excel, and SQL formats
  • Version control fundamentals with Git for model reproducibility and audit trails
  • Best practices in script organisation, commenting, and notebook documentation for regulatory review

Module 3: Credit Data Wrangling and Exploratory Analysis

  • Understanding typical credit dataset structures: application data, behavioural data, bureau data, and performance data
  • Handling missing values in credit data: deletion, mean/median imputation, and model-based imputation strategies
  • Detecting and treating outliers in financial variables such as income, debt-to-income ratio, and loan amount
  • Exploratory data analysis: distribution plots, correlation matrices, and time-series trends in default rates
  • Vintage analysis: constructing default rate curves by origination cohort to understand portfolio seasoning
  • Feature engineering: creating derived variables such as utilisation rates, payment-to-income ratios, and days-past-due flags

Module 4: Weight of Evidence, Information Value, and Variable Selection

  • Conceptual basis of Weight of Evidence (WoE) transformation and its role in logistic regression scorecards
  • Calculating WoE and Information Value (IV) manually and using Python's scorecardpy and R's scorecard packages
  • Interpreting IV thresholds: rules of thumb for predictive power classification in credit modelling
  • Fine and coarse classing of continuous and categorical variables for WoE binning
  • Variable selection strategies: IV filtering, Spearman correlation screening, and stepwise regression
  • Documenting variable selection decisions for model governance and regulatory submission

Module 5: Logistic Regression and Scorecard Development

  • Logistic regression theory: the logit link function, odds ratios, and coefficient interpretation in a credit context
  • Building a logistic regression PD model in Python using statsmodels and scikit-learn
  • Replicating the model in R using the glm function and the scorecard package
  • Scaling model output to points: converting log-odds to a scorecard with PDO (points to double odds) scaling
  • Model coefficient sign checking, multicollinearity diagnostics, and variance inflation factor (VIF) analysis
  • Generating application scorecards with cut-off strategies for loan approval, pricing, and limit setting

Module 6: Model Performance Evaluation and Validation

  • Discriminatory power metrics: ROC curve, AUC, Gini coefficient, and KS statistic — calculation and interpretation
  • Calibration assessment: Hosmer-Lemeshow test, reliability diagrams, and predicted vs. actual default rate comparison
  • Population stability index (PSI) and characteristic stability index (CSI) for monitoring model drift over time
  • Back-testing methodology: out-of-time and out-of-sample validation frameworks
  • Benchmarking: comparing scorecard performance against challenger models and industry benchmarks
  • Documenting validation findings in a model validation report aligned with regulatory expectations

Module 7: Machine Learning Models for Credit Classification

  • Decision trees for credit risk: CART methodology, pruning, and interpretability considerations
  • Ensemble methods: Random Forest and Gradient Boosting Machines — how bagging and boosting improve predictive power
  • XGBoost for credit default prediction: hyperparameter tuning with cross-validation in Python and R
  • Model interpretability tools: SHAP (SHapley Additive exPlanations) values for explaining individual credit decisions
  • Handling class imbalance in credit datasets: SMOTE, cost-sensitive learning, and threshold adjustment techniques
  • Regulatory and ethical considerations of machine learning in credit decisioning: fairness, adverse action, and explainability

Module 8: LGD and EAD Modelling

  • Economic and regulatory definitions of Loss Given Default: the cure rate, recovery rate, and collateral valuation concepts
  • Data requirements for LGD modelling: workout data, recovery timelines, and discounting cash flows
  • Regression approaches to LGD modelling: beta regression, two-stage models, and censored regression in Python and R
  • Exposure at Default modelling for revolving facilities: credit conversion factors (CCF) and behavioural limits
  • Sensitivity of EL to LGD and EAD assumptions: scenario analysis and conservative margin of caution adjustments
  • IFRS 9 vs. Basel IRB LGD: differences in downturn adjustments, discounting, and eligible collateral recognition

Module 9: Survival Analysis and Lifetime Credit Loss Modelling

  • Introduction to survival analysis: the survival function, hazard function, and censoring in credit default data
  • Kaplan-Meier estimator: plotting survival curves by risk segment in Python (lifelines) and R (survival package)
  • Cox proportional hazards model: estimating time-to-default with covariate adjustment
  • Accelerated failure time (AFT) models as an alternative to the Cox model in credit risk applications
  • Multi-period PD term structure: projecting conditional PDs across the lifetime of a loan for IFRS 9 Stage 2 and Stage 3
  • Integrating survival model outputs into lifetime expected credit loss (LECL) calculations for IFRS 9 reporting

Module 10: Stress Testing and Macro-Economic Scenario Modelling

  • Purpose and regulatory basis of credit risk stress testing: EBA, Federal Reserve DFAST, and central bank stress test frameworks
  • Linking macro-economic variables (GDP growth, unemployment, interest rates) to PD through satellite models
  • Building a vector autoregression (VAR) or OLS-based macro-credit linkage model in Python and R
  • Scenario design: constructing baseline, adverse, and severely adverse macro-economic paths
  • Translating stressed PD, LGD, and EAD estimates into stressed expected loss and capital impact
  • Presenting stress test results to senior management and the board: narrative, tables, and visualisation best practices

Module 11: IFRS 9 Impairment Modelling and Regulatory Reporting

  • IFRS 9 staging criteria in practice: significant increase in credit risk (SICR) triggers and backstop provisions
  • Forward-looking information: sourcing, weighting, and incorporating macro-economic forecasts into ECL calculations
  • Probability-weighted scenario approach for ECL: constructing weighted average ECL across multiple macro scenarios
  • Building an IFRS 9 ECL calculation engine in Python: loan-level staging, PD term structure, and discounting
  • Reconciling model-derived provisions with management overlays and expert credit judgement
  • Regulatory disclosure requirements: IFRS 7 credit risk disclosures, pillar 3 reports, and auditor liaison

Module 12: Model Governance, Documentation, and Risk Culture

  • The model lifecycle: development, approval, implementation, monitoring, and retirement phases
  • Writing a model development document (MDD): structure, required content, and evidence standards for regulatory review
  • Independent model validation: roles, responsibilities, and governance structures in financial institutions
  • Model risk rating frameworks: assigning materiality and tiering to credit models across the portfolio
  • Embedding model governance in risk culture: training, escalation protocols, and the role of the chief risk officer
  • Regulatory interaction on credit models: responding to supervisory findings, model approval processes, and remediation plans

Module 13: Capstone Project: End-to-End Credit Risk Model Pipeline

  • Project scoping: defining the business problem, target variable, modelling population, and performance window
  • Data pipeline construction: ingesting, cleaning, and feature-engineering a provided real-world loan dataset
  • Model selection and build: comparing scorecard, logistic regression, and gradient boosting approaches with documented rationale
  • Validation and stress testing: applying back-testing, PSI monitoring, and a macro-economic stress scenario to the chosen model
  • IFRS 9 integration: computing ECL at loan level using the developed PD term structure and LGD estimates
  • Final presentation: each participant or team presents their model, validation findings, and governance documentation to the cohort and receives structured peer and instructor feedback

Requirements & Prerequisites

Participants should have a working knowledge of credit risk concepts such as loan classification, provisioning, and portfolio management. Familiarity with basic statistics — including regression, probability distributions, and hypothesis testing — is expected, as the course moves quickly into applied modelling. Prior exposure to Python or R at a beginner level is helpful; participants who have never written code before are advised to complete a short introductory programming tutorial before attending.

Training Methodology

Organisational Benefits

Where Is Credit Risk Analytics using Python and R Training Offered?

This course runs in-person across: Abuja, Arusha, Nakuru, Addis Ababa, Dubai, Nairobi, Zanzibar, Kisumu, Pretoria, Kigali, Kampala, Cape Town, Lagos, Riyadh, Naivasha, Mombasa, Dar es Salaam, Accra, Johannesburg, plus Live Virtual (online) cohorts. Browse live dates for your city below.

Upcoming Schedules

LocationFormatDatesPrice
Live Virtual Online 24 Oct 2026 – 13 Dec 2026 KES 160,000
Live Virtual Online 26 Oct 2026 – 4 Nov 2026 KES 160,000
Abuja, Nigeria In-Person 26 Oct 2026 – 4 Nov 2026 USD 5,600
Arusha, Tanzania In-Person 26 Oct 2026 – 4 Nov 2026 USD 4,200
Nakuru, Kenya In-Person 26 Oct 2026 – 4 Nov 2026 KES 240,000
Addis Ababa, Ethiopia In-Person 26 Oct 2026 – 4 Nov 2026 USD 4,800
Dubai, United Arab Emirates In-Person 26 Oct 2026 – 4 Nov 2026 USD 8,200
Nairobi, Kenya In-Person 26 Oct 2026 – 4 Nov 2026 KES 230,000
Zanzibar, Tanzania In-Person 26 Oct 2026 – 4 Nov 2026 USD 5,000
Kisumu, Kenya In-Person 26 Oct 2026 – 4 Nov 2026 KES 240,000
Pretoria, South Africa In-Person 26 Oct 2026 – 4 Nov 2026 USD 6,600
Dubai, United Arab Emirates In-Person 2 Nov 2026 – 13 Nov 2026 USD 8,200
Zanzibar, Tanzania In-Person 2 Nov 2026 – 11 Nov 2026 USD 5,000
Nakuru, Kenya In-Person 2 Nov 2026 – 11 Nov 2026 KES 240,000
Nairobi, Kenya In-Person 2 Nov 2026 – 13 Nov 2026 KES 230,000

+227 more dates — view live schedule →

Frequently Asked Questions

Do I need to be an experienced programmer before attending this course?

Prior programming experience is not required, but participants should have at least basic familiarity with Python or R — such as having run scripts and worked with data frames. Those who have never coded before are strongly encouraged to complete a free introductory Python or R tutorial before the course begins, as the programme moves quickly into applied modelling from Day 1.

Will I receive a certificate on completion?

Yes. Participants who attend the full programme and complete the capstone project receive a TrainingComplex Certificate of Completion in Credit Risk Analytics using Python and R, which can be referenced on a professional CV and LinkedIn profile.

What software will I need, and will it be provided?

Participants should bring a laptop with Anaconda (Python 3.x) and RStudio installed prior to arrival — both are free to download. Detailed installation instructions and a pre-course setup guide are shared by TrainingComplex in advance. All datasets, code templates, and course materials are provided digitally during the programme.

Is this course applicable to IFRS 9 and Basel regulatory requirements?

Yes — regulatory alignment is a central theme throughout the course. Dedicated modules cover IFRS 9 expected credit loss modelling, Basel IRB requirements for PD/LGD/EAD, and model governance frameworks consistent with EBA guidelines and SR 11-7. Participants leave with practical tools they can apply directly to regulatory reporting and capital adequacy work.

Can this course be delivered in-house for a bank or financial institution?

Absolutely. TrainingComplex offers customised in-house delivery of this programme for teams of six or more, with the curriculum tailored to the institution's specific loan products, internal datasets, and regulatory jurisdiction. Please contact TrainingComplex directly to discuss a bespoke proposal.

View Live Schedule & Book →