Please use D2L to turn in both the PDF output and your R Markdown file. Include your code in line in the document.
k <- 1
w <- 1:100
x <- w + k * rnorm(100)
y <- w + k * rnorm(100)
ccf(x,y)
You may find it useful to plot x and y.
Time <- 1:370
x <- sin(2 * pi * Time / 37)
y <- sin(2 * pi *(Time + 4) / 37)
ccf(x,y)
Investigate the effect of adding random variation to x and y.
Update the scraper from HW 1 to obtain the air quality report for the first ten days of September. Create a plot for this figure and include labels, titles, and a short caption.
Again use the decompose function to obtain the random component of the times series and create a correlogram. Write a short paragraph to summarize your findings.
Discuss the implications of your findings in part b for forecasting future air quality measurements. How might you think about predicting the next hour’s reading, or even the reading 24 hours from now?
We will be moving toward building dynamic linear models that contain covariates while also accounting for temporal dynamics. What other types of information could be captured and included in a model of this type?
Read Section 2.1 in Dynamic Linear Models with R. Note a free e-book can be downloaded from the MSU library. Write a short paragraph summarizing this section.
For this class, we will be analyzing time series datasets. Take some time to explore datasets that have a temporal component and might be interesting to work on. Write a couple of sentences about what you are currently thinking of exploring. Here are a few places to look for data: