Premia 14 HESTON MODEL CALIBRATION USING VARIANCE SWAPS PRICES

Similar documents
Advanced Topics in Derivative Pricing Models. Topic 4 - Variance products and volatility derivatives

7 pages 1. Premia 14

Pricing Volatility Derivatives with General Risk Functions. Alejandro Balbás University Carlos III of Madrid

Tangent Lévy Models. Sergey Nadtochiy (joint work with René Carmona) Oxford-Man Institute of Quantitative Finance University of Oxford.

Pricing Variance Swaps under Stochastic Volatility Model with Regime Switching - Discrete Observations Case

CALIBRATION OF THE HULL-WHITE TWO-FACTOR MODEL ISMAIL LAACHIR. Premia 14

Pricing Barrier Options under Local Volatility

Heston Model Version 1.0.9

Optimal Hedging of Variance Derivatives. John Crosby. Centre for Economic and Financial Studies, Department of Economics, Glasgow University

Calibration Lecture 4: LSV and Model Uncertainty

Lattice (Binomial Trees) Version 1.2

Application of Moment Expansion Method to Option Square Root Model

Machine Learning for Quantitative Finance

Dynamic Relative Valuation

F A S C I C U L I M A T H E M A T I C I

arxiv: v1 [q-fin.pr] 18 Feb 2010

Calibrating to Market Data Getting the Model into Shape

1 The Hull-White Interest Rate Model

FX Smile Modelling. 9 September September 9, 2008

2 f. f t S 2. Delta measures the sensitivityof the portfolio value to changes in the price of the underlying

Pricing CDOs with the Fourier Transform Method. Chien-Han Tseng Department of Finance National Taiwan University

Computer Exercise 2 Simulation

The Lognormal Interest Rate Model and Eurodollar Futures

Stochastic Volatility (Working Draft I)

Variance derivatives and estimating realised variance from high-frequency data. John Crosby

Monetary Economics Final Exam

Implementing an Agent-Based General Equilibrium Model

Variance Derivatives and the Effect of Jumps on Them

Heinz W. Engl. Industrial Mathematics Institute Johannes Kepler Universität Linz, Austria

RealVol Futures Overlay On an S&P 500 Portfolio

Calibration Lecture 1: Background and Parametric Models

Interest rate models and Solvency II

Saddlepoint Approximation Methods for Pricing. Financial Options on Discrete Realized Variance

Computer Exercise 2 Simulation

Pricing Dynamic Solvency Insurance and Investment Fund Protection

Unemployment Fluctuations and Nominal GDP Targeting

F19: Introduction to Monte Carlo simulations. Ebrahim Shayesteh

"Pricing Exotic Options using Strong Convergence Properties

Lecture 17. The model is parametrized by the time period, δt, and three fixed constant parameters, v, σ and the riskless rate r.

Macroeconometric Modeling: 2018

Empirical Approach to the Heston Model Parameters on the Exchange Rate USD / COP

On the Calibration of Stochastic Volatility Models: A Comparison Study

Lecture IV Portfolio management: Efficient portfolios. Introduction to Finance Mathematics Fall Financial mathematics

A THREE-FACTOR CONVERGENCE MODEL OF INTEREST RATES

Time-changed Brownian motion and option pricing

Linear-Rational Term-Structure Models

IDENTIFYING BROAD AND NARROW FINANCIAL RISK FACTORS VIA CONVEX OPTIMIZATION: PART II

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL

Lecture Quantitative Finance Spring Term 2015

Exploring Volatility Derivatives: New Advances in Modelling. Bruno Dupire Bloomberg L.P. NY

Exercises on the New-Keynesian Model

Derivation Of The Capital Asset Pricing Model Part I - A Single Source Of Uncertainty

Earnings Inequality and the Minimum Wage: Evidence from Brazil

Richardson Extrapolation Techniques for the Pricing of American-style Options

Math Computational Finance Option pricing using Brownian bridge and Stratified samlping

A simple wealth model

The method of Maximum Likelihood.

Options Pricing Using Combinatoric Methods Postnikov Final Paper

ESG Yield Curve Calibration. User Guide

SOCIETY OF ACTUARIES Quantitative Finance and Investments Exam QFI ADV MORNING SESSION. Date: Thursday, October 31, 2013 Time: 8:30 a.m. 11:45 a.m.

RESEARCH ARTICLE. The Penalized Biclustering Model And Related Algorithms Supplemental Online Material

ROM Simulation with Exact Means, Covariances, and Multivariate Skewness

A Two-Factor Model for the Electricity Forward Market

