AParallelMonteCarloSimulation Cluster Systems Financial Derivatives...

5
1040 A Parallel Monte Carlo Simulation on Cluster Systems for Financial Derivatives Pricing Jin Suk KIM * School of Computer Sciences University of Seoul, Cheon-Nong-Dong, Dong-Dae-Mun-Gu, Seoul, Korea jskim(&cvenus.uos.ac.kr Abstract- In recent years the complexity of numerical computations in computational financial applications has been increased enormously. Monte Carlo algorithm is one of main tools in computational finance. In this paper, we show a parallel Monte Carlo algorithm for financial derivatives pricing. We show that the parallel Monte Carlo algorithm' has good speed-up feature by extensive experiments. 1 Introduction In recent years the complexity of numerical computations in financial applications has increased enormously, putting more demands on computational speed and efficiency. Monte Carlo simulation is one of main tools in computational finance. It may be used to price complex derivative securities and to estimate the Value-at-Risk for the risk management. There are lots of financial derivatives for which analytic closed form solutions do not exist. Monte Carlo simulation gives a simple and flexible approach for the valuation of financial derivatives [1][8][9]. Modem finance theory says that the price of a derivative security can be expressed as the expected value of its discounted payoffs. This expectation is taken with respect to the equivalent martingale measure or the risk neutral measure [0][1 1]. To value a derivative security using Monte Carlo simulation, we first generate a set of independent random price paths for underlying securities and compute the payoff of the derivative security for each of them. Then, average the payoffs and discount to the present value. Monte Carlo simulation has played an increasingly important role in modem computational finance. This is due to the flexibility of the method in handling increasingly complex financial derivatives and the advent of the powerful computing facilities, which has significantly reduced the execution time required for the simulation. However, the main drawback of Monte Carlo simulation is its computational burden. A large number of ' This algorithm will be executed on a pnodes cluster systems. * Corresponding Author: Jin Suk Kim Suk Joon BYUN Graduate School of Management KAIST (Korea Advanced Institute of Science and Technology), Seoul, Korea sjbyun(&,kgsm.kaist.ac.kr simulation runs may be required to value complex derivative securities and to calculate hedge parameters such as delta, gamma, and vega with reasonable accuracy. So, we need an algorithm which can speed up computation for the Monte Carlo simulation. A parallel Monte Carlo algorithm can give a way to break up the computation into parallel sub-computations. In this paper, we propose an efficient parallel Monte Carlo algorithm using Windows clusters. 2 Financial Derivatives Pricing We consider a derivative with n underlying assets and maturity date T. The derivative pays off the following amount at maturity date T. f (S1 (T), S2 (T) ..., Sn (T)) where Si(T), for I < i < n, is the price of the i-th underlying asset at maturity date T. Our objective is to calculate the present value of the derivative. To value the derivative using Monte Carlo simulation, we first generate a set of independent random price paths for n underlying assets in risk-neutral world and compute the payoff f(SI(T), S2(T),...S Sn(T)) of the derivative for each of them. Then, average the payoffs and discount the present value. In this section, we examine the financial derivatives pricing problem with two example transactions. Example 1: (Total Return Swap) The SK securities, a Korean investment company, and J.P. Morgan entered into a total-return swap in early 1997. The swap had a one year maturity. SK securities borrowed $53,000,000 from J.P. Morgan. At maturity, SK has the obligation to pay J.P. Morgan the following amount: $53,000,000 x {0.97 -Max 0, Y - + MaxL 1,5x Br- B} (1) 0-7803-9363-5/05/$20.00 ©2005 IEEE. 1 040

Transcript of AParallelMonteCarloSimulation Cluster Systems Financial Derivatives...

Page 1: AParallelMonteCarloSimulation Cluster Systems Financial Derivatives …koasas.kaist.ac.kr/bitstream/10203/3797/1/2005-126.pdf · 2017-04-11 · derivative securities andto estimate

1040

A Parallel Monte Carlo Simulation on Cluster Systems

for Financial Derivatives Pricing

Jin Suk KIM *

School of Computer SciencesUniversity of Seoul, Cheon-Nong-Dong,

Dong-Dae-Mun-Gu, Seoul, Koreajskim(&cvenus.uos.ac.kr

Abstract- In recent years the complexity of numericalcomputations in computational financial applicationshas been increased enormously. Monte Carloalgorithm is one of main tools in computationalfinance. In this paper, we show a parallel Monte Carloalgorithm for financial derivatives pricing. We showthat the parallel Monte Carlo algorithm' has goodspeed-up feature by extensive experiments.

1 Introduction

In recent years the complexity of numerical computationsin financial applications has increased enormously,putting more demands on computational speed andefficiency. Monte Carlo simulation is one of main tools incomputational finance. It may be used to price complexderivative securities and to estimate the Value-at-Risk forthe risk management. There are lots of financialderivatives for which analytic closed form solutions donot exist. Monte Carlo simulation gives a simple andflexible approach for the valuation of financial derivatives[1][8][9]. Modem finance theory says that the price of aderivative security can be expressed as the expected valueof its discounted payoffs. This expectation is taken withrespect to the equivalent martingale measure or the riskneutral measure [0][1 1]. To value a derivative securityusing Monte Carlo simulation, we first generate a set ofindependent random price paths for underlying securitiesand compute the payoff of the derivative security for eachof them. Then, average the payoffs and discount to thepresent value.

Monte Carlo simulation has played an increasinglyimportant role in modem computational finance. This isdue to the flexibility of the method in handlingincreasingly complex financial derivatives and the adventof the powerful computing facilities, which hassignificantly reduced the execution time required for thesimulation. However, the main drawback of Monte Carlosimulation is its computational burden. A large number of

' This algorithmwillbe executedon apnodes clustersystems.* Corresponding Author: Jin Suk Kim

Suk Joon BYUNGraduate School ofManagement

KAIST (Korea Advanced Institute of Science andTechnology), Seoul, Koreasjbyun(&,kgsm.kaist.ac.kr

simulation runs may be required to value complexderivative securities and to calculate hedge parameterssuch as delta, gamma, and vega with reasonable accuracy.So, we need an algorithm which can speed upcomputation for the Monte Carlo simulation. A parallelMonte Carlo algorithm can give a way to break up thecomputation into parallel sub-computations. In this paper,we propose an efficient parallel Monte Carlo algorithmusing Windows clusters.

2 Financial Derivatives Pricing

We consider a derivative with n underlying assets andmaturity date T. The derivative pays off the followingamount at maturity date T.

f(S1 (T), S2 (T) ..., Sn (T))

where Si(T), for I < i < n, is the price of the i-thunderlying asset at maturity date T. Our objective is tocalculate the present value of the derivative. To value thederivative using Monte Carlo simulation, we first generatea set of independent random price paths for n underlyingassets in risk-neutral world and compute the payofff(SI(T), S2(T),...SSn(T)) of the derivative for each of them.Then, average the payoffs and discount the present value.

In this section, we examine the financial derivativespricing problem with two example transactions.

Example 1: (Total Return Swap)

The SK securities, a Korean investment company, andJ.P. Morgan entered into a total-return swap in early 1997.The swap had a one year maturity. SK securitiesborrowed $53,000,000 from J.P. Morgan. At maturity, SKhas the obligation to pay J.P. Morgan the followingamount:

$53,000,000 x

{0.97 -Max 0, Y - + MaxL 1,5x Br- B}

(1)

0-7803-9363-5/05/$20.00 ©2005 IEEE. 1 040

Page 2: AParallelMonteCarloSimulation Cluster Systems Financial Derivatives …koasas.kaist.ac.kr/bitstream/10203/3797/1/2005-126.pdf · 2017-04-11 · derivative securities andto estimate

1041

, where YT denotes Yen vs. Dollar exchange rate atmaturity, Y is the Yen vs. Dollar exchange rate at the timeof the transaction, BT is the Thai Baht vs. Dollar exchangerate at maturity, and B is the Thai Baht vs. Dollarexchange rate at the time of the transaction.

In this paper, we consider a problem of computing thepresent value of payment with Monte Carlo method.Using the computation results, we can estimate theamount of the payment and check whether the transactionis a fair decision or not. To calculate a present value ofpayment, we use Risk Neutral Valuation [10][114][5]with Monte Carlo simulation, and we assume the foreignexchange rates follow a geometric Brownian motionsthrough time. To use the Risk Neutral Valuation, we havefollowingfollwing assumptions.* Assumption 1: The Dollar vs. Yen exchange rate

follows lognormal diffusion process with volatility ay.* Assumption 2: The Dollar vs. Baht exchange rate

follows lognormal diff-usion process with thevolatility qB

* Assumption 3: The instantaneous volatilities of theDollar/Yen exchange rate and the Dollar/Bahtexchange rate have correlation p.

The distributions of the Dollar/Yen and theDollar/Baht exchange rates are determined by following:

inI=In I+(r, -ry-oy'2)(T-t)+o;zTS- e-YT YD )

£ -A(Q1)11~~~~~~~~~~6

in-=ln- +(r -,B -9 /2) -t)+± sTt 8B

£ -A(Ql)

, where &y and eB are the standardized normal variableswith the means equal to 0 and the standard deviationsequal to 1. rD denotes the risk-free interest rates for 1 yearin US. ry denotes the risk-free interest rate for 1 year inJapan and rB denotes the risk-free interest rate for 1 yearin Thai.

Example 2: (European put option on a coupon bond)

We consider a two-year European put option with astrike price of $98 on a bond that will mature in fouryears. The underlying coupon bond has a principal of$100 and pays a coupon of $4 every six months. From thetheory of finance, the present value of the European putoption is:

4e-rTMax[98- B,0]] (4)

where BT is the price of the underlying coupon bondat maturity, r is the average value of r in the time

interval between the current and maturity dates, and Edenotes the expectation in the risk-neutral world.

In this paper, we consider a problem of computing thepresent value of the European put option with Cox-Ingersoll-Ross model [13] by using Monte Carlosimulation method. The risk-neutral process for the shortinterest rate in Cox-Ingersoll-Ross model is:

dr=a(b-r)dt+c{rd2 (5)

, where dz is a standard Wiener process. The modelincorporates mean reversion. The short interest rate ispulled to a mean level b at rate a. To simulate the pathfollowed by r, we divide the life of the option into Nshort intervals of length At and approximate Eq. (5) as

tgt+At)- t)=cb-tt)&+cyt)5)(6)

