Parallel Computing for Option Pricing Based on the Backward Stochastic Differential Equation



Similar documents
American and European. Put Option

CS 522 Computational Tools and Methods in Finance Robert Jarrow Lecture 1: Equity Options

Option pricing. Vinod Kothari

Finite Differences Schemes for Pricing of European and American Options

BINOMIAL OPTIONS PRICING MODEL. Mark Ioffe. Abstract

Mathematical Modeling and Methods of Option Pricing

Stephane Crepey. Financial Modeling. A Backward Stochastic Differential Equations Perspective. 4y Springer

第 9 讲 : 股 票 期 权 定 价 : B-S 模 型 Valuing Stock Options: The Black-Scholes Model

When to Refinance Mortgage Loans in a Stochastic Interest Rate Environment

A Genetic Algorithm to Price an European Put Option Using the Geometric Mean Reverting Model

Stochastic Processes and Advanced Mathematical Finance. Multiperiod Binomial Tree Models

Monte Carlo simulations and option pricing

Asian Option Pricing Formula for Uncertain Financial Market

An Implementation of Binomial Method of Option Pricing using Parallel Computing

Lectures. Sergei Fedotov Introduction to Financial Mathematics. No tutorials in the first week

Does Black-Scholes framework for Option Pricing use Constant Volatilities and Interest Rates? New Solution for a New Problem

Two-State Option Pricing

Mathematical Finance

Binomial option pricing model. Victor Podlozhnyuk

A Comparison of Option Pricing Models

Lecture 21 Options Pricing

Lecture 11. Sergei Fedotov Introduction to Financial Mathematics. Sergei Fedotov (University of Manchester) / 7

Master of Mathematical Finance: Course Descriptions

Hedging Illiquid FX Options: An Empirical Analysis of Alternative Hedging Strategies

ON DETERMINANTS AND SENSITIVITIES OF OPTION PRICES IN DELAYED BLACK-SCHOLES MODEL

Assignment 2: Option Pricing and the Black-Scholes formula The University of British Columbia Science One CS Instructor: Michael Gelbart

QUANTIZED INTEREST RATE AT THE MONEY FOR AMERICAN OPTIONS

How To Price A Call Option

Part V: Option Pricing Basics

Monte Carlo Simulation

Call Price as a Function of the Stock Price

Chapter 2: Binomial Methods and the Black-Scholes Formula

STCE. Fast Delta-Estimates for American Options by Adjoint Algorithmic Differentiation

European Call Option Pricing using the Adomian Decomposition Method

Discussions of Monte Carlo Simulation in Option Pricing TIANYI SHI, Y LAURENT LIU PROF. RENATO FERES MATH 350 RESEARCH PAPER

Valuing equity-based payments

Institutional Finance 08: Dynamic Arbitrage to Replicate Non-linear Payoffs. Binomial Option Pricing: Basics (Chapter 10 of McDonald)

Pricing American Options on Leveraged Exchange. Traded Funds in the Binomial Pricing Model

Numerical Methods for Pricing Exotic Options

Monte Carlo Methods in Finance

VALUATION IN DERIVATIVES MARKETS

Lecture 9. Sergei Fedotov Introduction to Financial Mathematics. Sergei Fedotov (University of Manchester) / 8

BINOMIAL OPTION PRICING

Pricing and calibration in local volatility models via fast quantization

Hedging. An Undergraduate Introduction to Financial Mathematics. J. Robert Buchanan. J. Robert Buchanan Hedging

Applied Computational Economics and Finance

SOLVING PARTIAL DIFFERENTIAL EQUATIONS RELATED TO OPTION PRICING WITH NUMERICAL METHOD. KENNEDY HAYFORD, (B.Sc. Mathematics)

Pricing of cross-currency interest rate derivatives on Graphics Processing Units

Finance Theory

Review of Basic Options Concepts and Terminology

Valuation of American Options

No-Arbitrage Condition of Option Implied Volatility and Bandwidth Selection

Option Valuation. Chapter 21

Black Scholes Merton Approach To Modelling Financial Derivatives Prices Tomas Sinkariovas Words: 3441

American Options. An Undergraduate Introduction to Financial Mathematics. J. Robert Buchanan. J. Robert Buchanan American Options

Pricing of an Exotic Forward Contract

Consider a European call option maturing at time T

TABLE OF CONTENTS. A. Put-Call Parity 1 B. Comparing Options with Respect to Style, Maturity, and Strike 13

Chapter 14 Managing Operational Risks with Bayesian Networks

How to Value Employee Stock Options

Pricing Barrier Option Using Finite Difference Method and MonteCarlo Simulation

How To Understand The Theory Of Probability

The Intuition Behind Option Valuation: A Teaching Note

New Pricing Formula for Arithmetic Asian Options. Using PDE Approach

