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:
: number of paths to be simulated
: number of discretization points per path
SO : initial starting point
Then convert it to
Program the function by using two nested "for loops"
def
arr
arr
for in
for in :
arr
convert inst into St
return arr
part b
run GBM function with the following parameters and plot the results
sigma
the result sould look like a bell shape centerd around line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
