Question
Please follow the following instructions. The instructions indicate how to download daily stock price of Apple, Inc. from 2016-01-01 to 2018-07-31 from Yahoo! Finance. library(quantmod)
Please follow the following instructions. The instructions indicate how to download daily stock price of Apple, Inc. from 2016-01-01 to 2018-07-31 from Yahoo! Finance.
library(quantmod)
getSymbols("AAPL", src = "yahoo", from='2016-01-01', to='2018-07-31')
AAPLAdj <- AAPL$AAPL.Adj
(By here the data can be downloaded and extracted using RStudio)
a) Show whether the series AAPLAdj evolves with time. If it does, show how to remove the evolution with time and comment on the result.
b) The following code will convert AAPLAdj to monthly log return.
monthly.AAPL <- monthlyReturn(AAPLAdj, subset=NULL, type='log', leading=TRUE) Find sample autocorrelation and partial autocorrelation estimates for monthly.AAPL up to lag 15.
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