Probability & Statistics · Lecture 4 of 5

Time series

When today depends on yesterday: measure change, model persistence, and know when a pattern misleads

1 Describe2 Model3 Interpret

tμ
  1. 1Probability theoryWhat can happen, and how does information change it?
  2. 2Data, variables & momentsHow do measurements vary?
  3. 3StatisticsWhat can one sample tell us about a population?
  4. 4Time seriesWhat changes when observations depend on their past?
  5. 5Causal inferenceWhich comparison identifies an effect?

Developed from Ian Crawford’s lecture material. Notes, slides and PDF: fatih.ai/probabilityandstatistics

Opening question

Two simulated series correlate at 0.71. Did the generator link them?

Xt, YtX_t,\ Y_ttwo series, generated by a computer
0.710.71sample correlation of their levels across the paired dates
?how each series was generated

Your answerVote now. Part 3 answers it.

AYes: 0.71 is too strong to be chance
BYes, if the sample is long
CThe coefficient alone cannot tell

Why start here

Prices, wages, money and output all drift over time. Before reading a link into a strong correlation between two such series, ask how each one moves on its own.

Lecture 4 · Time series2 / 25

Lecture 4 · The route

Describe the data, model their memory, then interpret their patterns

Part 1

Order, units and change

What does a series record, and how do we measure its change without losing the dates and units?

time seriesautocorrelationdifferencegrowth factorlog change

Notes 4.1–4.2

Part 2

Models with memory

What must stay unchanged for the past to inform the future, and does a shock fade or last?

stationaritywhite noiserandom walkAR(1)forecast band

Notes 4.3–4.5

Part 3

Reversion and spurious correlation

When does movement towards the mean, or a strong correlation between two series, reveal a real mechanism?

mean reversionregression to the meanspurious regressioncointegration

Notes 4.6–4.7

By the end of this lecture you can

  • Compute differences, growth factors, average growth and log changes, keeping the units and dates.
  • Derive the mean c/(1−ϕ)c/(1-\phi), variance and autocorrelation ϕh\phi^h of a stable AR(1).
  • Forecast an AR(1) with a 95% interval, and explain why its band levels off but a random walk’s does not.
  • Explain why regression to the mean, and strong correlations between random walks, need no mechanism.
Lecture 4 · Time series3 / 25

Part 1 of 3

Order, units and change

What does a series record, and how do we measure its change without losing the dates and units?

Key terms

time seriesautocorrelationdifferencegrowth factorlog change

Notes 4.1–4.2 ↗

Why it matters

Economic statistics arrive as changes: quarter on quarter, year on year, annualised or in log points. Equal absolute and equal percentage changes answer different questions, and mis-compounding, such as multiplying a quarterly rate by four, misstates growth.

In this part

  1. 4.1Time series, processes and the layers of a plot
  2. 4.1Autocorrelation and the correlogram
  3. ▶Animation: why a 20% rise and a 20% fall do not cancel
  4. 4.2Differences, growth factors and log changes
Lecture 4 · Time series4 / 25

4.1Order is information

The date belongs to the observation: read a series in layers

Definition

Time series and process

A time series records a variable in chronological order. Its probability model is a stochastic process {Xt};\{X_t\}\text{;} we observe one path x1,…,xT.x_1,\ldots,x_T\text{.} At date t,t\text{,} the value at t+1t+1 is not yet known.

Trenda sustained change in level
Seasonalityrepeats at a known calendar frequency
Cyclerises and falls with no fixed period
Breaka change in mean, slope or volatility at a date

Hypothetical: Xt=100exp⁡(0.025t+0.16sin⁡(πt/2))X_t=100\exp(0.025t+0.16\sin(\pi t/2))

Check

Every December is high, and the December peak rises from year to year. Which two features are present?

Answer

Seasonality (the timing) and a trend (the change across years). They can coexist.

4.1Dependence across dates

Autocorrelation compares a series with its own past

