Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Usethe followingRcodetoobtainthemonthlyreturns forStarbucks ( SBUX ) andTesla ( TSLA ) stocksovertheperiod 2 0 2 2 - 0 1 - 0 2 to 2

1.Usethe followingRcodetoobtainthemonthlyreturns forStarbucks (SBUX) andTesla(TSLA)stocksovertheperiod2022-01-02to2024-01-19. library(quantmod)# Loadthe package getSymbols("SBUX",from="2022-01-02", to="2024-01-19") X<-monthlyReturn(SBUX) getSymbols("TSLA",from="2022-01-02", to="2024-01-19") Y<-monthlyReturn(TSLA)(a)Compute the samplemeanandvarianceofX(Starbucks) andY (Tesla) returns. (b)Letwand1wbeweightsonXandY.ThequantityV(wX+(1w)Y)is estimatedbys2 Pw2s2 X+(1w)2s2 Y+2w(1w)sXY,wheres2 Xands2 Y are thesamplevariancesofXandY,andsXY isthesamplecovariance. Find wthatminimizess2 P.(c)Consider aportfolioofXandY withweightswand1wrespectively, wherewis foundinPart (b). Computethesamplemeanandvarianceof thisportfolio. Isthevarianceof theportfoliosmallerthanthevariancesof thereturnsfoundinPart(a)?

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

International financial management

Authors: Jeff Madura

9th Edition

978-0324593495, 324568207, 324568193, 032459349X, 9780324568202, 9780324568196, 978-0324593471

More Books

Students also viewed these Finance questions

Question

x (b) Correlation = 0.85 andpredicted y =

Answered: 1 week ago

Question

andpredicted y =

Answered: 1 week ago