Hedging Credit Derivatives in Intensity Based Models

Oil Price Uncertainty in a Small Open Economy

ECON 4325 Monetary Policy and Business Fluctuations

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

Illiquidity, Credit risk and Merton s model

International Journal of Computer Engineering and Applications, Volume XII, Issue II, Feb. 18, ISSN

MACROECONOMICS. Prelim Exam

Option Pricing for Discrete Hedging and Non-Gaussian Processes

A Generic One-Factor Lévy Model for Pricing Synthetic CDOs

Accelerated Option Pricing Multiple Scenarios

LECTURE NOTES 3 ARIEL M. VIALE

Valuation of Volatility Derivatives. Jim Gatheral Global Derivatives & Risk Management 2005 Paris May 24, 2005

Math Computational Finance Double barrier option pricing using Quasi Monte Carlo and Brownian Bridge methods

Portfolio Management Using Option Data

SUPPLEMENT TO THE LUCAS ORCHARD (Econometrica, Vol. 81, No. 1, January 2013, )

Portfolio selection with multiple risk measures

Dynamic Replication of Non-Maturing Assets and Liabilities

IEOR E4703: Monte-Carlo Simulation

Preference-Free Option Pricing with Path-Dependent Volatility: A Closed-Form Approach

A Note on the Oil Price Trend and GARCH Shocks

B. Combinations. 1. Synthetic Call (Put-Call Parity). 2. Writing a Covered Call. 3. Straddle, Strangle. 4. Spreads (Bull, Bear, Butterfly).

User s Guide for the Matlab Library Implementing Closed Form MLE for Diffusions

Final Projects Introduction to Numerical Analysis atzberg/fall2006/index.html Professor: Paul J.

Heston Stochastic Local Volatility Model

Lecture 17: More on Markov Decision Processes. Reinforcement learning

Vega Maps: Predicting Premium Change from Movements of the Whole Volatility Surface

Exercise List: Proving convergence of the (Stochastic) Gradient Descent Method for the Least Squares Problem.

Implementing Models in Quantitative Finance: Methods and Cases

The Pricing of Variance, Volatility, Covariance, and Correlation Swaps

Weighted Variance Swap

25. Interest rates models. MA6622, Ernesto Mordecki, CityU, HK, References for this Lecture:

RealVol Futures Overlay On an S&P 500 Portfolio Sixiang Li October 2012

Practical example of an Economic Scenario Generator

Online Appendix Optimal Time-Consistent Government Debt Maturity D. Debortoli, R. Nunes, P. Yared. A. Proofs

Sample Path Large Deviations and Optimal Importance Sampling for Stochastic Volatility Models

Actuarial Society of India

Simple Robust Hedging with Nearby Contracts

Transcription:

Premia 14 HESTON MODEL CALIBRATION USING VARIANCE SWAPS PRICES VADIM ZHERDER Premia Team INRIA E-mail: vzherder@mailru 1 Heston model Let the asset price process S t follows the Heston stochastic volatility model with meanreversion κ > 0 long-run variance θ > 0 volatility of volatility σ > 0 current variance v 0 > 0 and correlation ρ ( 1; 1) Introduce φ as the characteristic function of X t = log S t It is known in a closed form and can be used to compute standard call and put prices by the aid of Fourier inversion as in Lord&Kahl 2007 Let Q t be a process of quadratic variation Q t = ( X s ) 2 s t then the Variance Swap price with maturity T and strike K is given by W T = E [Q T ] K Typically the expectation of quadratic variation process is given in "annual volatility points" ie 1 Ṽ T = T E [Q T ] 100 In what follows we use "Variance Swap" to refer to "the expectation of quadratic variation process in annual volatility points" For the Heston model the expectation of Q T is expressed by a very simple closed formula: where E [Q T ] = TV (T; κ θ v 0 ) V (T; κ θ v 0 ) = θ + (v 0 θ) 1 e κt κt Note that for given T the expression for V (T; ) depends on κ θ and v 0 only 1

2 VADIM ZHERDER 2 Calibration We assume that both vanilla options prices and variance swaps are available at the market Then we can fit model to the data in two steps: first we estimate κ θ and v 0 by variance swaps prices we fix this values and use them together with some initial values of σ and ρ as an initial guess for the algorithm of 5-dimensional minimization of square error of vanilla prices 21 Variance swaps fitting Assume that we observe variance swaps prices W i for a set of maturities T i i = 1 2 N and we derive from them the observed values of the expectation of quadratic variation: Introduce the cost function f(κ θ v 0 ) by d i = ( Wi /100 ) 2 f(κ θ v 0 ) = (V i d i ) 2 where V i = V (T i ; κ θ v 0 ) To minimize f we find its partial derivatives using partial derivatives of V i : and obtain the system of equations: V i = 1 1 e θ V i = 1 e κti v 0 V i κ = v ( 0 θ e 1 e κ ) (V i d i ) (V i d i ) e (V i d i ) 1 e = 0 (V i d i ) 1 e = 0 (V i d i ) 1 e = 0