Key formula Definition (1)

Autocorrelation at lag hh

ρt(h)=Cov⁡(Xt,Xt−h)Var⁡(Xt)Var⁡(Xt−h)\rho_t(h)=\frac{\operatorname{Cov}(X_t,X_{t-h})}{\sqrt{\operatorname{Var}(X_t)\operatorname{Var}(X_{t-h})}}

In words Corr⁡(Xt,Xt−h):\operatorname{Corr}(X_t,X_{t-h})\text{:} how today moves, linearly, with the value hh periods earlier. Write ρ(h)\rho(h) when it depends on the lag alone.

Needs finite, positive variances.

Result reading a sample correlogram

  • Lag hh leaves only T−hT-h pairs.
  • Slow decay can mean persistence, or a trending level.
  • Peaks at lags 4, 8, 12 suggest quarterly seasonality.

Common mistake

Small sample autocorrelations do not prove independence, nor rule out nonlinear predictability.

Check

Monthly sales are sorted from low to high, the dates deleted and one month is missing. Does a lag-one correlation still measure monthly persistence?

Answer

No: sorted neighbours are close by construction, not in time, and a missing month is not a zero. Restore the calendar, then form lag pairs.

Final frame: three bars drawn to scale at t = 0, 1, 2, with a dashed reference line at 100. Bar 0 is 100; bar 1 is 120, its top 20 shaded green; bar 2 is 96, with the removed 24 shown as a red block beside it, taller than the green 20. Under the bars, the factors ×1.20 and ×0.80, and below them the equal factors ×0.9798 and ×0.9798 of a dashed yellow steady path from 100 to 96. Beside it: start X₀ = 100; 100 × 1.20 = 120, the rise is 20% of 100, +20; 120 × 0.80 = 96, the fall is 20% of 120, −24; overall 96/100 − 1 = −4%; (1 + ḡ)² = 0.96, so ḡ = √0.96 − 1 ≈ −2.02%, not the simple average (20% − 20%)/2 = 0.

Before it plays Before playing, predict: an index at 100100 rises by 20%20\% and then falls by 20%.20\%\text{.} Where does it end?

4.2Measuring change

Differences subtract, growth factors multiply, logs add

Definition

Differences

ΔXt=Xt−Xt−1:\Delta X_t=X_t-X_{t-1}\text{:} an absolute change, in units of XX per period. Δ4Xt=Xt−Xt−4\Delta_4X_t=X_t-X_{t-4} compares matching quarters; it is not Δ4Xt.\Delta^4X_t\text{.}

Key formula Definition (2)

Growth factors compound

(1+gˉ)h=XtXt−h(1+\bar g)^h=\frac{X_t}{X_{t-h}}

In words with rate gt=Xt/Xt−1−1,g_t=X_t/X_{t-1}-1\text{,} the growth factor 1+gt1+g_t multiplies the level; gˉ\bar g compounds to the observed ratio.

Needs positive levels.

Key formula Identity (3)

Log change

rt=Δlog⁡Xt=log⁡(1+gt)r_t=\Delta\log X_t=\log(1+g_t)

In words the log of the growth factor; log changes add over time. Close to gtg_t only for small rates: 0.20 is growth of e0.20−1≈22.14%e^{0.20}-1\approx22.14\%.

Needs Xt>0;X_t>0\text{;} natural logarithms.

Worked example compounding

Up 20%, down 20%: (1+gˉ)2=0.96,(1+\bar g)^2=0.96\text{,} so gˉ≈−2.02%\bar g\approx-2.02\% per period, not 0. And 2% a quarter is (1.02)4−1≈8.243%(1.02)^4-1\approx8.243\% a year, not 8%.

Part 2 of 3

Models with memory

What must stay unchanged for the past to inform the future, and does a shock fade or last?

Key terms

stationaritywhite noiserandom walkAR(1)forecast band

Notes 4.3–4.5 ↗