Risk/Arbitrage Strategies: An Application to Stock Option Portfolio Management

Merton-Black-Scholes model for option pricing. Peter Denteneer. 22 oktober 2009

Risk-Neutral Valuation of Participating Life Insurance Contracts

The Black-Scholes pricing formulas

Optimization applications in finance, securities, banking and insurance

UCLA Anderson School of Management Daniel Andrei, Derivative Markets 237D, Winter MFE Midterm. February Date:

ARBITRAGE-FREE OPTION PRICING MODELS. Denis Bell. University of North Florida

Oscillatory Reduction in Option Pricing Formula Using Shifted Poisson and Linear Approximation

Management of Asian and Cliquet Option Exposures for Insurance Companies: SPVA applications (I)

BIG DATA PROBLEMS AND LARGE-SCALE OPTIMIZATION: A DISTRIBUTED ALGORITHM FOR MATRIX FACTORIZATION

The Valuation of Currency Options

Option Portfolio Modeling

High Performance Computing in CST STUDIO SUITE

Lecture 6: Option Pricing Using a One-step Binomial Tree. Friday, September 14, 12

LECTURE 9: A MODEL FOR FOREIGN EXCHANGE

OPTION PRICING FOR WEIGHTED AVERAGE OF ASSET PRICES

Four Derivations of the Black Scholes PDE by Fabrice Douglas Rouah

DERIVATIVE SECURITIES Lecture 2: Binomial Option Pricing and Call Options

American Capped Call Options on Dividend-Paying Assets

Generation Asset Valuation with Operational Constraints A Trinomial Tree Approach

From CFD to computational finance (and back again?)

Other variables as arguments besides S. Want those other variables to be observables.

Forward Price. The payoff of a forward contract at maturity is S T X. Forward contracts do not involve any initial cash flow.

Schonbucher Chapter 9: Firm Value and Share Priced-Based Models Updated

Black-Scholes Option Pricing Model

OPTIONS and FUTURES Lecture 2: Binomial Option Pricing and Call Options

Real Time Network Server Monitoring using Smartphone with Dynamic Load Balancing

An Introduction to Modeling Stock Price Returns With a View Towards Option Pricing

Transcription:

Parallel Computing for Option Pricing Based on the Backward Stochastic Differential Equation Ying Peng, Bin Gong, Hui Liu, and Yanxin Zhang School of Computer Science and Technology, Shandong University, Jinan 250101, P.R. China pengy@sdu.edu.cn, gb@sdu.edu.cn, amyliuhui@sdu.edu.cn, zhangyanxintongxue@yahoo.com.cn Abstract. The Backward Stochastic Differential Equation (BSDE) is a robust tool for financial derivatives pricing and risk management. In this paper, we explore the opportunity for parallel computing with BS- DEs in financial engineering. A binomial tree based numerical method for BSDEs is investigated and applied to option pricing. According to the special structure of the numerical model, we develop a block allocation algorithm in parallelization, where large communication overhead is avoided. Runtime experiments manifest optimistic speedups for the parallel implementation. 1 Introduction Over the past two decades, an increasing number of complex mathematical models have been applied in financial engineering. As most of these models can not be solved by analytical formulas, we must use numerical methods, which need much more computing efforts. Moreover, time constraints should be respected in financial trade-off, therefore effective parallel implementations are in great demand. To decrease the computation time, many parallelization works are presented for solving various numerical models in financial computing area [2,3,4,5,8]. The BSDE was firstly introduced to solve the problem of derivative pricing by El Karoui in [6]. Since then, the BSDE theory was applied in financial area more and more frequently. Comparing with the Black-Scholes formula [1], the BSDE is more robust to fit in the situation of probability model uncertainty, thus can be used to perform more approximated calculations in financial derivatives pricing and risk analysis. In this paper, we develop a parallel algorithm for the BSDEs with application to option pricing. Though many efforts have been made in the numerical methods for solving BSDEs, few work has been done for the parallel implementation until now. The reminder of this paper is structured as follows: In Sect. 2 we present the application of BSDE in financial engineering. In Sect. 3, we describe the numerical algorithm for BSDE and apply it to option pricing. The parallel implementation is discussed in Sect. 4. Section 5 shows the experimental results. Finally we give the conclusion in Sect. 6. Corresponding author. W. Zhang et al. (Eds.): HPCA 2009, LNCS 5938, pp. 325 330, 2010. c Springer-Verlag Berlin Heidelberg 2010

