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

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

Statistical Models and Methods for Financial Markets

Quantitative Investment: Research and Implementation in MATLAB

Financial Econometrics Notes. Kevin Sheppard University of Oxford

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

Key Features Asset allocation, cash flow analysis, object-oriented portfolio optimization, and risk analysis

Master of Science in Finance (MSF) Curriculum

MS Finance-Quantitative (MSFQ) Academic Year

Handbook of Financial Risk Management

Interest Rate Bermudan Swaption Valuation and Risk

Oracle Financial Services Market Risk User Guide

ARM. A commodity risk management system.

for Finance Python Yves Hilpisch Koln Sebastopol Tokyo O'REILLY Farnham Cambridge Beijing

BondEdge Next Generation

Interest Rate Models

Economic Scenario Generators

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

INTEREST RATES AND FX MODELS

Introducing LIST. Riccardo Bernini Head of Financial Engineering Enrico Melchioni Head of International Sales. March 2018

Oracle Financial Services Market Risk User Guide

Developing and maintaining Swiss Re s Internal Risk Model ICAM in MATLAB

Interest Rate Cancelable Swap Valuation and Risk

ORE Applied: Dynamic Initial Margin and MVA

StatPro Revolution - Analysis Overview

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

MONTE-CARLO SIMULATION CALCULATION OF VAR (VALUE-AT-RISK) & CVAR (CONDITIONAL VALUE-AT-RISK)

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

SYLLABUS. IEOR E4728 Topics in Quantitative Finance: Inflation Derivatives

bitarisk. BITA Vision a product from corfinancial. london boston new york BETTER INTELLIGENCE THROUGH ANALYSIS better intelligence through analysis

Better decision making under uncertain conditions using Monte Carlo Simulation

Implementing Models in Quantitative Finance: Methods and Cases

Milliman STAR Solutions - NAVI

RISKMETRICS. Dr Philip Symes

BlitzTrader. Next Generation Algorithmic Trading Platform

Oracle Financial Services Market Risk User Guide

TRΛNSPΛRΣNCY ΛNΛLYTICS

Introductory Econometrics for Finance

ESGs: Spoilt for choice or no alternatives?

MFE Course Details. Financial Mathematics & Statistics

Idiosyncratic risk, insurance, and aggregate consumption dynamics: a likelihood perspective

Cross Asset CVA Application

Resource Planning with Uncertainty for NorthWestern Energy

Market Risk Analysis Volume II. Practical Financial Econometrics

Near Real-Time Risk Simulation of Complex Portfolios on Heterogeneous Computing Systems with OpenCL

XSG. Economic Scenario Generator. Risk-neutral and real-world Monte Carlo modelling solutions for insurers

Jaime Frade Dr. Niu Interest rate modeling

Hedging Strategy Simulation and Backtesting with DSLs, GPUs and the Cloud

List of tables List of boxes List of screenshots Preface to the third edition Acknowledgements

Quantile Regression. By Luyang Fu, Ph. D., FCAS, State Auto Insurance Company Cheng-sheng Peter Wu, FCAS, ASA, MAAA, Deloitte Consulting

Market Risk Analysis Volume I

Negative Rates: The Challenges from a Quant Perspective

Callable Bond and Vaulation

Bloomberg. Portfolio Value-at-Risk. Sridhar Gollamudi & Bryan Weber. September 22, Version 1.0

The Financial Platform Built for now DESKTOP WEB MOBILE

Fast Convergence of Regress-later Series Estimators

Puttable Bond and Vaulation

Term Structure Models with Negative Interest Rates

CTM - Treasury Analytics

Master s in Financial Engineering Foundations of Buy-Side Finance: Quantitative Risk and Portfolio Management. > Teaching > Courses

Razor Risk Market Risk Overview

Financial Engineering with FRONT ARENA

EE365: Risk Averse Control

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

by Kian Guan Lim Professor of Finance Head, Quantitative Finance Unit Singapore Management University

OTC Derivatives Valuation and Data Services Technology-enabled solutions for derivatives and complex instruments

ARIMA ANALYSIS WITH INTERVENTIONS / OUTLIERS

FOR TRANSFER PRICING

Managing the Newest Derivatives Risks

Martingale Methods in Financial Modelling

With Examples Implemented in Python

AlgorithmicTrading Session 3 Trade Signal Generation I FindingTrading Ideas and Common Pitfalls. Oliver Steinki, CFA, FRM

