Q.1 worksheet contains the daily Adj. closing prices for Home Depot (HD), Visa (V), Johnson...

50.1K

Verified Solution

Question

Finance

Q.1 worksheet contains the daily Adj. closing prices for Home Depot (HD), Visa (V), Johnson & Johnson (JNJ), Apple Inc. (AAPL), Verizon (VZ) and S&P 500 (^GSPC) for the period 02/01/2016 to 02/01/2021. Answer the following: (15 points) a. Write a logic function (one big command) to extract daily returns for JNJ for all Tuesday and Wednesdays in the months of December and February, and for all Thursdays and Fridays in the months of March and August, only when the HD returns are positive. b. Calculate and display the correlation matrix between all 5 stocks in the same worksheet.

Answer & Explanation Solved by verified expert
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students