-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Results not being produced #74
Comments
Hi Wijdan, thanks for reaching out! I'm thinking the solution could be pretty easy. It looks like you saved the scenarios as a variable called Hope this helps! Thanks for using pyesg!
|
Thanks very much Jason - that worked perfectly (knew it was a rookie error!) |
Hi Jason - this is a newbie question. I'm trying to run the following code in Jupyter notebook but I'm not getting any output...it just sits there like I never pressed run.
import pyesg
model = pyesg.GeometricBrownianMotion(mu = 0.05, sigma = 0.2)
x0 = 100
dt = 1
n_scenarios = 1000
n_steps = 60
random_state = 123
results = model.scenarios(x0, dt, n_scenarios, n_steps, random_state)
I've tried other code to test there's nothing else wrong but I don't think there is. For example, when I run...
import pyesg
mu = 0.05
sigma = 0.2
x0 = 100
dt = 10
pyesg.GeometricBrownianMotion(mu, sigma).expectation(x0, dt)
...I get:
array([134.98588076])
Can you help?!
Wijdan
The text was updated successfully, but these errors were encountered: