Question
S&P 500 is a stock market index based on the market capitalization of 500 large companies in the U.S. Go to the FRED Economic Data
S&P 500 is a stock market index based on the market capitalization of 500 large companies in the U.S. Go to the FRED Economic Data website for S&P 500 and download the data for just one year. You may choose any one-year window.
Using R, create a time series plot for the dataset. Describe the plot.
Using R, fit the dataset to linear regression and moving average models. Which model do you think is a better predictive model? Explain why.
Discuss how you can improve the prediction.
I was not able to post all the information and it is found on the website, but I would be thankful to know how to code these in R and how to explain and describe them.
Please, no vague answers! Thank you in advance! Will rate:)
Frequency: Daily, Close | |
observation_date | SP500 |
2022-03-01 | 4306.26 |
2022-03-02 | 4386.54 |
2022-03-03 | 4363.49 |
2022-03-04 | 4328.87 |
2022-03-07 | 4201.09 |
2022-03-08 | 4170.70 |
2022-03-09 | 4277.88 |
2022-03-10 | 4259.52 |
2022-03-11 | 4204.31 |
2022-03-14 | 4173.11 |
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