So far a series is one path of a process; autocorrelation measures how it depends on its own past.

Why it matters

Any forecast of unemployment, earnings or an exchange rate rests on a model of persistence. Whether a shock is temporary or permanent decides where the forecast goes, and whether its uncertainty stays bounded.

In this part

  1. 4.3Weak stationarity: what must stay unchanged
  2. 4.4White noise and the random walk
  3. 4.3Choosing a transformation from the model
  4. 4.4The AR(1) and its special cases
  5. 4.5Mean, variance and autocorrelation of a stable AR(1)
  6. 4.5AR(1) forecasts and their uncertainty
  7. ▶Animation: the forecast returns towards the mean inside a band that levels off
Lecture 4 · Time series9 / 25

4.3What must stay unchanged

Stationarity: the same probability structure at every date

Key formula Definition (4)

Weak stationarity

E[Xt]=μVar⁡(Xt)=γ(0)<∞Cov⁡(Xt,Xt−h)=γ(h)\begin{aligned}E[X_t]&=\mu\\ \operatorname{Var}(X_t)&=\gamma(0)<\infty\\ \operatorname{Cov}(X_t,X_{t-h})&=\gamma(h)\end{aligned}

In words the same mean and finite variance at every date, and a covariance that depends only on the gap h.h\text{.} Then ρ(h)=γ(h)/γ(0)\rho(h)=\gamma(h)/\gamma(0).

Needs finite second moments; it restricts moments, not the whole distribution.

Stationarity lets one stretch of history inform another: the role that iid sampling played in Lecture 3.

Common mistake

Stationary is not flat-looking: long runs above the mean are allowed. Nor is zero autocorrelation enough: Xt∼N(0,t)X_t\sim N(0,t) is uncorrelated but not stationary.

Check

With ZtZ_t iid N(0,1),N(0,1)\text{,} which of 3+Zt,3+Z_t\text{,} t+Ztt+Z_t and t Zt\sqrt t\,Z_t is weakly stationary?

Answer

Only 3+Zt:3+Z_t\text{:} mean 3, variance 1. t+Ztt+Z_t has mean t;t\text{;} t Zt\sqrt t\,Z_t has variance t.t\text{.}

4.4Two building blocks

White noise is the building block; a random walk adds the shocks up

Definition

White noise

The innovation εt\varepsilon_t is the new component at date t:t\text{:} iid, mean 0, variance σ2>0,\sigma^2>0\text{,} independent of the past. Unforecastable in mean, not in spread.

Key formula Result (5)

The random walk accumulates shocks

Xt=Xt−1+εt=x0+∑j=1tεjX_t=X_{t-1}+\varepsilon_t=x_0+\sum_{j=1}^{t}\varepsilon_j

In words the start plus every shock so far: E[Xt]=x0,E[X_t]=x_0\text{,} but Var⁡(Xt)=tσ2\operatorname{Var}(X_t)=t\sigma^2 grows, so it is not stationary.

Needs a fixed start x0x_0 and iid mean-zero shocks.

Result what a walk implies

  • Every shock carries into every later level: a random walk has no restoring force.
  • Corr⁡(Xt,Xt−h)=(t−h)/t\operatorname{Corr}(X_t,X_{t-h})=\sqrt{(t-h)/t} depends on the date: there is no stationary ACF.
  • The forecast of Xt+hX_{t+h} is Xt,X_t\text{,} with error variance hσ2.h\sigma^2\text{.}
  • With drift d,d\text{,} the mean is x0+tdx_0+td and ΔXt=d+εt.\Delta X_t=d+\varepsilon_t\text{.}

Common mistake

“It will come back, because its mean is constant.” The constant mean is an average across possible paths at one date; it does not pull a path back. The best forecast is today’s level.

4.3Detrend or difference

Detrend or difference? The model decides

