Module 07 Lecture Slides
Module 07 Lecture Slides
Introduction
M7-001
Module Overview
Last Module: We studied ways to
generate Uniform(0,1) pseudo-
random numbers. Who cares…?
M7-004
Introduction
Goal: e U (O, 1 number to generate ob er ation ariate from
other di tribution and e en to ha tic proce e .
Try to be fa t reproducible.
M7-005
Intro (cont’d)
■ Multi ariate nonnal
■ onhomo eneou Poi on proce
■ Autoregre i e mo ing a erage time erie
■ Waiting time
■ Brownian motion
M7-007
Computer Simulation
Module 7: Random Variate
Generation
M7-008
Lesson Overview
Last Lesson: We introduced the
topic of RV generation.
M7-009
One Last Time!
Inver e Transform Theorem: Let be a continuou random ariable
with c.d.f. ( ). Then ( ) rv U O 1 .
P( < -1 y) == ( -l (y y. □
M7-010
How Do We Use This Result?
Let rv U (O 1 . Then mean that the random ariable
p-l ( ha the ame di tribution a .
M7-011
8.7
%$
7.@
7.?
7.>
7.=
7.<
7.;
7.:
7.9
9
7.8
8
77
7.7
18 7 8 9 : ;
%
M7-012
Exa1nple: The U b di tribution with F < < b.
Solving - )/ b - ) == for we oet + (b - □
Solving F ( for
1 1
-- 1- or -- □
A A
M7-013
Summary
This Time: Stated and finally proved
the Inverse Transform Theorem. Then
showed how to use it on a couple of
easy examples.
M7-014
Computer Simulation
Module 7: Random Variate
Generation
ol ing ( for
1 1
== - [- n (l - )] 11 or == - [- ) ]1/ . □
A A
M7-017
Example: The triangular O 1 2 di tribution ha p.d.f.
if O < <1
!( ) ==
2- if 1 < < 2.
The c.d.f. i
2/ 2 if O <<1
1- - 2) / 2 if < < 2.
M7-018
If < 1/ 2 we ol e / == to get == v'2U.
Demo Time!!!
M7-019
Example: The tandard normal di tribution. Unfortunate! the
in er e .d.f. <1>- 1 •) doe not ha e an anal tical form. Thi i often a
prob/ ,n " ith th in er tran form 111 thod.
o == 2. 1 17, 1 == 0. 02 3, 2 == 0.01032 ,
d1 == 1. 327 d2 == 0.1 9269 d3 == 0.00130 .
M7-021
In an ca e if Z rv or(0 1 l ) and ou want rv or µ a ju t take
+- µ + aZ.
µ+a Z == 3 + 4l-l 0. + 0. 7 ) D
Demo Time!!!
M7-022
Summary
This Time: Discussed how to
generate several interesting
continuous RVs via the Inverse
Transform method.
M7-023
Computer Simulation
Module 7: Random Variate
Generation
M7-025
Discrete Examples
For di crete di tribu ion it , often be t to con ruct a table.
P (X ==
0 1- p 1- p [O 1 - p ]
1 p 1 1 - p 1]
p X == U (O 1
1 p [O p]
0 1- p (p 1]
M7-027
Example: Suppo e we have a lightly le -trivial di crete p.m.f.
P (X == F U(O 1
- 1 0.6 0.6 [0.0 0.6
2.5 0.3 0.9 (0.6 0.9
4 0.1 1.0 (0.9 1.0
M7-028
Sometime there an ea y way to avoid con tructing a table.
1
P( == J 1 2 ...
M7-029
Exa1nple: The oeometric di tribution with p.m.f. and c.d.f.
and F k == 1 - qk i ~ == 1 2 • • • j
i [J : 1 - qk > l
==
rI nn(1l -- p ) l rv
II
For in tance if p == 0.3 and == 0.72 we obtain
M7-030
Remark: Can al o generate Geom by counting Bern trial until
you get a ucce .
M7-031
Remark: If you have a di crete di tribution like Poi ,\) with an
infinite number of value you could write out table entrie until the
c.d.f. i nearly one generate exactly one and then earch until you
find X == p - l ) i.e. i uch that E (F ( i - 1 , F · ] .
p X == F( ) U O 1)
1 f ( 1) F ( 1) [o F 1]
2 f ( 2) F 2 (F 1) F ( 2 ]
3 f 3) F 3) (F 2) F ( 3 ]
..
.
M7-032
e- 22
Exa1nple: Suppo e X "'-' Poi (2) o that f ( ) == I
== o, 1 2 .. ..
f F ) U 0.1 J
M7-033
Summary
This Time: Generated several
discrete RVs by sort of using Inverse
Transform.
M7-034
Computer Simulation
Module 7: Random Variate
Generation
M7-036
Continuous Empirical Distributions
If ou can t find a good theoretical di tribution to model a certain RV
ou ma want to u e the ,npiri al .d.f of the data 1 , ... , n
number f X i <
n
F,.(x)
1/ 3
4 6
M7-038
Gi en that ou onl ha e a finite number of data point we can turn
the empirical c.d.f. into a continuou RV b u ing linear interpolation
between the (i) .
0 if < (1)
F i- 1 + x - X (i)
if (i) < < (i+ l ) v·
n- 1 (n - l )(X c + 1) - X (i))
1 if > (n)
-8,9,/,18
~U (O l . LetP == - 1) and I == fPl.
(J
+I p -
I+ 1 (
37,84
37,84
I+ l) - (I))-1
##$+
M7-039
Example: Suppo e (l ) == 1 == and (3) == 6. If
2) == 0. 73
then P == - 1 == 1. 6 and I == IPl == 2. So
(I ) + P - J+1 ( (I+l - (I )
M7-040
Empirical vs. Interpolated
c.d.f.’s
) *+
8
%# *+
* ...
90:
809
80:
8 ; =
%!$
M7-041
Check ( lightly different way :
0+ - l
2(4- 1)
1·f < < ( · == 1 ca
l e)
F( ) ==
1
2 + 2(6-- 4) if 4 < < 6 ( · == 2 ca e)
1+6 if < 1/ 2
X ==
2+ if > 1/ 2
Then == 0.73 implie X == 2 + 0.73 == 4.92. □
M7-042
Summary
This Time: Showed how to generate
RVs from a continuous empirical
distribution.
M7-043
Computer Simulation
Module 7: Random Variate
Generation
Convolution Method
M7-044
Lesson Overview
Last Time: Showed how to
generate RVs from empirical
(sample) distributions.
M7-045
Convolution
Con olution refer to adding thing up.
A B
7 8 7 8 7 8 9
M7-047
Example: Erlangn A . If 1 ) . . . n rv i.i.d. Exp A then
Y == L ~ 1 · rv Erlangn ( A . By inver e tran fo1m
- 1
y ==
A
M7-048
Example: A rud de ert i land or O 1 approxilnate generator
which I wouldn t u e .
M7-049
Other con olution-related tidbit :
Demo Time!
M7-050
Summary
This Time: Used convolutions to
generate various RVs. It’s a nice
trick that we can occasionally apply,
and that about “sums” it up!
M7-051
Computer Simulation
Module 7: Random Variate
Generation
Acceptance-Rejection
Method
M7-052
Lesson Overview
Last Visit: Convolution! Revolution!
www.youtube.com/watch?v=HBU2m8GdxuY
1. Generate rv U(O 1 .
2. If >
-
2
3 A CEPT . 0 wi e REJE T and go to tep 1.
M7-054
Notation: Suppo ewe want to imulate a continuou RV with p.d.f.
f (x) but that it difficult to generate directly. Al o uppo e that we
can ea ily oenerate a RV having p.d.f. h(x) t (x) / · where )
.
111a1orz f i.e.
>J E
and
J )d
>J f d === 1
M7-055
Theorem on eumann 1951 : Define g( ) f ( )/t( ) and note
that O < g < 1 for all . Let "'"' U O ) and let be a RV
independent of with p.d.f. h y) == t y) / . If < g( then
ha conditional p.d.f. f y . Y has the right p.d.f.!
M7-056
Algorithm A-R
Repeat
Generate fromU (O, 1)
Generate fro1n h(y indep ndent of
Acceptance
_ f (Y ) _ f (Y )
until < g( - t(Y ) - c h(Y )
Re turn +----
M7-057
I
Generate a point Y uniformly under t(x)
(equivalently, sample Y from p.d.f. h(x)).
M7-058
Summary
This Time: We started playing around
with the Acceptance-Rejection
method. We did a baby example,
gave some motivation, and presented
the underlying theorem.
www.youtube.com/watch?v=Jmg86CRBBtw
M7-059
Computer Simulation
Module 7: Random Variate
Generation
M7-061
Proof of A-R Method
Theorem on eumann 1951 : Define g( ) f( )/t( ) and note
that O < g < for all . Let rv U O 1) and let be a RV
independent of with p.d.f. h(y) == t y) / . If < g( then
Acceptance
ha conditional p.d.f. f y . then
%
p < == P ( < I ) ( 1)
M7-062
Then
p I == y P( <g == y
P ( < g(y) I == y
P ( < g y) and are independent
g y) i uniform . (2)
Let’s keep (1) and (2) in the back of our minds for a wee bit…
M7-063
B the law of total probabilit
p <
- --
1jx p 1 < I == y) l y dy
-
-- p == y h y dy
-- I_ jxP( I == y)t y) dy
-- ![ g(y t(y dy b 2
M7-064
p - .!_ 1f y)dy = 1 (4)
p <
P( < ) == - -
~ --
p
M7-065
There are two main i ue :
■ The ability to quickly ample from h y .
.
■ 1nu t be mall 1nu t be clo e to f ( ) 1nce
1
p < g y )
M7-066
Summary
This Time: Hearty huzzahs to all! We
got through the hardest proof of the
course!
M7-067
Computer Simulation
Module 7: Random Variate
Generation
Algorithm A-R
Repeat
Generate from U (O, 1)
Generate fro1n h(y independent of )
_ f (Y _ f (Y )
until < g( - t (Y) - ch Y
Return +---- Y
M7-070
Example Law 2015 : Generate a RV with p.d.f.
f == 0 3 2 0 < < 1. an t in ert thi analyti all .
%# "
Max occurs at ' , and ( ) '
.
with = lo ( ) d
Then
l I (easy Exp(l) p.d.f.) ,
and
- ( - 1) 2 / 2
g( ) f ( )I □
M7-072
We can u e the half-normal re ult to oenerate a r (O, 1) variate.
M7-073
Summary
This Time: We used Acceptance-
Rejection to generate two non-
trivial continuous RVs.
M7-074
Computer Simulation
Module 7: Random Variate
Generation
M7-076
Example: The Poi on di tribution with probability ma function
P( == 0 1 ...
M7-077
<=> ee exactl n Poi ,\ arri al b t === 1
n n+l
{=? L
·= 1
i<l< L
i= l
t
nth arrival occurs by time 1; and
(n+1)st arrival occurs after time 1
n
- 1 - 1
,\ n II <1<
- - ,\
i= l
n n +l
{=} II ·> -,\ > II z· (5)
i= l i= l
M7-078
The followincr A-R aloorithm ample U O I until (5 beco1ne true
i.e. until the fir t time uch that -A > TI~+/
Algorithm
a +- - A. p +-- l· +-- -1
ntil p <
Generate fromU (O, 1)
p +- p . +-- +1
Return
M7-079
Exa1nple (BC N ): Obtain a Poi (2) RV.
I
1 0.9451 0.3696 0
2 0.5033 0.1860 0
3 0.7003 0.1303 Ye
Thu we take X == 3. □
M7-080
Remark: An ea y argu1nent ay that the expected number of that
are required to generate one realization of Xi E [X + 1) == A+ l.
A Final Note: A-R is used for many other random variables, and even
stochastic processes. We just don’t have time to do any additional
fellas right now, so try not to be too sad.
www.youtube.com/watch?v=LTBqYEwl8mo
M7-082
Summary
This Time: We used Acceptance-
Rejection to generate Poisson RVs.
M7-083
Computer Simulation
Module 7: Random Variate
Generation
Composition
M7-084
Lesson Overview
Last Rendez-Vous: Used A-R to
generate Poisson RVs.
M7-085
Composition
Idea: Suppose a RV actually
comes from two RV’s (sort of on
top of each other). E.g., your plane
can leave the airport gate late for
two reasons — air traffic delays
and maintenance delays, which
compose the overall delay time.
( ) = L Pj j ),
j=l
M7-087
Proof that ha c.d.f. F : By the law of total probability
P( < )
-
--
L P < II == .)P (J ==
-
j=l
L Fj ( PJ F . □
j=l
M7-088
Example: Laplace di tribution. Exponential distribution reflected off of y-axis.
1 1
2 <0 2 < 0
!( ) 1 -x
and
1- ! - x
2 > 0 > 0
X <0if 0 if
1 and 2
1 if > 0 1- - x if
M7-089
Then
1
F - F1 (
2
o that we generate from F1
n( w.p. 1/2
□
- n ) w.p. 1/2
M7-090
Summary
This Time: Learned about
Composition – how to generate
RVs that can themselves be
decomposed into several easy-to-
generate RVs.
M7-091
Computer Simulation
Module 7: Random Variate
Generation
M7-092
Lesson Overview
Last Caucus: Talked about the
Composition RV generation
method.
M7-093
Box-Muller Method: Here a nice ea y way to generate tandard
normal .
✓-2
✓-2
M7-094
Some intere ting corollarie follow directly from Box-Muller.
But
-2 n 1
-2 n 1
rv E p 1/ 2 .
p 1/ 2 . □
M7-095
· u h r rv t 1).
Moreover
✓- 2
✓- 2
and imilarly
M7-096
Polar Method - a little fa ter than Box- uller.
1. Generate 1 2 i.i.d. U 0 l .
Let i == 2 i - 1 · == 1, 2 and
M7-097
A Curious Misconception
It’s “Box-Muller”, not “Box-Müller”.
Surprising, considering that…
M7-098
More Umlauts!
Heavy-Metal Rock Groups:
%
% ! 3 *4
1%
"
M7-099
Summary
This Time: Looked at the Box-
Muller method for generating
normal, along with a couple of
bonus corollaries.
M7-100
Computer Simulation
Module 7: Random Variate
Generation
I used the term “talent-free” to signify that Mr. Ḃieber has graciously
ciou
usslyy
u
performed numerous free co concerts
concnce
nc e so as to showcase his wonderfulul
talent for the poor
orr ch
cchildren
hiilld n o
off th
the
e world to see.
In fa
fact, Mr. Ḃieber
ie
eb
be
e has
err ha
has a wonderful song with an umlaut.
https://www.youtube.com/watch?v=nntGTK2Fhb0
http
httpss:/
tp ://w
/w
I used the term “talent-free” to signify that Mr. Ḃieber has graciously
performed numerous free concerts so as to showcase his wonderful
talent for the poor
oor children
c ild
ch of the world to see.
httttps:/
h tps:/
tp
https://www.youtube.com/watch?v=nntGTK2Fhb0
Mrr Ḃieber
M
Mr. Ḃie is one of this generation’s great artists
www.youtube.com/watch?v=53XyCbIJGKY
M7-104
Order Statistics
uppo e that 1 2 , . . . n are i.i.d. from 01ne di tribution with
.d.f. F ( ) and let == mi { 1, ... n} with .d.f. (y . i
ailed he fir t order tat. Can we generate u ing ju t one U O 1 .
M7-105
ow do Inver e Tran for1n : et G Y and olve for Y. After a
little algebra get don t be afraid ...
p - 1( 1 _ 1 _ )1/n ).
2
di tribution: If Z rv r 0, 1) and rv and and Y are
independent then
z
n .
fr1n
ote that (1 i the Cauchy di tribution.
M7-107
F m di tribution: If and and
Me independent then / .m .
)
M7-108
Summary
This Time: Showed how to
efficiently generate certain order
statistics.
M7-109
Computer Simulation
Module 7: Random Variate
Generation
Multivariate Normal
Distribution
M7-110
Lesson Overview
Last Tête-à-Tête: Generated
order statistics + some
miscellaneous distributions.
www.youtube.com/watch?v=NzlG28B-R8Y
M7-111
Bivariate Normal Distribution
The random e tor ( ) ha the bi ariate nor,nal di tribution with
mean µx == [ ] and µy == [ ] arian e a} == ar ( and
a} == ar and correlation p == r , ) if it ha joint p.d.f.
f ( y) = 1 xp {- ~i + z} y) -2pzx ( z y)]}
axay J l - p 2 - p2
2
means = 0,
variances = 1,
1
covariance = 0.9
0
-1
0
-2
0
-3
-4 -3 -2 -1 0 1 2 3 4
M7-113
Multivariate Normal Distribution
The random e tor X == 1, ... k)T ha the ,nu/ti ariate normal
di tribution with mean e torµ == (µ1 ... µk )T and k x k
o ariance matrix a ij if it ha p.d.f.
otation: X rv ork µ ).
M7-114
In order to generate X let tart with a ector Z === Z1 ... Zk of
i.i.d. Nor O 1 RV . That i uppo e Z rv ork (O I where Ii the
J x k identity matrix and O i imply a vector of O .
M7-115
For k == 2 we can ea ily derive
y0ii 0
✓--
~--
a1 2
22
__a_ f_2
y"aii a11
0-12 z1+
y0ii
M7-116
The followino algorithm compute for oeneral dimen ion k .. .
Algorithm
For · == 1 .... k
)
For · == 1 .... · - 1)
i j ) I jj
ji +---- 0
M7-117
Once ha been computed the multivariate normal RV
X == µ + Z can ea ily be generated:
3. Return X ==
M7-118
Summary
This Time: Learned how to
generate multivariate normal
observations (correlated stuff like
height vs. weight).
M7-119
Computer Simulation
Module 7: Random Variate
Generation
M7-120
Lesson Overview
Last Spiel: Multivariate normal
distribution.
www.youtube.com/watch?v=gGAiW5dOnKo
dcJ
M7-121
Markov Chains
Consider a time series having a
certain number of states (e.g.,
sun / rain) that can transition from
day to day.
Pj k == P ta e k on da · + 1 I tate j on da ·) ·. k == O 1.
i
M7-123
uppo e it rain on Monda . imulate the re t of the work week.
www.youtube.com/watch?v=tIdIqbv7SPo
'
i,"
.
•
.
t
'
\
'
:
.. ~
• ~;N[ .
!'.:
F Po == 0.4 0.91 .. .... .; '{ '"
www.youtube.com/watch?v=FZmgGcZeayA
M7-124
Poisson Arrivals
When the atTi al rate i a on tant A the interan~i al of a Poi on A
proce are i.i.d. Exp ( A and the arri al time are:
o ~ 0 and
Soooo easy!
M7-125
ow uppo e that we want to generate fixed number n of PP ;\
aiTi al in aft ed ti,n int r al [a b]. To do o we no ea theorem
tating that the joint di tribution of the n arri al i the ame a the
joint di tribution of the order tati tic of 1 i.i.d. U (a b RV .
ort the
M7-127
Computer Simulation
Module 7: Random Variate
Generation
Nonhomogeneous Poisson
Processes
M7-128
Lesson Overview
Last Oration: MCs and PPs.
M7-129
NHPPs – Nonstationary Arrivals
ame umption a reoular Poi on pro e ex ept the arTi al rate A
i n t a con tant o tationary in rement doe n t appl .
Let
A(t == rate inten ity fun tion at time t,
t == number of an ival during [O, t] .
4
Then
+t - ( ) ~ Poi on (1 Au du) .
+t
M7-130
Exa1nple: Suppa e that the arrival pattern to the Waffle Hou e over a
certain ti1ne period i a NHPP \\'ith A ) == 2 . Find the probability
that there will be exactly 4 arrival between time t == 1 and 2.
JV 2 , - 1 ~ Poi (1 2 2
d) ~ Poi (7 / 3 .
Thu
- 7/37/ 3 4
0.120. □
'
.
M7-131
Incorrect NHPP Algorithm [it can kip interval with large A )]
o +- 0: . +-- 0
Repeat
M7-133
Thinning Algorithm
0 +---- . +----
Rep at
Demo Time!
t +---- Ti
Repeat
Generate fr mU O 1
until < A( / A* But we only keep the potential arrival w.p. *+
f- 1
These Ti’s are the arrivals that we end up keeping.
M7-134
Summary
This Time: Talked about generating
nonhomogeneous Poisson arrivals
(where the arrival rate varies
throughout the day).
M7-135
Computer Simulation
Module 7: Random Variate
Generation
Time Series
M7-136
Lesson Overview
Last Soliloquy: NHPPs
M7-137
First-Order Moving Average Process
An A 1 i a time erie proce i defined b
i == i +0 ·- 1, for · == 1 2 . . ..
)
M7-138
The A 1 ha covariance function ar i) == 1 + 02
.+ 0 i- 1 ·+1 +0 i == 0 .r . 0
and
M7-139
First-Order Autoregressive Process
An AR 1 proce i defined b
for · == 1 2 .... I
M7-140
The AR(l ha covariance function o °Y:· ~+k) == lkl for all
J == 0 ± 1 ±2 ....
M7-141
AR(1) pix
4 4 3
3 3 2
2 2
0
0 0
-1
-1 -1
-2
-2 -2
-3 -3 -3
-4 -4 -4
0 100 200 300 400 500 600 700 800 900 1000 0 100 200 300 400 500 600 700 800 900 1000 0 100 200 300 400 500 600 700 800 900 1000
M7-142
ARMA(p,q) Process
An ob iou generalization of the MA 1 and AR 1 pro e e i the
ARMA q which con i t of a pth order AR and a qth order MA
which we will impl define without tating propertie :
p q
L j i- j + -+ L ej i - j . == 1. 2 ....
J J
j=l j =l
w.p.
i, w.p. 1 -
for · == 1, 2, ... where O < < o rv Exp 1) and the i are i.i.d.
Exp 1 RV that are independent of 0 .
1~-~-~--~-~-~--~-~-~~-~-~ s ~-~-~--~-~-~--~-~--~-~-~
6 7
6
5
5
4
4
3
3
2
2
0 0
-1 '----'-----'---..__--'------'---'---'-----''----'----' -1 - - - - ~ - - ~ - ~ - ~ - - ~ - - - - - - - - ~
0 100 200 300 400 500 600 700 800 900 1000 0 100 200 300 400 500 600 700 800 900 1000
M7-145
Autoregressive Pareto – ARP
ow let ee how to generate a erie of correlated Pareto RV . Fir t
of all a RV ha the Pari to di tribution with parameter ,\ > 0 nd
> 0 if it ha c.d.f.
M7-146
In order to obtain the ARP proce let tart off with a regular AR l
with normal noi e
M7-147
Feed thi proce into the or O 1 c.d.f. <1? · to obtain correlated
nif O 1 RV · == <1? ~ ) l == 1 2 ....
- 1
i == F X
M7-148
Summary
This Time: Talked about a variety of
time series models. AR(1), MA(1),
ARMA, EAR, and the nasty ARP.
Baby dreaming of
queueing theory
M7-149
Computer Simulation
Module 7: Random Variate
Generation
Queueing
M7-150
Lesson Overview
Last Jam Session: Time series.
M7-151
M/M/1 Queue
Con ider a ingle- erver queue with cu tomer arri ing accordin to a
Poi on ,\ proce tanding in line with a FIFO di cipline and then
etting erved in an x p µ amount of time.
Let J i+ l denote the interarri al time between the ·th and ( · + 14t
u tomer · let i be the ·th cu tomer er ice time· and let i
denote the ·th u tomer wait before ervi e.
M7-152
Lindley o-ive a ery nice way to generate a erie of waiting time for
thi imple example where you don t even need to worry about the
exponential a umption :
T
•· i
Q -
1 - m { ~ + i - I ·+1 O}.
M7-153
Summary
This Time: Some simple queueing
results to enable easy generation of
cycle and waiting times. Easy as
pie!
M7-154
Computer Simulation
Module 7: Random Variate
Generation
Brownian Motion
M7-155
Lesson Overview
Last Board Meeting: Queueing
results.
M7-156
Brownian Motion
Di o ered b Brown· anal zed rigorou 1 b Ein tein· mathem ti al
rigor e abli bed b Wiener al o called Wi n r pro e
The tocha tic pro e {W t ) t > O} i tandard Bro1, nian ,notion if:
n w o) == o.
FJ W t ) rv r O t .
M7-157
IJ {W(t t > O} ha tationary and independent increment .
Increment : Anything like W b - W
0.4
0.2
-02
-0 .4 '------'-------'------'----'---'-------'-------'------'-----'-------'
0 100 200 300 400 500 600 700 800 900 1000
M7-158
How do ou get B ... i an equence of i.i.d. RV with
mean zero and ariance 1. To ome extent the don t e en ha e
to be indep! Don ker Central Limit Theorem a that
1 lntJ
-Jn L i d > W t) a n -+
i=l
where d > denote con ergence in di tribution a get big and l·J
i the floor fun tion e.g. l3. 7J == .
■ (W ( W t ) == min( t .
■ (B( B t ) == min( t - t.
M7-161
Geometric Brownian Motion
The proce t == 0) xp{ µ - a 2 t + liW t) } t > 0 i often
u ed to model tock price where µ i related to the drift of the
tock price li i it olatility and 0) i the initial price.
Exercise: Let e timate the value of a tock option. Pick your favorite
alue of a- k and off you go!
But there are other way : You can ju t imulate the di tribution of
T) directly it lognormal or you can actually look up the exact
Black-Schole an wer ee below .
M7-163
How to Win a Nobel Prize
Let •) and 4> ( •) denote the u ual or(O 1) p.d.f. and c.d.f. Moreover
define the horrible-looking
T - a~T - n(k / 0
b
a\lT
ow get your ticket to ! orway or Sweden or wherever they give out
the obel Prize ...
I
M7-164
The Black-Schole European call option alue i
- rTE [ - k]+
2
- rTE [ 0 p{ ( - ~ + CTW( }- A] +
)
O p{ ( - ~ + CTll } - J]
2
) + ,( )d
M7-165
Summary
This Time: Brownian motion!
Study hard and make $ / € / ₤ on
Wall Street!