£N(Q1)

The average value of r is calculated as

INr =-E r(iAt)N i=l

(7)

In Cox-Ingersoll-Ross model, zero-coupon bond prices(2) have the following form:

(3)

P(t, T) = A(t,T)e-B(t,T)rwhere

f(a+r)(T-t)/2 ) 2abhI2

(a)=yY)e(Tt') -1)+2y)

B(tT) - 2(e(Tt) _ 1)-

(a +y)(er(T-t)-i) + 2y

withy7=la'2+ 02&.

(8)

(9)

(10)

Thus, the coupon bond price at maturity, BT, iscalculated by:

BT = 4P(2,2.5) + 4P(2,3) + 4P(2,3.5) + 104P(2,4) (1 1)

3 Parallel Monte Carlo Simulation Algorithm

The problem of pricing of financial derivatives problemhas already been investigated by several researchers.Black and Scholes propose a pricing equation method tovalue compute the price of European options [4]. Forcurrency options, Garman and Kohlhagen also propose apricing equation [7]. Cox, Ross,Hull and Rubinsteinsuggest aWhite show Binomial Model [12]. Furthermore,

1041

Page 3: AParallelMonteCarloSimulation Cluster Systems Financial Derivatives …koasas.kaist.ac.kr/bitstream/10203/3797/1/2005-126.pdf · 2017-04-11 · derivative securities andto estimate

1042

many researchers propose Monte Carlo method for thepricing of complex pricing of financial derivatives [2]. Algorithm: P Monte Carlo

In this section, we have an experiment environment for i= 0 to p-I dousing Windows-based cluster system. The cluster system parallel call PV[i] = PMC(i)is a system that has various computing nodes to execute a end_forset of tasks. We run the P_Monte_Carlo on p-nodescluster system. Each node communicates with other nodes compute the mean of PV[i], for 0 < i < p-Iusing socket protocol. There are one service broker nodeand p computing nodes. Each computing node end Algorithmdynamically registers to the service broker node. Then,the service broker node determines how many computingnodes can be used for P_Monte_Carlo and dispatches Procedure: PMC(k)subtasks to the registered computing nodes. Fig. 1 shows N= 50000000an overall cluster architecture. In our experiments, we use M - N/pPentium processors and Windows operating systems forthe service broker node and the computing nodes. for i= k*M to (k+l)*M-1 do

Service Broker * I: Get random numbers 8y and FB fromNode bivariate standard normal distribution with

correlation p.

re4stea dispalk 0* II: Calculate the exchange rates Dollar/Yen andDollar/Baht at maturity by Eq. (2) and Eq. (3).

Network * III: Calculate the payment by Eq. (1).* IV: Calculate a present value of the payment

which is discounted by riskfree interest rate for1 year in US.

Computing Computing Conmpudng Computing end_forNode, Node1 Node3 NodeL

-___________________________________ _ * V: PV[k] = Calculate the mean of present valuesof the payment

Figure 1: Cluster Architecture

Return PV[k]In this section, we show a parallel Monte Carlo end_Procedure

algorithm, P_Monte_Carlo. We use some variables at thetime of the transaction such that:

Fig. 2 shows experimental results, the present values* Yen/Dollar exchange rate (Y) = 122 Yen/Dollar of the financial derivative.* Baht/Dollar exchange rate (B) =25.88 Baht/Dollar p -0.2 E2%* The riskfree interest rate for 1 year in US (rD) = 325%

5.5 % .0

* The riskfree interest rate for 1 year in Japan (ry) = 8_Y0.00.365% %15.00

* The riskfree interest rate for 1 year in Thai (rB) = 20,011.625% 025

P_Monte_Carlo algorithm partitions the simulation 0 650 l0.0%trials into subtrials and calls the subprocedure PMC(i) inparallel manner, and p denotes the number of nodes in the 5-600system. Then, each PMC(i) procedure is executed on i-th l0%computing node in the cluster system. In the procedure 5 * l_0definition, N denotes the number of total trials and Mdenotes the number subtrials which will be executed on a 10% 50% 100% 150% 20.0% 25.0% 30 0%computing node. After all of procedures returns the sresults, P_Monte_Carlo compute the mean of presentvalues of the payment

1042

Page 4: AParallelMonteCarloSimulation Cluster Systems Financial Derivatives …koasas.kaist.ac.kr/bitstream/10203/3797/1/2005-126.pdf · 2017-04-11 · derivative securities andto estimate

1043

r- *10% The results show that, the derivative become more*2.5% valuable as the volatility of yen/dollar exchange rate135.0% decreases and the volatility of baht/dollar exchange rate07.5%N 1~0.0% increases. The currency correlation has no influence to the015- ;value of the example derivative.01775% Fig. 3 and Fig. 5 show a speed-up behavior of the

e 2025% parallel Monte Carlo algorithm for Example and7000 025.0% Example 2, respectively. In these experiments, we use 31

27.5X nodes of computers, 1 for the service broker node and 3041 650( lil | l | _-l lfor the computing nodes. In these experiments, four kinds

of computing nodes are used such as,:iL

600 ll30%

250ll00% * 9 Pentiums IV 3.0 GHz, 512MB memory,

- 5.0%l

2 Pentiums IV 2.79GHz, 256MB memory,

1.0% 5.0% 10.0% 15.0% 20.0% 25.0% 30.0%

sigma-Y* 11 Pentiums IV 1.8GHz, 256MB memory,

ib)p=0.0 * 8 Pentiums III 999MHz, 256MB memory.(b) p = 0.0p0 2 *10%

*25%

050%

#0'~~A'~~\5o55i 5 0~7.5%.,0 0%25

41| *[ 1255%L1510%0175%

150 *20 0%'¾ *~~~~~~~~~~~~~~22.5% 20

.~~~~~~~~075

700 0O27 0%iFi

650~~~~~~~~~~~~~~~~15

(c)p=0.2~~~~~~~~~~~~300

2 2,0 o *1AlgorithmforExample10%550

050

<~ ~5 oso3° ofo 07/

500°% option becomes more valuable

mean level% Is50

1..0% 2.5% 5.0% 7.5% 10.0% 12.5% 15.0 2 4 6 82 1010% 22.54 6 25.0% 22.436 20.0%

.150s20% than it is 10%. Th nompmberonof(a) no des (b h w

(d) p= l.othattheigur3:io Speed-up Boehairo ParalblelMontheCoarilot

*050% AloihfoExme1

Figure~~~ ~ ~ ~ ~ ~ ~ ~ ~~~Fg4: showsmnta expermenta results,e1thepeetvlepresent~~ ~ ~ ~ ~ ~~30 valuesofttheeaton shorratben4%2,(b peanum Asth0sor

100% tun te v e od te pt o n i

0% 21%50% 5%100% 2 150% 5% 200 225% 5%2112%5% ption4ecome more1valuabl whe the mea leveis283

(d)p=1.0 increases..0

Figur 2:g.ExperimentalimeResultsulof,Exampleset1:athepresnt vluewit corelaions(a)p = 0.2 (b)p =0.0, au ftesotrt eng4 e nu.A h hr

(c) p = 0.2, and (d) p=t1.0ass,th udelyn bndprcederese, ndi

1043

Page 5: AParallelMonteCarloSimulation Cluster Systems Financial Derivatives …koasas.kaist.ac.kr/bitstream/10203/3797/1/2005-126.pdf · 2017-04-11 · derivative securities andto estimate

1044

4 Conclusion

a1)

a)

a1)

CL

a)(0

a)al

