
Fit the logistic regression model on training data, generate predictions for credit_test, visualize predicted probabilities, and convert them into 0/1 class labels using a 0.6 threshold to identify defaults.
Apply a 0.6 threshold to predicted probabilities to generate zero-one labels, then fit and evaluate a credit risk model in R using the CR package for ROC and AUC analyses.
Explore data for a probability of default model in r by importing Lending Club loan data, inspecting 145 variables across 133,889 observations, and preparing loan status for binary default prediction.
Collapse charged off and default into a single default category and keep fully paid as not default; use str_detect and if_else to create two loan_status states and summarize with group_by.
Identify and remove zero-variance predictors in a credit risk dataset using R, define helpers to extract numeric, character, and factor columns, and drop the zero-variance feature policy_code.
Every time an institution extends a loan, it faces credit risk. It is the risk of economic loss that every financial institution faces when an obligor does not fulfill the terms and conditions of his contracts. Measuring and managing the credit risk and developing, implementing strategies to help lowering the risk of defaults by borrowers becomes the core of any risk management activities.
Financial institutions make use of vast amounts of data on borrowers and loans and apply these predictive and statistical models to aid banks in quantifying, aggregating and managing credit risk across geographies and product lines.
In this course, our objective is to learn how to build these credit risk models step by step from scratch using a real life dataset.
The course comprises of two sections: 1) Developing a credit risk scorecard and 2) Developing a Probability of Default (PD) model. We will build a predictive model that takes as input the various aspects of the loan applicant and outputs the probability of default of the loan applicant. PD is also the primary parameter used in calculating credit risk as per the internal ratings-based approach (under Basel guidelines) used by banks.
In this course, we will perform all the steps involved in model building and along the way, we will also understand the entire spectrum of the predictive modeling landscape.