powered by
Monte Carlo simulation function Predicting Theoretical Value of Options per Share Using Monte Carlo Simulations
monte_carlo(I, M, S_0, K, Time, r, sigma)
No return value, called for side effects
number ofsimulation
number of time steps
The initial price of the underlying stock
Exercise price (conversion price)
Simulate paths over time intervals
risk free rate
Volatility (Standard Deviation of Return)
monte_carlo(I=10000,M=50,S_0=5.9,K=5.43,T=1.353,r=0.018482,sigma=0.2616)
Run the code above in your browser using DataLab