Application of Monte Carlo Methods in Finance
-
Upload
joshua-lawrence -
Category
Documents
-
view
130 -
download
7
Transcript of Application of Monte Carlo Methods in Finance
![Page 1: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/1.jpg)
ALLEGHENY COLLEGE DEPT. OF PHYSICS
APPLICATION OF MONTE CARLO
METHODS IN FINANCE
Joshua R. Lawrence
April 21, 2015
![Page 2: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/2.jpg)
![Page 3: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/3.jpg)
ABSTRACT
There is often a misconception that nothing useful can be found from βrandomβ processes.
Physicists realized this was not the case upon close observation of Brownian motion. This
realization not only had an impact in biology, but also in many other fields such as finance.
Stock prices vary similar to how a Brownian particle fluctuates in position. These connections
between stock price fluctuations and Brownian motion can be leveraged to price options which
are contracts to trade stocks. I explore the details of these connections with the aim to eventually
develop a more realistic, and hopefully more accurate, option pricing model. I also review the
current major option pricing model, the Black-Scholes model, which can be compared against
the developed, more realistic models.
![Page 4: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/4.jpg)
ACKNOWLEDGEMENTS
First and foremost, I would like to thank Dr. Shafiq Rahman. Not only has he helped
guide me on this project, but also along my undergraduate career. I owe a great deal of my recent
success to him and his advice. I would also like to thank my second reader, Dr. George Paily.
Both Dr. Rahman and Dr. Paily provided me with key guidance and advice for my research path.
I would like to express sincere gratitude to all of my friends (especially Shannon Petersen) that I
have made in the Allegheny College Physics Department. My friends supported me at every
setback along my research experience, which made it easier to continually move forward. I
would also like to convey gratitude to all of the Department faculty members for always pushing
my mind to its full potential. The faculty has not only taught me material, but truly changed the
way I think in my everyday life. Most importantly, I would like to thank my father for stepping
up after my mother's passing and rebuilding a support system for me at home. That support
system helped me alleviate any stress developed while away from home. Though my mother was
not able to directly aid me along this adventure, I am extremely thankful for the foundation she
laid out for me, which has pushed me along my research path. Finally, thank you to all who
either directly or indirectly helped me along this venture.
![Page 5: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/5.jpg)
TABLE OF CONTENTS
1. Introduction ................................................................................................................................. 1
2. Derivatives .................................................................................................................................. 3
2-1 Forward vs. Future Contracts ................................................................................................ 3
2-2 Options .................................................................................................................................. 4
2-3 Put vs. Call ............................................................................................................................ 4
2-4 European vs. American Style Options .................................................................................. 5
3. Stochastic Processes.................................................................................................................... 7
3-1 Brownian Motion .................................................................................................................. 8
3-2 Stock Price Movements ........................................................................................................ 8
4. Numerical Solutions.................................................................................................................. 11
4-1 Random Walk ..................................................................................................................... 13
4-2 Relationship with Time ....................................................................................................... 15
4-3 Stock Price Evolution ......................................................................................................... 18
5. Analytical Solutions .................................................................................................................. 19
5-1 Black-Scholes Equation ...................................................................................................... 20
5-2 Black-Scholes Formula ....................................................................................................... 22
5-3 Understanding the Black-Scholes Solution ........................................................................ 24
6. Future Work .............................................................................................................................. 27
7. Appendix ................................................................................................................................... 29
A. Mathematica ......................................................................................................................... 29
B. Central Limit Theorem ......................................................................................................... 31
C. Itoβs Lemma .......................................................................................................................... 32
D. Works Cited .......................................................................................................................... 34
E. Bibliography ......................................................................................................................... 35
![Page 6: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/6.jpg)
L a w r e n c e | 1
1. INTRODUCTION
In 1827, Robert Brown observed the motion of pollen grains suspended in water [1]. He
discovered that both nonliving and living particles would follow an erratic motion which was not
related to the flow of the liquid. The irregular behavior of the suspended particles was later
labeled Brownian motion. Einstein and Smoluchowski realized that the cause of the strange
motion was from the random collisions between the molecules of the liquid with the suspended
particles [2]. In 1905, Einstein derived the partial differential diffusion equation for Brownian
motion along with the relationship between the mean squared displacement and time. However,
Einsteinβs work would not have been possible without the work of Louis Bachelier, commonly
referred to as the father of financial mathematics [3]. In 1900, Bachelier identified the
distribution function for Wiener processes (the underlying process of Brownian motion) in his
thesis, βTheory of Speculationβ [4].
Bachelierβs contributions begs the question, βWhat are the similarities between stock
price fluctuations and a particle undergoing Brownian motion?β Consider the pollen grain
suspended in the flowing liquid. The grain is steered by the flow of the liquid. Similarly, the
stock price is driven by some growth rate depending on the success or failure of the stockβs
company. The grain will also experience some degree of random movement from the liquid
domain. The stock price will also randomly fluctuate due to their complex environment. This
complex environment results from many direct and indirect impacts such as trade rumors,
climate, psychological factors, war, and many other contributors to the complex economy of
todayβs society. This paper seeks to explore these connections between the Brownian particle and
stock price in order to create more realistic, and hopefully more accurate, pricing models.
![Page 7: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/7.jpg)
L a w r e n c e | 2
![Page 8: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/8.jpg)
L a w r e n c e | 3
2. DERIVATIVES
There are three main categories of financial instruments: debt, equity, and derivatives.
Debts provide investors with repayment of principal plus interest at some predetermined
future date.
Equities essentially provide shareholders part ownership of a company. The amount that
the shareholders own is called the ownersβ interest, which is equal to the companyβs
assets minus its liabilities. Compared to investors, shareholders have elevated risk that is
based on the companyβs performance.
Derivatives are a form of contract that βderiveβ their value from an underlying entity.
Derivatives provide a way to hedge, or reduce risk. The most common derivatives are
forward and future contracts.
2-1 FORWARD VS. FUTURE CONTRACTS
There are several types of derivatives. Two basic examples of derivatives are forward and
future contracts. We as consumers are typically accustomed to a spot market in which trading
occurs immediately upon agreement. Forward and future contracts occur in a futures market in
which trading occurs later in the future after the agreement. While both are contracts to buy or
sell assets at a predefined date (maturity or expiration date) and price (strike price), there are a
few fundamental differences between the two. The most general difference separating forward
and future contracts is the formality. Future contracts are standardized and are traded over a
public exchange whereas forward contracts are negotiated privately.
Since future contracts are handled publicly, there is a lower counterparty risk. This means
that there is a smaller chance that one of the sides cannot follow through with the agreement. The
exchange which handles future contracts acts as the counterparty to both sides ensuring that they
![Page 9: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/9.jpg)
L a w r e n c e | 4
can follow through with the contract. Stock trading takes place in the form of future contracts
rather than forward contracts. The buyer of a futures contract, or long position, agrees to buy the
underlying entity on the maturity date at the strike price whereas the seller of a futures contract,
or short position, agrees to sell the underlying entity at that price on the agreed upon date.
However, future contracts rarely mature at the maturity date. Future contracts are frequently
traded or closed before the maturity date. To close the contract, the buyer (or long position) must
sell (or short) the contract. Alternatively, the seller (or short position) must buy (or long) the
contract.
2-2 OPTIONS
Options can be thought of as a form of future contract in which the owner of the contract
has the right rather than the obligation to trade an underlying asset at a strike price on the
maturity date. This right to trade costs a premium. If the owner decides to trade, this is called
exercising the option. There are two types of options: puts and calls.
2-3 PUT VS. CALL
A call is the right to buy a stock on or before a predefined maturity date at a predefined
strike price. A put is similar to a call except that it is the right to sell a stock rather than the right
to buy [5]. Both calls and puts cost a premium for that right. Calls are purchased in hopes of the
stock value increasing and puts are purchased in hopes of the stock value decreasing. For
example, consider a stock that is currently priced at $100 and you buy a call option at a premium
of $10 for a strike price of $110 to expire in a month. If the stock value goes up to $121 before
the maturity date, then you may exercise the call to buy the stock for $110 and sell it for $121
profiting $1 due to the premium. Likewise, if a stock is currently priced at $100 and you buy a
put option at a premium of $10 for a strike price of $90 to expire in a month. If the stock value
![Page 10: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/10.jpg)
L a w r e n c e | 5
goes down to $79 before the maturity date then you may buy the stock for $79 and exercise the
put to sell the stock for $90 profiting $1. If the value of the stock does not change to the desired
amount by the maturity date then there is only a loss of $10 from the premium. While some types
of options may be exercised before the maturity date, other options can only be exercised on the
maturity date.
2-4 EUROPEAN VS. AMERICAN STYLE OPTIONS
While European options can only be exercised at the maturity date, American options may be
exercised at any time before the maturity date. The increased flexibility of the American option
results in more difficult decision making compared to the European option. If the owner of the
option decides to exercise before maturity, he/she forgoes the opportunity to profit a larger
amount in the remaining time until expiration. Of course, he/she may also be avoiding a potential
loss. As a result, American options tend to be more complex to handle and more difficult to
model. Since they are more difficult to model, numerical simulations might give us good insight
about how to appropriately price these options.
![Page 11: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/11.jpg)
L a w r e n c e | 6
![Page 12: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/12.jpg)
L a w r e n c e | 7
3. STOCHASTIC PROCESSES
Given that physics studies nature at a fundamental level, it has strong overlaps with a
variety of fields from biology to economics. This project seeks to look further into a connection
between physics and finance typically called βeconophysics.β The stock market has numerous
ties to physics, one of which is the overall marketβs relation to multifractals in chaos theory.
Similar to Erin Brownβs Senior Comprehensive Project, in which the βsudden flipsβ of the
second pendulum of a double pendulum might be predicted through simulation, it is possible that
computer simulation could predict sudden and significant market changes.
The flow of the price of a specific stock or derivative has a physical analog as well. In
biophysics, when a particle is suspended in a fluid, it is considered to be undergoing Brownian
motion if the random collisions between the particle and the fluidβs molecules influence the
particleβs motion. The influence from the collisions causes the particleβs motion to be a
stochastic process. A stochastic process incorporates random fluctuations which cause the
evolution of the system over time to be probabilistic, i.e. the trajectory is not exact, but lies
within a band. While stochastic processes were originally discovered from the behavior of
physical systems, connections to non-physical systems, such as stock prices, were made very
soon thereafter [6]. Stock prices fluctuate from the random interactions with their environment.
These interactions may be direct such as the effects weather can have on grain stocks. The
interactions may also be from a summation of many indirect variables resulting in random
effects. As a result, the stock price fluctuation can be considered a Wiener process similar to
Brownian motion. A Wiener process is simply a continuous time stochastic process. The relation
between a particle undergoing Brownian motion and stock price movements is explained further
in the next section.
![Page 13: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/13.jpg)
L a w r e n c e | 8
3-1 BROWNIAN MOTION
Newtonβs laws of motion can be applied to understand balance of forces. In biophysics,
balance of forces can be applied with a Langevin equation to understand Brownian motion. The
Langevin equation describing a particle undergoing Brownian motion is as follows:
πΉππππππ‘ππ£π = πΉππππ + πΉπππ π‘πππππ + πΉπ π‘ππβππ π‘ππ
ππ2π₯
ππ‘2 = βπΎππ₯
ππ‘β ππ₯ + πΉπ π‘ππβππ π‘ππ (1)
where x is the particleβs position, t is time, m is the mass of the particle, πΎ is the drag coefficient
from the viscosity of the fluid, k is the return factor from Hookeβs law, and πΉπ π‘ππβππ π‘ππ is the
noise term that comes from the random interactions between the particle and the fluid. It should
be noted that πΉπ π‘ππβππ π‘ππ has no meaning by itself and is just a noise term for the balance of forces
in the Langevin equation. Equation (1) results from three different interactions between the
particle and the fluid environment. The first comes from the fluid resisting the motion of the
particle in the form of drag friction. The second interaction is the fluidβs tendency to draw the
particle back to its original position due to weak attraction between the particle and the
molecules of the surrounding fluid. The final interaction results from the collision of the particle
with the fluidβs molecules. The collisions are random and hence characterize the process to be
stochastic.
3-2 STOCK PRICE MOVEMENTS
Observing physical systems undergoing Brownian motion marked the discovery of
stochastic processes [7]. Application to non-physical fields, such as finance, began soon
thereafter [8]. It was realized that stock prices also change stochastically with time. Since Monte-
![Page 14: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/14.jpg)
L a w r e n c e | 9
Carlo simulations numerically solve problems through repeated random samplings, the
βrandomnessβ from stochastic processes can be effectively modeled using Monte-Carlo
simulations, which will be shown further in section 4.
Stock pricing incorporates the same interactions as equation (1) except that it does not
have a restoring force and so equation (1) can be rewritten as follows:
π2π₯
ππ‘2= β
πΎ
π
ππ₯
ππ‘+
1
ππΉπ π‘ππβππ π‘ππ .
ππ
ππ‘= β
πΎ
π π +
1
ππΉπ π‘ππβππ π‘ππ
ππ = βπΎ
π πππ‘ +
1
ππΉπ π‘ππβππ π‘ππππ‘ (2)
where V is the particleβs velocity. Several changes can be made to equation (2) to translate it
from describing the velocity of a particle undergoing Brownian motion to stock pricing. Though
these changes are not direct, they are still vital for conceptualizing stock price movements. The
right side of equation (2) can be split into two parts, deterministic and stochastic. The
deterministic part comes from the drag force which hinders the velocity of the particle. The
stochastic part comes from the stochastic βforceβ which randomly fluctuates the velocity of the
particle. As a result the particleβs velocity changes due to both the deterministic and stochastic
contributions. Similarly, a stockβs price, π(π‘), changes due to both deterministic and stochastic
contributions. While the deterministic drag force resists the motion of the particle, stock price
movements are driven by a growth rate, π, similar to the interest earned from investment.. Also
while the stochastic βforceβ randomly fluctuates the velocity of the particle, a stochastic term,
ππ, randomly fluctuates the stockβs price. ππ will be discussed further in section 4.1. These
![Page 15: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/15.jpg)
L a w r e n c e | 10
changes transform equation (2) into the difference equation utilized to perform Monte-Carlo
simulations for stock prices as follows:
ππ = π(π‘) (π ππ‘ + π ππ). (3)
where π is the volatility which weights ππ . Equation (3) will be discretized and utilized to
perform Monte-Carlo simulations in the next section.
![Page 16: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/16.jpg)
L a w r e n c e | 11
4. NUMERICAL SOLUTIONS
Typically in physics it is necessary to solve differential equations analytically. A
common example is harmonic oscillations. Other examples are population growth and
continuously compounded interest. Consider the following simple ordinary differential equation:
ππ¦
ππ‘= π π¦(π‘), (4)
In other words, the rate of growth is directly proportional to a growth rate, r. Equation (4) has a
simple exponential solution as follows,
π¦(π‘) = π¦πππ π‘,
where π¦π is the initial value of π¦. The exponential nature of the example provides an excellent
starting place for finance due to the time value of money. The time value of money refers to the
cost of holding money over time. By holding onto money, the holder forgoes interest
opportunities from investing that money. The minimum interest forgone is equal to the amount
of interest generated from continuous compound interest at the risk-free interest rate.
Though we can solve an ordinary differential equation, typically it requires unnecessary
brute force to solve more difficult differential equations analytically. Many equations cannot be
solved analytically at all. Instead we can reach numerical solutions through computation by
discretizing the equation. The Taylor Series expansion of y about π‘ = π‘π is as follows:
π¦(π‘) = π¦(π‘π) +ππ¦
ππ‘|π‘=π‘π
(π‘ β π‘π) + β―
π¦π+1 = π¦π + π π¦π βπ‘, (5)
![Page 17: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/17.jpg)
L a w r e n c e | 12
Equation (5) can then be simplified as:
i.e. π¦π+1 = π¦π(1 + π βπ‘). (6)
where π¦π+1 is the output for the input π¦π. Since equation (6) is a Taylor Series approximation
with only the first couple of terms, the time steps, βπ‘, must be sufficiently small for the proper
solution. With sufficiently small time steps, numeric solutions can be found based off the initial
value, π¦0. Figure 1 illustrates the numerical solutions that result from a numerical simulation
with equation (6).
Figure 1: Smoothed plot of the numerical solution for equation (4) with a rate of π = 0.1 and an
initial value π¦π = 100. See Appendix A-2 for additional information.
More generally, equation (4) can be rewritten as ππ¦
ππ‘= π(π‘π, π¦π), then ππ¦ = π(π‘π, π¦π)ππ‘.
Discretizing this equation gives π¦π+1 = π¦π + π(π‘π, π¦π)ππ‘.
![Page 18: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/18.jpg)
L a w r e n c e | 13
4-1 RANDOM WALK
While stock prices should abide by an exponential change through time due to the time
value of money, they are also subject to many random fluctuations. These random fluctuations
can be characterized as Brownian motion, and can be taken into account with the additional
stochastic term, ππ:
π¦π+1 = π¦π + π(π‘π, π¦π)ππ‘ + π(π‘π, π¦π)ππ (7)
where ππ is the random process characterized as Brownian. ππ is simply a random draw from
a normal distribution centered at zero with a standard deviation of βππ‘. This standard deviation
characterizes Brownian motion and will be discussed further in section 4-1. Equation (7) is a
form of general stochastic differential equation. A stochastic differential equation is simply a
differential equation which has stochastic terms (ππ).
Consider a simple example where only the simplest of βrandomnessβ (a volatility of 1) is
present,
π(π‘π, π¦π) = 0, π(π‘π, π¦π) = 1, π¦π = 0 β π¦π+1 = π¦π + ππ, (8)
or more simply, ππ¦ = ππ. This can be solved analytically as π¦(π‘) = π(π‘) + π¦π, where π¦π is the
initial value of π¦. Since π(π‘π, π¦π) = 0, equation (8) is strictly stochastic (nondeterministic). This
process is actually a discretized one-dimensional Brownian motion, or more simply, a one-
dimensional random walk which is centered at π¦π = 0 . At each time step, the particle randomly
decides whether to step a random distance, ππ, or remain at rest. Figure (2) is an example of a
two-dimensional random walk which may only step finite distances.
![Page 19: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/19.jpg)
L a w r e n c e | 14
Figure 2: A visualization of a two-dimensional random walk Monte Carlo simulation made by
Erin Brown and me. At each time step, the particle may move one of four directions (up, down,
left, or right) or choose not to move. The particle begins at β*β and finishes at β&β. The trial took
300 steps and had a probability to move of 0.5.
![Page 20: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/20.jpg)
L a w r e n c e | 15
4-2 RELATIONSHIP WITH TIME
At each step, a mean squared displacement can be calculated and then plotted as in figure
(3). A simulation can be repeated for a large number of particles to find an averaged mean
squared displacement for a given number of steps.
Figure 3: A graph of the data output from two-dimensional random walk simulations I
made, which calculates and averages the mean squared displacement at each step. The lower
curve allowed movement in four directions (separated by 90 degrees), while the upper curve
allowed movement in six directions (separated by 60 degrees). The mean squared displacement
values at each step are averaged over 1000 trials.
![Page 21: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/21.jpg)
L a w r e n c e | 16
The mean squared displacementβs relationship with time can be found by applying the
following solution from the one-dimensional diffusion equation:
π(π, π‘) =1
β4ππ·π‘π
β(πβππ)2
4π·π‘ ,
where π· is the diffusivity constant and π is the probability of the particle at posision π and time
π‘. This is simply a normal distribution centered at ππ with a standard deviation of β2π·π‘. Einstein
utilized this solution to derive the mean squared displacementβs relationship with time [9]:
< π2(π‘) > = 2ππ·π‘ (9)
where π = π‘βπ ππ’ππππ ππ ππππππ ππππ . Similarly in order for the linear relationship to hold
true, ππ must be a random draw from a normal distribution with a standard deviation of βππ‘.
From the slopes of the best fit lines provided from figure (3) and equation (9), π· = 0.04575 for
the four-directional case and π· = 0.055145 for the six directional case. Since the mean squared
displacement is directly proportional to the number of dimensions, it intuitively makes sense that
the six directional case has a steeper slope than the four directional case.
The numerical solutions of equation (8) can be calculated with the random samplings
from ππ. Figure 4 illustrates the possible solutions that result from a Monte-Carlo simulation
with equation (8).
![Page 22: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/22.jpg)
L a w r e n c e | 17
Figure 4: 50 random walks, or trials, from 0 to 20 with 2000 steps. The walks are closely related
to the plotted πβπ‘ functions as expected for a random walk where π represents the integers
from β3 to 3. See Appendix A-3 for additional information.
Figure (4) emphasizes that the displacement is proportional to βπ‘. This is due to the fact that
π¦(π‘) = π(π‘) = π₯βπ‘ (where π₯ is random draw from a normal distribution centered at 0 with a
standard deviation of 1)which comes from ππ = π₯ βππ‘ as follows:
π¦(π‘) = π(π‘) = β ππ = β(π₯ βππ‘) = βππ‘ β π₯. (10)
Then by applying the central limit theorem (see Appendix A), equation (10) becomes the
following:
π¦(π‘) = βππ‘ βπ π₯ = π₯βπ ππ‘ = π₯ βπ‘. (11)
This information will be crucial for analytically solving more difficult stochastic differential
equations in section 5.
![Page 23: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/23.jpg)
L a w r e n c e | 18
4-3 STOCK PRICE EVOLUTION
The previous examples demonstrate the process of numerically solving basic differential
equations. However, the examples either relate the output purely to time (deterministic) or purely
to randomness (stochastic). Stock prices move in a way which includes both the time and
random elements. The discretized SDE from equation (3) is given by:
ππ = π(π‘) (π ππ‘ + π ππ) (3)
ππ+1 = ππ + ππ{π ππ‘ + π ππ}. (12)
where π is the stockβs growth rate and π is the stockβs volatility. Clearly the output relates to
both time (through dt) and Brownian motion (through dW). The solution also maintains the
deterministic exponential nature while including the stochastic random Brownian fluctuations.
Figure 5 illustrates a trial that results from a Monte-Carlo simulation of equation (12).
Figure 5: A plot of stock price from time π‘ = 0 π‘π 20 with 2000 steps, π = 0.1, π = 0.1, and an
initial value of 100. The plot provides the look of what one envisions on the computer screens at
Wall Street. The plot also illustrates the exponential foundation for the stock price evolution.
This plot will be recreated to show the exponential foundation in the following section.
![Page 24: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/24.jpg)
L a w r e n c e | 19
5. ANALYTICAL SOLUTIONS
ππ = π(π‘) (π ππ‘ + π ππ). (3)
Equation (3) can be solved analytically by making a transformation. Equation (3) shows that
the derivative of the stock price should be proportional to the current price. Hence, the solution
has an exponential relationship. The solution has an exponential foundation and fluctuates
stochastically around the exponential curve. As a result, the natural log of the stock should be
considered is the following:
π§ = ln(π). (13)
To find the new difference equation, ππ§, simply apply Itoβs Lemma (Appendix C) as follows:
ππ§ = (ππ§
ππ‘+ π π
ππ§
ππ+
1
2π2π2
π2π§
ππ2) ππ‘ + π π
ππ§
ππππ. (14)
Then since
ππ§
ππ=
1
π,
π2π§
ππ2= β
1
π2,
ππ§
ππ‘=
ππ§
ππ
ππ
ππ‘=
1
π
ππ
ππ‘β 0,
equation (14) simplifies to the following:
ππ§ = (π β1
2π2) ππ‘ + π ππ
ππ§ = π ππ‘ + π ππ, (15)
where π = π β1
2π2. Equation (15) can be solved analytically through integration as
β« ππ§π‘
0= β« (π ππ‘ + πππ)
π‘
0
log[π(π‘)] = π π‘ + ππ(π‘) + log [π(0)]
π(π‘) = π(0)πππ‘+ππ(π‘).
Finally, since π(π‘) = π₯βππ‘ from section 4.1,
![Page 25: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/25.jpg)
L a w r e n c e | 20
π(π‘) = π(0)ππ π‘+π₯ πβπ‘ . (16)
Figure (6) illustrates the solution from equation (16) when plotted with 50 trials that results from
a Monte-Carlo simulation of equation (12).
Figure 6: 50 trials of the plot from figure (5) from time π‘ = 0 π‘π 2 with 2000 steps, π = 0.1, π =
0.1, and an initial value of 100. The trials are closely related to the plotted π(0)ππ π‘+π πβπ‘
functions as expected for a random walk where π represents the integers from β3 to 3. See
Appendix B-4 for additional information.
5-1 BLACK-SCHOLES EQUATION
While Monte Carlo simulation provides a solution, another simpler solution is available
for less complex options. Consider the value of an option, V(t,S), which is related to the stock
price, S.
The Black-Scholes equation is based off a delta-hedging portfolio, X. A portfolio is simply a
collection of financial assets or investments. The portfolio for Black-Scholes is just a collection
![Page 26: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/26.jpg)
L a w r e n c e | 21
of stocks and option contracts. The portfolio, X, is either short one option contract and long ππ
ππ
stocks as
π = βπ +ππ
πππ, (17)
or long one option and short ππ
ππ stocks as
π = π βππ
πππ, (18)
where ππ
ππ is delta which measures the sensitivity of the option value to changes in the underlying
stockβs value assuming all else constant. As a result of delta-hedging, the overall portfolioβs
value will not change from small changes in the stock price. Essentially risk is nullified by
offsetting the option position by owning stock based on the optionβs sensitivity to stock price
changes. To derive the Black-Scholes equation, discretize equation (18):
π₯π = βπ₯π +ππ
πππ₯π. (20)
Since ππ β π₯π, equation (3) can be discretized as follows:
ππ = π(π‘) (π ππ‘ + π ππ)
βπ = π[π βπ‘ + π βπ]. (21)
Since ππ β π₯π, π₯π can be found by applying the identity Itoβs Lemma (Appendix A) for ππ as
follows:
ππ = (ππ
ππ‘+ π π
ππ
ππ+
1
2π2 π2 π2π
ππ2) ππ‘ + π πππ
ππππ
βπ = (ππ
ππ‘+ π π
ππ
ππ+
1
2π2 π2 π2π
ππ2) βπ‘ + π πππ
ππβπ (22)
Then after substituting equations (21) and (22), equation (20) becomes
π₯π = (βππ
ππ‘β
1
2π2 π2 π2π
ππ2) π₯π‘ (23)
![Page 27: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/27.jpg)
L a w r e n c e | 22
Notice that the specific choice of portfolio allowed for the βrandomβ factor of dW to be averted
in equation (23). This is what causes delta-hedged portfolios to reduce risk. However, risk is not
eliminated because π₯π includes S(t) which is a random process. Since the risk is severely
reduced, the return on the portfolio, π₯π, is simply the simple compound interest generated at the
risk-free interest rate, r. and so
π₯π = π π π₯π‘ = π (βπ +ππ
πππ) π₯π‘. (24)
Simple compound interest is similar to calculating displacement from velocity (m/s) and time
interval (s) in physics. The velocity is analogous to the principle ($) times the rate (%/yr).
Combining equations (23) and (24) results in the general Black-Scholes equation,
ππ
ππ‘+ ππ
ππ
ππ+
1
2π2π2 π2π
ππ2β ππ = 0. (25)
5-2 BLACK-SCHOLES FORMULA
Solving the Black-Scholes equation requires some degree of brute force through
transformations. However, this process is important because it reaches an easier to solve
diffusion equation which thermal physicists are familiar. In order to change the coefficients of
the terms in equation (25) into constants, there must be a change of variable to x=ln(S/K) where
ππ
ππ=
ππ
ππ₯
1
π and
π2π
ππ2=
1
π2(
π2π
ππ₯2β
ππ
ππ₯).
Since the value of the option at maturity is known, there must also be a change of variable from t
to T-t. As a result of these changes, equation (25) becomes
βππ
π(πβπ‘)+ (π β
1
2π2)
ππ
ππ₯+
1
2π2 π2π
ππ₯2β ππ = 0, (26)
Next, the final term can be absorbed with the transformation
π = π ππ(πβπ‘).
![Page 28: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/28.jpg)
L a w r e n c e | 23
Now equation (26) becomes
πβπ(πβπ‘) [βππ
π(πβπ‘)+ ππ + (π β
1
2π2)
ππ
ππ₯+
1
2π2 π2π
ππ₯2] β ππ = 0,
which simplifies to
βππ
π(πβπ‘)+ (π β
1
2π2)
ππ
ππ₯+
1
2π2 π2π
ππ₯2= 0. (27)
In an effort to remove the coefficients, the following transformation must be done:
π¦ =πβπ2/2
π2/2π₯.
This alters equation (27) into
βππ
π(πβπ‘)+ (π β
1
2π2) [
ππ
ππ¦
πβπ2
2π2
2
] +1
2π2 [
ππ
ππ¦
πβπ2
2π2
2
]
2
= 0
and simplifies to
βππ
ππ+
ππ
ππ¦+
π2π
ππ¦2= 0 (28)
where
π =(πβπ2/2)
2
π2/2(π β π‘). (29)
The final transformation is the change of variable π§ = π + π¦. Since π(π, π§(π, π¦)) rather than just
π(π, π¦), the terms from equation (28) become:
ππ(π,π¦)
ππ=
ππ(π,π§(π,π¦))
ππ+
ππ(π,π§(π,π¦))
ππ§
ππ§
ππ=
ππ(π,π§(π,π¦))
ππ+
ππ(π,π§(π,π¦))
ππ§, (30)
ππ(π,π¦)
ππ¦=
ππ(π,π§(π,π¦))
ππ§
ππ§
ππ¦=
ππ(π,π§(π,π¦))
ππ§, (31)
π2π(π,π¦)
ππ¦2=
π
ππ¦[
ππ(π,π§(π,π¦))
ππ§] =
π2π(π,π§(π,π¦))
ππ§2
ππ§
ππ¦=
π2π(π,π§(π,π¦))
ππ§2. (32)
Substituting equations (30), (31), and (32) into equation (28) yields the diffusion equation,
![Page 29: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/29.jpg)
L a w r e n c e | 24
ππ
ππ=
π2π
ππ§2. (33)
Equation (33) is a basic one-dimensional diffusion equation which can be related to both the
diffusion equation for Brownian motion and a heat diffusion equation. U, z, and π are loosely the
option value, stock price, and time respectively. As a result, equation (33) means that the option
value diffuses along the stock price through time similar to how the Brownian particle and heat
diffuse along spatial directions through time. Equation (33) can be solved and transformed back
into familiar terms as the Black-Scholes formula for European call or put options:
ππ(π, π‘) = π(π‘)π(π1) β ππβπ(πβπ‘)π(π2) (34)
ππ(π, π‘) = ππβπ(πβπ‘)π(βπ2) β π(π‘)π(βπ1) (35)
where ππ(π, π‘) is the price of a call option, ππ(π, π‘) is the price of a put option, X is the strike
price, T is the maturity date, N(x) is a probability density function (PDF) such that
π(π₯) = β«1
β2ππ
βπ¦2
2β ππ¦
β
βπ₯ (36)
and
π1 =ln(π(0)
πβ )+(π+π2
2β )π
πβπ (37) π2 =
ln(π(0)πβ )+(πβπ2
2β )π
πβπ. (38)
5-3 UNDERSTANDING THE BLACK-SCHOLES SOLUTION
While equations (34) and (35) may seem daunting, they are actually fairly intuitive.
Equation (34) essentially states that the current value of the call option, ππ, is the current price of
the stock, π(π‘), minus the exercise price of the stock, π, discounted back to current value. The
discounting of the exercise price back to current value results from the theoretical cost of holding
money which comes from forgone interest opportunities as mentioned in section 4. This
theoretical cost is handled through continuous compounding (πβπ(πβπ‘)) at the risk-free interest
![Page 30: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/30.jpg)
L a w r e n c e | 25
rate, r. Equation (35) is basically the opposite of equation (34) where the current value of the call
option is the exercise price of the stock discounted back to current value minus the current price
of the stock. This makes sense since a call option is the right to buy at the exercise price and then
sell at the current stock price while a put option is the right to sell at the exercise price after
buying at the current stock price. Both the current price and exercise price are weighted by
similar respective PDFs, N. In laymenβs terms, the functions can be thought as the probabilities
of executing the option.
There are a few parameters in π1 and π2 to evaluate. First is the ratio of the initial stock
price with the strike price, π(0) πβ . Both π1 and π2 increase by the same amount with respect to
an increase in the ratio. As a result, the PDFs increase by the same amount for equation (34) and
decrease by the same amount for equation (35). This in turn increases the value of the call and
decreases the value of the put. This makes sense because the goal of the call owner is for the
stock price to increase above the exercise price and the goal of the put owner is for the stock
price to decrease below the exercise price. A larger ratio benefits the call ownerβs cause and
hinders the put ownerβs cause.
The risk-free interest rate, r, and the maturity date, T, have a similar effect on the option
value as the ratio of the initial stock price with the strike price. When r or T increase, the value of
the call decreases and the value of the put decreases. This effect primarily occurs from π1 and
π2.
It also makes sense that the option value increases as the volatility, π, increases. Since the
volatility represents the significance of βnoiseβ or fluctuations in the price, a larger volatility is
good for the price of the option because a large fluctuation can occur at maturity in favor of the
![Page 31: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/31.jpg)
L a w r e n c e | 26
trader causing a huge gain. If the fluctuation does not occur in favor of the trader, then there is
only a small loss from the premium.
![Page 32: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/32.jpg)
L a w r e n c e | 27
6. FUTURE WORK
While the Black-Scholes solution provides a quick and simple value for the option, it is
not necessarily preferred over Monte Carlo methods. Monte Carlo methods with a large enough
number of simulations can provide a distribution of values from all of the simulations. This
distribution can not only provide the same value found from the Black-Scholes solution, but also
how much different the observed value can be and the likelihood of such a difference. Many
current models, such as the Black-Scholes solution, assume that certain variables are constant
throughout the lifetime of the option. However, in reality variables like volatility can vary during
the option contractβs lifetime.
The future of this project aims to explore the capabilities of Monte Carlo methods beyond
that of section 4, specifically the effects of slight variation in the volatility. The project can
compare several different Monte Carlo pricing methods which only differ on the degree to which
they fluctuate the volatility. To fluctuate the volatility, the simulation can simply perform a
random draw for the volatility at each time step similar to dW. The standard deviation of these
random draws can be a user input percentage of the volatility. The stock price can then be
trajected similar to figure (5). Once the final stock value is averaged for enough trials, the option
value is simply the final stock price (discounted back to current value) minus the initial stock
price. While creating this simulation is straightforward, further exploration needs to be done on
valuing the drift, π, and volatility, π. I found that increasing the number of time steps caused the
option price to approach zero. I believe this was because it over emphasized the stochastic
contributions and for a large amount of trials the option value averaged zero (the expectation
value resulting from the random draws of dW).
![Page 33: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/33.jpg)
L a w r e n c e | 28
The pricing methods should be compared against the Black-Scholes pricing model to
determine which method is the most accurate. The models can be tested on hypothetical option
contracts based off of historical stock prices. These hypothetical option contracts can be made
from the historical daily stock prices from Yahoo Finance. After a maturity date is chosen, each
day can provide a theoretical option price based on the difference between the current stock price
and the stock price at the chosen maturity date (discounted back to current date). These
theoretical option prices can be utilized to test the various pricing models.
![Page 34: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/34.jpg)
L a w r e n c e | 29
7. APPENDIX
A. MATHEMATICA
A-1 GLOSSARY
Evaluate[expr]
Causes expr to be evaluated even if it appears as the argument of a function whose
attributes specify that it should be held unevaluated.
ItoProcess[sdeqns, expr, x, t, π βdproc]
Represents an Ito process specified by a stochastic differential equation sdeqns, output
expression expr, with state x and time t, driven by w following the process dproc.
ListLinePlot[{πππππ, πππππ, β¦ }]
Plots several lines.
ListPlot[{ππ, ππ, β¦ }]
Plots points corresponding to a list of values, assumed to correspond to x coordinates 1, 2,
β¦ .
NDSolve[eqns, n, {x, ππππ, ππππ}]
Finds a numerical solution to the ordinary differential equation eqns for the function u
with the independent variable x in the range ππππ to ππππ.
![Page 35: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/35.jpg)
L a w r e n c e | 30
NestList[f, expr, n]
Gives a list of the results of applying f to expr 0 through n times.
Plot[{ππ, ππ, β¦}, { x, ππππ, ππππ}]
Plots several functions ππ.
RandomFunction[proc, {ππππ, ππππ}]
Generates a pseudorandom function from the process proc from π‘πππ to π‘πππ₯.
Show[ππ, ππ, β¦]
Shows several graphics combined.
Table[expr, {ππππ}]
Generates a list of ππππ₯ copies of expr.
A-2 FIGURE (1)
![Page 36: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/36.jpg)
L a w r e n c e | 31
A-3 FIGURE (4)
A-4 FIGURE (6)
B. CENTRAL LIMIT THEOREM
Let {ππ}πππ be a sequence of independent, identically distributed random variables
random variables, let π be the expectation value for π₯π, let π be the standard deviation for π₯π, and
define
ππ = β ππ
π
π=1
.
![Page 37: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/37.jpg)
L a w r e n c e | 32
The central limit theorem states that as π β β [10],
ππ β π π
βπ π2β π₯,
where x is a draw from a standard normal distribution (mean of 0 and standard deviation of 1).
The central limit theorem can also be rewritten as
ππ β π₯βπ π2 + π π.
If ππ = π₯, then π = 0 and π = 1. As a result, the central limit theorem can be simplified as
ππ = β π₯ β π₯βπ .
C. ITOβS LEMMA
Itoβs Lemma is the stochastic calculus equivalent of the chain rule from calculus. It
serves as a tool to find the differential of a stochastic process. Given the function, f(t,x), the
Taylor series expansion is:
ππ =ππ
ππ‘ππ‘ +
ππ
ππ₯ππ₯ +
1
2
π2π
ππ₯2ππ₯2 + β―
where dx is the stochastic difference equation,
ππ₯ = π₯(π ππ‘ + π ππ).
Substituting in for dx results in
ππ =ππ
ππ‘ππ‘ +
ππ
ππ₯ π₯ (π ππ‘ + π ππ) +
1
2
π2π
ππ₯2 π₯2 (π2 ππ‘2 + 2π π ππ‘ ππ + π2 ππ2).
Since ππ‘2 β 0, ππ‘ ππ β 0, and ππ2 β ππ‘, this simplifies to
ππ = (ππ
ππ‘ + π π₯
ππ
ππ₯ +
π2
2 π₯2
π2π
ππ₯2) ππ‘ + π π₯
ππ
ππ₯ ππ.
![Page 38: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/38.jpg)
L a w r e n c e | 33
C-1 π πΎπ β π π
From the definition of variance,
π(ππ) = πΈ(ππ2) β πΈ(ππ)2
where π(ππ) is the variance of dW and πΈ(ππ) is the expectation value of dW. Then since
πΈ(ππ) and π(ππ) = ππ‘,
πΈ(ππ2) = π(ππ) = ππ‘.
Then as ππ‘ β 0, the standard deviation of ππ2 also decreases and hence the normal distribution
from which it draws narrows in on the expectation value, ππ‘. Thus for sufficiently small dt,
ππ2 β ππ‘.
![Page 39: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/39.jpg)
L a w r e n c e | 34
D. WORKS CITED
[1] Gora, βThe Theory of Brownian Motion: A Hundred Yearsβ Anniversaryβ, (2006),
52-53.
[2] Ibid.
[3] David Forfar, βLouis Bachelierβ, (JOC/EFR, August 2002), http://www-
history.mcs.st-and.ac.uk/Biographies/Bachelier.html.
[4] Ibid.
[5] Capinski and Zastawniak, βMathematics for Finance: An Introduction to Financial
Engineeringβ, Options: General Properties, (USA: Springer, 2003), 147-149.
[6] David Forfar, βLouis Bachelierβ, (JOC/EFR, August 2002), http://www-
history.mcs.st-and.ac.uk/Biographies/Bachelier.html.
[7] Jarrow and Protter, βA short history of stochastic integration and mathematical
finance the early years, 1880-1970β, (2004).
[8] David Forfar, βLouis Bachelierβ, (JOC/EFR, August 2002), http://www-
history.mcs.st-and.ac.uk/Biographies/Bachelier.html.
[9] Ebeling, βNonlinear Brownian motion- mean square displacementβ, (2004).
[10] Durrett, βStochastic Calculus: A Practical Introductionβ, (CRC Press, 1996).
![Page 40: Application of Monte Carlo Methods in Finance](https://reader031.fdocuments.in/reader031/viewer/2022030312/58edd3c61a28ab8b458b4697/html5/thumbnails/40.jpg)
L a w r e n c e | 35
E. BIBLIOGRAPHY
Capinski and Zastawniak. Mathematics for Finance: An Introduction to
Financial Engineering. USA: Springer, 2003.
Copped. βSolving the Black-Scholes equation: a demystification.β Last modified November,
2009. http://www.francoiscoppex.com/blackscholes.pdf.
Cotterill, Rodney. "Transport Process." In Biophysics an Introduction, 76-79. Chichester, West
Sussex: John Wiley, 2002.
"Forward Contract vs. Futures Contract." Diffen. Accessed September 9, 2014.
http://www.diffen.com/difference/Forward_Contract_vs_Futures_Contract
Hull. Options, Futures, and Other Derivatives. USA: Pearson Prentice Hall , 2009.
βIntroduction to the Black-Scholes formula.β Khan Academy. Accessed October, 2014.
https://www.khanacademy.org/economics-finance-domain/core-finance/derivative-
securities/Black-Scholes/v/introduction-to-the-black-scholes-formula
Stojanovic. Computational Financial Mathematics. USA: Springer Science, 2003.