Filtering bond and credit default swap markets

Similar documents
LEGAL DISCLAIMER. APG Coin (APG) White Paper (hereinafter 'the White Paper', 'the Document') is presented for informational purposes only

1.4 Function Notation

LUCRE O U R M A N I F E S T O COPYRIGHT 2018 LUCRE. ALL RIGHTS RESERVED V E R S I O N 1. 3 J A N

Endogenous Information Choice

Microeconomic theory focuses on a small number of concepts. The most fundamental concept is the notion of opportunity cost.

Bargaining, Contracts, and Theories of the Firm. Dr. Margaret Meyer Nuffield College

PARTICIPATING ORGANISATIONS CIRCULAR

Sample Institution Memphis, TN

Some Notes on Adverse Selection

Generalized Autoregressive Score Models

State GIS Officer/GIS Data

Stochastic Processes

State-space Model. Eduardo Rossi University of Pavia. November Rossi State-space Model Fin. Econometrics / 53

Warwick Business School Forecasting System. Summary. Ana Galvao, Anthony Garratt and James Mitchell November, 2014

Statistical Inference and Methods

Lakeland Court MHP Norton Rd Lakeland, FL 33809

BOSELE NATIONAL PROVIDENT FUND JM BUSHA BONDPLUS

Notes on Random Variables, Expectations, Probability Densities, and Martingales

One way to deal with the unpredictable costs of winter weather. By Shane Belvin

Sunshine City 47-Sp MHP

1.4 Linear Functions of Several Variables

Statistics Homework #4

1. Consider the following graphs and choose the correct name of each function.

Probabilities & Statistics Revision

MKTG 555: Marketing Models

A look into the factor model black box Publication lags and the role of hard and soft data in forecasting GDP

Chapter 2: Studying Geography, Economics, and Citizenship

GEOMETRY ASTROLOGY NATURE NUMBERS. Perception LEARNING AFFLUENCE NURTURING

Time Series 2. Robert Almgren. Sept. 21, 2009

Order book modeling and market making under uncertainty.

Economics 501B Final Exam Fall 2017 Solutions

RCKS Charts: BHP, TECK, KL, FM, ANX, ECS, WDO & TK

Probability. Table of contents

Structural VARs II. February 17, 2016

S T A T E B U D G E T : T A X A M E N D M E N T S

Lecture 9: Elementary Matrices

ENG 8801/ Special Topics in Computer Engineering: Pattern Recognition. Memorial University of Newfoundland Pattern Recognition

Lecture Notes. Applied Mathematics for Business, Economics, and the Social Sciences (4th Edition); by Frank S. Budnick

17 Exponential and Logarithmic Functions

We now impose the boundary conditions in (6.11) and (6.12) and solve for a 1 and a 2 as follows: m 1 e 2m 1T m 2 e (m 1+m 2 )T. (6.

State-space Model. Eduardo Rossi University of Pavia. November Rossi State-space Model Financial Econometrics / 49

Wooldridge, Introductory Econometrics, 3d ed. Chapter 9: More on specification and data problems

Competitive Equilibrium

Econometría 2: Análisis de series de Tiempo

New Notes on the Solow Growth Model

a) Graph the equation by the intercepts method. Clearly label the axes and the intercepts. b) Find the slope of the line.

Probabilistic Graphical Models Homework 2: Due February 24, 2014 at 4 pm

General Mathematics 2018 Chapter 5 - Matrices

Are Symmetrical Patterns More Successful?

X t = a t + r t, (7.1)

Essentials of expressing measurement uncertainty

A new unscented Kalman filter with higher order moment-matching

22/04/2014. Economic Research

Sample Mathematics 106 Questions

GOLD: It s About Time (and Other Things) December 4, 2018

General Examination in Macroeconomic Theory SPRING 2013

Put the Weather to Work for Your Company

28 March Sent by to: Consultative Document: Fundamental review of the trading book 1 further response

Data Standard Specification. Draft v0.1. Contact:

Data Analysis and Machine Learning Lecture 10: Applications of Kalman Filtering