Overnight Index Rate: Model, calibration and simulation

Executive Summary: A CVaR Scenario-based Framework For Minimizing Downside Risk In Multi-Asset Class Portfolios

Overview. With the property & casualty solution from TCS BaNCS, your insurance firm can gain from:

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

Experience the power of FENICS Professional TM

Brooks, Introductory Econometrics for Finance, 3rd Edition

Martingale Methods in Financial Modelling

We are not saying it s easy, we are just trying to make it simpler than before. An Online Platform for backtesting quantitative trading strategies.

Chapter 5 Univariate time-series analysis. () Chapter 5 Univariate time-series analysis 1 / 29

Model Calibration in MATLAB. Sam Bailey, PRUDENTIAL

BBVA COMPASS BANCSHARES, INC. MARKET RISK DISCLOSURES

Derivatives HELP.TRTMDE. Release 4.6C

Chapter 5 Univariate time-series analysis. () Chapter 5 Univariate time-series analysis 1 / 59

Institute of Actuaries of India Subject CT6 Statistical Methods

Ultimate Control. Maxeler RiskAnalytics

Finance (FIN) Courses. Finance (FIN) 1

Model Risk Assessment

Berlin, 10 th February 2017

STOCHASTIC PROGRAMMING FOR ASSET ALLOCATION IN PENSION FUNDS

Performance of robust portfolio optimization in crisis periods

palgrave Shipping Derivatives and Risk Management macmiuan Amir H. Alizadeh & Nikos K. Nomikos

Any symbols displayed within these pages are for illustrative purposes only, and are not intended to portray any recommendation.

Notes. Cases on Static Optimization. Chapter 6 Algorithms Comparison: The Swing Case

Modelling Counterparty Exposure and CVA An Integrated Approach

Economics 413: Economic Forecast and Analysis Department of Economics, Finance and Legal Studies University of Alabama

CTM - Treasury Analytics

Window Width Selection for L 2 Adjusted Quantile Regression

LIB-MS. Smart solution for your life insurance business

prepayment models (MBS & ABS Prepayment Model, Custom Prepayment Model) burnout, turnover and seasonality. credit models

Transcription:

New Developments in MATLAB for Computational Finance Kevin Shea, CFA Principal Software Developer MathWorks 2014 The MathWorks, Inc. 1

Who uses MATLAB in Financial Services? The top 15 assetmanagement companies The top 10 U.S. commercial banks 11 of the top 15 hedge funds The reserve banks of all OECD member countries The top 3 credit rating agencies 2

Financial Modeling Workflow Access Files Databases Datafeeds Research and Quantify Data Analysis and Visualization Financial Modeling Application Development Share Reporting Applications Production Spreadsheet Link EX Database Datafeed Trading Financial Instruments Financial Statistics Econometrics Optimization Report Generator Excel Builder.NET Builder Java Builder MATLAB Compiler Production Server MATLAB Parallel Computing MATLAB Distributed Computing Server 3

Agenda Access Files Databases Datafeeds Research and Quantify Data Analysis and Visualization Financial Modeling Application Development Share Reporting Applications Production Access Research and Quantify Example: State Space Modeling Example: Mixed Integer Linear Programming Share User Story: Developing a New Interest Rate Model Future Directions 4

Database Explorer Create and configure JDBC and ODBC data sources. Import selected data into the MATLAB workspace. Save generated SQL queries. Generate MATLAB code. 5

Native ODBC Database Connection Support for native ODBC database connection for Windows platforms. The native ODBC interface supports the following functions: fetch, exec, insert. conn = database.odbcconnection('dbtoolboxdemo','admin','admin'); 6

Trading Toolbox Functionality for accessing trade and quote pricing data, defining order types, and sending orders to financial trading markets. Supports Bloomberg EMSX, CQG Integrated Client, Interactive Brokers TWS, and Trading Technologies X_TRADER. 7

What s New in Econometrics Linear regression models with ARIMA error processes, including AR, MA, ARMA, and seasonal error models with regarima. Estimate robust covariances for ordinary least squares coefficients of multiple linear regression models under general forms of heteroscedasticity and autocorrelation using hac. 8

