Estimating Market Value-at- Risk Using GPUs NVIDIA GPU Developer’s Summit, 2009 Matthew Dixon 1 Jike Chong 2 1 Department of Computer Science, UC Davis.

Slides:



Advertisements
Similar presentations
Value-at-Risk: A Risk Estimating Tool for Management
Advertisements

Analytical Approaches to Non-Linear Value at Risk
Etienne Koehler Barclays Capital CVA - VaR January 2012 Shahram Alavian Royal Bank of Scotland
Market Risk Cheryl J. Rathbun Citigroup Chief Operating Officer
British Bankers’ Association CRD 3 and beyond How are you left? Simon Hills British Bankers Association.
Credit Risk Plus.
Introduction CreditMetrics™ was launched by JP Morgan in 1997.
Risk Management and Operations Solutions Derivative Pricing for Risk Calculations – Challenges and Approaches Research Workshop.
TK 6413 / TK 5413 : ISLAMIC RISK MANAGEMENT TOPIC 6: VALUE AT RISK (VaR) 1.
Financial Risk Management Framework - Cash Flow at Risk
Chapter 21 Value at Risk Options, Futures, and Other Derivatives, 8th Edition, Copyright © John C. Hull 2012.
Risk Management Jan Röman OM Technology Securities Systems AB.
Introduction Data and simula- tion methodology VaR models and estimation results Estimation perfor- mance analysis Conclusions Appendix Doctoral School.
1 Market Risk Measurement Models, Megastars and Myths Introduction by Theo Kocken Rabobank NGB/LNMB Seminar 14 Januari 2000.
MODELING CORPORATE RISK AT FORD Freeman Wood Director Global Risk Management.
Market-Risk Measurement
CF-3 Bank Hapoalim Jun-2001 Zvi Wiener Computational Finance.
2008 General Meeting Assemblée générale 2008 Toronto, Ontario 2008 General Meeting Assemblée générale 2008 Toronto, Ontario Canadian Institute of Actuaries.
Rene A. Carmona Bendheim Center for Finance Department of Operations Research & Financial Engineering Princeton University Portfolio Risk in the Electricity.
1 Assessing the impact of IDR on bank’s regulatory capital Eduardo Epperlein & Alan Smillie PRMIA-ISDA Seminar 11 September 2007 The analysis and conclusions.
Muhammad Saifullah Bin Mohamed Azmi ( )
Options, Futures, and Other Derivatives 6 th Edition, Copyright © John C. Hull Chapter 18 Value at Risk.
Value at Risk.
Risk Management and Financial Institutions 2e, Chapter 13, Copyright © John C. Hull 2009 Chapter 13 Market Risk VaR: Model- Building Approach 1.
Stress Tests: Top-Down Vs Bottom-up A CCP view Panel session at 8 th Financial Risks International Forum 31 st of March 2015.
Firm-wide, Corporate Risk Management Risk Management Prof. Ali Nejadmalayeri, Dr N a.k.a. “Dr N”
Hedging and Value-at-Risk (VaR) Single asset VaR Delta-VaR for portfolios Delta-Gamma VaR simulated VaR Finance 70520, Spring 2002 Risk Management & Financial.
Advanced Risk Management I Lecture 6 Non-linear portfolios.
FRM Zvi Wiener Following P. Jorion, Financial Risk Manager Handbook Financial Risk Management.
Dynamic Portfolio Management Process-Observations from the Crisis Ivan Marcotte Bank of America Global Portfolio Strategies Executive February 28, 2013.
Value at Risk: Market Risk Models Han Zhang Director, Head of Market Risk Analytics Corporate Market and Institutional Risk August 23, 2013 University.
Lunch at the Lab Book Review Chapter 11 – Credit Risk Greg Orosi March
Integrated Risk architecture: Implementation Issues FICCI - IBA conference on “Global Banking – paradigm shift” on October 5 th 2005.
Alternative Measures of Risk. The Optimal Risk Measure Desirable Properties for Risk Measure A risk measure maps the whole distribution of one dollar.
Irwin/McGraw-Hill 1 Market Risk Chapter 10 Financial Institutions Management, 3/e By Anthony Saunders.
Value at Risk: Market Risk Models Han Zhang Director, Head of Market Risk Analytics Corporate Market and Institutional Risk August 23, 2013 University.
1 QUANTITATIVE RISK MANAGEMENT AT ABN AMRO Jan Sijbrand January 14th, 2000.
RNGs in options pricing Presented by Yu Zhang. Outline Options  What is option?  Kinds of options  Why options? Options pricing Models Monte Carlo.
Financial mathematics, 16/ , KTH Per-Olov Åsén, Risk Modeling and Quantitative Analysis.
Estimating Credit Exposure and Economic Capital Using Monte Carlo Simulation Ronald Lagnado Vice President, MKIRisk IPAM Conference on Financial Mathematics.
Basel Committee Recommendations. Framework Amendment to Capital Accord to incorporate market risk –1996 Application of Basel II to trading activities.
Asmah Mohd Jaapar  Introduction  Integrating Market, Credit and Operational Risk  Approximation for Integrated VAR  Integrated VAR Analysis:
© The MathWorks, Inc. ® ® Monte Carlo Simulations using MATLAB Vincent Leclercq, Application engineer
Measurement of Market Risk. Market Risk Directional risk Relative value risk Price risk Liquidity risk Type of measurements –scenario analysis –statistical.
 Measures the potential loss in value of a risky asset or portfolio over a defined period for a given confidence interval  For example: ◦ If the VaR.