Detrend a deterministic trend; difference a unit root
ModelTransformationWhat is left
Xt=a+bt+UtX_t=a+bt+U_tsubtract the trendUt,U_t\text{,} stationary
Xt=Xt−1+εtX_t=X_{t-1}+\varepsilon_tfirst differenceΔXt=εt\Delta X_t=\varepsilon_t
Ut,U_t\text{,} already white noisea difference too manylag-one correlation −12-\tfrac12

Result over-differencing

Vt=Ut−Ut−1V_t=U_t-U_{t-1} has variance 2σ22\sigma^2 and lag-one covariance −σ2:-\sigma^2\text{:} the transformation created the correlation.

Common mistake

Fitting a straight line to a random walk does not make what is left stationary.

Check

Can a log transformation remove the growing variance of a Gaussian random walk that takes negative values?

Answer

No: the log is not even defined at negative values. The model justifies the first difference.

4.4Autoregression

One recursion: shocks that vanish, last for ever, or fade

Key formula Definition (6)

The AR(1) model

Xt=c+ϕXt−1+εtX_t=c+\phi X_{t-1}+\varepsilon_t

In words an intercept, plus ϕ\phi times yesterday, plus a new shock. An AR(pp) adds lags up to Xt−p.X_{t-p}\text{.}

Needs white-noise shocks; a stable solution needs ∣ϕ∣<1.|\phi|<1\text{.}

RestrictionModelA shock …
c=0, ϕ=0c=0,\ \phi=0white noisevanishes at once
c=0, ϕ=1c=0,\ \phi=1random walklasts for ever
c=d, ϕ=1c=d,\ \phi=1walk with driftlasts, around a drifting mean
∣ϕ∣<1|\phi|<1stable AR(1)fades: 1, ϕ, ϕ2,…1,\ \phi,\ \phi^2,\ldots

Check

Compare Xt=2+Xt−1+εtX_t=2+X_{t-1}+\varepsilon_t with Yt=2+0.5Yt−1+εtY_t=2+0.5Y_{t-1}+\varepsilon_t. Which has a stationary long-run mean?

Answer

Only Y:Y\text{:} μ=2+0.5μ\mu=2+0.5\mu gives μ=4.\mu=4\text{.} XX is a walk with drift 2; its mean x0+2tx_0+2t keeps rising.

4.5The stationary AR(1)

A stable AR(1): the intercept is not the mean

Key formula Result (7)

Stationary mean and variance

μ=c1−ϕ,v=σ21−ϕ2\mu=\frac{c}{1-\phi},\qquad v=\frac{\sigma^2}{1-\phi^2}

In words expectations of the recursion give μ=c+ϕμ;\mu=c+\phi\mu\text{;} variances give v=ϕ2v+σ2.v=\phi^2v+\sigma^2\text{.}

Needs ∣ϕ∣<1,|\phi|<1\text{,} the stationary solution.

Key formula Result (8)

Autocorrelation of an AR(1)

ρ(h)=ϕh(h≥0)\rho(h)=\phi^h\qquad(h\ge0)

In words the new shock is independent of the past, so γ(h)=ϕ γ(h−1);\gamma(h)=\phi\,\gamma(h-1)\text{;} and ρ(1)=ϕ.\rho(1)=\phi\text{.}

Exact AR(1) autocorrelations: positive and negative persistence
1.01.0
−1.0-1.0
00
1212
Lag

Exact ρ(h):\rho(h)\text{:} ϕ=0.8\phi=0.8 solid, ϕ=−0.8\phi=-0.8 dashed.

Check

Xt=3+0.6Xt−1+εtX_t=3+0.6X_{t-1}+\varepsilon_t with innovation variance 2: find μ,\mu\text{,} vv and ρ(2).\rho(2)\text{.}

Answer

μ=3/0.4=7.5;\mu=3/0.4=7.5\text{;} v=2/0.64=3.125;v=2/0.64=3.125\text{;} ρ(2)=0.36.\rho(2)=0.36\text{.}

4.5Forecasting

Forecast the centre, then state the uncertainty

