Cross Asset CVA Application

Similar documents
ORE Applied: Dynamic Initial Margin and MVA

Modern Derivatives. Pricing and Credit. Exposure Anatysis. Theory and Practice of CSA and XVA Pricing, Exposure Simulation and Backtest!

Callability Features

Economic Scenario Generator: Applications in Enterprise Risk Management. Ping Sun Executive Director, Financial Engineering Numerix LLC

Credit Risk Modelling This course can also be presented in-house for your company or via live on-line webinar

Credit Risk Modelling This in-house course can also be presented face to face in-house for your company or via live in-house webinar

Implementing a cross asset class CVA and xva Framework

Modelling Counterparty Exposure and CVA An Integrated Approach

Challenges In Modelling Inflation For Counterparty Risk

Institute of Actuaries of India. Subject. ST6 Finance and Investment B. For 2018 Examinationspecialist Technical B. Syllabus

WHITE PAPER THINKING FORWARD ABOUT PRICING AND HEDGING VARIABLE ANNUITIES

Credit Valuation Adjustment and Funding Valuation Adjustment

Calculating Counterparty Exposures for CVA

FINCAD s Flexible Valuation Adjustment Solution

IFRS 13 - CVA, DVA AND THE IMPLICATIONS FOR HEDGE ACCOUNTING

Advances in Valuation Adjustments. Topquants Autumn 2015

Cash Settled Swaption Pricing

Outline. GPU for Finance SciFinance SciFinance CUDA Risk Applications Testing. Conclusions. Monte Carlo PDE

CVA in Energy Trading

IFRS 13 The Impact on Derivative Valuation, Hedge Accounting and Financial Reporting. 24 September 2013 Dan Gentzel & Peter Ahlin

Standardised Risk under Basel 3. Pardha Viswanadha, Product Management Calypso

Counterparty Credit Risk Simulation

Razor Risk Market Risk Overview

ORE User Guide. Quaternion Risk Management. 7 December 2017

Learning takes you the extra mile. Rabobank Global Learning

New Developments in MATLAB for Computational Finance Kevin Shea, CFA Principal Software Developer MathWorks

ARM. A commodity risk management system.

Counterparty Credit Risk, Collateral and Funding With Pricing Cases for all Asset Classes

RISKMETRICS. Dr Philip Symes

(J)CIR(++) Hazard Rate Model

Calibration and Simulation of Interest Rate Models in MATLAB Kevin Shea, CFA Principal Software Engineer MathWorks

Bank of Japan Workshop - Credit Value Adjustment Trends. 14 th June 2010

Counterparty Risk and CVA

Strategic Integration of xva, Margining and Regulatory Risk Platforms

we def ine co nsulti n g MoCA Valuation out of the box

Fuel Hedging. Management. Strategien for Airlines, Shippers, VISHNU N. GAJJALA

Oracle Financial Services Market Risk User Guide

Risk Modeling: Lecture outline and projects. (updated Mar5-2012)

Multi-level Stochastic Valuations

SYLLABUS. IEOR E4728 Topics in Quantitative Finance: Inflation Derivatives

Model Risk Assessment

Implementing Models in Quantitative Finance: Methods and Cases

OIS and Its Impact on Modeling, Calibration and Funding of OTC Derivatives. May 31, 2012 Satyam Kancharla SVP, Client Solutions Group Numerix LLC

Discounting. Jeroen Kerkhof. 22 September c Copyright VAR Strategies BVBA 1 / 53

Accelerated Option Pricing Multiple Scenarios

Numerix Pricing with CUDA. Ghali BOUKFAOUI Numerix LLC

Principles of Scenario Planning Under Solvency II. George Tyrakis Solutions Specialist

Counterparty Credit Risk under Basel III

Martingale Methods in Financial Modelling

Market interest-rate models

Handbook of Financial Risk Management

Financial Instruments Valuation and the Role of Quantitative Analysis in a Consulting Firm

Martingale Methods in Financial Modelling

Risk e-learning. Modules Overview.

Multi-Curve Pricing of Non-Standard Tenor Vanilla Options in QuantLib. Sebastian Schlenkrich QuantLib User Meeting, Düsseldorf, December 1, 2015

Recent developments in. Portfolio Modelling

