Insights

Practical analytics, written down

Tutorials, worked examples and notes from real analysis work.

Tool and package updates (0)

3 articles shown

SQL5 min read

Build a roll-rate table in SQL

A 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.

  • SQL
  • credit risk
  • roll rates
  • window functions
  • tutorial

Python2 min readSample

How to calculate PAR30, PAR60 and PAR90 in pandas

A 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.

  • pandas
  • credit risk
  • PAR
  • tutorial