28
2/24/06 Implementing Derivative Valuation Models U of Warwick Pricing using Webservices Arun Verma Quantitative Research Bloomberg LP

U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

Embed Size (px)

Citation preview

Page 1: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Cross-Currency Option Pricing using Webservices

Arun Verma

Quantitative ResearchBloomberg LP

Page 2: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Outline

• Finance problem overview

• Pricing Model

• Algorithm & Numerical Methods

• Deployment using Web services

• Advanced Pricing Models

Page 3: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

The Problem

Given two liquid pairs (MXN-USD, PLN-USD) and associated option quotes, how to form the implied volatility surface for an illiquid “cross-pair” (MXN-PLN) ?

Notes:

1) Heston model is a popular FX options model – fits the volatility surface well for a given currency pair.

2) Can we leverage good properties of Heston model for a cross-FX model needs to model 3 pairs of spot exchange rates?

3) Requirements:

• Need to keep joint dynamics tractable

• The model should be easily identifiable from observed data in the market

• The model should be robust – the parameters should be relatively robust to small changes in market data

Page 4: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Cross-currency pricing in Black-Scholes

In the Black-Scholes model, a constant lognormal volatility is assumed.

quotes.market straddle neutral-delta and Margins-Strangle Reversal,-Risk observed

replicatecan which model a need we;simplistic far too is Scholes-Black

.currencies 3 than more of case in the formed becan bounds ginterestin More

|-|

:Inequality Triangle

2

bygiven is rate-cross of Volatility

A.currency of unitsin denoted Bcurrency ofunit 1 of price Denote

22

BACABCBACA

BACACABABC

CA

BABC

BA

S

SS

S

Page 5: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Notation : Primary and Anchor Currencies

C

B A1

A2

For any cross-FX pair (B-C) of interest, we can pick any one of the many anchor currencies, e.g. A1 or A2. A liquid anchor (USD, EUR or JPY) is useful.

B-A & C-A are denoted as primary pairs (with known volatility surfaces)

Setting I : One anchor currencySetting II : Multiple anchor currencies

Page 6: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Implied Correlation – a Flawed Concept

A natural method is to model the “implied correlation” as a function of delta and maturity.

1) It is a flawed concept since there is no logic for linking delta of a cross pair to the same delta of the primary pairs.

2) A return of 20% on cross can be achieved by (0%,20%), (20%,0%) or (10%,10%) in the primary pairs so linking strike (delta) levels doesn’t make much sense.

3) Moreover, the implied correlation value could be outside its natural bounds of -1 & +1. There may be no arbitrage-violation since this concept has no theoretical underpinnings.

TCA

TBA

TBC

TCA

TBA

T ,,

2,2,2,