Market Risk.
Value at Risk Chapter 20 Options, Futures, and Other Derivatives, 7th International Edition, Copyright © John C. Hull 2008.
Lotter Actuarial Partners 1 Pricing and Managing Derivative Risk Risk Measurement and Modeling Howard Zail, Partner AVW
Options, Futures, and Other Derivatives, 5th edition © 2002 by John C. Hull 16.1 Value at Risk Chapter 16.
Options, Futures, and Other Derivatives, 4th edition © 1999 by John C. Hull 14.1 Value at Risk Chapter 14.
1 Basel II Pillar 2 Internal Models: Integrating credit and market risk in private equity transactions Erwin Charlier GRM/ERM/Credit Portfolio Modelling.
1 CASE STUDY ON DEUTSCHE BANK MARKET RISK MANAGEMENT SUBMITTED BY SNEHA B. SHAH SUBMITTED TO MS. MUDRA MISTRY 1.
1 Modelling of scenarios for credit risk: establishing stress test methodologies European Central Bank Risk Management Division Strategy Unit Ken Nyholm.
By: David Johnston, James Mataras, Jesse Pirnat, Daniel Sanchez, Eric Shaw, Sean Vazquez, Brad Warren Stevens Institute of Technology Department of Quantitative.
1 VaR Models VaR Models for Energy Commodities Parametric VaR Historical Simulation VaR Monte Carlo VaR VaR based on Volatility Adjusted.
Risk Management Basics
Contact us: Call: Mail: Visit:
1 Bank Risk: Does Size Matter? David E. Allen Akhmad R. Kramadibrata Robert J. Powell Abhay K. Singh School of Accounting, Finance and Economics, ECU.
Financial Risk Management of Insurance Enterprises Financial Risk Management by Insurers: An Analysis of the Process.
Types of risk Market risk
CREDIT RISK MANAGEMENT
Market-Risk Measurement
Risk Management Basics
Risk Mgt and the use of derivatives
Types of risk Market risk
Financial Risk Management
Lecture Notes: Value at Risk (VAR)
Andrei Iulian Andreescu
VaR Introduction I: Parametric VaR Tom Mills FinPricing
Lecture Notes: Value at Risk (VAR)
Presentation transcript:

Estimating Market Value-at- Risk Using GPUs NVIDIA GPU Developer’s Summit, 2009 Matthew Dixon 1 Jike Chong 2 1 Department of Computer Science, UC Davis 2 Department of Electrical Engineering and Computer Science, UC Berkeley

2 Problem Value-at-Risk (VaR) is an essential metric used by financial institutions to estimate a portfolio’s sensitivity to market risks Estimations with realistic scenarios require computationally expensive Monte Carlo based VaR (MC-VaR) approaches Difficult for domain experts to develop and test efficient risk management systems

3 Solution We propose algorithmic and implementation approaches to speedup MC-VaR computations by up to 130x This makes MC-VaR more computationally viable, facilitating more pervasive stress testing Domain experts can develop, test and run a MC-VaR engine on their workstations Enable risk reporting or trading activity to become 'live’

4 Outline Overview of market risk Introduction to VaR modeling Solution Approach Problem reformulation Module selection Implementation styling Results Summary

5 Software Architecture , 0, , , , , 0, , , , …... 0, 0.5,0.25, 0.75, 0.375, 0.875, … 0, 0.5,075, 0.25, 0.375, 0.875, Box Muller transformation / Moro Inverse approximation Sobol quasi random number generation (RNG) Aggregation of the losses: linear algebra Quasi random vectors Normal quasi random vectors Cumulative portfolio loss distribution

6 Assume joint distribution of risk factor returns e.g. log-normal or student-t Non-linear (gamma) component Linear (delta) component Portfolio Loss aggregation: Portfolio Loss Quadratic VaR Estimation

7 Our Solution Approach We use a variety of techniques to speed up MC-VaR computation Algorithmic reformulation: Reorder the algorithm to avoid BLAS 3 routines Module Selection: Select the random number generator with the fastest convergence rate in the standard error Implementation styling Merge the random number generator and distribution tranformation kernels

8 Algorithmic Formulation: Optimization Risk Factor Delta Portfolio Loss Matrix of correlated random numbers: matrix-matrix multiplication Eigenvalues of Gamma matrix Standard aggregation: Optimized aggregation: Precompute q j Vector of correlated random numbers: matrix-vector multiplication

