SQL8 Oct 20265 min readBuild a roll-rate table in SQLA delinquency report tells you where loans are today. A roll rate tells you where they are heading. Here is how to build one with a SQL window function, with output you can check by hand.SQLcredit riskroll rateswindow functionstutorial
Python7 Oct 20262 min readSampleHow to calculate PAR30, PAR60 and PAR90 in pandasA step-by-step walkthrough of bucketing loans by days past due and measuring portfolio at risk in Python, using a small made-up loan book.pandascredit riskPARtutorial
SQL5 Oct 20262 min readSampleGroup loans into delinquency buckets with SQL CASE WHENOne query that buckets loans by days past due and shows each bucket's share of the book, with a note on what changes between database engines.SQLcredit risktutorialPAR