Rebate Report. $15,990,000 Public Finance Authority Charter School Revenue Bonds (Voyager Foundation, Inc. Project) Series 2012A

Sequenced Units for Arizona s College and Career Ready Standards MA35 Personal Finance Year at a Glance

G12MAN Mathematical Analysis Fully-justified answers to Revision Quiz questions

Monetary and Exchange Rate Policy Under Remittance Fluctuations. Technical Appendix and Additional Results

For a stochastic process {Y t : t = 0, ±1, ±2, ±3, }, the mean function is defined by (2.2.1) ± 2..., γ t,

MA Advanced Macroeconomics: Solving Models with Rational Expectations

Continuum Probability and Sets of Measure Zero

L06. LINEAR KALMAN FILTERS. NA568 Mobile Robotics: Methods & Algorithms

Figure 1: Novo Resources Corp. (TSXV:NVO)

11. Further Issues in Using OLS with TS Data

EC476 Contracts and Organizations, Part III: Lecture 2

Learning the Linear Dynamical System with ASOS ( Approximated Second-Order Statistics )

Section 1.4: Function Notation, from College Algebra: Corrected Edition by Carl Stitz, Ph.D. and Jeff Zeager, Ph.D. is available under a Creative

Math489/889 Stochastic Processes and Advanced Mathematical Finance Solutions for Homework 7

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science ALGORITHMS FOR INFERENCE Fall 2014

Increasingly, economists are asked not just to study or explain or interpret markets, but to design them.

The New Keynesian Model: Introduction

1 The Basic RBC Model

The Multivariate Gaussian Distribution [DRAFT]

Math 123, Week 9: Separable, First-Order Linear, and Substitution Methods. Section 1: Separable DEs

An Introduction to Independent Components Analysis (ICA)

The Natural Rate of Interest and its Usefulness for Monetary Policy

ECE 302, Final 3:20-5:20pm Mon. May 1, WTHR 160 or WTHR 172.

Calculus with business applications, Lehigh U, Lecture 01 notes Summer

Bayesian Optimization

CREATING CUSTOMIZED DATE RANGE COLLECTIONS IN PRESENTATION STUDIO

Name of Bank BASEL III LEVERAGE RATIO REPORT As of 30 Sep 2018

Identifying the Monetary Policy Shock Christiano et al. (1999)

FOR SALE. Chapel Lane, West Ella, East Yorkshire, HU10 7SE RESIDENTIAL CONVERSION AND NEW BUILD OPPORTUNITY

Property Tour Report

Current Trends in Mining Finance and

4 Bias-Variance for Ridge Regression (24 points)

Business Statistics Midterm Exam Fall 2015 Russell. Please sign here to acknowledge

ECONOMETRIC METHODS II: TIME SERIES LECTURE NOTES ON THE KALMAN FILTER. The Kalman Filter. We will be concerned with state space systems of the form

UNDERSTANDING FUNCTIONS

Part A: Answer question A1 (required), plus either question A2 or A3.

Function: State whether the following examples are functions. Then state the domain and range. Use interval notation.

MAT 121: Mathematics for Business and Information Science Final Exam Review Packet

Lecture 9 4.1: Derivative Rules MTH 124

Lecture Notes: Industrial Organization Joe Chen 1. The Structure Conduct Performance (SCP) paradigm:

Transcription:

Filtering bond and credit default swap markets Peter Cotton May 20, 2017

Overview Disclaimer Filtering credit markets A visual introduction A unified state space for bond and CDS markets Kalman filtering Issues Explaining and justifying pricing Historical importance of observations Kalman as least squares on the current state Sensitivities of the least square problem

Accuracy A simple target A time, size and money-under-the-bridge weighted target Fixing an inconsistency Multivariate filters seemingly perform worse then univariate Serial correlation distorts accuracy metrics Vendor comparison Peter Cotton CFMAR May 19-21, 2017 3/43