Ultimate Control. Maxeler RiskAnalytics

Point De Vue: Operational challenges faced by asset managers to price OTC derivatives Laurent Thuilier, SGSS. Avec le soutien de

Strategies For Managing CVA Exposures

S4199 Effortless GPU Models for Finance

Counterparty Credit Risk and CVA

Collateral Management & CSA Discounting. Anna Barbashova Product Specialist CrossAsset Client Solutions Group, Numerix December 11, 2013

Contents. Part I Introduction to Option Pricing

Stochastic Modelling for Insurance Economic Scenario Generator. Jonathan Lau, FIA, Solutions Specialist

Interest Rate Models

Reduce to the max. Efficient solutions for mid- size problems in interest rate derivative pricing and risk management at RLB OOE.

Counterparty Risk - wrong way risk and liquidity issues. Antonio Castagna -

Oracle Financial Services Market Risk User Guide

Credit Risk Modeling Using Excel and VBA with DVD O. Gunter Loffler Peter N. Posch. WILEY A John Wiley and Sons, Ltd., Publication

Traded Risk & Regulation

Market Risk Analysis Volume IV. Value-at-Risk Models

FINANCIAL DERIVATIVE. INVESTMENTS An Introduction to Structured Products. Richard D. Bateson. Imperial College Press. University College London, UK

RunnING Risk on GPUs. Answering The Computational Challenges of a New Environment. Tim Wood Market Risk Management Trading - ING Bank

SYLLABUS. IEOR E4724 Topic in Quantitative Finance: Introduction to Structured and Hybrid Products

Structured Derivatives Valuation. Ľuboš Briatka. Praha, 7 June 2016

Quantitative Finance Investment Advanced Exam

2nd Order Sensis: PnL and Hedging

No Creditor Worse Off : Resolution Mechanisms Update

Hedging CVA. Jon Gregory ICBI Global Derivatives. Paris. 12 th April 2011

Credit Risk in Derivatives Products

financial services e-learning

FINCAD XL and Analytics v11.1 Release Notes

Numerix Economic Scenario Generator

Credit Valuation Adjustment

Credit Risk in Commodity Trading.... and how RWE Supply & Trading deals with it

Introduction to Financial Mathematics

Accelerating Financial Computation

Interest Rate Modeling

ARM. A commodity risk management system.

A Bloomberg Professional Services Offering ADJUST YOUR PERSPECTIVE.

Oracle Financial Services Market Risk User Guide

Interest Rate Bermudan Swaption Valuation and Risk

Counterparty Credit Risk

Latest Developments: Interest Rate Modelling & Interest Rate Exotic & Hybrid Products

HSBC Bank Plc Global Markets MiFID II Ex-ante Costs and Charges Disclosures

Interest Rate Cancelable Swap Valuation and Risk

Applications of Dataflow Computing to Finance. Florian Widmann

Challenges in Counterparty Credit Risk Modelling

Introduction to FRONT ARENA. Instruments

Stochastic Grid Bundling Method

Transcription:

Cross Asset CVA Application Roland Lichters Quaternion Risk Management IKB QuantLib User Meeting IKB Deutsche Industriebank AG, 13-14 November 2013

1 About Quaternion Specialist risk consulting and solutions, originated 2008 Founders: Bank risk management professionals Locations: UK, Germany, Ireland Service: Quantitative analysis, valuation and validation Specialty: Design and integration of effective solutions based on open source Systems: Summit, Murex, Kondor+, Kamakura, Quic, Active Pivot, NumeriX, QuantLib Software: Quaternion Risk Engine (QRE) Clients: Commercial, state-sponsored and investment banks Philosophy of turning banking experience into practical solutions 2

1 Quaternion Product & Offering Consulting Services Quantitative Analysis for highly structured products Pricing and Risk System Implementation and Training Validation Services Independent review of pricing models and their implementations Valuation of complex asset and derivative portfolios Software Services Development of point solutions for pricing and risk analysis Support in-house quantitative development projects Software: Quaternion Risk Engine Cross Asset CVA Application based on QuantLib 3

2 Quaternion Risk Engine (QRE) Quaternion RISK ENGINE is a cross asset CVA application based on QuantLib Used to benchmark Tier 1 Investment Bank exposure simulation methods for Basel capital calculation and CVA management. 4