HESTON MODEL CALIBRATION 3 The system may be simplified further to be written as: (V i d i ) = 0 (V i d i ) e = 0 (V i d i ) 1 e = 0 Substitute the expression of V i to obtain ( 1 e κt ) i N θ N + v 0 ( N θ e 1 e κt ) i e κt N i + v 0 1 e θ κt ( ) i 1 e 2 N ( ) 1 e 2 + v 0 = 1 e = 1 e e = d i d i e d i 1 e The system is linear in θ and v 0 To write it in a short notation let us introduce 1 e A = B = D 1 = d i D 2 = G = 1 e e C = e d i e 1 e D 3 = d i ( ) 1 e 2 Now the system may be written in a very simple view: θ (N A) + v 0 A = D 1 θ (C B) + v 0 B = D 2 θ (A G) + v 0 G = D 3 From the first two equations we can find θ and v 0 : provided NB CA 0 we have (21) θ = D 1B D 2 A NB CA v 0 = ND 2 CD 1 NB CA + θ Substitute it to the last equation and obtain an equation with only one variable κ We solve this equation numerically to find κ then find θ and v 0 from (21) If NB CA = 0 or the derived values are not correct then we minimize the cost function f(κ θ v 0 ) using numerical optimization similar to the scheme described in the next subsection

4 VADIM ZHERDER 22 Vanilla options fitting Assume that we observe vanilla options prices Ỹi for a set of maturities T i strikes K i interest rates r i and dividends d i i = 1 2 M and let P i = P i (κ θ v 0 σ ρ) be correspondant theoretical options prices To estimate the parameters of the Heston model we minimize some cost function g = g(κ θ v 0 σ ρ) The error of estimation can be measured by different types of norm and we can choose one of the correspondant cost functions: (a) the sum of squared absolute errors in prices g ap (κ θ v 0 σ ρ) = (b) the sum of squared relative errors in prices ( ) 2 Pi Ỹi ; ( ) 2 Pi g rp (κ θ v 0 σ ρ) = Ỹi ; Ỹ i (c) the sum of squared absolute errors in implied volatility g av (κ θ v 0 σ ρ) = ( V oli V ol i ) 2 where V ol i and V ol i are theoretical and observed implied volatilities (d) the sum of log-difference errors in prices g lp (κ θ v 0 σ ρ) = (P i Ỹi) log P i Ỹ i As an initial guess for minimization routine we use values of κ θ and ṽ0 derived from Variance swaps together with some values σ and ρ for volatility of volatility and correlation Fortunately Heston model allows semi-analitical computation of vanilla options prices together with its partial derivatives on each parameter this makes the minimization algorithms be efficient in most cases It may occur however that current values of parameters come out of the reasonable range In this case we suggest to use change of parameters that guarantee them to stay in a certain interval For example to be sure that ρ stays in ( 1; 1) we may express it as (22) ρ = 2 arctan t t R π The range of values for other parameters may be fixed by a similar change Of course such a change in parameters leads to changes in expressions for cost function and its gradient

HESTON MODEL CALIBRATION 5 23 Calibration schemes We suggest a number of calibration schemes To fix a certain scheme one should provide the following information: 1 The source of the data We can use either market data to be read from a file (see a structure of input files in the next section) or synthetic data (both vanilla prices and variance swaps) produced by a routine for some certain values of parameters The latter may be useful to test the convergence of minimization algorithm for different initial guesses 2 Change of parameters One can choose to change parameters of the model as in (22) to be sure that they take values in a reasonable interval 3 Calibration scheme If there are no variance swaps prices available one can choose to calibrate model using vanilla prices only Otherwise we can fit κ θ and v 0 to variance swaps fix their values and then fit only two parameters σ and ρ to vanillas prices Finally we can κ θ and v 0 fitted to variance swaps as an initial guess to fit all five parameters to vanillas prices 4 Type of cost function One can choose a cost function to be minimized from the list in the previous subsection In our tests the best results were obtained with g ap (absolute error in prices) and g lp (log-difference error in prices) 3 Implementation 31 Input files One can set all parameters of calibration scheme in dialog an alternative is to set them in the file indat as a sequence of numbers as described below indat 1 Calibration scheme: Possible values: 1: data from file fit to options prices only without change of parameters 11: data from file fit to variance swaps first then fit to options prices with κ θ v 0 beeing fixed without change of parameters 111: data from file fit to variance swaps first then fit to options prices with κ θ v 0 not fixed without change of parameters 2: data from file fit to options prices only with change of parameters as in (22) 22: data from file fit to variance swaps first then fit to options prices with κ θ v 0 beeing fixed with change of parameters 222: data from file fit to variance swaps first then fit to options prices with κ θ v 0 not fixed with change of parameters 3: synthetic data fit to options prices only without change of parameters 33: synthetic data fit to variance swaps first then fit to options prices with κ θ v 0 beeing fixed without change of parameters 333: synthetic data fit to variance swaps first then fit to options prices with κ θ v 0 not fixed without change of parameters 4: synthetic data fit to options prices only with change of parameters