Disclaimer Any views presented here are the author s and may not represent those of his employer past or present. This material is provided for information purposes only and does not bind J.P. Morgan in any way. It is not intended as a recommendation or an offer or solicitation for the purchase or sale of any security or financial instrument, or to enter into a transaction involving any financial instrument or trading strategy, or as an official confirmation or official valuation of any transaction mentioned herein. Nothing in this material should be construed as investment, tax, legal, accounting, regulatory or other advice (including within the meaning of Section 15B of the Securities Exchange Act of 1934) or as creating a fiduciary relationship. Peter Cotton CFMAR May 19-21, 2017 4/43

Filtering credit markets A visual introduction Peter Cotton CFMAR May 19-21, 2017 5/43

Peter Cotton CFMAR May 19-21, 2017 6/43

Peter Cotton CFMAR May 19-21, 2017 7/43

Peter Cotton CFMAR May 19-21, 2017 8/43

Peter Cotton CFMAR May 19-21, 2017 9/43

Peter Cotton CFMAR May 19-21, 2017 10/43

Peter Cotton CFMAR May 19-21, 2017 11/43

A unified state space for bond and CDS markets Hazard, funding curves can be represented as hidden processes. From this basic state, bond and credit default swaps can be computed using the usual present value computations. Additional state, representing the width of the market at various maturities, can be used to provide a rough estimate of where trading will occur. The actual observed trades y ti are considered noisy measurements of a non-linear function of state x ti. y ti = h (x ti ) + ɛ i (1) where h incorporates credit default swap or bond pricing formulas, depending on the observation in question. Peter Cotton CFMAR May 19-21, 2017 12/43

Kalman filtering Linearize by differentiation, for now. Then consider a sequence of observations times t 1,..., t k at which our latent vector process x is observed indirectly, via an observation equation y ti = h i x ti + ɛ i (2) We assume ɛ i is mean zero multivariate gaussian with covariance r i. For brevity we refer to y ti as y i, x ti as x i and so forth. We assume the evolution of x in between the times specified can be written x i+1 = A i x i + u i (3) where u i are also gaussian. In this linear gaussian system the recursive estimation of x t is achieved by the well known Kalman filter. I think we knew that already! Peter Cotton CFMAR May 19-21, 2017 13/43

Issues Stare at bond price time series for a while and you ll quickly discover that every assumption is violated 1. Brokered trades 2. Jumps 3. Lags 4. Off-market quotes 5. Funding peculiarities Peter Cotton CFMAR May 19-21, 2017 14/43

Peter Cotton CFMAR May 19-21, 2017 15/43

Peter Cotton CFMAR May 19-21, 2017 16/43

Peter Cotton CFMAR May 19-21, 2017 17/43

Peter Cotton CFMAR May 19-21, 2017 18/43

Peter Cotton CFMAR May 19-21, 2017 19/43

Peter Cotton CFMAR May 19-21, 2017 20/43

Peter Cotton CFMAR May 19-21, 2017 21/43

Peter Cotton CFMAR May 19-21, 2017 22/43

Explaining and justifying pricing The contemporaneous impact of an observation y k+1 is proportional to the Kalman gain. (I think we knew that already too). This creates the pricing narrative. But most observations are not contemporaneous... Peter Cotton CFMAR May 19-21, 2017 23/43

Historical importance of observations Peter Cotton CFMAR May 19-21, 2017 24/43

The derivatives of the Kalman filter estimate with respect to a past observation y i is not something we see too often. 1. Re-represent the Kalman estimate in the form of a weighted least squares problem (c.f. Duncan Horn representation). 2. Compute sensitivities of the solution of the weighted least squares problem. Sometimes a little adjoint trick helps here. Peter Cotton CFMAR May 19-21, 2017 25/43

Kalman as least squares on the current state Sketch: We set up a least squares problem involving the current state x k only. The solution to this problem is identical to the Kalman filter s current estimate. This establishes that the current estimate ŷ k is a simple linear function of the current state x k, so we can compute the derivative of the current estimate with respect to all previous observations. Peter Cotton CFMAR May 19-21, 2017 26/43