State-Space Modeling ssm model for performing univariate and multivariate time-series data analysis Estimate its parameters using estimate Implement forward recursion of the state-space model using filter Implement backward recursion of the state-space model using smooth Simulate states and observations using simulate Forecast states and observations using forecast Use the Kalman filter to estimate the states and to manage missing data 9

Example: Diebold Li Yield Curve Model y t τ = L t + S t 1 e λτ λτ + C t 1 e λτ λτ e λτ L t : level/long-term factor S t : slope/short-term factor C t : curvature/medium-term λ : time factor 10

Estimate Diebold Li Parameters 1. Two step process: 1. Fix λ, estimate L t, S t,c t at each date with linear regression 2. Fit VAR(1) model to L t, S t,c t 2. Kalman Filter 11

What s New in Financial Instruments Pricing spread and swing options using closed form, finite difference and Monte Carlo. Dual curve construction and pricing of swaps, caps, floors and swaptions. Calibration and simulation of interest rate models (Hull- White, G2++, LIBOR Market Model) Calibration of SABR stochastic volatility model 12

Counterparty Credit Risk Compute exposures and CCR profiles Support for computing credit exposures. Support for computing various credit exposure profiles, including potential future exposure and expected exposure. 13

Parallel Computing for CCR Tenors Instruments D a t e s Interest Rates D a t e s Portfolio Values parfor dateidx=1:ndates Values(dateidx,:,:) = swapbyzero( ) end 14

Third Party Interfaces Access third party analytics Support for accessing Numerix instruments and risk models. Support for accessing FinCAD through the F3 Toolbox for MATLAB. 15

What s new in Portfolio Optimization New portfolio object PortfolioMAD for meanabsolute deviation (MAD) portfolio optimization. New portfolio object PortfolioCVaR for conditional value at risk (CVaR) portfolio optimization. # of Portfolio Returns Loss 95% CVaR 16

Mixed Integer Linear Programming New solver (intlinprog) for mixed-integer linear programming (MILP) problems Continuous and integer variables (Mixed Integer) x 1 0, 100 x 2 {1,2,3,4,5} Linear objective and constraints (Linear Programming) min x x 1 2x 2 such that x 1 + 4x 2 20 x 1 + x 2 = 10 17

Example: Cash-flow matching 15 x 105 Idea: Buy bonds to cover pension fund obligations Variables: How many of each bond to buy? Payments ($) 10 5 0 1 2 3 4 5 6 7 8 Time Period Constraints: Payments from bonds must be greater than or equal to pension fund obligations Objective: Minimize the size of the investment you make Cash Flow ($) 120 100 80 60 40 20 0 1 2 3 4 5 6 7 8 Time Period 18

MATLAB Production Server Directly deploy MATLAB programs into production Centrally manage multiple MATLAB programs and runtime versions Automatically deploy updates without server restarts Scalable and reliable Service large numbers of concurrent requests Add capacity or redundancy with additional servers MATLAB Production Server(s) Use with web, database and application servers Lightweight client library isolates MATLAB processing Access MATLAB programs using native data types Web Server(s) HTML XML Java Script 19

What is MATLAB Production Server? Enterprise framework for running packaged MATLAB programs MATLAB Production Server.NET Request Broker & Program Manager Server software Manages packaged MATLAB programs & worker pool Runtime libraries MATLAB Compiler Runtime (MCR) Lightweight client library (.NET & Java) Request MATLAB programs (functions) 20

Integrating with IT systems MATLAB Compiler Web Applications Web Server MATLAB Production Server Portfolio Optimization Excel Desktop Applications Application Server Pricing Risk Analytics Database Server 21

Developing a New Interest Rate Model Challenge Develop a new interest rate model based on work by Deguillaume, Rebonato and Pogudin (2013). Deguillaume, N., Rebonato, R., & Pogudin, A. (2013). The nature of the dependence of the magnitude of rate moves on the rates levels: a universal relationship. Quantitative Finance, 13(3), 351-367. 22

Developing a New Interest Rate Model Solution The model was developed in MATLAB and can be calibrated to multiple currencies and markets. Deployment The model was then deployed to customers via the SmartModels Excel Add- In interface. Deguillaume, N., Rebonato, R., & Pogudin, A. (2013). The nature of the dependence of the magnitude of rate moves on the rates levels: a universal relationship. Quantitative Finance, 13(3), 351-367. 23

Future Directions 24

Graphics 25

Big Data 26

27

MATLAB Online 28

29