2 What is CVA? Credit Valuation Adjustment CVA reduces the NPV, counterparty s default risk. Debt Valuation Adjustment DVA increases the NPV, own default risk. NPV = NPV collateralised CVA + DVA 5

3 How to compute CVA? Unilateral CVA formula CVA = X LGD PD EE Expected exposure EE = { [D(t) NPV(t)] +} = P (t) [NPV(t, x)] + ρ(t, x) dx European option pricing formula with (semi-) analytical solutions for Interest Rate Swaps, Cross Currency Swaps FX Forwards, FX Options Caps/Floors, Swaptions Inflation Swaps Advantage: Speed and accuracy 6

3 How to compute CVA? Limits of the semi-analytical approach: Netting the underlying is in fact a portfolio of transactions Collateral compute CVA for collateralised portfolios Structured products no analytical option price expression Generic approach: Monte Carlo simulation for market scenario generation Pricing under scenarios and through time NPV cube analysis for EE etc. 7

2 Quaternion Risk Engine (QRE) 1. Comprehensive Risk Analytics CVA/DVA, PFE, VaR/ETL, FVA etc Netting, Collateral, Deal Ageing exposure 2. Scalable Architecture Monte Carlo Simulation Framework Cross Asset Evolution Models (IR, FX, INF, EQ, COM, CR) Risk-neutral and real-world measures Parallel Processing, multi-core/cpu time 3. Interfaces and workflow Browser based user interface for trade capture and application control What-if scenario / pre-trade impact analysis Efficient aggregation through reporting platforms (e.g. Active Pivot) 4. Transparency and Extensibility 8

2 Quaternion Risk Engine Consulting and Execution Trade Capture Application Control Data Staging Scenario Generation (Market Evolution) Configured Reports Forward Valuation Portfolio Ageing Positions Trade Data Market Data Data Loading XML Aggregation Netting Dates Analytics PFE EE CVA/ DVA Scenarios Scenario Interface VaR CVaR Reporting Platforms (e.g Active Pivot) 9

3 QRE Implementation: Core Application Tasks 1. Generate paths for Interest rates FX rates Inflation rates (CPI indices and real rates) Credit spreads Commodity prices Equity prices Analytical tractability of models helpful to allow large jumps in time to any horizon. 2. Turn simulated factors into QuantLib term structures and index fixing history at future times 3. Reprice the portfolio under future market scenarios (~10 bn NPV calls) 4. Aggregation of NPVs across netting sets, collateral accounts, expectations, quantiles (for CVA, FVA, VaR, PFE, ) 10

3 QRE Implementation. Core Application Support... The core application needs Limited QuantLib amendmends Various QuantLib extensions (instruments, models, engines) following QuantLib design and structure, organised as a separate Library Some Wrapper Libraries for building the forest - constructing QuantLib/QuantExt objects from external representations (e.g. term structures, portfolios) - organising data (market quote and curves repository, etc.) - I/O, accessing data (databases, xml files, etc.) Parallel processing for cube generation in finite time Help in efficient aggregation of large cubes (~10bn NPVs) 11

3 QRE: Modules Modules controlled by scripts and XML files or via Web based front end: 1. Scenario Generation RFE models and market data simulation. 2. Pricing Library Instruments, pricing engines (extended QuantLib) 3. Cube Generation Monte Carlo framework to efficiently assemble the NPV cube, parallel processing (multi-core/cpu) 4. Cube Analysis Aggregation, netting, statistics, report generation 12

3 QRE: Modules 13

3 QRE Implementation: Limited QuantLib Amendmends Examples: SimpleQuote: setvaluesilent() to bypass observer notification SwapIndex: caching of underlying vanilla swaps in a map by fixing date, pass a pricing engine to the constructor IborCoupon: Overwrite amount() method to avoid coupon pricer Some Kronrod integral and Numeric Hagan pricer fixes StochasticProcessArray: Expose SalvagingAlgorithm to the constructor VanillaSwap: Added fixedannuity() and floatingannuity() methods Swaption: added impliednormalvolatility() method, added NormalBlackSwaptionEngine 14

