Introduction and Stationary Processes Flashcards
fitting a trend, seasonal effects, stationary processes
Trend
Word Definition
-the trend of a time series is a slow change in mean level
Trend
Formula Definition
-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
Trend
Examples
μ(t) = α + βt μ(t) = α + βexp(γt) μ(t) = α + β log(t) ...
Fitting a Linear Trend
- 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
Trend and Summary Statistics
-if a trend is present in the data, the usual summary statistics (mean, variance etc.) will not be very useful
Trend and Residuals
-after a trend is fitted, the residuals:
Yti = Xti - μ^/9ti) can be analysed further
-e.g by estimating Var(Yti)
Trend and Forercasting
- 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
Trend and Forecast Error
-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
Seasonal Effects
Word Defintion
-seasonal effects are periodic components of a time series which repeat with a fixed frequency
Seasonal Effects
Formula Definition
-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
Seasonal Effects
Finding s
-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
Steps of Time Series Analysis
- 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^
Time Series as a Stochastic Process
- to get a model of a time series, we consider Xt to be random variables
- the collection {Xt} is called a stochastic process
Lag
Definition
-time difference between two time points/observations
lag = t - s
Stochastic Process
Mean
μ(t) = E(Xt)