Key formula Result (9)

AR(1) forecast and error variance

X^t+h∣t=μ+ϕh(Xt−μ)Vh=σ2 1−ϕ2h1−ϕ2\begin{aligned}\widehat X_{t+h\mid t}&=\mu+\phi^h(X_t-\mu)\\ V_h&=\sigma^2\,\frac{1-\phi^{2h}}{1-\phi^2}\end{aligned}

In words the mean plus ϕh\phi^h times today’s deviation. The error is the sum of the hh unseen shocks, weighted 1,ϕ,…,ϕh−1.1,\phi,\ldots,\phi^{h-1}\text{.}

Needs information through tt and known parameters; normal shocks for the interval ±1.96Vh.\pm1.96\sqrt{V_h}\text{.}

Result as the horizon grows

The forecast tends to μ\mu and VhV_h to the stationary variance: the band levels off. For a random walk the forecast stays at XtX_t and hσ2h\sigma^2 grows without limit.

Worked example a worked forecast

μ=10,\mu=10\text{,} ϕ=0.8,\phi=0.8\text{,} σ2=1,\sigma^2=1\text{,} and today Xt=15.X_t=15\text{.}

X^t+1∣t=10+0.8(5)=14X^t+2∣t=10+0.82(5)=13.2V2=1+0.82=1.64\begin{aligned}\widehat X_{t+1\mid t}&=10+0.8(5)=14\\ \widehat X_{t+2\mid t}&=10+0.8^2(5)=13.2\\ V_2&=1+0.8^2=1.64\end{aligned}

95% interval: 13.2±1.961.64=[10.69, 15.71].13.2\pm1.96\sqrt{1.64}=[10.69,\ 15.71]\text{.}

Why economists care

A forecast is a distribution: report its centre and its band. Estimating μ,\mu\text{,} ϕ\phi and σ2\sigma^2 from data adds further uncertainty.

Final frame: a time plot with the mean μ = 10 dashed. An illustrative past path rises to X_t = 15. From there the forecast centre falls towards 10 (14, 13.2, 12.56, …), inside a shaded 95% band that widens and then levels off between dashed limits 10 ± 3.27; two steps ahead, a yellow bracket marks [10.69, 15.71]. Three simulated green paths continue from 15, and one first rises to about 15.6. Beside it: μ = 10, φ = 0.8, σ² = 1, X_t = 15; X̂_{t+h|t} = 10 + 0.8^h(15 − 10) = 14, 13.2, 12.56, … → 10; V₂ = 1 + 0.8² = 1.64; 13.2 ± 1.96√1.64 = [10.69, 15.71]; V_h → 1/(1 − 0.8²) ≈ 2.78, so the band levels off. The expected deviation shrinks; a realised value can still rise.

Before it plays Before playing, predict: the series stands at 15,15\text{,} above its mean 10.10\text{.} Must the next value be lower? And does the forecast’s uncertainty keep growing?

Part 3 of 3

Reversion and spurious correlation

When does movement towards the mean, or a strong correlation between two series, reveal a real mechanism?

Key terms

mean reversionregression to the meanspurious regressioncointegration

Notes 4.6–4.7 ↗

So far a stable AR(1) forecast returns towards μ\mu; a random walk’s stays at today’s level while its variance grows.

Why it matters

Programmes that select extreme cases, such as tutoring the lowest scorers or treating road sites after unusually many accidents, can show before–after improvements with no effect. Regressing one trending level on another can give a high fit and a small p-value with no relationship at all.

In this part

  1. 4.6Mean reversion is a property of the expected path
  2. ▶Animation: why extreme first scores drift back on retest
  3. 4.6Regression to the mean, and what it means for programmes
  4. 4.7Independent random walks can correlate strongly
  5. 4.7Before trusting a correlation between two series
Lecture 4 · Time series17 / 25

4.6Mean reversion

Mean reversion describes the expected path, not the next value

Definition

Mean reversion

