Computer Exercise 2 Simulation

Similar documents
Computer Exercise 2 Simulation

Numerical schemes for SDEs

Definition Pricing Risk management Second generation barrier options. Barrier Options. Arfima Financial Solutions

Parameter estimation in SDE:s

Monte Carlo Methods for Uncertainty Quantification

MASM006 UNIVERSITY OF EXETER SCHOOL OF ENGINEERING, COMPUTER SCIENCE AND MATHEMATICS MATHEMATICAL SCIENCES FINANCIAL MATHEMATICS.

2.1 Mathematical Basis: Risk-Neutral Pricing

Computational Finance

The Heston Model. B.Sc. Thesis. - Stochastic Volatility and Approximation - Author Patrik Karlsson,

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

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing

STOCHASTIC VOLATILITY AND OPTION PRICING

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

Monte Carlo Simulations

King s College London

Financial Engineering MRM 8610 Spring 2015 (CRN 12477) Instructor Information. Class Information. Catalog Description. Textbooks

NEWCASTLE UNIVERSITY SCHOOL OF MATHEMATICS, STATISTICS & PHYSICS SEMESTER 1 SPECIMEN 2 MAS3904. Stochastic Financial Modelling. Time allowed: 2 hours

MSc in Financial Engineering

The Use of Importance Sampling to Speed Up Stochastic Volatility Simulations

Basic Concepts in Mathematical Finance

Monte Carlo Methods in Option Pricing. UiO-STK4510 Autumn 2015

Application of Moment Expansion Method to Option Square Root Model

Valuation of Asian Option. Qi An Jingjing Guo

"Vibrato" Monte Carlo evaluation of Greeks

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

IEOR E4703: Monte-Carlo Simulation

Queens College, CUNY, Department of Computer Science Computational Finance CSCI 365 / 765 Fall 2017 Instructor: Dr. Sateesh Mane.

Lecture 8: The Black-Scholes theory

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

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

AMH4 - ADVANCED OPTION PRICING. Contents

"Pricing Exotic Options using Strong Convergence Properties

Computer Assignment 2: Arbitrage Pricing of Options

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

The stochastic calculus

1 Introduction. 2 Old Methodology BOARD OF GOVERNORS OF THE FEDERAL RESERVE SYSTEM DIVISION OF RESEARCH AND STATISTICS

Simulating Stochastic Differential Equations

Stochastic Differential Equations in Finance and Monte Carlo Simulations

Accelerated Option Pricing Multiple Scenarios

Math Computational Finance Option pricing using Brownian bridge and Stratified samlping

Lecture Note 8 of Bus 41202, Spring 2017: Stochastic Diffusion Equation & Option Pricing

Math 416/516: Stochastic Simulation

Hedging with Life and General Insurance Products

Calibrating to Market Data Getting the Model into Shape

STOCHASTIC VOLATILITY MODELS: CALIBRATION, PRICING AND HEDGING. Warrick Poklewski-Koziell

TEST OF BOUNDED LOG-NORMAL PROCESS FOR OPTIONS PRICING

KØBENHAVNS UNIVERSITET (Blok 2, 2011/2012) Naturvidenskabelig kandidateksamen Continuous time finance (FinKont) TIME ALLOWED : 3 hours

European call option with inflation-linked strike

3.1 Itô s Lemma for Continuous Stochastic Variables

Computational Finance. Computational Finance p. 1

CONTINUOUS TIME PRICING AND TRADING: A REVIEW, WITH SOME EXTRA PIECES

Monte Carlo Methods. Prof. Mike Giles. Oxford University Mathematical Institute. Lecture 1 p. 1.

Math Option pricing using Quasi Monte Carlo simulation

Multi-Asset Options. A Numerical Study VILHELM NIKLASSON FRIDA TIVEDAL. Master s thesis in Engineering Mathematics and Computational Science

Market interest-rate models

Asian Option Pricing: Monte Carlo Control Variate. A discrete arithmetic Asian call option has the payoff. S T i N N + 1

The Black-Scholes Model

Multilevel Monte Carlo Simulation

Stochastic Processes and Stochastic Calculus - 9 Complete and Incomplete Market Models

Monte Carlo Methods in Structuring and Derivatives Pricing

Importance Sampling for Option Pricing. Steven R. Dunbar. Put Options. Monte Carlo Method. Importance. Sampling. Examples.

Value at Risk Ch.12. PAK Study Manual

