This is the first homework which we require to be submitted as an Rmarkdown (.Rmd) file which the GSI will compile into an HTML document. It involves some data analysis with ARMA models. Most of you will find that editing the Rmd file in Rstudio may be the simplest solution. Also, the Rmd source files for this homework and all the notes are on the class github site: if you see anything in the notes that you’d like to reproduce, you can take advantage of that. Opening the file hw03.Rmd in Rstudio and editing it to produce your solution is one way to proceed. You may also like to browse http://www.stat.cmu.edu/~cshalizi/rmarkdown/.
As mentioned in class, you will need to know some Latex to write equations in Rmarkdown. Many tutorials exist online, e.g. http://www.latex-tutorial.com/tutorials. To see how Rmarkdown incorporates Latex equations, one approach is to identify equations in the notes that you would like to modify, and then dig out the Rmd source code from github.
Your homework should be submitted as a single Rmd file on the Stats 531 Canvas site. You should receive an email from Canvas about the assignment. The GSI should be able to compile the Rmd file that you submit to HTML. Thus, any data you need to import should be read from an internet source. If, at any point, you need to submit data or results files called by the Rmd file, you can zip them together.
If technical difficulties arise, please consult your peers, the GSI or myself. I am grateful to receive emails about difficulties that arise, and hopefully also how they were overcome!
Question 3.1. Try out some of the ARMA techniques studied in class on the Ann Arbor January Low temperature time series that we saw in Chapter 1 of the notes. Write a report as an Rmd file and submit this file on the class Canvas site. This is an open-ended assignment, but you’re only expected to do what you can in a reasonable amount of time. Some advice follows.
x <- read.table(file="http://ionides.github.io/531w18/01/ann_arbor_weather.csv",header=TRUE)
plot(Low~Year,data=x,type="l")
Since we have not yet covered ARMA models with trend, you can work under a null hypothesis that there is no trend. That is preparation for considering trend later.
Your report should involve model equations and hypotheses, and should define the notation used. Please be careful to distinguish between symbols representing random variables (usually using capital letters) and numbers. You’re welcome to follow the notation in the course notes, and if you deviate from this notation it is especially necessary to define the notation that you choose.
You are advised to try a few things from the notes, spot something that catches your attention, and try a few more things to investigate it. Write up what you found, and you’re finished!
echo=FALSE
chunk option, e.g.,
```{r chunk_without_code, echo=FALSE}
cat("only the output of this code chunk will be printed\n")
```
Generally, you should only display the code in the HTML document if you think that, in your context, the helpfulness of showing the code outweighs the extra burden on the reader. Recall that the reader can work through the Rmd source file if necessary.