9 Module Selection (left) The standard error (%) in the portfolio loss distribution using Moro's interpolation method and the Box-Muller method applied to Sobol' sequences. (right) The error (%) in the simulated 1 day portfolio delta VaR (c=95%).

10 Implementation Styling , 0, , , , , 0, , , , …... Merged Sobol quasi random number generation (RNG) and Box Muller transformation Aggregation of the losses: linear algebra Normal quasi random vectors Cumulative portfolio loss distribution

11 Overall Results The overall speedup obtained by applying all three optimizations on the NVIDIA GeForce GTX 280. The baseline CPU is an Intel Core2 Q9300.

12 Algorithmic Reformulation Speedup from algorithmic reformulation of the loss estimation portion of the algorithm (with the overall timing in parentheses) on an Intel Core2 Q9300 and NVIDIA GeForce GTX280 using a portfolio of 4096 risk factors

13 Implementation Styling Speedup from merging the Sobol' QRNG module with the Box-Muller or Bailey's module on a NVIDIA GeForce GTX280

14 Three Optimization Approaches Reformulating the loss aggregation delivers a 50x speedup on the GPU Generating normal variates from a Sobol’ sequence is 2x more efficient using the Box-Muller method than the Moro approximation. Merging the Sobol’ sequence generator with the Box-Muller (Bailey’s) method delivers up to 1.92x speedup.

15 Conclusions Domain experts need a MC-VaR engine that runs in seconds on their workstations Enable more pervasive stress testing Rapid application development Comprehensive model validation ’Live’ risk analysis, reporting and control of trading We propose using the GPU to run MC-VaR at the client side instead of the server side

16 Overall Results The overall speedup obtained by applying all three optimizations on the NVIDIA GeForce GTX 280. The baseline CPU is an Intel Core2 Q9300.

17 Financial Risk Market Risk: The market value of trading assets may fall. Credit Risk: Debtors (including market counterparties) may not be able to meet their obligations, causing a loss to the bank. Operational risk: Loss of money due to a failure of the bank’s infrastructure or internal controls. Liquidity risk: Banks may incur costs in raising cash to meet obligations when fall due. Business risk: Business may become less profitable because of changes in the market for bank's services.

18 Market Risk The proliferation of algorithmic trading, derivative usage and highly leveraged hedge funds requires improved risk management systems Portfolios containing thousands to hundreds of thousands of tradable assets (or instruments) are not uncommon In day-to-day trading, financial institutions measure market risk with the Value-at-Risk (VaR) metric VaR estimates the potential severe falls in the market value of their portfolio over a short time horizon

19 Market Risk Management Capital Markets Asset Management Trading Books Regulatory Books Risk Infrastructure Daily VaR Reports Market Risk Advisory Mechanism

BIS Stress Testing Guidelines “At the most fundamental level, weaknesses in infrastructure limited the ability of banks to identify and aggregate exposures across the bank. This weakness limits the effectiveness of risk management tools – including stress testing...” “...Further investments in IT infrastructure may be necessary to enhance the availability and granularity of risk information that will enable timely analysis and assessment of the impact of new stress scenarios designed to address a rapidly changing environment” Principles for sound stress testing practices and supervision - consultative paper, January 2009, Bank for International Settlements.

21 Required Market Risk Advisory Mechanism Market Risk Management Capital Markets Asset Management Trading Books Regulatory Books Risk Infrastructure Live integrated Stress testing and VaR reporting

22 Who needs fast VaR? Market risk management operations provide daily VaR reports, summarizing where individual business units are most vulnerable to market movements VaR is also frequently estimated on an ad-hoc basis by business analysts Capital allocation managers use VaR to optimize portfolios Quantitative strategists will devise trading strategies using VaR Trade structures will assess the impact of new bespoke structured products on their business unit

23 Why is VaR a challenge for developers ? Financial model developers often face challenges in integrating new pricing models into risk management systems Financial modelers are domain experts with limited access to the development and testing environment for the live risk management system. Prototype model migration from a desktop development environment to the deployment environment is often hampered by disjoint domain expertise. The lag between specification of new models and their deployment results in lost trading opportunities and unaccountable exposure to risks.

24 VaR Methodologies  Portfolio based: Models the portfolio losses computationally more efficient  but assumes a static portfolio loss distribution Asset based: Models the asset returns and then aggregates the losses Exact captures the non-linearity of the portfolio due to market movements  but computationally prohibitive for large portfolios Approximations remains computationally tractable for large portfolios  but only partially captures the non-linearity of the portfolio

25 Portfolio Loss Distribution 1 – confidence level (1-c), e.g. c=0.95 Cumulative loss distribution implied from risk returns Tail region represents the most severe losses In general, F is not given in analytic form and must be estimated using Monte-Carlo methods