A Moment Matching Approach To The Valuation Of A Volume Weighted Average Price Option

Math489/889 Stochastic Processes and Advanced Mathematical Finance Solutions to Practice Problems

Computational Finance Improving Monte Carlo

Calculating Implied Volatility

The Black-Scholes Model

The Merton Model. A Structural Approach to Default Prediction. Agenda. Idea. Merton Model. The iterative approach. Example: Enron

Pricing theory of financial derivatives

Valuation of performance-dependent options in a Black- Scholes framework

Simulating more interesting stochastic processes

The Black-Scholes Model

King s College London

Counterparty Credit Risk Simulation

An Accelerated Approach to Static Hedging Barrier Options: Richardson Extrapolation Techniques

Option Pricing Models for European Options

Calibration Lecture 1: Background and Parametric Models

An Efficient Numerical Scheme for Simulation of Mean-reverting Square-root Diffusions

JDEP 384H: Numerical Methods in Business

Math Computational Finance Barrier option pricing using Finite Difference Methods (FDM)

Optimized Least-squares Monte Carlo (OLSM) for Measuring Counterparty Credit Exposure of American-style Options

University of Oxford. Robust hedging of digital double touch barrier options. Ni Hao

Black-Scholes-Merton Model

FINANCIAL OPTION ANALYSIS HANDOUTS

On the Cost of Delayed Currency Fixing Announcements

FIN FINANCIAL INSTRUMENTS SPRING 2008

Simulation Analysis of Option Buying

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

( ) since this is the benefit of buying the asset at the strike price rather

Option Pricing for Discrete Hedging and Non-Gaussian Processes

MFE/3F Questions Answer Key

Slides for DN2281, KTH 1

Math 623 (IOE 623), Winter 2008: Final exam

Practical Hedging: From Theory to Practice. OSU Financial Mathematics Seminar May 5, 2008

Pricing Options Using Trinomial Trees

Pricing of European and Asian options with Monte Carlo simulations

Calibration Lecture 4: LSV and Model Uncertainty

Queens College, CUNY, Department of Computer Science Computational Finance CSCI 365 / 765 Fall 2017 Instructor: Dr. Sateesh Mane.

Binomial model: numerical algorithm

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

Transcription:

Lund University with Lund Institute of Technology Valuation of Derivative Assets Centre for Mathematical Sciences, Mathematical Statistics Spring 2010 Computer Exercise 2 Simulation This lab deals with pricing derivatives using simulation of continuous time models. Continuous time models are flexible and powerful but our analytical tools are sometimes too limited for all kind of different processes and contracts. In this computer exercise, we use Monte Carlo simulation to calculate prices. Furthermore, errors and convergence is studied. It is preferred if you use Matlab but other languages or program packages are also permitted (and even encouraged). However, if some other program or language is used, careful documentation of the code is essential. Assignments labeled Extra are voluntary but is highly recommended. 1 Preparations before the lab Read chapter 7 in Björk (2004), section 7.7 and chapter 13 in Åberg (2010), chapter 11 in Madsen et al (2004) and this guide for the lab. You should also solve the exercise B 7.3 and B 7.5. Before the lab starts, the questions below (or a subset of them) will be posed. All of the posed questions must be answered correctly in order for the lab to be approved. Note: that there will be a lecture on simulation Ö 3, i.e. third week of LP 4. 2 Catalogue of Questions You should be able to answer these questions before the computer exercise. 1. Describe the main ideas of how the Black & Scholes formula is obtained. 2. We know the the value of a stock following a GBM at time T is S(T ) = σ2 (r S(0)e 2 )T +σw (T ). Calculate explicitely the variance reduction for estimating the mean of S t using antithetic variables (hint use the results from Exercises R 3.8 and R 5.7.3). 3. Explain the Euler approximation and how you would use it when discretizing a Geometric Brownian Motion. 1