6 VADIM ZHERDER 44: synthetic data fit to variance swaps first then fit to options prices with κ θ v 0 beeing fixed with change of parameters 444: synthetic data fit to variance swaps first then fit to options prices with κ θ v 0 not fixed with change of parameters 2 Cost function: Possible values: 1: the sum of squared absolute errors in prices; 2: the sum of squared relative errors in prices; 3: the sum of squared absolute errors in implied volatility; 4: the sum of log-difference errors in prices 3 Number of data in the file with options prices: the number of lines to be read from the file DataMarketdat 4 Number of data in the file with options prices: the number of lines to be read from the file VSMarketdat 5 Initial guess: the sequence of five numbers considered as an initial guess for Heston parameters v 0 κ θ σ ρ Example of indat file: 11 4 76 4 0195565 70575 0203 035-04 This example settings are: to read data from file to fit to variance swaps first then to options prices with κ θ v 0 beeing fixed without change of parameters to compute the cost function as the sum of log-difference errors in prices to read 76 lines from the file DataMarketdat to read 4 lines from the file VSMarketdat and set initial guess of parameters: v 0 = 0195565 κ = 70575 θ = 0203 σ = 035 ρ = 04 DataMarketdat Contains observed implied volatilities of standard calls and puts the prices to be derived from implied volatilities using Black&Scholes formula Columns: 1 Type of an Option: 1 indicates call and -1 indicates put 2 Maturity: should be measured in years 3 Strike: normilized by spot price a positive real number If Strike is too small or too large with respect to Spot it may cause computational problems 4 Sigma implicite: implied volatility value 5 Interest rate: instantaneous annual interest rate

HESTON MODEL CALIBRATION 7 6 Dividend rate: instantaneous annual dividend rate 7 Weighting factor: typically is equal to 1 but one can use any positive real numbers to be used as weights of corresponding option prices in the cost function VSMarketdat Contains observed variance swaps prices in annual volatility points Columns: 1 Maturity measured in years 2 Variance swap price in annual volatility points 32 Output files As a results of calibration we print out the values of Heston model parameters fitted the final value of cost function and its gradient the observed and theoretical prices for vanilla options and variance swaps together with implied volatilities absolute and relative errors One can find outputs in three files: CalibResParamstxt Containes the fitted values of the Heston model parameters v 0 κ θ σ ρ (in this order) and the final values of cost function and its gradient CalibRestxt Containes observed and theoretical prices for vanilla options together with observed and theoretical implied volatilities and percentage errors of pricing as well CalibResVStxt Containes observed and theoretical prices for variance swaps together with percentage errors of pricing 33 Main routines calib_hestonc: is the main file with function main() that realizes calibration schemes calibration1c: containes routines to set parameters of minimization to compute cost function and its gradient and to call Scilab optimization routine costfunctionc: containes routines to compute vanilla options prices and cost function gradfunctionc: containes routines to compute the gradient of vanilla options prices and the gradient of the cost function bsvanillasc: containes routines to compute Black&Scholes prices and implied volatilities utils1c: containes routines to deal with input and output files and DataMarket structure

8 VADIM ZHERDER varswapsc: containes routines to deal with input and output files with Variance Swaps the routines for computation of variance swap prices fitting to a Variance Swap Market computation of cost function and its gradient (for variance swaps) /utils1/*c: the folder containes routines that implement optimization algorithm and routines for numerical integration References [1] R Lord C Kahl Optimal Fourier inversion in semi-analytical option pricing Journal of Computational Finance Vol 10 No 4 2007 pp 1-30