MiniCTRM - Build Tutorial 602: Market risk: sensitivities, historical-simulation VaR, stress tests and limits
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
Delta by index and month found by bumping each curve month through the valuation engine, historical-simulation VaR from the stored closes with the worst days and each deal's contribution, stress scenarios kept as data and run on the book, risk limits checked on every run with every breach recorded, and a risk dashboard that links to each report.
Four questions, four measures – Sensitivities, VaR, stress tests and limits - what each answers, and the two rules every risk number obeys.
Delta, and a run that is kept – Position by index and month, the delta of every curve month through the engine, and a risk run as a job with a history.
Value at Risk from your own closes – What VaR is in plain words, why historical simulation, and the run that replays the last 250 days.
Stress tests – A scenario as data a firm edits, run on the whole book, the loss per scenario and per deal.
Limits and the dashboard – A limit is a number a firm sets on a measure; every run checks every limit; one morning page reads them all.
Ship it – /ship, with the risk tests among the rest.
How MiniCTRM did it – Sensitivities, Value at Risk, Stress Tests, Risk Limits and the Risk Dashboard, live.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
Which way, and how much
1 / 15Four questions, four measures
Four questions, four measures
2 / 15Four questions, four measures
One pricer, one stored run
3 / 15Delta, and a run that is kept
Position, then delta
4 / 15Delta, and a run that is kept
A risk run as a job
5 / 15Value at Risk from your own closes
What Value at Risk is, in plain words
6 / 15Value at Risk from your own closes
Historical-simulation VaR
7 / 15Stress tests
Stress tests: a scenario is data
8 / 15Limits and the dashboard
Limits are data, and warnings
9 / 15Limits and the dashboard
Risk limits, checked on every run
10 / 15Limits and the dashboard
The risk dashboard
11 / 15Ship it
Ship it
12 / 15How MiniCTRM did it
Sensitivities, Value at Risk and Stress Tests
13 / 15How MiniCTRM did it
Risk Limits and the Risk Dashboard
14 / 15What you have now
What you have now
15 / 15
You have finished lesson 602, Market risk: sensitivities, historical-simulation VaR, stress tests and limits.