I just saw your video suggestion on LinkedIn After the moment i saw your video i was pretty excited after watching there were very few who code financials Keep going
Hi Ritvik, Thank you very much for this helpful content! I have a question after running the code. Why does the value keep changing each time I run the code even for "port_mean", which is supposed to stay the same? Condition: Aftermarket, so the price should stay the same...and hence the port_mean? My result: Run#1 port_mean = 0.0005365387402583156 Run#2 port_mean = 0.0005365387745866672 Run#3 port_mean = 0.0005365387745329687
hello thank u for the clarifications when i reach the matrix mulptiplication step i get this error ValueError Traceback (most recent call last) Input In [105], in () ----> 1 port_mean = avg_returns @ weights 2 port_std = np.sqrt(weights.T @ cov_matrix @ weights) File ~\anaconda3\lib\site-packages\pandas\core\series.py:2829, in Series.__matmul__(self, other) 2825 def __matmul__(self, other): 2826 """ 2827 Matrix multiplication using binary `@` operator in Python>=3.5. 2828 """ -> 2829 return self.dot(other) File ~\anaconda3\lib\site-packages\pandas\core\series.py:2821, in Series.dot(self, other) 2819 return np.dot(lvals, rvals) 2820 elif isinstance(rvals, np.ndarray): -> 2821 return np.dot(lvals, rvals) 2822 else: # pragma: no cover 2823 raise TypeError(f"unsupported type: {type(other)}") File :5, in dot(*args, **kwargs) ValueError: data type must provide an itemsize
𝐓𝐢𝐩 𝐦𝐞
by:
buying me a coffee in US Dollars: www.buymeacoffee.com/fpritvikusd
buying me a coffee in Euros: www.buymeacoffee.com/fpritvik
I challenge you to do it with log returns (without making a mistake), ill buy you a coffee and a muffin.
Finally found great content.
Thankyou so much sharing this amazing content with us ❤
Thanks for your kind words.
Keep up the good work! Alternate method for port_std
Port_variance = np.transpose(weights)@cov_matrix@weights
Port_std = np.sqrt( Port_variance )
Thanks.
Great , first time I think I understood python 🐍.. thanks sir
Wow... I am glad to know that :)
I just saw your video suggestion on LinkedIn
After the moment i saw your video
i was pretty excited after watching there were very few who code financials
Keep going
Thank you so much for your appreciation :)
you are the boss my friend, thanks a lot for this
Thanks :)
Really Valuable teachings and materials.
Glad you think so!
Great channel , was searching for this type of content for Ages!
Welcome aboard!
great video, good to learn
Thanks :)
awesome explained, thank You Ritvik
My pleasure.
You're a really good teacher
Thank you for your appreciation :)
Just came across your channel...V nice! I see Likes >200...looking forward to searching for CVaR and Monte Carlo menthods ;)
O yes, Noted
Great job, mate! Thanks for sharing, it is very useful
Glad it was helpful!
Nice analysis ! Please keep up the good work.
Thank you
tanx. very helpfull. want to see the EWMA
Noted!
Great video with clear explanation
Thanks :)
Amazing stuff bro!
glad you liked.
Thank you great job I really appreciate it!
My pleasure!
I think 95% should be the confidence level, and 5% should be called the significance level. But thank you for the video!
My bad
Amazing Please cover a detailed session on Cvar and Monte Carlo Simulation.
Please
I will cover CVaR soon. I have made a video on Monte Carlo Simulation of VaR... it's here ruclips.net/video/11YDPyTGMnc/видео.html
Very helpful
thank you!
Glad it was helpful!
How to Calculate VaR of Stock Portfolio in Python
Excellent
Thanks :)
Awesome video, sir! Please make the video for CVaR and Monte Carlo! Eagerly waiting for it!
Noted!
many thanks.. this is amazing
can u pls share video link to cvar / expected shortfall
Noted! THANKS :)
Bro you are great
Thank you.
Thanks!
My pleasure
Great video
Thanks for the visit
Hello sir, thanks a lot providing helpful video to us...
How do take HP Screen shot to using python in bloomberg..
Sorry, I couldn't understand your question. Please elaborate
Sir,how to append aroon values in bitcoin trading bot?
Please refer your comment on this video ruclips.net/video/KYQisveoOMQ/видео.html
Nice video, really useful.
Could you please make an example of a graph showing the days in which the VaR level was exceeded.
Noted! Next video on VAR, whenever I post, will incoporate it. Thanks for the suggestion. :)
Can you build code for expected credit loss model
I will try
Loved it
THANKS :)
good content
Thanks
Thank you so much for your appreciation :)
thank yo for the video, can you make a video of EMA crossover, thanks
Noted! :)
👏👏👏👏
Thanks for the appreciation :)
Hello Ritvik, when do you plan to have the next video on Talib? Everyone is waiting ;)
Very soon. I will upload. I had some videos lined up to put :)
thanks man
helpful
I am glad to know that :)
Hi Ritvik, Thank you very much for this helpful content!
I have a question after running the code.
Why does the value keep changing each time I run the code even for "port_mean", which is supposed to stay the same?
Condition: Aftermarket, so the price should stay the same...and hence the port_mean?
My result:
Run#1 port_mean = 0.0005365387402583156
Run#2 port_mean = 0.0005365387745866672
Run#3 port_mean = 0.0005365387745329687
its just because computers are not that accurate at floating point calculations so just consider values till like 4 digits after decimal
Thanks
Thanks for the appreciation :)
Where can I find the source code of the youtube videos? br ka
Please follow the steps mentioned here: ruclips.net/channel/UCyMifqUrSntvvrrGMaVPkrwcommunity?lb=UgwZRm2WrR2BqVk_ho54AaABCQ
CVar video plssssss. it has corssed 200 likes u promised. bless
hello thank u for the clarifications
when i reach the matrix mulptiplication step i get this error
ValueError Traceback (most recent call last)
Input In [105], in ()
----> 1 port_mean = avg_returns @ weights
2 port_std = np.sqrt(weights.T @ cov_matrix @ weights)
File ~\anaconda3\lib\site-packages\pandas\core\series.py:2829, in Series.__matmul__(self, other)
2825 def __matmul__(self, other):
2826 """
2827 Matrix multiplication using binary `@` operator in Python>=3.5.
2828 """
-> 2829 return self.dot(other)
File ~\anaconda3\lib\site-packages\pandas\core\series.py:2821, in Series.dot(self, other)
2819 return np.dot(lvals, rvals)
2820 elif isinstance(rvals, np.ndarray):
-> 2821 return np.dot(lvals, rvals)
2822 else: # pragma: no cover
2823 raise TypeError(f"unsupported type: {type(other)}")
File :5, in dot(*args, **kwargs)
ValueError: data type must provide an itemsize
It is difficult to understand it here. I recommend you to get the code from my google drive and try it again.
Do about the Binary.com API
Noted!
import json
a = {'language' : 'hindi', 'fills' : [{'price' : '10', 'qty' : '10'}]}
Brother here how to get price value
I couldn't understand the question
Did you make a mistake? For 95.5% , Z should be 1.7
95.5% confidence interval has z value of 2. I think you got confused by percentile.
@@FinancialProgrammingwithRitvik I checked the z table, it should be 1.7, right?
@@FinancialProgrammingwithRitvik for 95%, z is 1.65, how can 95.5% become 2?
@@joker2117-f5v you're referring to percentiles... Please check this out: www.mathsisfun.com/data/confidence-interval.html
@@FinancialProgrammingwithRitvik THX
Dott. what is @ ?
Sorry couldn't understand
@@FinancialProgrammingwithRitvik what rappresent in python the simbol @?
Great video
Thanks :)
Great video
My pleasure :)
Great Video
My pleasure :)
great video
Thanks for the visit