Skip to lecture

Financial Engineering: Interest Rates and xVA · Lecture 08, Part 4 of 4

Mortgages and Prepayments

Stochastic Prepayment and Mortgage Pipeline Risk

Simulate uncertain prepayments in Python and connect mortgage optionality with swaption-style and pipeline risk.

Jump to a chapter3 topics · play a chapter or read its individual guide
  1. Read topic →
  2. Read topic →
  3. Read topic →

Select a chapter to start this video at that point, or open its topic guide.

Why this topic matters

Actual prepayments are uncertain, even when the interest-rate scenario is fixed. This uncertainty can change a mortgage portfolio’s duration and create exposures that cannot be understood from a deterministic amortization schedule alone.

Inside this video

The concluding mortgage part studies stochastic prepayment in a Python experiment and examines links between mortgage optionality and swaption-like features. It also introduces mortgage pipeline risk: the exposure that can arise between agreeing to mortgage terms and the eventual completion or funding of the loan. The video connects these risks to hedging decisions.

A practical perspective

A lender may commit to a mortgage rate before the loan is finalized. If market rates move or the borrower decides not to proceed, the expected cash flows—and the hedge that was put on for them—may change.

What you will learn

Watch the video for the complete explanations, calculations and examples. The lecture slides and Python materials are linked below.

Slides, code and related lessons

Slides and code for Lecture 8 on GitHub ↗ · Open this video on YouTube ↗

Explore the complete Financial Engineering course and more Computations in Finance videos ↗.