Homework 9 (submit by Dec 8, 11:59 pm EST on Classes as a single PDF file)
1. Load the data kings in R using
kings <- scan("http:
objhyndman.com/tsdldata/misc/kings.dat",skip=3)
The data contain the age of death of successive kings of England, starting with William the Conqueror.
a. store the data in a time series.
. plot the time series.
2. Load the data births in R using
irths <- scan("http:
objhyndman.com/tsdldata/data/nybirths.dat")
The data contain the number of births per month in New York City, from January 1946 to December 1959.
a. store the data in a time series.
. plot the time series and identify any component (i.e., trend, seasonal, i
egular)
c. subset the time series from Oct 1949 to May 1955.
d. decompose the time series and interpret the result.
3. Load the data rain in R using
ain <- scan("http:
objhyndman.com/tsdldata/hurst/precip1.dat",skip=1)
The data contain the total annual rainfall in inches for London, from 1813 to 1912.
a. store the data in a time series.
. plot the time series and identify any component.
c. model the time series using a single exponential model and interpret the result.
d. make a forecast of the total annual rainfall from 1913 to 1918 using your model in c. Visualize your forecast.
4. Load the data skirts in R using
skirts <- scan("http:
objhyndman.com/tsdldata
oberts/skirts.dat",skip=5)
The data contain the annual diameter of women's skirts at the hem, from 1866 to 1911.
a. store the data in a time series.
. plot the time series.
c. fit a model using automated forecasts and interpret the result.