In a stable AR(1) the expected deviation after hh periods, ϕh(Xt−μ),\phi^h(X_t-\mu)\text{,} tends to zero. Next period’s expected change is

E[Xt+1−Xt∣Ft]=(ϕ−1)(Xt−μ)E[X_{t+1}-X_t\mid\mathcal F_t]=(\phi-1)(X_t-\mu)

which is negative when today is above the mean.

Worked example half-life

The expected deviation halves when ϕh=1/2,\phi^h=1/2\text{,} so h1/2=log⁡(1/2)/log⁡ϕ.h_{1/2}=\log(1/2)/\log\phi\text{.} At ϕ=0.8\phi=0.8 that is about 3.11 periods.

Check

μ=0,\mu=0\text{,} ϕ=0.8,\phi=0.8\text{,} and today’s value is 5. Must the next value be below 5?

Answer

No. The forecast is 4, but Xt+1=4+εt+1X_{t+1}=4+\varepsilon_{t+1} exceeds 5 whenever the shock exceeds 1. The expected change is −1;-1\text{;} the realised change is not restricted.

Common mistake

“It is far above its historical average, so it will fall.” That needs an identified restoring model. A random walk has a constant unconditional mean but no restoring forecast.

Final frame: a scatter of 300 simulated people, first score S₁ against retest score S₂, with a dashed no-change line S₂ = S₁ and a green conditional-mean line of slope 0.6. A strip of first scores near 30 is highlighted; a sideways yellow curve shows their retest distribution N(38, 8²), with an arrow up from 30 to 38 marked +8. A strip near 80 shows the curve N(68, 8²), with an arrow down from 80 to 68 marked −12. Beside it: S₁ = 50 + A + U₁ and S₂ = 50 + A + U₂, Var(A) = 60 persists and Var(U_i) = 40 is fresh; E[S₂ | S₁ = 30] = 50 + 0.6(30 − 50) = 38, +8 with no programme at all; E[S₂ | S₁ = 80] = 50 + 0.6(80 − 50) = 68; r = 60/(60 + 40) = 0.6, slope 0.6, not 1. Extreme first scores carry unusual noise; the retest draws fresh noise. A before–after gain is not a programme effect.

Before it plays Before playing, predict: people who scored 30,30\text{,} well below the mean 50,50\text{,} are retested with no help at all. What should their average retest score be?

4.6Regression to the mean

Selecting extreme first scores also selects favourable noise

Key formula Result (10)

Regression to the mean

E[S2∣S1=s]=μ+r (s−μ)r=τ2τ2+ω2\begin{aligned}E[S_2\mid S_1=s]&=\mu+r\,(s-\mu)\\ r&=\frac{\tau^2}{\tau^2+\omega^2}\end{aligned}

In words a score is μ\mu plus a lasting part (variance τ2\tau^2) plus fresh noise (variance ω2\omega^2); the retest keeps the share rr of the first deviation.

Needs the Gaussian model Sk=μ+A+Uk,S_k=\mu+A+U_k\text{,} all parts independent.

Result two extremes

Pure guessing: the top scorers’ expected retest is the mean. No new noise: no regression at all.

Why economists care

A school tutors its lowest scorers. With μ=50\mu=50 and r=0.6r=0.6, a first score of 30 retests at 38 on average, with no effect at all. A before–after gain mixes an effect, regression to the mean, a common trend and noise. Ask what the same selection gives without treatment (Lecture 5).

The same form as the AR(1) forecast, a different mechanism: a lasting component measured twice, and selection on the first measurement.

4.7Back to the opening question

Back to 0.71: independent random walks can correlate strongly

Worked example two independent walks

Xt=Xt−1+εtX_t=X_{t-1}+\varepsilon_t and Yt=Yt−1+ηt,Y_t=Y_{t-1}+\eta_t\text{,} both from 0, with independent N(0,1)N(0,1) shocks. An early positive shock lifts XX for many later dates; an unrelated early shock may do the same for Y.Y\text{.} Across one realised sample, their levels then move together.