To be tidy, assume a gaussian prior on the initial state x 0. To avoid annoying special cases in what follows, we clean up the notation by indexing back to 1 as follows: y 1 = h 1 x 1 + ɛ 1 x 0 = A 1 x 1 + u 1 and here h 1 and A 1 are identity matrices, ɛ 1 is identically zero, y 1 is set equal to the mean of our prior and u 0 adopts its covariance. With the boundary conditions cleaned up in this fashion we can invert the dynamical equations, assuming only that A s have left inverses A 1, as follows: x j = A 1 j (x j+1 u j ) (4) and then re-arrange the observation equations so that the only value of x i that appears is x k. Peter Cotton CFMAR May 19-21, 2017 27/43

The inversion looks like: y k = h k x k + ɛ k y k 1 = h k 1 x k 1 + ɛ k 1 ( = h k 1 A 1 k 1 (x k u k 1 ) ) + ɛ k 1 = h k 1 A 1 k 1 x k h k 1 A 1 k 1 u k 1 + ɛ k 1 y k 2 = h k 2 x k 2 + ɛ k 2 ( = h k 2 A 1 k 2 (x k 1 u k 2 ) ) + ɛ k 2 = h k 2 A 1 k 2 x k 1 h k 2 A 1 = h k 2 A 1 k 2 k 2 u k 2 + ɛ k 2 ( A 1 k 1 (x k u k 1 ) ) h k 2 A 1 k 2 u k 2 + ɛ k 2 = h k 2 A 1 k 2 A 1 k 1 x k h k 2 A 1 k 2 A 1 k 1 u k 1 h k 2 A 1 k 2 u k 2 + ɛ k 2... Peter Cotton CFMAR May 19-21, 2017 28/43

From which it is apparent that if we write Y = (y k, y k 1, y k 2,..., y 1 ) then Y = Hx k + η (5) where H is the concatenation of the coefficients of x k given above and η is the gaussian random variable equal to the sum of u k s and ɛ k s. Thus we have a simple least squares problem for the contemporaneous state x k which is not dissimilar to the Duncan-Horn representation of the Kalman filter. Peter Cotton CFMAR May 19-21, 2017 29/43

Sensitivities of the least square problem Suppose x solves Qx = b(y). We wish to compute the derivative of g(x) w.r.t. y (because, to recap this will tell traders how important every historical observation is to the current price estimate whether or not the observation pertains to a bond in question). In particular, if y is the observation and x the solution of a generalized least squares problem with error co-variance R we can cast it in this form by writing: g(x) = Hx Q = H T R 1 H b(y) = H T R 1 y Consider now f(x, y) = 0 (6) Peter Cotton CFMAR May 19-21, 2017 30/43

where We use derivatives of f(x, y) = Qx b(y) (7) g = g λ T f(x, y) (8) with respect to y as a means of computing derivatives of g with respect to y. Peter Cotton CFMAR May 19-21, 2017 31/43

Note that g y = g ( x f x y x λt x y + f ) y and this will simplify if we choose λ judiciously as a solution of which is the adjoint equation. For then g y g f = λt x x = g x x y λt = λ T f y = λ T b y ( f x x y + f ) y (9) (10) (11) (12) (13) Peter Cotton CFMAR May 19-21, 2017 32/43

Now specializing to g(x) = Hx (14) and b(y) as above we can solve for this convenient choice of λ by writing H = g x (15) = λ T f x (16) = λ T Q (17) = λ T H T R 1 H (18) where the second equality is the adjoint equation. Thus we can compute derivatives of g with respect to y, and thereby compute derivatives of g with respect to y which is what we set out to do. Peter Cotton CFMAR May 19-21, 2017 33/43

Accuracy At some point you have to explain the accuracy of your prices to clients. On the vendor side it is sometimes argued that customers are insensitive to pricing quality and the service is therefore sticky. This is party true but that argument presumes there will be no material change in market structure or competitive forces. In fact major buy side firms are gearing up to better quantify their transaction costs relative to peers. Others wish to use their inventory to generate alpha. And sell-side firms look for lower cost means of making markets and even assessing traders. Unfortunately, accuracy is a subtle beast... Peter Cotton CFMAR May 19-21, 2017 34/43