3 QRE Implementation: QuantLib Extensions Instruments CDO Squared Cash Flow CLO FX Option Variants Amortising Swaption CMS Spread Option CMS Spread Range Accrual Cross Currency Swaption Power Reverse Dual Currency Swap Equity Basket Option Resettable Inflation Swap Models Linear Gauss Markov (LGM) Two-Factor LGM Cross/Multi Currency LGM Jarrow-Yildirim-LGM (Inflation) Dodgson-Kainth-LGM (Inflation) Multi-Currency-Inflation Black-Karasinski Cox-Ingersoll-Ross Cox-Ingersoll-Ross with jumps Two-Factor Gabillon (Commodity) Optimization Methods: ASA, Engines Two-Curve Bermudan Swaption with LGMs for Discount and Forward Semi-Analytic CDS Option in JCIR CPI Cap and YoY Inflation Cap in Jarrow-Yildirim-LGM 15

3 QRE: Model Extensions for Risk-Neutral Evolution IR/FX: Multi-Currency Linear Gauss Markov model, calibrated to FX Options, Swaptions, Caps/Floors Inflation: Jarrow-Yildirim model for CPI and real rate, caibrated to CPI and Year-on-Year Caps/Floors Equity: Geometric Brownian Motion for the spot prices, deterministic dividend yield, calibrated to Equity Options Commodity: 2-factor Gabillon model for the futures prices, calibated to Constant Maturity Commodity indices and futures options Credit: Cox Ingersoll Ross model with jumps for the hazard rate (SSRJD, JCIR), calibrated to CDS Options 16

3 QRE: Risk-Neutral Evolution IR, FX, INF, EQ, COM model features: Analytically tractable: Terminal expectations and covariances have closed form expressions Simulation of arbitrarily large time steps possible Quick convergence using low discrepancy sequences Fast generation of market scenarios Risk-neutral measures: T-Forward, Linear Gauss Markov Credit (BK, JCIR) numerically more challenging 17

3 QRE: Real-World Measure Evolution Riccardo Rebonato, Evolving Yield Curves in the Real-World Measure: a Semi-Parametric Approach Similar to Historical Simulation, but more involved to ensure realistic curve shapes over long horizons. Used for Credit Risk (Potential Future Exposure) and Market Risk measures 18

3 QRE Implementation: Application/Wrappers Key for overall performance: We make extensive use of QuantLib s observer/observable design: Pricing under a scenario by updating relevant market quotes But: Notifying large numbers of observers takes time Avoid kicking off observer chains after each quote s update, rather silently update quotes and notify term structures once after all related quotes are updated Unregister floating rate coupons with their indices to limit the no. of observers Use index and engine factories when building the portfolio (only one instance rather than one per trade) to reduce no. of observers 19

3 QRE Implementation: Application/Wrappers Key for overall performance: We need to rebuild fixing history on each path, but adding fixings one by one turned out to be quite slow: Maintain the entire history in memory and call sethistory() to copy the entire map to the index manager Build quicker versions of vanilla engines where possible. Swap example: Avoid BPS calculation and avoid calling Cashflows::npv() which triggers coupon pricers: à get pricing time down to ~50 micro seconds à impact on swap indices and CMS pricing 20

3 QRE Implementation: Application/Wrappers GPU experiments Speed up selected product s pricing by rewriting pricing engines in CUDA Attainable speed up varies with type of problem : Factor 250 (Asian Option) to 10 (bespoke PRDC) using NVIDIA GeForce GT 650M, 384 cores @ 0.9 GHz Fine-tuning to target hardware required. Limited relevance for the overall portfolio so far 21

3 QRE Implementation: Application/Wrappers Parallelisation Fortunately, bummer #1 is not an obstacle here Multiple processes to generate the NPV cube Assigning full portfolio but part of the samples to cores seems perfect for load balancing We also assign sub-portfolios to cores each processing all samples; split according to single path timing run ; advantageous with respect to interfacing into Active Pivot 22

4 QRE Use Cases Some Use Cases CVA Solution Validation and benchmarking of risk factor evolution models used in an IB CVA management and credit exposure system Backtesting real-world and risk-neutral risk factor evolution models cross asset classes Pricing engine for portfolio backtesting 23

Thank you 24

