Amazing work man. No nonsense, just to the point 👏
@chbrownie18 Жыл бұрын
Clear straight forward presentation. Perfect. Sadly my browser doesn't want me to bookmark your site for security reasons.
@otroleonarbe5 жыл бұрын
great tutorial. One thing that could make this video better will be the font size. I believe it's a little too small, if you're watching on a laptop. IMO. However, keep it up sharing your knowledge to the world :)
@JoaoVictor-sw9go3 жыл бұрын
Great tutorial, but I think the nested loops don't actually need a counter because de y variable has the exact same values. The only adjustment you would have to make when removing the break is loop through the number of periods - 1!
@findpatterns4 жыл бұрын
Thanks. The video it's self explained the concept really well.
@goodlack90933 жыл бұрын
Great video, definitely super useful! Thank you!
@divinastrain12865 жыл бұрын
As far as I know, the daily earning rate didn’t follow the normal distributin, but the ln(earning rate ) does. Really want a discussion.
@none41115 жыл бұрын
There is something odd about the output until I realized its wrong. -> np.random.normal(0,daily_vol). Instead, it should be np.random.normal(statistics.mean(returns[1:])),daily_vol). Basically, the mean is not 0. On average, prices go up for equity and the normal distribution shifts right. (side note: using normal dist. is simpler but doesn't account for higher moments such as Kurtosis and Skewness) Also as other pointed out "count" is not needed. Using last price is correct since that's the initial starting period of the MC.
@marku7z2 жыл бұрын
This was the first thing, i was wondering when watching the Video few seconds ago - Why do we assume the mean to be 0 here?
@jy51042 жыл бұрын
@@marku7z There is something wrong with the last red line as well. It should connect the initial price and the average of the simulation value on the last day.
@esahin013 жыл бұрын
Thank you for the video, it is very informative
@wilsonkun7 жыл бұрын
Just learnt how to produce monte carlo using Brownian motion in Python. Looking forward on how to get insights using that graph.
@RailDevil685 жыл бұрын
Nice man, worked fine for me 1st try.. Well, except for the 'google' part, which i replaced by yahoo but nice !
@DivineZeal6 жыл бұрын
very great video, lots of possibilities
@rajkiranboggala6 жыл бұрын
That was a nice explanation. Thanks
@manuelpena39885 жыл бұрын
I don't know if I am misunderstanding it, but, is the "count" variable really needed? I think the "y" variable has exactly the same value every moment.
@71javer5 жыл бұрын
Cheers for this, I been tryin to find out about "share options trading" for a while now, and I think this has helped. Ever heard of - Winoorfa Option Olegroson - (should be on google have a look ) ? Ive heard some super things about it and my friend got amazing success with it.
@dragomir446 жыл бұрын
Hey P4F, have you ever gotten the Google "We're sorry but your computer may be sending automated queries" error? form the prices = web.DataReader line of code?
@jongcheulkim72842 жыл бұрын
Thank you.
@sornponwichaidit41726 жыл бұрын
thanks for the great tutorial. why don't you used log return instead of simple return?
@TheKenji16814 жыл бұрын
What is the difference with log return and return? I am new 😿
@juinsong79496 жыл бұрын
May I know why my final simulation_df only displayed one trial path, even thought my code is identical to yours?
@jayjaytapp4 жыл бұрын
Thanks for the great video!! Sorry for being critic, for your next video I'd be useful if the font sizes a bit bigger and if you try to minimize the noise of your keyboard.
@margy10613 жыл бұрын
Great work :)
@markk3644 жыл бұрын
great vid - thanks. i see many predictors that fail to utilize stock-price-returns as a factor for their random.normal shock factor. Looking for more.
@AlvaroLefian6 жыл бұрын
great tutorial but please move the microphone away from the keyboard the noise is unbearable
@kurtb32604 жыл бұрын
Great informative, concise, vid. Thanks for posting the code. Only had to make a few tweaks to make it work for me. Assuming random price action, the logic is correct.
@mxcollin954 жыл бұрын
Great example! Thanks for posting. 👍
@nstevens81e5 жыл бұрын
Why does this video stop playing at 0:21?
@ZulfiqarAli-ck1kc3 жыл бұрын
Sir please share the playlist
@rverm10005 жыл бұрын
I tried this with python 3.8 . Got a data_source='Google's is not implemented.
@atrumluminarium4 жыл бұрын
Try "yahoo"
@rverm10005 жыл бұрын
Overall it's a good video
@TheChawamushi4 жыл бұрын
what does the 0 in the function pd.random.normal represent?
@euanscott-watson37254 жыл бұрын
I believe its because thats how the normal standard deviation works, the formula is that of N(mu, sigma) where mu is the most common value on a bell curve at the peak. So that means that 99% of the values created by the normal function will be between -3*sigma and 3*sigma
@kurtb32604 жыл бұрын
Zero represents the center of the distribution.
@inglese29963 жыл бұрын
4 years later... are you a millionaire yet? I mean... does this modelling have a practical benefit and allow you to trade the market more effectively?
@francisodonoghue1581 Жыл бұрын
Does not support 'google' , I think (Line 13)
@kebman4 жыл бұрын
You know, given the assumption that price action is random, which it isn't.
@MatthieuVlogs7 жыл бұрын
Great video! I'm just now getting started with Python and Apis with excel- so this was a bit over my head but something to aspire to certainly. As a python interface, I see you're using spyder. I'm using one called python 3.6, will I be able to have the same capabilities with 3.6?
@francisdupuis62137 жыл бұрын
Absolutely. I run python 2.7 and 3.5 as separate environments with Anaconda (highly recommended package by the way). But I'm assuming your using idle with Python 3.6, so it should work fine with some minor syntax changes.
@MatthieuVlogs7 жыл бұрын
Great thanks! Look forward to learning more with your channel
@1234dck4 жыл бұрын
Great video thanks a lot. But it too small. Thanks again.
@kaplansedat4 жыл бұрын
font size and mechanical keyboard. oh god mechanical keyboard. developers love band wagon.
@JR-ly6bx5 жыл бұрын
What IDE are you using
@euanscott-watson37254 жыл бұрын
Its spyder with an anaconda virtual environment
@arshavir866 жыл бұрын
I am using jupyter notebook and somehow it says "No module named 'pandas_datareader' " How can I fix this issue?
@ai-cowboy6 жыл бұрын
open anaconda prompt > copy/paste into first line: conda install -c anaconda pandas-datareaderanaconda.org/anaconda/pandas-datareader
@NKernytskyy5 жыл бұрын
Please use LARGER font, please...
@rverm10005 жыл бұрын
Pandas data reader is not implemented
@Lexluthor20244 жыл бұрын
There's a function in python to silence keyboard?
@oneboy81834 жыл бұрын
lol that keyboard tho!
@jacktrainer43874 жыл бұрын
Masterful!
@qwesx236 жыл бұрын
blue switch!
@michaelkueng85645 жыл бұрын
Hi, Thank you for this cool video! I tried to do this, but kept getting this error: File "C:/Users/micha/.spyder-py3/temp.py", line 10 start = dt.datetime(2017, 01, 03) ^ SyntaxError: invalid token Does someone know why?
@AM-cg3nt3 жыл бұрын
Can’t lead with 0’s - fix it by putting the date as (2017,1,3)
@maribelmenese4845 Жыл бұрын
Bro forgot the "y" in the thumbnail.
@thunde72266 жыл бұрын
I am using Python 3.6.5................I have an error.....................:( some one help...................warnings.warn(UNSTABLE_WARNING, UnstableAPIWarning) UnstableAPIWarning: The Google Finance API has not been stable since late 2017. Requests seem to fail at random. Failure is especially common when bulk downloading.
@jonswift24556 жыл бұрын
a few free sources have stopped working, google stopped awhile ago, yahoo stopped late last year i think.
@jonswift24556 жыл бұрын
change to robinhood or morningstar where google is written
@Axle_Max6 жыл бұрын
The code doesn't work, the data sources are deprecated. Thanks for trying but it's broken
@franklinparker6 жыл бұрын
you can get the data using the Quandl library import quandl as ql , then ql.get( "WIKI/APPL", start_date = , end_date = )
@dreamz52 Жыл бұрын
A lot of issues here
@wildhostage4 жыл бұрын
If I could write code like that, I would be so gangsta
@optimizedpran12474 жыл бұрын
sounds like a razer keyboard hahahah
@divinastrain12865 жыл бұрын
Hey man. This tutorial is totally WRONG. This is not Monte Carlo. The mean of your result will be same as lasta_day_price forever. That was misleading…..