A simple target The next inter-dealer trade. Issues: 1. Rare for many bonds 2. Noisy 3. Repeated 4. Paired 5. Serially correlated Peter Cotton CFMAR May 19-21, 2017 35/43

A time, size and money-under-the-bridge weighted target Fix some moment t at which a price is supplied by a vendor and consider the J subsequent inter-dealer trades: F V T (t; J) = J j=1 p js j e (tj t) e M j J j=1 s je (tj t) e M j (19) where p j, s j and t j are the price, size and time of subsequent inter-dealer trades with time measured in business days and M j = 1 j 1 s k (20) c k=1 is the cumulative trading volume up to but not including the trade in question. Peter Cotton CFMAR May 19-21, 2017 36/43

Fixing an inconsistency The use of M j is slightly unnatural because it means the target is not invariant to splitting of future trades. We can easily fix this, however, by integrating in money instead of time. F V T (t; J) = M + J m=0 p(m)e m e (t(m) t) dm M + J m=0 e m e (t(m) t) dm where M + J := M J+1 is the total amount of money under the bridge up to and including the J th trade, p(m) is the price when m dollars of trading has occurred, and t(m) t is the time we have progressed when m dollars of trading has occurred. Peter Cotton CFMAR May 19-21, 2017 37/43

Multivariate filters seemingly perform worse then univariate A more serious issue with accuracy measures for bond pricing relates to the inefficiency in the market. One needs to be careful not to reward univariate models (treating only the bond in question) for over-fitting. A stylized simulation to prove the point following West and Papanicoloau can run as follows. Disregard funding rates and use piece-wise hazards: so that yields λ(t) = λ i, t i 1 t i (21) y i = are clearly linear in the hazard rates. Ti 0 λ(t)dt (22) Peter Cotton CFMAR May 19-21, 2017 38/43

Assume now that hazards are independent random walks λ k (t d t) = λ k (t) + N(0, dtσ 2 k) (23) and for simplicity set σ 1 = 0.1, σ 2 = 0.05 and σ 3 = 0.01. Assume bond prices are observed at times generated by a self-exciting Hawkes process: dc t = (c t c)e κt + fdn t (24) West and Papanicolaou studied various types of bonds based on these parameters. They then used both univariate and multivariate Kalman filters, and also a simple model where the estimate was simply the last trade observation. Peter Cotton CFMAR May 19-21, 2017 39/43

Last Trade Univariate K.F. Multivariate K.F. Apparent error 0.020 0.0377 0.0383 Actual error 0.056 0.0512 0.0286 Table 1: Apparent error when measured against the next trade, and actual error against ground truth. In a simulation the model that simply uses the last trade of the bond in question appears to perform better than the multivariate Kalman filter applied to the entire curve - but that is an illusion. Numbers courtesy of Nick West and George Papanicolaou. Peter Cotton CFMAR May 19-21, 2017 40/43

Serial correlation distorts accuracy metrics A related problem occurs if we assume that trade observations are serially correlated errors with respect to some ground truth. Simple models can over-fit but appear to perform well in simple accuracy statistics. With all that said... here is a comparison between the current version of Benchmark, built by A.J. Linderman, Antoine Toussaint et al, and a prominent vendor offering real-time pricing. (We can t compare the original Benchmark pricing service as there were no other real-time services at the time). Peter Cotton CFMAR May 19-21, 2017 41/43

Time since last trade Market leader BMRK Count 5-20 mins 0.238 0.140 7,348 20 mins -2 hr 0.215 0.156 9,326 2hr - 4hr 0.250 0.174 726 4hr - 10 hr 0.217 0.159 5,931 10hr - 2 days 0.217 0.171 2,613 2 days - 1 week 0.234 0.189 4,738 30,672 Vendor comparison Peter Cotton CFMAR May 19-21, 2017 42/43

Questions?