Skip to content
+1 516.935.0923 [email protected] My Cart
GFMI logo
  • About Us
    • Our Story
    • Our Team
    • Our Clients
    • Strategic Alliance
    • Our Associations
  • Services
    • Training Needs Analysis
    • Custom Built Training
    • Subject Matter Experts
  • Training Courses
    • Alternative Investments
    • Asset Liability Management
    • Capital Markets
    • Commodities
    • Corporate Finance Course
    • Credit and Credit Analysis Course
    • Credit Derivatives
    • Derivatives
    • Digital Assets
    • Economics
    • Equities
    • Financial Statement Analysis Accounting
    • Fixed Income Courses
    • Foreign Exchange
    • Insurance
    • Municipals
    • Mutual Funds and ETFs
    • Operations
    • Portfolio Management
    • Quantitative Methods and Excel
    • Regulation and Compliance
    • Risk Management
    • Securities Lending — Repurchase Agreements
    • Securitization and Structured Finance
    • Structured Products
    • Wealth Management
  • Training Methods
    • Classroom Training
    • Virtual Instructor-Led Training (VILT)
    • Online Learning — eLearning
    • Financial Simulation
    • Blended Learning
  • Insights
    • eNews
    • Articles
    • Glossary
    • Blog
    • Case Studies
  • Contact us
DOWNLOAD OUR FULL COURSE LIST
Global Financial Markets Institute»Project-based Intermediate-Level Python Class: Case Study on Credit Risk Modeling

Project-based Intermediate-Level Python Class: Case Study on Credit Risk Modeling

In this course we will work with a realistic consumer loan portfolio dataset to model credit risk, emphasizing compliance with bank regulation, namely the Basel Accords. We will begin with a brief review of Python’s fundamental concepts. Using finance related exercises, we will review working with variables, logic, looping, and defining functions. Then we will import the data and spend time manipulating and cleaning the dataframes. We will work to preprocess both discrete and continuous variables so that they are ready for objective analysis.

Next, we will review the components required to calculate expected loss on a single loan and on a bank’s loan portfolio. First, we will develop a model for probability of default. To help us determine which variables have the most predictive power, we can visualize the weight of evidence and calculate the information value. We will use machine learning to run a logistic regression. Using the Scikit-learn library we will split the data into a training and a test dataset, create dummy variables, and run the logistic regression to predict probability of default.

Later, we will evaluate the accuracy of our model using an ROC, among other metrics. Using our model results, we will generate a scorecard, from which we can determine a cutoff credit score. Taking a similar approach using both linear and logistic regression, we will develop a loss given default model and an exposure at default model.

Ultimately, we will combine the results of these three models to determine the portfolio’s expected loss. We can compare this portfolio loss to the capital held for regulation compliance to fine-tune the bank’s lending credit score cutoff.

Course Objectives

By the end of the course, participants will be able to:

  • Work with variables, logic, looping, and defining functions in Python
  • Use popular commands and tools in many important libraries
  • NumPy, Pandas, MatPlotLib, Seaborn, Pickle, and Scikit-learn
  • Import and manipulate enormous datasets efficiently
  • Preprocess the dataset so it can be used in objective models
  • Perform calculations quickly using Python’s ability to apply vectorization
  • Define functions and classes to expedite analysis
  • Run multiple linear regression and interpret results
  • Use machine learning to run logistic regression and interpret results
  • Develop three models: probability of default, loss given default model, and exposure at default
  • Evaluate the predictive power of various independent variables, visualize their weight of evidence, and fine tune the models
  • Import and Export models using Pickle
  • Evaluate the portfolio’s expected loss

Suggested Prerequisites: Introduction to Python

Program Level: Intermediate

Advance Preparation: Participants must have Python and Spyder which come with the Anaconda distribution: https://www.anaconda.com/download/. If Python was installed via Anaconda Distribution, you will already have many of the packages that we need for this course.

Computers and Financial Calculators: Computers and Microsoft Excel

Recommended CPE Credits: 12

Find out how we can help your organization.

  • About Us
    • Our Clients
    • Our Story
    • Our Team
    • Our Associations
    • Strategic Alliance
  • Insights
    • Newsletter
    • Articles
    • Glossary
    • Blog
    • Case Studies
  • Services
    • Training Needs Analysis
    • Custom Built Training
    • Subject Matter Experts
  • Training Methods
    • Classroom Training
    • Online Learning — eLearning
    • Virtual Instructor-Led Training (VILT)
    • Financial Simulation
    • Blended Learning
  • Training Courses
    • Alternative Investments
    • Asset Liability Management
    • Capital Markets
    • Commodities
    • Corporate Finance
    • Credit and Credit Analysis
    • Credit Derivatives
    • Derivatives
    • Digital Assets
    • Economics
    • Equities
    • Financial Statement Analysis and Accounting
    • Fixed Income
  • Foreign Exchange
  • Insurance
  • Municipals
  • Mutual Funds and ETFs
  • Operations
  • Portfolio Management
  • Quantitative Methods and Excel
  • Regulation and Compliance
  • Risk Management
  • Securities Lending — Repurchase Agreements
  • Securitization Course – Structured Finance
  • Structured Products
  • Wealth Management
SIGN UP FOR OUR NEWSLETTER

Connect with us

Ⓒ 2024 Copyright Global Financial Markets Institute.

Powered by Power On Marketing

Privacy Policy

  • About Us
    ▼
    • Our Story
    • Our Team
    • Our Clients
    • Strategic Alliance
    • Our Associations
  • Services
    ▼
    • Training Needs Analysis
    • Custom Built Training
    • Subject Matter Experts
  • Training Courses
    ▼
    • Alternative Investments
    • Asset Liability Management
    • Capital Markets
    • Commodities
    • Corporate Finance Course
    • Credit and Credit Analysis Course
    • Credit Derivatives
    • Derivatives
    • Digital Assets
    • Economics
    • Equities
    • Financial Statement Analysis Accounting
    • Fixed Income Courses
    • Foreign Exchange
    • Insurance
    • Municipals
    • Mutual Funds and ETFs
    • Operations
    • Portfolio Management
    • Quantitative Methods and Excel
    • Regulation and Compliance
    • Risk Management
    • Securities Lending — Repurchase Agreements
    • Securitization and Structured Finance
    • Structured Products
    • Wealth Management
  • Training Methods
    ▼
    • Classroom Training
    • Virtual Instructor-Led Training (VILT)
    • Online Learning — eLearning
    • Financial Simulation
    • Blended Learning
  • Insights
    ▼
    • eNews
    • Articles
    • Glossary
    • Blog
    • Case Studies
  • Contact us
Our site uses cookies. By continuing to use our site you are agreeing to our cookies policy.