Professional Documents
Culture Documents
Dr Mabikwa
BIUST
Yt = µt + et ,
µt = µt−12
for all t.
We may assume that E (et ) = 0 for all t so that µt = E (Yt ).
So, µt is a deterministic trend function of the time series.
µt = β0 + β1 t + β2 t 2
The model
Yt = µt + et
with E (et ) = 0 for all t means that the trend µt applies for all time.
Thus, if µt = β0 + β1 t, we are assuming that the same linear time
trend applies forever.
We should have good reasons for assuming such a model, not just
based on observed series.
γ0
E (Ȳ ) = µ & V (Ȳ ) =
n
since ρk = 0 for k ̸= 0.
E (Ȳ ) = µ
and
n−1
" #
γ0 X k
V (Ȳ ) = 1+2 (1 − )ρk
n n
k=1
σ2
n−1
= (1 + θ2 ) + ( )θ
n n
n n X
t
!
1 X 1 X
V (Ȳ ) = V Yt = 2V ej
n2 n
t=1 t=1 j=1
n
1 σ2 X 2
= V (e1 + 2e2 + · · · + ne n ) = i
n2 n2
i=1
(n + 1)(2n + 1)
= σ2
6n
In this special case, V (Ȳ ) increases with n (sample size). Clearly this
is unacceptable, and we need to consider other estimation techniques
for non-stationary series.
This gives
Pn
(Y − Ȳ )(t − t̄)
β̂1 = Pn t
t=1
2
;
t=1 (t − t̄)
β̂0 = Ȳ − β̂1 t̄
set.seed(9)
x <- w <- rnorm(1000)
for (t in 2:1000) x[t] <- x[t - 1] + w[t]
plot(x, type = "l", xlab="Time")
model <-lm(x~time(x))
summary(model)
abline(model)
Yt = µt + Xt
1 Seasonal trend
For the BW temperature case, the jth month coefficient is
N−1
1 X
β̂j = Yj+12i
N
i=0
N−1
" #
γ0 X k
V (β̂j ) = 1+2 (1 − )ρ12k
N N
k=1
γ0
NB: If Xt is white noise, then Var (B̂j ) reduces to N (as expected).
12σ 2
V (β̂1 ) =
n(n2 − 1)
Once we find β̂0 and β̂1 , we can then find the estimate of µt as
If the trend model is reasonably correct, then X̂t should behave roughly
like {Xt }.
If the {Xt } is white noise, then the X̂t should behave roughly like
independent (normal) random variables with zero mean and standard
deviation s.
We may standardize the residuals as X̂t /s but there are better ways that
take the regression model into account.