Banks don’t just take risks in fast‑moving trading rooms – the biggest pile of credit risk often sits quietly in the banking book: mortgages, small‑business loans, and corporate lending. This chapter is about building models that answer a simple question: “How much money might we lose from these loans if the economy turns sour, and how much capital should we set aside today to survive it?”