Question: Create an GBM function that takes the following parameters: n : = number of paths to be simulated m : = number of discretization points

Create an GBM function that takes the following parameters:
n:= number of paths to be simulated
m:= number of discretization points per path
SO := initial starting point
d[ln(Sr)]=(-22)dt+dWr
Then convert it to
St
Program the function by using two nested "for loops"
1
def
(n,m,s,,,dt
arr=n
arr[]=,
for 1 in
for 1 in :
arr[1,j]=
convert ins_t into S_t
return arr
part b)
run GBM function with the following parameters and plot the results
)=1000,m=20,SO=100,=0, sigma =0.001,dt=(1
the result sould look like a bell shape centerd around y=S0 line
 Create an GBM function that takes the following parameters: n:= number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!