Neighbouring dates share shocks, so TT date pairs are not TT independent pieces of information.

Result the opening question

(c). The generator did not link the series. Nor does a longer sample help: levels correlations stay widely spread across independent pairs.

The notes’ lab: 200 prespecified pairs of independent walks, T=100.T=100\text{.}

−1−0.500.51LevelsChanges
Levels (Xt,Yt)(X_t,Y_t)∣r∣>0.5|r|>0.5 in 85 of 200 pairs
Changes (ΔXt,ΔYt)(\Delta X_t,\Delta Y_t)∣r∣>0.5|r|>0.5 in 0 of 200: independent iid pairs, correlation zero

4.7Carry the question through

A high coefficient does not choose its own explanation

Definition

Spurious regression

Misleading evidence of a relationship when unrelated persistent, nonstationary levels are regressed on one another, using inference designed for a different error structure.

Result four sources of a high coefficient

  1. A common driver of both series.
  2. Two deterministic trends, such as Xt=t+εtX_t=t+\varepsilon_t and Yt=2t+ηtY_t=2t+\eta_t.
  3. A search across many pairs that selects an extreme one.
  4. Nonstationary levels, which align even when the processes are independent.

Common mistake

“The p-value is tiny, so the relation is real.” iid correlation tests and regression standard errors are wrong for random-walk levels; a small p-value from the wrong reference distribution is not reassuring.

Transform because the model says so. Differencing changes the question and can remove a real long-run relation: some nonstationary series have a stationary combination, called cointegration.

Review · How the ideas connect

Describe, model the memory, then interpret through the model

Part 1 · Describe

Part 2 · Model

Part 3 · Interpret

measure changecompare with its past
Change: ΔXt,\Delta X_t\text{,} growth (2), logs (3)
Ordered data: one path of {Xt}\{X_t\}
Autocorrelation ρ(h)\rho(h) (1)
hh alone if stationaryshocks feed itϕ=1\phi=1∣ϕ∣<1|\phi|<1is stationarycondition on XtX_tforecast Xt,X_t\text{,} band grows
White-noise shocks εt\varepsilon_t
AR(1) (6)
Xt=c+ϕXt−1+εtX_t=c+\phi X_{t-1}+\varepsilon_t
Weak stationarity (4)
Random walk (5): variance tσ2t\sigma^2
Forecast and band (9)
Stable: μ,\mu\text{,} vv (7); ϕh\phi^h (8)
centre returns to μ\musame form, other mechanismindependent walks align
Spurious correlation of levels
Mean reversion, in expectation
Regression to the mean (10)
Lecture 4 · Time series23 / 25

Review · Summary sheet

What to take away: the terms and the ten formulas

Key terms

1 Order, units and change

Time series and process ordered data; the process {Xt}\{X_t\} is their probability model, and we observe one path.

Differences ΔXt=Xt−Xt−1;\Delta X_t=X_t-X_{t-1}\text{;} Δ4Xt\Delta_4X_t compares matching quarters.

growth factor 1+gt1+g_t multiplies the level; rates compound, they do not add.

2 Models with memory

White noise the new shock εt:\varepsilon_t\text{:} iid, mean 0, variance σ2.\sigma^2\text{.}

random walk Xt=Xt−1+εt:X_t=X_{t-1}+\varepsilon_t\text{:} every shock is permanent and the variance tσ2t\sigma^2 grows.

forecast the expected Xt+hX_{t+h} given information at t;t\text{;} VhV_h is its error variance.

3 Reversion and spurious correlation

Mean reversion the expected deviation ϕh(Xt−μ)\phi^h(X_t-\mu) shrinks to zero when ∣ϕ∣<1.|\phi|<1\text{.}

regression to the mean selecting extreme noisy scores selects favourable noise too, so retests move towards the mean.