UK Ireland 29th Floor, 1 Canada Square, 54 Fitzwilliam Square Canary Wharf, London E145DY Dublin 2 +44 207 712 1645 +353 1 6344217 donal.gallagher@quaternionrisk.com tim.bourke@quaternionrisk.com Germany Wilhelmshofallee 79-81 47800 Krefeld +49 2151 9284 800 heidy.koenings@quaternionrisk.com UK Germany Ireland info@quaternionrisk.com www.quaternionrisk.com

Appendix 26

5 QRE Vanilla Swap Exposure, Uncollateralised Single Currency Swap, bullet, Q fixed vs. Q floating. 350000 E[NPV+] PFE 90% 300000 250000 Exposure / EUR 200000 150000 100000 50000 0 0 2 4 6 8 10 Time 27

5 QRE Vanilla Swap Exposure, Uncollateralised Single Currency Swap, bullet, A fixed vs. Q floating. 8e+06 7e+06 E[NPV+] PFE 90% 6e+06 Exposure / EUR 5e+06 4e+06 3e+06 2e+06 1e+06 0 0 2 4 6 8 10 12 14 16 18 Time 28

5 QRE Cross Currency Swap, Uncollateralised Cross Currency Swap, bullet, Q fixed vs. Q floating. 6e+07 E[NPV+] PFE 90% 5e+07 4e+07 Exposure / EUR 3e+07 2e+07 1e+07 0 0 2 4 6 8 10 Time 29

5 QRE Collateralised Swap, Example Path Notional 100m EUR, annual fixed vs 6m Euribor Threshold 4m EUR, MTA 0.5m EUR, MPR 2 Weeks 10,000,000 8,000,000 NPV Collateral 6,000,000 Amount / EUR 4,000,000 2,000,000 0-2,000,000-4,000,000-6,000,000 0 1 2 3 4 5 6 7 8 9 Time / Years 30

5 QRE Collateralised Swap, Exposures Notional 100m EUR, annual fixed vs 6m Euribor Threshold 4m EUR, MTA 0.5m EUR, MPR 2 Weeks 5,000,000 4,500,000 Exposure without Collateral Exposure with Collateral Exposure with Collateral, MPR=0 4,000,000 3,500,000 Amount / EUR 3,000,000 2,500,000 2,000,000 1,500,000 1,000,000 500,000 0 0 1 2 3 4 5 6 7 8 9 Time / Years 31

5 QRE Collateralised Swap, Lower Threshold Notional 100m EUR, annual fixed vs 6m Euribor Threshold 1m EUR, MTA 0.5m EUR, MPR 2 Weeks 5,000,000 4,500,000 Exposure without Collateral Exposure with Collateral Exposure with Collateral, MPR=0 4,000,000 3,500,000 Amount / EUR 3,000,000 2,500,000 2,000,000 1,500,000 1,000,000 500,000 0 0 1 2 3 4 5 6 7 8 9 Time / Years 32

5 QRE Collateralised Swap, Zero Threshold Notional 100m EUR, annual fixed vs 6m Euribor MPR 2 Weeks 5,000,000 4,500,000 Exposure without Collateral Exposure with Collateral Exposure with Collateral, MPR=0 4,000,000 3,500,000 Amount / EUR 3,000,000 2,500,000 2,000,000 1,500,000 1,000,000 500,000 0 0 1 2 3 4 5 6 7 8 9 Time / Years 33

5 QRE Portfolio Evolution, Cash vs. Physical Settlement European Swaption Exposure, Expiry 5Y, Cash Settlement 3,000,000 Swaption 2,500,000 Amount / EUR 2,000,000 1,500,000 1,000,000 500,000 0 0 2 4 6 8 10 Time / Years 34

5 QRE Portfolio Evolution, Cash vs. Physical Settlement Underlying Swap, Forward Start in 5Y, Term 5Y 3,000,000 Swaption Forward Swap 2,500,000 Amount / EUR 2,000,000 1,500,000 1,000,000 500,000 0 0 2 4 6 8 10 Time / Years 35

5 QRE Portfolio Evolution, Cash vs. Physical Settlement European Swaption with Physical Settlement 3,000,000 2,500,000 Swaption Forward Swap Physical Settlement Amount / EUR 2,000,000 1,500,000 1,000,000 500,000 0 0 2 4 6 8 10 Time / Years 36