326 Y. Peng et al. 2 BSDEs in Financial Engineering The general form of a BSDE is shown as following: dy t = g(y t,z t,t)dt Z t dw t, t [0,T], Y T = ξ, (1) where W t is a d-dimensional Brownian motion. Y T = ξ is the terminal condition of the BSDE and ξ is a F T measurable random variable. The solution of a BSDE is a couple of variables (Y t,z t ), and g( ) is a function of (Y t,z t ). In the following we give an example for the application of BSDEs in option pricing and risk hedging. Assuming a bond and a stock traded in a stock market. The bond price p t and the stock price S t, respectively, obey: p t = e r t, (2) S t = S 0 exp(bt + σw t 1 2 σ2 t), (3) where r is the return rate of the bond, b is the expected return rate of the stock, σ is the volatility of the stock, and {W t } t 0 is a standard Brownian motion. S t follows the geometric Brownian motion. Now consider a call (or put) option with strike price X on time period [0,T], where the option holder has the right to buy (or sell) a stock of equation (3) from the seller at time T. Then we can use the BSDE of equation (1) to calculate the price Y 0 of the option, which correspond to the value of Y t at time 0. The terminal condition is given by: Y T = ξ = φ(w T ) =max(s T X, 0) for a call, =max(x S T, 0) for a put, (4) where φ( ) is a function of the Brownian motion W T and represents the payoff of the option holder at time T. Furthermore, the BSDE of equation (1) helps to determine the risk hedging strategy. For example, as at time T the option holder get the payoff Y T,the seller of the contract should pay for the lost. In order to hedge the risk, he can use the Y 0 moneytodoinvestmentattime0,wherez 0 money is used to buy the stock and Y 0 Z 0 is used to buy the bond. The function g( ) isgivenas following: g(y t,z t,t)= (ry t +(b r)z t +(R r)(y t Z t ) ). (5) Generally, the rate R is larger than r, thus we get a non-linear BSDE, i.e. the function g( ) is non-linear, while the Black-Scholes model can only deal with the linear case when R = r.

Parallel Computing for Option Pricing Based on the BSDE 327 3 Numerical Algorithm We study the algorithm of [7] based on time discretization and scaled random walk for non-linear BSDEs solving. We apply it in option pricing, as mentioned in Sect. 2. In the numerical algorithm, the time period [0,T] is devided into n time steps with interval δ = T/n. Then we backwardly calculate Y t. As the state of the Brownian motion at time j can be approximated with scaled random walk: = j δ ε i, (6) W j t where {(ε m ) 1<m<n } is a Bernoulli sequence, we can use a binomial tree to represent the Brownian motion W t, as shown in Fig.1.(a). The upper-triangular form of it is shown in Fig.1.(b) for better description, where for a node labeled (i, j), i and j represent respectively the space step and the time step the node locates on. i=1 0 2 0 3 0 0 0 1 0 2 0 3 1 1 1 2 1 3 2 2 2 3 2 3 3 3 (a) (b) Fig. 1. Movement Approximation of the Brownian Motion With the binomial tree model, we first calculate all the possible state of Y T on level n with equation (4) and (6). In the following, an explicit scheme is performed iteratively from level n 1tolevel0ofthetreetogetthesolution (Y 0,Z 0 ), as shown in equation (7). The total number of nodes to be computed is (n +1)(n +2)/2. Y i, j = 1 2 (Y i, j+1 + Y i+1, j+1 ) + g( 1 2 (Y 1 i, j+1 + Y i+1, j+1 ), 2 (Y δ i, j+1 + Y i+1, j+1 ),t j ), (7) Z i, j = 1 2 (Y δ i, j+1 Y i+1, j+1 ). 4 Parallel Implementation Parallelization works for option pricing with traditional binomial tree model are discussed in [4] and [5]. According to the numerical model for non-linear BSDEs,

328 Y. Peng et al. we develop a block allocation algorithm by combining [4] and [5] to avoid large communication overhead. We assume the number of time steps n and the number of processors p to be power of two. According to the structure of the binomial tree, the number of leaf node is n + 1. All rows of nodes are distributed evenly among processors but the last processor receives an additional row. Thus each processor except the last one is in charge of m = n/p rows of nodes. Initially option price of the leaf nodes are calculated simultaneously with equations (3), (4), (6) on each processor. For calculating the nodes of other levels, we only need to send the values of boundary nodes to the neighbor processor to perform equation (7). Thus large amount of data transfer is avoided. Furthermore, we introduce a parameter L so that the data transfer is performed every L levels to avoid frequent communication operation. In this way, the computation process is performed with n/(l 1) iterations. During each iteration, every processor operates on a block of m L nodes except the last one, which has (m+1) L nodes. Without loss of generality, we assume L to be power of two plus one so that n can be divided by (L 1). Figure 2 shows the block allocation for n =8,p=2,L=3. P 0 B C A P 1 D P k E P k+1 Fig. 2. L=3 Block Allocation for n=8, p=2, Fig. 3. Node Valuation in a Block For the iteration valuating an arbitrary block B on processor P k, we decompose block B into three regions: the inner regions A, C and the outer region D, as shown in Fig.3. The node value of the inner regions can be calculated only with the local data, while that of the outer region depends not only on local data, but also on the data of the neighbor block located on processor P k+1.at the beginning of each iteration, data in A are already calculated before updating B. Thus C nodes can be updated only with local data according to equation (7). In the following, as the calculation of D nodes needs not only A nodes, but also the nodes of the first row (region E) on processor P k+1, the corresponding data are transferred from processor P k+1 so that D nodes can be calculated. To measure the performance of the parallel algorithm, the computation time and the communication time are evaluated. Overall, we obtain the total computing time of O(n 2 /p) for the parallel algorithm, with the communication time of (O(n)). Low communication overhead is achieved, as for large problem size the parallel communication time seems insignificant.

