Class Web Page



1. Classical Decomposition

Additive Model can be written as \[ Y_t = T_t + X_t, \] where \(X_t\) is stationary time series. The trend \(T_t\) may be determinisitc, or random.

Multiplicative Model is \[ Y_t = T_t \cdot X_t. \]

If you take log() of multiplicative model, it becomes additive model.

2. Deterministic Trend vs Random Trend


Regression for Deterministic Trend

## 
## Call:
## lm(formula = Y ~ t)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -104.42  -73.56  -32.02   71.61  166.82 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)    
## (Intercept) 150.8356    16.2771   9.267 2.92e-15 ***
## t            -0.4884     0.2641  -1.849   0.0673 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 83.2 on 104 degrees of freedom
##   (1 observation deleted due to missingness)
## Multiple R-squared:  0.03183,    Adjusted R-squared:  0.02252 
## F-statistic:  3.42 on 1 and 104 DF,  p-value: 0.06727


Random Trend

We try to model the random trend with Random Walk.

3. Random Walk

Is a leading candidate to model random trend. Let \(\epsilon_t \sim_{i.i.d.} N(\mu, \sigma)\). Then \[ X_t = \sum_{i=1}^t \epsilon_{i} \] is called Random Walk.

What is the mean and variance of Random Walk?

Mean

\[ E(X_t) = E \Big( \sum_{i=1}^t \epsilon_i\Big) = \sum_{i=1}^t E(\epsilon_i) = \sum_{i=1}^n 0 = 0 \]

Variance

\[ V(X_t) = V \Big( \sum_{i=1}^t \epsilon_i \Big) = \sum_{i=1}^t V(\epsilon_i) = \sum_{i=1}^t 1 = t \]

Variance of RW grows liniarly with time

SD of Random Walk grows as \(\sqrt t\)

Therefore Random Walk is non-stationary

What is mean and SD of \(X_{80}\)?


Summary

  • Trend can be additive or multiplicative. If multiplecative, we can take log to make it additive.
  • Trend can be deterministic or random. If deterministic, we can try regression with \(Y_t ~ a + bt\).
  • If trend is random, we can try using Random Walk as a model for the trend.
  • Random Walk is non-stationary because of increasing variance.