Skip to lecture

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

Value-at-Risk and Expected Shortfall

Historical VaR, Monte Carlo and Backtesting

Implement market-risk calculations in Python and investigate data quality, curve regridding, arbitrage checks and model backtesting.

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

A mathematically sound risk measure can still produce misleading answers if market data are inconsistent or the scenario engine is poorly implemented. Historical observations require careful alignment, while simulated risks must be checked against observed outcomes.

Inside this video

The final technical lecture develops historical VaR with a Python experiment and discusses missing observations and the regridding of yield curves. It also addresses arbitrage-related issues in market data, Monte Carlo VaR and backtesting. Together, these topics move from the definition of a risk measure to the practical question of whether a risk engine can be trusted.

A practical perspective

Historical yield curves may be quoted at changing maturities. Comparing them directly without consistent regridding can introduce artificial movements into the scenarios used to calculate portfolio losses.

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

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