, 2

)()()(

Page 7: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Joint-Heston Dynamics – Primary rates dynamics

tCAtBA

CAtCA

tBAtBA

tCA

tBA

t

tttt

CAttCACA

CA

CA

BAttBABA

BA

BA

BA

vv

dWdWdWdWdWdW

dWvdtvdv

dWvdtrrS

dS

dWvdtrrS

dS

S

22 and are processes

varianceactual The -notation modelHeston standard not the is that thisNote

A.currency in theaccount market -money

the toingcorrespond measure neutralrisk theis measurey probabilit The

, ,

)(

)(

)(

1.22 USD-EUR E.g., A.currency of unitsin expressed Bcurrency of price

Page 8: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Joint-Heston Dynamics – Cross rate dynamics

theorem.Girsanov Use

measure. neutral-risk C""currency in dynamics derive-re

toneed We.Qcurrency Anchor in account market money with

associated measure neutralrisk under still are dynamics These

2

2

where

)(

) - ( )(

:dynamics thegives on oIt Applying

A

22

22

2

BACACABA

CACABABABCt

BCt

BACACABABC

BCttBCBC

CAtCA

BAtBAttCAtBACABC

BC

BC

CA

BABC

dWdW

dWvdtrr

dWdWvdtvvrrS

dS

S

SS

Page 9: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Joint-Heston Dynamics – Change of Measure

model. tractablea is This

2

same. remain the incrementsbrownian between n correlatio The

) ,( with ModelHeston a is above This

measure. new under the motionsbrownian standard are s W'The

])([

)(

: measure new Under the. to from measures change to

,martingale positive a , process theuse We

22

***

BACACABA

CACABABABCt

BCt

CACA

tttCACAtt

BCttBCBC

BC

BC

CA

ACAt

)tr-(r

dWdW

dWvdtvvdv

dWvdtrrS

dS

QQ

QSe CA

Page 10: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Critique of the Joint-Heston model

Pros:• Tractability : The primary rates and cross rates all follow Heston dynamics.• Robustness : The model is robustly identified given the market data – no

knowledge of cross is required.

Cons:• The identical clock for two primaries (and indeed the cross) imposes the

constraint that all three vol surfaces will have similar term structure.

• The surfaces will also exhibit similar convexity since they share the vol-vol parameter – Fortunately in the market most pairs have same convexity – the butterfly spreads are typically prices the same across pairs.

• Note that the surfaces can have different skews (slopes) & levels as each exchange rate has their own correlation parameter defining correlation between the common clock and exchange rate increments.

Page 11: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Model Parameters

• The model has 8 free parameters

• is not identifiable from two primary rates volatility surfaces alone.

• It can be estimated from historical data or can be used as a “lever” to get a desired level of output vol.

)1( , ,,,,,, 0 CABACABA v

Page 12: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Calibration

• The pricing is done using the Fourier Transform (computed via FFT with appropriate discretization, Carr and Madan 98) which is based on computing the characteristic function which is available in closed form (Heston 93).

• The discrete transform derived by Carr and Madan can also be computed using Fractional Fast Fourier Transform which allows for accurate answer for a large range of strikes.

• The calibration problem which is solved numerically the nonlinear least squares problem minimizing the observed and model-implied vol surfaces using a trust-region optimization scheme in the Levenberg-Marquardt framework.

• The optimization functional is formed using sum of squares of price errors weighted by inverse of Black-Scholes Vega for all the options on the two primary FX rates.

Page 13: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Page 14: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Sanity Checks

flat. be should cross then theconvexity equal and skew no have surfacesprimary two theIf

Test Convexity

result. negative aexpect wenegative, isinput reversalRisk ifSimilarly

0BF 0,RR

Then 0,BF 0,RR 0,BF 0,RR

Test Skew

2

bygiven is level its And

flat. be should output then thesurfacesflat are & If

flat. are surfacesprimary input the wheresassumption Scholes-Blackunder out carried is test This

Test Level

CBCB

ACACABAB

22

CBACAB

BACACABABC

Page 15: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Numerical Results

GBP-EUR GBP-USD USD-EUR (cross)

Individual Heston

0.20 % 0.15 % 0.24 %

Joint Heston 0.28 % 0.19 % 0.49 %

RMSE implied vols averaged over 30 days of daily data.

Used correlation parameter to match the short term ATM implied vol.

Page 16: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Cross-FX pricing on the BloombergInputs

Page 17: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Robustness of the Model

Variation of parameters over calendar days –Dashed (separate). Solid (Joint-Heston)

Page 18: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Correlation parameter stability.

Page 19: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Implementation

• The implementation is done using MATLAB technical computing environment which is a powerful package for mathematical modeling.

• The model built in MATLAB is exposed as a COM or .NET assembly using Matlab tools which compile the native .m files into C/C++ and then build the binaries/libraries.

• The Com and .NET assemblies are easily important into a production environment which supports .NET webservices. A MATLAB analytics are included inside a webservice wrapper.

• We have an initiative “Smart Client for Quants” at Bloomberg under which we are publishing matlab models directly to production servers.

Page 20: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Page 21: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Production /Deployment Issues

• The application will consume data provided by Bloomberg Server API. Currently the Server API is provisioned for a defined set of users (generally a firm).

• It is not possible to service requests from an arbitrary group of (potentially all) Bloomberg users, while maintaining the identity (and associated preferences and permissions) of the user.

– A number of Server API rules that are applied by various back end components to limit the scope of data returned:

• A user making a request must be in the group of users associated with the particular Server API installation that initiates the request.

• Data from certain exchanges cannot be delivered through Server API.

– The impact on the servers of supporting large numbers of concurrent requests (>800) on behalf of a potentially large number of users needs to be tested.

Page 22: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Smart Client for Quants

• The “Straight From the Lab” initiative allows Bloomberg quantitative analysts to rapidly deploy applications built around complex calculations to selected customer desktops using Bloomberg Smart Client technology.

• In these deployments the calculations run on a server machine and are exposed as Web Services. These services will acquire data from the Bloomberg Server API.

Page 23: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

A smart client application

Page 24: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Advanced Models

Independent stochastic clocks

Adding a Global Economy Factor

Multiple Anchor versions

Copula Models

Page 25: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Extension I : Independent stochastic clocks

A"."currency say lets dynamics, abovefor pick we

measurech matter whit doesn'It n.correlatio zero a have incrementsbrownian of pairsother All

, , ,

.parisomonyfor parameters same have clocks All

)(

)(

)(

:measures respectivein their clocksown their have currencies threeallin accountsmarket money let We

'''

'

Bt

Bt

Bt

Bt

At

At

Ct

Ct

Ct

Ct

Bt

Bt

Bt

Bt

At

At

At

At

Ct

CtCC

C

C

Bt

BtBB

B

B

At

AtAA

A

A

dWdWdWdWdWdW

dWvdtvdv

dWvdtvdv

dWvdtvdv

dWvdtrX

dX

dWvdtrX

dX

dWvdtrX

dX

Page 26: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Extension I : Independent stochastic clocks

anchors. moreor 2 with used beMust context.anchor single ain leidentifiabnot are Parameters

CFs.Heston twoofproduct theusing form closed

in available isfunction sticcharacteri thesince FFT using priced be stillcan options vanillaThe

)1( ,,,,,,,, are parameters The

same. stay the

nscorrelatio The drift. of change a have will,, clocks The

-)(

is change measurerelevant after the rate-cross The measure. A""currency in are These

-)(

-)(

etc.. ,X

Xasseen becan ion,normalizatUpon

000

B

A

CBACBA

Ct

Bt

At

Bt

BtB

Ct

CtCBC

BC

BC

Ct

CtC

At

AtACA

CA

CA

Bt

BtB

At

AtABA

BA

BA

BA

vvv

vvv

dWvdWvdtrrS

dS

dWvdWvdtrrS

dS

dWvdWvdtrrS

dS

S

Page 27: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Extension II : Additional Global Factor

order.similar of isaccuracy andHeston -Jointanchor -single tocompared

eprohibitiv are costs nalcomputatio econtext thanchor -multiple In the robustly. parameters

factor global and clocks heidentify t tosettinganchor multiple ain used bemust extension This

-)()(

-)()(

-)()(

:are dynamicspair currency The

)(

)(

)(

:factor global a Add

Bt

BtB

Ct

CtC

GtGBCBC

BC

BC

Ct

CtC

At

AtA

GtGCACA

CA

CA

Bt

BtB

At

AtA

GtGBABA

BA

BA

Ct

Ct

GtGCC

C

C

Bt

Bt

GtGBB

B

B

At

At

GtGAA

A

A

dWvdWvdWdtrrS

dS

dWvdWvdWdtrrS

dS

dWvdWvdWdtrrS

dS

dWvdWdtrX

dX

dWvdWdtrX

dX

dWvdWdtrX

dX

Page 28: U of Warwick2/24/06 Implementing Derivative Valuation Models Cross-Currency Option Pricing using Webservices Arun Verma Quantitative Research Bloomberg

2/24/06 Implementing Derivative Valuation Models U of Warwick

Conclusions• The simple joint-Heston model with one anchor currency is

robust and its accuracy is acceptable.

• Can use either a correlation or desired ATM vol level to generate the cross-vol.

• The extensions can be used to exploit information content of additional anchors – these models are costly in terms of computation and are unidentifiable in the single-anchor setting.

• Further extensions using Copulas can be investigated – However, Copulas are hard to generalize for pricing exotic options etc.

• The Web service architecture offers a good platform for sporadic traffic from client requests through out a trading day.