4. Explain the Milstein approximation and how you would use it when discretizing the stochastic volatility process in section 4.2. 5. Write down the expression for calculating the standard deviation of an estimated price using the crude Monte Carlo method, antithetic variables and control variables. 3 Basic simulation theory We know from economic theory that the price of an option is given by Π(t) = e r(t t) E Q [Φ(S(T )) F t ]. The focus in this lab is therefore the calculation of expected values given some martingale measure, Q. By using the law of large numbers, we know that 1 N N f(x i ) E[f(X)] i=1 in probability as N. Thus, prices can be approximated by simulating many random variables with the correct distribution and calculating the mean of these. The variance of the estimate of E Q [f(x)] can often be reduced considerably by applying a variance reduction technique, see e.g. Åberg (2010); Fishman (1996); Glasserman (2004). 4 Lab tasks The lab consists of two assignments. The first assignment is pricing of an European call option, followed by pricing an European call option and a Barrier option where the volatility of the stock is modelled as a stochastic process (i.e. a stochastic volatility model). The lab is also an introduction to variance reduction techniques. 4.1 European call option Consider a European call option, written on a stock, with a strike price 80. The option matures in one year. Assume that the continuously compounded riskfree interest rate is 1%, the current price of the stock is 90 and it s volatility σ = 0.6. Assignment: Calculate the price of the option using simulation. Solve the problem using: Crude Monte Carlo. 2

Antithetic variables. Control variables. Compare your result to the price given by the Black & Scholes formula. Calculate the price and the standard deviation of the estimated price. Assignment: Change to a binary type of contract, i.e. Φ(x) = 1 {x>k}. 4.2 Stochastic volatility One of the drawbacks of the Black & Scholes formula is that the variance is assumed to be constant. By using simulation, we can remove this requirement in the pricing. One alternative model of the stock price (under the risk-neutral measure) is ds t = rs t dt + V t S t ( 1 ρ 2 dw (1) t + ρdw (2) t ) dv t = κ(θ V t )dt + σ V t dw (2) t, where W (1) t and W (2) t are two independent standard Brownian motions. This model is a stochastic volatility model, more precisely it is the Heston model. The solution to these equations is not available in closed form, so we have to discretize this model, see chapter 11 in Madsen et al (2004). We need to use the Milstein-Scheme for the second equation to keep the numerical solution positive, we moreover need to take quite small time steps. Eventhough there is no closed form solution of the price of an European call option in the Heston model, there are still fast and accurate pricing techniques that can be used. The Matlab function HestonCall calculates the price of an European call option using a Fourier inversion technique. The matlab routine HestonCall and the matfile glax500.mat can be downloaded from the course homepage: http://www.maths.lth.se/matstat/kurser/fms170masm19/ You call alternatively use the java-applet below to get prices: http://www.maths.lth.se/matstat/research/mathematicalfinance/fourier_pricer.html 3

Assignment: Use the crude Monte Carlo method to calculate the price of an European call option when κ = 10, θ = 0.16, σ = 0.1, ρ = 0.8 and V 0 = 0.16. Use the same values for the initial stock price, strike level, interest rate and time to maturity as in 4.1. Compare your result from the Monte Carlo simulation with the price generated by HestonCall. Assignment: Calculate the price of an up-out contract Z UO defined by: { max (S(T ) K, 0), if S(t) < B for all t [0, T ], Z UO = 0, if S(t) B for some t [0, T ]. with K = 40, B = 100 and S 0 = 50, using the crude Monte Carlo method. Extra: Calculate the price of the up-out contract using antithetic variables and control variables. 5 Feedback Comments on the lab (from all kinds of point of view) are welcome. Please send them to Magnus Wiktorsson, magnusw@maths.lth.se or phone 046 222 86 25. 6 MATLAB routines The function HestonCall calculates the price of an European call option using a Fourier inversion technique. The function uses the m-file glax500.mat. Syntax C = HestonCall(S0,K,r,T,kappa,theta,sigma,rho,V0) 4

where S0 is the initial stock price, K is the strike price, r is the risk less interest rate and kappa, theta, sigma, rho, V0 are the parameters in the Heston model with the same names. Other useful commands: help Display help for MATLAB functions in Command Window mean Mean value of arrays std Standard deviation of arrays var Variance of arrays max Maximum elements of array normcdf Normal cumulative distribution function References Björk, T. (2004), Arbitrage Theory in Continuous Time, Oxford University Press, New York. Fishman, George S. (1996) Monte Carlo Concepts Algorithms, and Applications, Springer-Verlag, New York Glasserman, Paul (2003) Monte Carlo Methods in Financial Engineering, Springer- Verlag, New York Åberg, Sebastian (2010) Derivative pricing, Matematikcentrum, Lunds Universitet. H. Madsen, J.N. Nielsen, Erik Lindström, M. Baadsgaard & Jan Holst (2004) Statistics in Finance Lund University, Lund Institute of Technology - Centre for Mathematical Sciences. Centrum Scientiarum Mathematicarum 5