XVA Calculus Lab: Master Counterparty Credit Risk
₹699 · Instant email delivery
Razorpay Secure • Instant access • Refund policy • My Access
Use coupon code D2Q30 at checkout for 30% off.

About this resource
Learn counterparty credit risk and the full XVA stack by running it. The XVA Calculus Lab is a set of interactive Python notebooks built on a small, tested XVA engine: exposure simulation, CDS hazard curves, CVA, DVA, FVA, MVA, KVA, ColVA, wrong-way risk, collateral and sensitivities.
What you get:
- 24 Jupyter notebooks, each in a student version (exercises to complete) and a fully solved version — 48 notebooks in total.
- A tested educational XVA engine (xva_engine.py) with a one-command buyer preflight (run_validation.py) that runs the unit tests and every notebook.
- Notebooks 00–09: CVA with CDS hazard-curve calibration, DVA, FVA, MVA, KVA, wrong-way risk, collateral/netting/MPOR, ColVA and sensitivities, ending with a collateralised IRS portfolio case.
- NEW in 3.0, notebooks 10–23 (the deep-dive track): exposure metrics (EE, ENE, EPE, EEPE, PFE); netting, close-out and Euler allocation; CSA terms, threshold, MTA and MPOR; initial margin, a SIMM-style model and CCP default waterfalls; Hull–White exposure simulation and American Monte Carlo; hazard rates and CDS bootstrapping with standard coupons; CVA derivation (unilateral, bilateral, first-to-default); DVA and own credit; FVA (FCA/FBA, symmetric vs asymmetric funding); MVA with IM forecasting along paths; KVA with SA-CCR and BA-CVA (parameters checked against the Basel Framework); wrong-way risk models; XVA sensitivities, hedging and daily P&L explain; and a capstone roadmap with 30 graded drills.
- Every concept: intuition first, then the formula and its derivation, then a slider experiment whose results are checked against a closed form or invariant, plus interview questions with answers.
Requirements: Python 3.10–3.13 with numpy, scipy, matplotlib and ipywidgets (requirements.txt included).
Scope: educational code for study, interviews and controlled experiments — not a bank production system or official regulatory calculator (see MODEL_RISK_BOUNDARIES.md).
2026 Edition: existing buyers get the 14 new notebooks free at their existing link.
Coupon: use D2Q30 for 30% off.
Disclaimer: this material is for educational purposes only. It does not constitute financial, investment or trading advice.
What you get
- Instant digital delivery by email after purchase
- Written by a practising quantitative risk modeller
- Desk-focused material, not textbook theory
Delivery & refunds
Access is delivered by email immediately after payment. See our refund policy, terms and privacy policy.
Frequently asked questions
How is XVA Calculus Lab: Master Counterparty Credit Risk delivered?
Access is delivered digitally by email after payment is verified. Keep the purchase email so you can find the delivery link later.
Who is XVA Calculus Lab: Master Counterparty Credit Risk designed for?
It is designed for quantitative-finance candidates and practitioners who want desk-focused explanations, practical diagnostics and interview-ready reasoning.
Where can I review the price and purchase details?
Use the product details link on this page to review the current price, any available offer and the secure checkout information before buying.
Related resources
- Rates Derivatives Quant Notes & Lab — Curves, Swaps, Caps, Swaptions, SABR & Hull–White (188 pages)
- FX Derivatives Quant Notes & Lab — Spot, Forwards, Swaps, Vol Smiles & Exotics (228 pages)
- Equity Derivatives Quant Notes & Code — Forwards, Futures, Dividends, Vol Surfaces & Exotics (201 pages)
- Yield Curve Quant Notes & Lab — SOFR, Bootstrapping, Curve Risk & PCA (134 pages + 3 real-data projects)
- The Greeks Cheat Sheet