Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View JKEVIN2010's full-sized avatar

Kevin Mekulu JKEVIN2010

View GitHub Profile
@JKEVIN2010
JKEVIN2010 / Monte_Carlo.py
Created July 17, 2020 05:06
Monte Carlo Algorithm
#
# Monte Carlo valuation of European call options with NumPy (log version)
# Monte_Carlo.py
#
import math
from numpy import *
from time import time
# star import for shorter code
random.seed(20000)
t0 = time()