Introduction and Stationary Processes Flashcards

fitting a trend, seasonal effects, stationary processes

1
Q

Trend

Word Definition

A

-the trend of a time series is a slow change in mean level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Trend

Formula Definition

A

-consider the model:
Xt = μ(t) + εt
-where
->μ(t) is a deterministic trend as a function of t
->εt is the random fluctuation about the trend at time t, E(εt)=0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Trend

Examples

A
μ(t) = α + βt
μ(t) = α + βexp(γt)
μ(t) = α + β log(t) ...
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fitting a Linear Trend

A
  • suppose we have observed values X1,…,Xn at times t1,…,tn and we believe a linear trend is appropriate
  • we can estimate α and β by linear regression
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Trend and Summary Statistics

A

-if a trend is present in the data, the usual summary statistics (mean, variance etc.) will not be very useful

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Trend and Residuals

A

-after a trend is fitted, the residuals:
Yti = Xti - μ^/9ti) can be analysed further
-e.g by estimating Var(Yti)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Trend and Forercasting

A
  • we can predict future behaviour of X by considering μ^(t) for t>tn
  • once we have analysed the residuals we can improve the forecast bu considering μ^(t) + Y^t for t>tn
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Trend and Forecast Error

A

-the forecast error depends on the variance of our estimates
-e.g. if εt are i.i.d. N(0,σ²) then:
Var(μ^(t)) =
σ² [1/n + (t-t_)²/Σ(ti-t_)²]
-sum from i=1 to i=n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Seasonal Effects

Word Defintion

A

-seasonal effects are periodic components of a time series which repeat with a fixed frequency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Seasonal Effects

Formula Definition

A
-revise the model to be:
Xt = μ(t) + s(t) + εt
-where
->μ(t) = trend
->s(t) is a seasonal effect with s(t)=s(t+a) ∀t where a is the period length
->εt = residuals/fluctuations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Seasonal Effects

Finding s

A

-if we assume t=0,1,2,… and a=n∈ℕ
-to find s we have to estimate s1,s2,…,sn-1
-can write
Xt = μ(t) + s0δt,0 + … + sn-1δt,n-1 + εt
-where
δt,i = {1 if t is in season i, 0 else}
-parameters s0,…,sn-1 can be estimated using linear regression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Steps of Time Series Analysis

A
  • we start the analysis of a time series by identifying the trend (if any) in the model Xt=μ(t)+εt
  • analyse the residuals Yt=Xt-μ^(t) further
  • any results about the {Yt} need to be converted back by adding μ^(t)
  • e.g. a forecast for Xt is given by the forecast for Yt^ + μ^(t)
  • after the trend is removed, we removed the periodic components ( if any ) in the model Yt=s(t)+εt
  • we then analyse Zt=Yt-s^(T) further
  • convert the results about the {Zt} into results about {Yt} by adding s^
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Time Series as a Stochastic Process

A
  • to get a model of a time series, we consider Xt to be random variables
  • the collection {Xt} is called a stochastic process
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Lag

Definition

A

-time difference between two time points/observations

lag = t - s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Stochastic Process

Mean

A

μ(t) = E(Xt)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Stochastic Process

Variance

A

σ²(t) = Var(Xt)

17
Q

Stochastic Process

Auto-Covariance

A

γ(s,t) = cov(Xs,Xt) = E[(Xs-μ(s)) (Xt-μ(t))]

18
Q

Stochastic Process

Auto-Correlation

A

ρ(s,t) = cor(Xt,Xs) = γ(s,t) / √[σ²(s)σ²(t)]

19
Q

Stationarity

Definition

A

-the stochastic process {Xt} is stationary if {X1,…,Xn} and {X1+k,…,Xn+k} have the same distribution for all k,n∈N

20
Q

Stationarity

Results

A
  • if {Xt} is stationary, then Xk has the same distribution as X1 for all k∈N, in particular if the first two moments are finite then μ(t) = E(Xt) = μ and σ²(t) = Var(Xt) = σ² for all t so a process with trend or seasonality cannot be stationary
  • for stationary processes, sometimes it is useful to consider t∈Z instead of t∈N
21
Q

Weak Stationarity

Definition

A
  • a stochastic process {Xt} is weakly stationary or second order stationary if:
    1) μ(t) is constant, i.e. μ(t) = μ for all t
    2) γ(s,t) only depends on the times t and s via the lag (t-s) i.e. γ(s,t)=γ(t-s)
22
Q

Weak Stationarity

Results (auto-covariance)

A
γo = cov(Xt,Xt) = var(Xt) = σ², for all t
γk = cov(Xt,Xt+k) = cov(Xt+k,Xt) = γ-k
23
Q

Are stationary processes weakly stationary?

A

-every stationary process is also weakly stationary since for all t:
μ(t) = E(Xt) = E(X1)
γ(t,t+k) = cov(Xt, Xt+k) = cov(X1,X1+k)
-i.e. both μ and γ are independent of t

24
Q

Weak Stationarity

Results (auto-correlation)

A
ρ(s,t) = γ(s,t)/√[σ²(s)σ²(t)] = γ(t-s) / √[γoγo] = γ(t-s)/γo = ρ(t-s)
ρ(t,t) = ρo = 1
25
Q
Autocorrelation Function (acf) and Correlogram
Definitions
A
  • the quantity ρk is called the lag k autocorrelation; ρk as a function of k is the autocorrelation function (acf)
  • a plot of ρk vs k is a correlogram
  • strictly speaking it only makes sense to compute the acf for weakly stationary processes but it can be used to check if a process is stationary or not
26
Q

Estimation of Covariance

A

-normally we estimate covariance using:
cov(X,Y) = 1/n Σ (Xi-X_)(Yi-Y_)
-where the sum is from i=1 to n
-for a time series we typically have only one realisation X1,X2,…,Xn so can’t use this methof

27
Q

Estimation of μ^

A

-if {Xt} is weakly stationary
μ^ = 1/n Σ Xi ≈ μ(t)
-sum from i=1 to i=n

28
Q

Estimation of γ^k

A

-if {Xt} is weakly stationary
γ^k = 1/(n-k) Σ (Xi - μ^)(Xi+k - μ^) ≈ γk
-sum from i=1 to i=n

29
Q

Estimation of ρ^k

A

-if {Xt} is weakly stationary

ρ^k = γ^k/γ^o