Parallel Computing for Option Pricing Based on the BSDE 329 5 Experimental Results We implement the parallel program by using C and MPI. Runtime experiments are performed on a LANGCHAO TIANSUO 10000 cluster with 2 Intel Xeon DP 2.8GHZ cpu and 2GB memory on each node. We use 16 nodes with 1 cpu per node for the experiment. The source code is compiled with the -O3 option set for gcc compiler. Table 1 shows the timing results for various number of time steps n = 8192, 16384, 32768, 65536, 131072. The block parameter L is fixed to 9. Table 1. The Parallel Runtimes (in seconds) with the TIANSUO 10000 Cluster n p =1 p =2 p =4 p =8 p =16 8192 2.33 1.52 0.85 0.74 0.7 16384 12.02 7.99 4.28 2.97 1.98 32768 51.35 35.7 18.27 8.72 5.35 65536 211.73 136.72 79.28 38.18 19.2 131072 864.19 575.65 338.94 160.71 83.71 The results in Table 1 seem optimistic. We can see that with a single processor, the running time increases greatly when the number of time steps n grows up. And the parallel runtime for n = 131072 decreases much more sharply than that with small n when the number of processors increases. For better analysis of the parallel runtime results, we use the data in Table 1 to produce speedup plots in Fig. 4. Fig. 4. Speedup Graph with the TIANSUO 10000 Cluster As observed from Fig.4., for small number of time steps, the speedups increase very slowly while augmenting the number of processors, especially when n = 8192, the speedup only achieves 3.33 for p = 16. This could be explained that for small problem size, the parallel overhead is relatively large comparing with the computation time. Then for larger number of time steps, as the amount of

330 Y. Peng et al. computation increase quadratically when n grows up, the parallel overhead tends to be insignificant. Hence with the augmentation of p, the speedups increase much more rapidly for n = 32768, 65536, 131072 and achieve respectively 9.60, 11.02, 10.32 when p = 16. Therefore large number of time steps offers a better problem for parallel computing. 6 Conclusion In this paper, a binomial tree based numerical algorithm for non-linear BSDEs is applied in option pricing and studied for parallelization. A parallel algorithm with block allocation is proposed according to the inherent structure of the numerical model. Large communication overhead is avoided on considering both the communication frequency and the amount of data transfer. Parallel run time analysis is performed on a cluster with 16 nodes and shows promising results. Acknowledgement This work was supported by a grant from the National High Technology Research and Development Program of China (863 Program) (No. 2006AA01A113). References 1. Black, F., Scholes, M.: The pricing of options and corporate liabilities. Journal of Political Economy 81, 637 654 (1973) 2. Wan, J.W.L., Lai, K., Kolkiewicz, A.W., et al.: A Parallel Quasi-Monte Carlo Approach to Pricing American Options on Multiple Assets. International Journal of High Performance Computing and Ne tworking 4, 321 330 (2006) 3. Sak, H., Ozekici, S., Boduroglu, I.: Parallel computing in Asian option pricing. Parallel Computing 33, 92 108 (2007) 4. Huang, K., Thulasiram, R.K.: Parallel Algorithm for Pricing American Asian Options with Multi-Dimensional Assets. In: Proceedings of the 19th International Symposium on High Performance Computing Systems and Applications, pp. 177 185 (2005) 5. Gerbessiotis, A.V.: Architecture independent parallel binomial tree option price valuations. Parallel Computing 30, 301 316 (2004) 6. El Karoui, N., Peng, S., Quenez, M.C.: Backward Stochastic Differential Equations in Finance. Mathematical Finance 7, 1 71 (1997) 7. Peng, S., Xu, M.: The Numerical Algorithms and simulations for BSDEs (2008), ArXiv: math.pr/08062761 8. Surkov, V.: Parallel Option Pricing with Fourier Space Time-stepping Method on Graphics Processing Units. In: IEEE International Symposium on Parallel and Distributed Processing (2008)