Spurious regression misleading evidence of a link between persistent levels, from iid-style inference.

Key formulas

1 Order, units and change

(1)Autocorrelation at lag hh Definitionρ(h)=Corr⁡(Xt,Xt−h)\rho(h)=\operatorname{Corr}(X_t,X_{t-h})finite variances; a function of hh alone if stationary
(2)Growth factors compound Definition(1+gˉ)h=Xt/Xt−h(1+\bar g)^h=X_t/X_{t-h}positive levels
(3)Log change Identityrt=log⁡(1+gt),r_t=\log(1+g_t)\text{,} gt=ert−1g_t=e^{r_t}-1Xt>0;X_t>0\text{;} natural logs

2 Models with memory

(4)Weak stationarity DefinitionE[Xt]=μ,E[X_t]=\mu\text{,} Cov⁡(Xt,Xt−h)=γ(h)\operatorname{Cov}(X_t,X_{t-h})=\gamma(h)finite variance γ(0)\gamma(0)
(5)The random walk accumulates shocks ResultXt=x0+∑j≤tεj,X_t=x_0+\sum_{j\le t}\varepsilon_j\text{,} Var⁡(Xt)=tσ2\operatorname{Var}(X_t)=t\sigma^2fixed start; iid mean-zero shocks
(6)The AR(1) model DefinitionXt=c+ϕXt−1+εtX_t=c+\phi X_{t-1}+\varepsilon_tiid shocks; stable if ∣ϕ∣<1|\phi|<1
(7)Stationary mean and variance Resultμ=c/(1−ϕ),\mu=c/(1-\phi)\text{,} v=σ2/(1−ϕ2)v=\sigma^2/(1-\phi^2)∣ϕ∣<1;|\phi|<1\text{;} the stationary solution
(8)Autocorrelation of an AR(1) Resultρ(h)=ϕh(h≥0)\rho(h)=\phi^h\qquad(h\ge0)the stationary AR(1)
(9)AR(1) forecast and error variance ResultX^t+h∣t=μ+ϕh(Xt−μ),\widehat X_{t+h\mid t}=\mu+\phi^h(X_t-\mu)\text{,} Vh=σ21−ϕ2h1−ϕ2V_h=\sigma^2\frac{1-\phi^{2h}}{1-\phi^2}known parameters; normal shocks for ±1.96Vh\pm1.96\sqrt{V_h}

3 Reversion and spurious correlation

(10)Regression to the mean ResultE[S2∣S1=s]=μ+r(s−μ)E[S_2\mid S_1=s]=\mu+r(s-\mu)Gaussian model; r=τ2/(τ2+ω2)r=\tau^2/(\tau^2+\omega^2)
Lecture 4 · Time series24 / 25

Review · Remember

Keep the order, model the memory, question the pattern

Result the opening question

(c). The series were independent random walks. Their levels share shocks across dates, so a correlation of 0.71 is unremarkable; their changes are independent pairs.

Remember

  1. Keep the dates, units and information set: differences subtract, growth factors compound, logs add.
  2. In Xt=c+ϕXt−1+εt,X_t=c+\phi X_{t-1}+\varepsilon_t\text{,} ∣ϕ∣<1|\phi|<1 makes shocks fade and forecasts return to μ\mu inside a band that levels off; ϕ=1\phi=1 makes them last.
  3. Reversion and strong level correlations can arise with no mechanism: ask what the same model or selection gives without the claimed link.

Before next time

  • Notes 4.1–4.7 with the worked solutions.
  • The four labs: scales, the AR(1), retest scores and independent walks.
  • Rework the forecast with μ=20,\mu=20\text{,} ϕ=−0.5,\phi=-0.5\text{,} σ2=4,\sigma^2=4\text{,} Xt=24.X_t=24\text{.}

Next · Lecture 5

Causal inference. A before–after gain after selection, or a correlation between two series, is not an effect. Which comparison identifies one?

Lecture 4 · Time series25 / 25