Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Handbook Of Sentiment Analysis In Finance

Authors: Gautam Mitra, Xiang Yu

1st Edition

1910571571, 978-1910571576

More Books

Students also viewed these Finance questions

Question

What are the major sections that should be included in each report?

Answered: 1 week ago

Question

List the components of the strategic management process. page 72

Answered: 1 week ago