1.21

0.E0. Eo.0. 1 F0.2

0.1 a0.1

b

(a) a = 0.1

o=0.2

1.

I 0.20.1 a

0.2b

(b) a = 0.2

Figure 4: Experimental Results of Example 2: thepresent values with (a) ar = 0.1 and (b) a = 0.2

160

140

120I

a)I

c: 100Ea 80

-I

D 60Q(ai 40

20

0

In this paper, we show a parallel Monte Carloalgorithm for financial derivatives pricing. Moreover, wehave experimental results that show the performance ofour algorithm on cluster systems when up to 30computing nodes.

Acknowledgments

The author would like to thank Yong Hee Yeom

Bibliography

[1] P. P. Boyle, "Options: A Monte Carlo Approach,"Journal of Financial Economics, vol. 4, pp. 323-338, 1977.[2] L. Clewlow and C. Strickland, ImplementingDerivatives Models, John Wiley & Sons, 1998.[3] G. D. Gay, J. Kim, and J. Nam, "The Case of the SKSecurities and J. P. Morgan Swap: Lessons in VaRFrailty," Derivatives Quarterly, pp. 13-26, 1999.[4] F. Black and M. Scholes, "The Pricing of Options andCorporate Liabilities," Journal of Political Economy, vol.81, pp. 637-659, 1973.[5] J. C. Hull, Options, Futures, and Other Derivatives,5th ed., Prentice Hall, 2003.[6] S. Baase, Computer Algorithms, Addison Wesley, 2nded., 1988.[7] M. B. Garman and S. W. Kohlhagen, "ForeignCurrency Option Values," Journal of International Moneyand Finance, pp. 231-237, 1983.[8] P. Boyle, M. Broadie, and P. Glasserman, "MonteCarlo Methods for Security Pricing," Journal ofEconomic Dynamics and Control, vol. 21, pp. 1267-1321,1997.[9] C. Joy, P. Boyle, and K. S. Tan, "Quasi-Monte CarloMethods in Numerical Finance," Management Science,vol. 42, pp. 926-938, 1996.[10] Harrison, J. M., and D. M. Kreps, "Martingales andArbitrage in Multiperiod Securities Markets," Journal ofEconomic Theory, vol. 20, pp. 381-408, 1979.[11] Harrison, J. M., and S. R. Pliska, "Martingales andStochastic Integrals in the Theory of ContinuousTrading," Stochastic Processes and Their Applications,vol. "1, pp. 215-260, 1981.[12] Cox, J., S. Ross, and M. Rubinstein, "Option Pricing:A Simplified Approach," Journal of Financial Economics,Vol. 7, pp. 229-264, 1979.[13] Cox, J., J. Ingersoll, and S. Ross, "A Theory of theTerm Structure of Interest Rates," Econometrica, Vol. 53,pp. 385-407, 1985.

number of nodes

Figure 5: Speed-up Behavior of Parallel Monte CarloAlgorithm for Example 2

1044