What is Stationarity? Definition, Examples and Worked Solutions

Stationarity

Stationarity means the probability distribution of a stochastic process does not change over time. 

Examples:

  • Probability on the dice is the same every day on every roll
  • Probability on the roulette wheel does not change over time
  • Probability on a deck of cards is the same on every draw

In mathematics and statistics, a stationary process (or a strict/strictly stationary process or strong/strongly stationary process) is a stochastic process whose unconditional joint probability distribution does not change when shifted in time. Consequently, parameters such as mean and variance also do not change over time.

https://en.wikipedia.org/wiki/Stationary_process

To solve linear models, we use weak stationary since we are only going to examine the mean and variance of the distribution. Weak stationary occurs if just the first and second moments are stationary.

In other words, the mean and variance stay the same and 2-point functions (like the covariance function) depend only on the difference in time indices, not on the exact location of a particular point in time (refer to Example 1 below).

Here’s a video that shows how to prove MA(1) is weakly stationary.

Example 1

Given that w is a constant and z and z’ are two independent, normalized random variables, prove that 

Xt = z cos(wt) + z’ sin(wt) 

is weakly stationary.

Solution

Note that cos(wt) and sin(wt) are constants for any given t. This is in contrast to zt for instance, which is random and changes even for the same t.

Mean
= E[Xt
= E[z cos(wt)] + E[z’ sin(wt)] 
= cos(wt) E[z] + sin(wt) E[z’]
= cos(wt)*0 + sin(wt)*0
= 0

Variance
= E[Xt2] – E[Xt]2
= E[Xt2] – 0
= E[(z cos(wt) + z’ sin(wt))2]
= E[z2cos2(wt) + 2zz’cos(wt)sin(wt) + z’2sin2(wt)]
= cos2(wt)*E[z2] + 2cos(wt)sin(wt)E[zz’] + sin2(wt)E[z’2]
= cos2(wt)*1 + 0 + sin2(wt)*1
= cos2(wt) + sin2(wt)
= 1

Covariance
= E[XtXs]
= E[(z cos(wt) + z’ sin(wt))(z cos(ws) + z’ sin(ws))]
= E[z2cos(wt)cos(ws) + zz’cos(wt)sin(ws) + z’zsin(wt)cos(ws) + z’2sin(wt)sin(ws)]
= cos(wt)cos(ws)*E[z2] + cos(wt)sin(ws)*E[zz’] + sin(wt)cos(ws)*E[z’z] + sin(wt)sin(ws)*E[z’2]
= cos(wt)cos(ws)*1 + 0 + 0 + sin(wt)sin(ws)*1
= cos [w(t-s)]

Since mean and variance are constant, and covariance only depends on the difference between two points in time (i.e. t-s), Xt is weakly stationary.

Example 2

Let Xt = zt + θ*zt-2, where

E[zt] = 0
E[zt2] = σ2
E[ztzs] = σ2 if t = s, 0 otherwise

Is Xt stationary? Find the mean, variance and covariance of Xt.

If A = 0.25(X1 + X2 + X3 + X4), find the mean and variance of A.

Solution

Note: 

For this question, because the value of E[ztzs] depends on whether t equals s, we should consider s as t-k to make it easier to simplify our solution later.

Is Xt stationary?

Yes, because we have expressed things recursively. If we shift things in time, we still have the same relative relationship.

Find the mean, variance and covariance of Xt.

Mean
= E[Xt]
= E[zt + θ*zt-2]
= E[zt] + θE[zt-2]
= 0

Variance
= E[Xt2] – E[Xt]2
= E[(zt + θ*zt-2)2] – 0
= E[zt2] + 2θE[ztzt-2] + θ2E[zt-2]2
= 1 + θ2

Covariance
= E[XtXt-k], where k not equals 0
= E[(zt + θ*zt-2)(zt-k + θ*zt-k-2)]
= E[ztzt-k] + θ*E[ztzt-k-2] + θ*E[zt-2zt-k] + θ2E[zt-2zt-k-2]
= 0 + θE[ztzt-k-2] + θE[zt-2zt-k] + 0 (refer to Note 1) 
= (θ*0 + θ*1) if k = 2, 
   (θ*1 + θ*0) if k = -2
   0 otherwise

If A = 0.25(X1 + X2 + X3 + X4), find the mean and variance of A.

Mean 
= E[A]
= 0.25*(E[X1] + E[X2] + E[X3] + E[X4])
= 0

Variance
= E[A2] – E[A]2
= 0.0625*E[(X1 + X2 + X3 + X4)2]
= 0.0625*(E[X12] + E[X22] + E[X32] + E[X42] + E[X1X2] + E[X1X3] + .. + E[X3X4])
= 0.0625*(E[X12] + E[X22] + E[X32] + E[X42] + 2E[X1X3] + 2E[X2X4]) (refer to Note 2)
= 0.0625*[4*(1 + θ2) + 2θ + 2θ]
= 0.25(1 + θ + θ2)

Note 1

Since k not equals 0, t not equal t – k.

Therefore,
E[ztzt-k]
= E[zt-2zt-k-2]
= 0

Note 2

E[XtXt-k] = θ, where k = +/- 2

Therefore, only E[X1X3], E[X2X4], E[X3X1] and E[X1X3] matter, the rest are zeros.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *