As you know, energy is currently a big economic issue in the US and elsewhere. Natural gas is one form of energy that is tracked by the US Department of Energy and available from their web site. Natural gas is stored underground and the amount stored is recorded weekly. I have compiled this SAS program to read in the data and plot it.
  1. Run the program.
  2. Compute a variable that has the week of the year (1 through 52 or 53*) for each year. List the first 80 dates, gas storage amounts, and week numbers. This is the second part of your report. Start numbering the weeks on the first observation from each year.
    *In this way, there will be 2 years that have 53 weeks. Which years are those?
  3. Add an extra 52 dates to the data set with missing values for Gas. Include the week variable here as well. Now run a regression with a linear trend and seasonal dummy variables for weeks as we did in the demo program Air_code.sas.
  4. Does the trend plus dummy variable model above have the same shift for week 3 of every year? In light of the graphs you've seen, do you think that is reasonable? Explain.
  5. We have also talked about a first and sesaonal span difference. Suppose you think that Y(t)-Y(t-1) -(Y(t-52)- Y(t-53)) = e(t), that is, the first and span 52 difference combination gives you a white noise sequence. In that model our best prediction of Y(t) would be Y(t-1) + Y(t-52)-Y(t-53), that is, it would be last week's number plus the corresponding week to week change we saw last year.
  6. We'll now try trigonometric functions which are among the few well known functions that are periodic.