Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(python) I'm trying to print out covariance matrix of the simple returns of 5 stocks. I've got the returns of all stocks and I tried
(python)
I'm trying to print out covariance matrix of the simple returns of 5 stocks.
I've got the returns of all stocks and I tried to use numpy.cov but if I put more than 2 arguments into it , it didn't work.
Cov = np.cov(BHP_return.T,CSL_return.T,NAB_return.T,REA_return.T,WOW_return.T)
this is the code that I used.
I would appreciate if you could find the right code for this.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started