
Why I built this course, why it grew beyond the planned 15 hours, and why the real stories from the risk floor are worth your time.
What this course covers, how the notebook-per-lecture system works, and the scorecard, monitoring, and ECL projects you will build.
The 17-good-loans-for-1-bad-loan math. Interest income, cost of funds, opex and credit cost: how a lending business actually makes money.
Personal loans, business loans, credit cards, gold loans and BNPL. How risk profile, ticket size and tenure differ across products.
Who does what in lending: banks, NBFCs, fintechs and the RBI, plus how FLDG partnerships actually work.
DPD buckets from 0 to 90+, NPA definitions, and the delinquency vocabulary used on every risk floor. Includes a Python notebook.
Build roll rate matrices and vintage curves in Python from raw repayment data. The two charts every portfolio review runs on.
Credit risk team structures, role progression from analyst to head of risk, and how the rest of this course maps to that journey.
A roadmap of the lending workflow module: the 7-stage loan lifecycle, sourcing channels, credit underwriting, DPD buckets, and collections. I explain why understanding how a loan actually happens at an NBFC is the difference between an analyst who codes models and one who is trusted with them. Watch this first: it sets up a question that takes all five videos to answer.
Follow the complete loan lifecycle through one borrower: app download, PAN and consent, bureau pull, acquisition scorecard, underwriting, eNACH mandate, disbursal, EMI cycles, and the three ways a loan ends. This 7-stage map returns in every video of this course, with every model you will build pinned to its stage. By the end you will know exactly where a scorecard, roll rates, and ECL each live.
Loan sourcing channels decide portfolio risk before underwriting ever sees a file: DSAs, digital aggregators, organic traffic, co-lending and FLDG partnerships, and repeat customers. I walk through the incentive problems behind each channel and a real pattern where every channel stayed stable while the portfolio got worse. You will learn why risk teams manage the doors, not just the files.
Credit underwriting in 90 seconds: how the bureau report is read, why policy rules fire before the scorecard, and how score bands map to approve, refer, and decline with ticket size and pricing. This is the stage the entire scorecard-building module serves, so we open the decision engine layer by layer. Includes how the refer queue and deviation approvals are tracked in real NBFC risk teams.
DPD is the single most important field in credit risk data, and this lecture covers it end to end: EMI presentation, bounce and re-presentation, SMA-0 to SMA-2 buckets, the RBI NPA line, and roll rates between buckets. I also defend this course's bad definition on the record: ever 30+ DPD within 12 months on book, and why a conservative line beats waiting for 90+. Every model you build later stands on this lecture.
Loan collections and recovery from the inside: the escalation ladder from soft calls to field visits to legal, the can't-pay versus won't-pay split, settlement math, and what a write-off really means for borrower and lender. This lecture also answers the question posed at the start of the module: the stage where NBFCs truly lose the most money, and why most people guess wrong. It closes the lending workflow and hands you off to the scorecard build.
A roadmap of the credit bureau data module: loading raw CIBIL files into pandas, decoding DPD strings, aggregating tradelines to customer-level features, engineering enquiry velocity signals, and enforcing point-in-time correctness so your models never leak. This is the most hands-on module so far — every video is you and a notebook. Watch this first to see how the six videos build into one reusable bureau feature library.
A raw CIBIL bureau report is not one table, it is four: consumer, tradelines, enquiries and scores, each at a different grain. In this hands-on lecture you load the raw files into pandas, split them into four clean dataframes, fix the grain of each one, and handle the messy realities of bureau data: duplicate tradelines, inconsistent date formats and missing account records. Get this right and every feature you build afterwards is trustworthy.
DPD strings are how bureaus encode thirty-six months of payment history into a single field, and they are the richest signal in the entire report. You will parse those strings in Python, convert them into month-by-month delinquency arrays, and engineer the features risk teams actually use: ever 30+, ever 60+, ever 90+, worst DPD, times delinquent, and recency of the last delinquency. This is the lecture that turns raw payment history into model-ready risk signals.
Modelling needs one row per customer, but bureau data arrives as many tradelines per customer. In this lecture you aggregate accounts into a single modelling row using pandas groupby: total and unsecured exposure, credit utilisation, number of active and closed accounts, oldest and newest account vintage, and product-mix features. You will also handle the traps that break aggregations, including closed accounts, joint accounts and customers with no tradelines at all.
Enquiry velocity is one of the strongest early warning signals in credit risk: a borrower applying to six lenders in a week is telling you something the bureau score has not caught up to yet. You will build enquiry counts across 7, 30, 90 and 180-day windows, engineer velocity and acceleration features, and separate genuine shopping from credit hunger. Includes why the analysis date must be an explicit parameter, and how enquiry features quietly leak if it is not.
A roadmap of the target definition module: what application, behavioural and collections scorecards actually are, how to build a performance base with a correct observation point and take up window, vintage curves that show when a cohort's bad rate flattens, roll rate matrices that reveal the point of no return, and the good bad indeterminate split you will freeze into a modelling dataset. Along the way you will meet the leakage trap that inflates KS into the 80s and makes a broken model look brilliant. Every choice in this module is one you will defend in a model review, so watch this first to see how the five videos build to a single documented definition.
A scorecard is a risk measurement machine, not a rejection machine. This lecture covers what an application scorecard actually produces, how score maps to odds and probability of default, and where behavioural and collections scorecards sit in the credit lifecycle. You will also see why the bad definition, not the algorithm, sets the ceiling on how good your model can ever be.
Build the performance base for a credit risk model in Python. We start with 10,000 personal loan applications, most of which were rejected, and use a CIBIL scrub to find who borrowed elsewhere in the market. You will set the observation point, apply a 90 day take up window and a 30k to 10L amount band, decode the CIBIL payment history string into months on book, and watch a live demonstration of the leakage trap that adds ten points of fake KS.
Vintage analysis in Python, step by step. Plot cumulative bad rate against month on book for 30+, 60+ and 90+ DPD, then split the same chart by disbursal cohort to separate accounts getting older from your book getting worse. You will measure exactly where the curve stops climbing instead of eyeballing it, and confirm the bend is real behaviour by rerunning everything on accounts with a complete 24 month history.
Roll rate analysis picks the delinquency threshold that vintage curves cannot. Build month end transition matrices for MOB 6 to 12, 12 to 18 and 18 to 24, then pool them into one cure rate chart. You will watch the cure rate collapse from 68 percent to 15 percent across a single bucket boundary, see why 180+ is a perfectly absorbing state, and learn the rule about never reading a rate off a cell with fewer than thirty accounts.
Lock the bad definition and freeze the modelling dataset. Apply exclusions for incomplete performance and first payment default, split the base into good, bad and indeterminate, and prove empirically that the indeterminate group really does sit between the other two rather than being a bucket you widened to taste. You will finish with a target column, a frozen CSV and a target definition memo generated from the same numbers that built the file, which is the first document model risk will ask you for.
A three minute roadmap of the scorecard build before any code runs.
You will see the five videos in this module and why they run in this order: bureau variables from tradelines, enquiry variables and the modelling base, IV and WOE variable selection, training the logistic regression, then KS and accuracy.
You will also see where this module deliberately stops. Points scaling with PDO, PSI and CSI, out of time validation and cutoff selection are Module 6. Reject inference is Module 7. Knowing that boundary up front is what separates a disciplined build from a pile of notebooks.
We take the locked base from Module 4 and attach 221 bureau variables to it, all anchored to each customer's own login date. The real work here is leakage removal in three passes: the proxy loan comes out by name (7,586 accounts), every tradeline opened after login goes (4,372 more), and the payment history string itself gets trimmed on 75,776 accounts at a median of 21 months each. Most courses skip that last one entirely. You will also see why a null sometimes means zero and sometimes means unknown, and why filling both with 0 quietly damages a model.
Tradelines tell you what a borrower already has. Enquiries tell you what they have been asking for, which is usually the earlier signal. We build 117 enquiry variables from three usable columns using five repeating patterns, then merge everything into a 348 variable modelling base with FOIR and loan to income. Along the way we find our own bureau pull sitting in the enquiry file on every single applicant's login day, inflating every count by one and making days since last enquiry a constant. Finding and removing it turns a dead variable into one of the strongest in the model.
Split before you bin, or the test set is no longer a test set. We split by login month rather than at random, bin every variable, compute weight of evidence and information value on train only, then cut. You will also see how to handle an IV table where 99 variables score above 0.5: most are duplicates, and the proof that nothing leaked is a single extra column comparing IV in train against IV in test. Selection is two conditions on one line, then correlation pruning, then model gain.
The fitting is four lines. Everything else is about the gap between train and test. We start with tutorial default settings and get a train AUC of 0.98 against a test AUC of 0.81, then sweep depth and tree count to show that test AUC barely moves while train AUC runs away. The final model uses depth 2 and 200 trees, trading nothing in test performance for a fifth of the overfitting. We also settle the class imbalance question by testing it rather than arguing about it.
Approving every applicant scores 84.76% accuracy on this book. Our model scores 87.04% and misses four out of five defaulters. That is why credit risk does not lead with accuracy. We build KS from first principles, read the decile table the way a credit committee would, and then do the thing most courses skip: defend a KS of 52 with evidence rather than confidence, using the train to test drop, an itemised list of the leakage we removed, and an honest note on what synthetic data flatters.
Your model outputs 0.0734. Your credit committee needs a number they can act on.
In this video you convert predicted probabilities into a 600 to 900 score using the PDO
method, setting 750 points at 10 to 1 odds with 40 points to double the odds. You will
understand why the formula runs on log odds instead of probability, how to pick the three
constants from your own portfolio rather than from a textbook, and why clipping the tails is
a business decision rather than a modelling one.
We then verify on held-out data that 40 points really does double the odds, and build both
deciles for development work and fixed score bands for policy and monitoring.
One point worth noting: this works with any model that outputs a probability. XGBoost has no
coefficients and does not need any. What you give up is a points table per variable, not the
score itself.
A score is only useful once you decide where to draw the line.
We start by checking that bad rate falls cleanly as score rises, and then deal with what
happens when it does not. Our decile 8 reverses. Instead of retraining, we put confidence
intervals around each decile and show the reversal is sampling noise, because the bottom five
deciles hold only 28 bad accounts between them. Knowing when a table cannot be read at that
granularity is a skill in itself.
Next we set the cutoff from economics rather than statistics. On our book roughly 17 good
loans pay for 1 bad one, which puts break-even at a 5.56 percent bad rate and lands the cutoff
at 760 points, approving 62.6 percent of applicants.
The video closes with a profile grid across five bureau segments: NTC, GL/EL only, Thin, Thick
and Super Thick. The grid shows a single cutoff leaves real volume on the table, and we finish
by producing a cutoff per profile instead. That is the difference between a cutoff and a
credit policy.
A short orientation. Twelve months after go-live, we look at the population your scorecard declined, why their bureau record matters, and the three builds that turn it into a swap-in.
Twelve months after go-live, your model has learned a great deal about the people you approved and nothing at all about the people you declined. This video explains why that costs money, and how we are going to fix it.
We follow one applicant. Rahul applies, his FOIR is 52 percent against a 50 percent policy cap, and we decline him. Within three months another NBFC approves him. He pays twelve clean months. We earned nothing.
You will see why our own data can never reveal this, what we check in the bureau instead, and the method that finds the good customers hiding in a reject base: slice it by why each applicant was declined, then compare each slice against your own book.
Why lenders stopped waiting for losses and started predicting them. We cover the incurred loss model and why it broke in 2008, how Ind AS 109 applies to Indian NBFCs alongside RBI’s IRACP norms, and the one formula that holds the whole standard together: ECL = PD × LGD × EAD. Ends with a worked single-loan example.
Not every loan gets the same treatment. Learn how the book is sorted into three stages, why Stage 1 looks 12 months ahead while Stages 2 and 3 look at the full remaining life, and what actually pushes a loan from one stage to the next. Includes the mistake almost everyone makes about what “12-month ECL” means, and why Stage 1 should be split into four groups before you estimate anything.
Where the three numbers come from. PD is counting, not forecasting — take a group of loans, wait a year, count the bad ones. LGD is what never comes back after you subtract the cost of chasing it. EAD is the balance on the day the customer defaults, not the balance today. Ends with how to walk the calculation month by month without double-counting.
A short fix to the default data before we start. Download the updated file and replace the old one in your folder.
Take the active book as of 30 Sep 2026, create DPD buckets and assign Stage 1, 2 and 3. We split Stage 1 into Not Bounced, Bounced, New and Bucket 1.
Track four quarterly cohorts for 12 months, count defaults by segment and take a loan-weighted average to get a stable 12-month PD.
Why annual PD / 12 is wrong, and how to build a survival-adjusted monthly PD curve: 12 months for Stage 1, 36 months for Stage 2 and 3.
Combine default and recovery data, set a workout window, treat cured loans correctly and arrive at one LGD for the book.
Build an amortization schedule for one loan with a loop, then for the whole book with one formula. EAD is principal balance plus overdue interest.
Multiply monthly PD, LGD and EAD, add up to loan-level ECL and build the final provision summary: POS, ECL and ECL % by stage.
Collections is the last stage of the credit lifecycle, and the only one that works on loans already in trouble. In this lecture you will learn how a loan moves through the DPD bucket ladder, from current to bucket 5 and write-off, and how those buckets map to the IFRS 9 stages from Modules 8 and 9.
Every collections team runs on a small set of numbers. In this lecture you will learn the five core collection metrics, what question each one answers, and how they drive collection strategy at an NBFC.
This credit risk modeling course covers the full lending lifecycle in Python: credit scorecard development, probability of default (PD), loss given default (LGD), exposure at default (EAD), IFRS 9 / Ind AS 109 expected credit loss (ECL), portfolio analytics and collections.
Most courses teach you formulas. This one teaches you how lending actually works, then shows you how to model it.
I have spent 3+ years building credit risk models at a digital lending NBFC: acquisition scorecards, ECL computations, portfolio monitoring, and bureau analytics on Equifax, CIBIL and CRIF data. Everything in this course comes from that work, including the mistakes that cost real money. You will learn credit risk modelling the way practitioners learn it, on a realistic synthetic NBFC dataset.
What makes this course different
Practitioner-first, not textbook-first. You will learn why a scorecard is a risk measurement machine, not a rejection machine, and how that mindset changes everything you build.
A notebook with every build lecture. Short theory lectures set up the why. Then you write the code yourself: WOE binning, score scaling, roll rate matrices, ECL staging and more.
Real market context. Examples use real lending economics, RBI and Ind AS 109 logic, and the DPD language used on the floor of every bank, NBFC and fintech.
What you will build
1. An acquisition scorecard on bureau data: tradeline and enquiry variables, WOE and IV, variable selection, an XGBoost model, and PDO score scaling.
2. Reject inference the way lenders do it, using off-us bureau performance of rejected applicants.
3. Portfolio analytics: DPD buckets, roll rate matrices and vintage curves.
4. IFRS 9 ECL end to end: staging, TTC PD, annual to monthly PD, LGD net of recovery cost, EAD by month, and a stage-wise ECL summary.
5. Collections: how lenders work delinquent accounts, and the analysis behind a collection strategy.
Who should take this
Data analysts moving into risk, banking and fintech professionals moving into analytics, finance students (CA, FRM, CFA, MBA) who want hands-on skills, and working credit risk analysts who want the full stack in Python. Scorecard development, PD modeling and ECL are exactly the skills employers test for in credit risk interviews.
What you need: basic Python and pandas. No prior credit risk knowledge.
By the end, you will not just know the definitions. You will be able to sit in a credit risk interview or a model review meeting and speak like someone who has built these things. Because you will have.