Skip to lecture

Financial Engineering: Interest Rates and xVA · Lecture 12, Part 2 of 3

Valuation Adjustments — xVA (CVA, BCVA and FVA)

Python Exposure Simulation and Unilateral CVA

Build exposure profiles using closed-form examples and Monte Carlo scenarios, then connect those profiles to unilateral CVA.

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

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

Why this topic matters

CVA requires more than a default probability. It also needs an estimate of how much a derivatives portfolio could be worth when default happens. That makes market simulation, trade valuation and exposure aggregation central parts of the calculation.

Inside this video

This part begins with expected-exposure examples that admit analytical treatment, then develops one-dimensional Python exposure generation. It extends the simulation to portfolios of assets and introduces unilateral credit valuation adjustment. The emphasis is on building a future exposure profile before combining it with default-related inputs.

A practical perspective

Imagine simulating many future interest-rate curves and revaluing an interest-rate swap under each scenario. At every future date, positive replacement values contribute to the exposure distribution used for CVA.

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 12 on GitHub ↗ · Open this video on YouTube ↗

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