Forecast uncertainty, predictive information, and error correction
Module 13 · Reading uncertainty and predictive information in a VAR
Gary Cornwall
Econ 6376 · The George Washington University
What can we learn from a forecast error?
At the end of quarter , a forecaster commits to a value for in quarter .
At the forecast originThe past is observed. The forecast is fixed.
Over the next H quartersNew shocks arrive and propagate.
At the target dateWe observe the outcome and can measure the miss.
Before the outcome arrives, what can we say about the size of those possible misses?
Which shocks enter next quarter’s forecast error?
Write for the size of the structural shock from source ( or ) in quarter , measured in that shock’s standard deviations. In this model, the two shocks have mean zero, variance one, and zero covariance across sources and dates.
Shock source
Impact on target (response lag 0)
-standard-deviation shock
units of
-standard-deviation shock
units of
Suppose next quarter brings a -standard-deviation shock () and the shock is zero. Multiply the -SD response by this draw. The forecast error is units of .
Why do the response weights get squared?
Here and are next quarter’s standardized shocks. Multiplying either shock by gives it variance . Their covariance is zero, so their variance contributions add.
The on slide 3 was one possible shock. Across possible shocks, , so the contribution is squared units of .
How much of y’s uncertainty comes from the x shock?
For this one-quarter forecast of , divide the part attributable to shocks by the variance attributable to all shocks.
y shocks · 80%x shocks · 20%
Under the generating identification, shocks account for 20% of the one-quarter-ahead forecast-error variance of .
If the impact of the shock had the opposite sign and the same magnitude, which part of this calculation would change?
The signed response flips. A -standard-deviation shock would move down by . Since , the one-quarter variance share stays 20%.
Which shocks can move the four-quarter forecast error?
Read as the response of to a -standard-deviation shock, quarters after arrival. is the signed size of shock arriving in quarter , in standard deviations.
Two-quarter forecast from
At , a -SD shock from moves by units.
The hypothetical -SD shock at therefore contributes units of to this forecast error.
Four-quarter forecast from
Arrival date
Lag
variance term
3
2
1
0
The subscript counts quarters. The outside square applies to the whole weight. At horizon , the share is 30.21%.
Forecast target . Compare the generating shock with the second shock in a recursive identification that orders first.
Forecast horizon
Generating shock
Recursive second shock
One quarter
20.00%
0.00%
Four quarters
30.21%
3.60%
At one quarter the generating shock contributes of the total squared units of . With ordered first, the second shock reaches through lags. At each horizon, both identifications give the same total forecast-error variance for .
How can a fading response accompany a rising variance share?
Keep the generating system, the shock and target fixed. The left panel follows one shock. The right panel includes every future shock date up to the selected horizon.
At four quarters, the four squared response weights account for 30.21% of the total forecast-error variance in .
Could the 30.21% tell us whether an shock raised during a particular forecast miss?
To explain that episode, multiply each signed response weight by the shock that actually arrived.
How can a shock’s share fall while its variance contribution rises?
Forecast the quarterly change in the Canadian unemployment rate. Use the recursive order employment, productivity, real wages, unemployment.
data("Canada", package ="vars")fit_ca <- vars::VAR(diff(Canada), p =2, type ="const")u_shares <- vars::fevd(fit_ca, n.ahead =4)$U # target U
The own-shock share falls from 49.4% at one quarter to 26.0% at four quarters. What does that tell you about the size of its variance contribution?
Forecast horizon
Own shock share
Total variance
Own contribution
1 quarter
49.4%
0.0862
0.0425
4 quarters
26.0%
0.1805
0.0469
The last two columns are in squared percentage points. The own contribution rose slightly while total forecast-error variance more than doubled.
Which shocks account for uncertainty about Canadian unemployment?
The target is the change in the unemployment rate in the named future quarter. The four shock columns below follow the recursive order.
Quarters
Employment (%)
Productivity (%)
Real wage (%)
Unemployment (%)
1
46.2
0.2
4.1
49.4
4
50.2
12.2
11.6
26.0
8
46.8
14.4
15.5
23.3
Which shock has the largest share at one quarter? Which has the largest share at four?
What changes when unemployment is ordered first?
Both analysts use the same data, two VAR lags and forecast target. One lets unemployment respond immediately to the three other innovations. The other places unemployment first, so those innovations can reach it only in later quarters.
Under the second ordering, what share must unemployment’s own shock account for at one quarter? What happens to total forecast-error variance?
Quarters
Own share, U last (%)
Own share, U first (%)
Total variance, either order
1
49.4
100.0
0.0862
4
26.0
63.9
0.1805
The two analysts agree on the total variance in squared percentage points. Their timing assumptions define different unemployment shocks and give them different shares.
Whose past belongs in the forecast?
Can today’s and last quarter’s real-wage growth improve the one-quarter forecast of the unemployment-rate change?
Quarter t − 1Observe wage growth wt−1.
Forecast origin tObserve wt and the other current changes.
Forecast target t + 1Predict the change in the unemployment rate.
Both fits use the same 81 quarters, an intercept, and two lags each of unemployment change, employment growth and productivity growth. The full equation also includes and .
What would have to be true of both wage coefficients for wage history to drop out of the forecast?
How can yesterday’s x help forecast y?
In the Module 11 generating equations, has a direct coefficient of zero in the equation for . But past helps determine current , and current enters the equation.
The dots collect the intercept, lagged , and that equation’s shock. Hold the past of fixed.
If is one unit higher, how much does the forecast of change?
Substituting the second equation into the first gives a reduced-form coefficient of . The one-step forecast rises by about 0.23 units of .
Under the joint null, each boxed coefficient on wage growth equals zero in its target equation.
Forecast target
First wage lag
Second wage lag
Employment growth
Productivity growth
Unemployment change
Unemployment equation. Write for its intercept and two lags of each of the three retained series. The free coefficients are re-estimated in each fit.
All three targets give six joint restrictions. Unemployment alone gives two. The wage equation keeps its own lags.
How do we run the two Granger tests in R?
Use the same Canadian VAR(2) fit from the variance example. The system call tests wage growth in the employment, productivity, and unemployment equations. The nested fits test wage growth in unemployment alone.
block <- vars::causality(fit_ca, cause ="rw")$Grangerfull <- fit_ca$varresult$Ureduced <-update(full, . ~ . - rw.l1 - rw.l2, data =model.frame(full))one <-anova(reduced, full)
Wage-growth lags tested
Joint restrictions
F
p
All three other equations
6
2.92
0.0088
Unemployment equation
2
6.24
0.0032
The block rejection points to predictive information in at least one target. The unemployment result is nominal. Its residual diagnostic is sensitive to how the first four residual lags are handled.
Which Canadian forecasting claim would you defend?
Each equation-specific test removes two lags of the proposed predictor. All comparisons use the same 81 Canadian quarters, the same intercept, and the same other histories.
Predictor history for the target
Lag-test
BG(4) , trimmed
BG(4) , zero-filled
Wage growth for unemployment change
6.24
0.0032
0.065
0.026
Unemployment change for wage growth
0.65
0.526
0.013
0.016
The Breusch–Godfrey (BG) test checks for residual dependence through four quarters.
How would you rewrite “Raising wages will lower unemployment” using this evidence?
Wage history helps predict unemployment change in this fit, with sensitivity to the residual check. The reverse test fails to reject, and its residuals show dependence. A policy effect requires an identified intervention. A forecast-accuracy gain requires held-out forecasts.
Which combination of levels stays stable?
A gap between two wandering levels
Both U.S. log series are consistent with I(1). They are cointegrated if a linear combination of their levels is stationary.
Estimate over 1959Q1–2009Q3. Test the fitted gap .
Engle–Granger. The null is no cointegration. With four lagged differences in the residual test, the statistic is -2.589. Rejection at 5% requires a value below -3.367.
This specification gives insufficient evidence for a stationary gap.
What can pairwise tests miss?
Engle–Granger for a proposed relation
Johansen for a system of series
Fit a levels equation and test its residual for a unit root. The equation can include several regressors.
Test the rank to determine how many independent combinations of the levels appear stationary.
One test per unordered pair gives tests. Ten series give 45 tests. To limit false positives across the screen, adjust for multiple testing.
The fitted cointegrating vectors give weights for those combinations. A rank of one alone does not tell us which series enter that relation.
Suppose and follow independent random walks and , where is stationary. The three-series gap is stationary, even though no pair has a stationary spread.
Start at rank zero. If the trace exceeds the matching 5% critical value, continue to the next row. Stop at the first nonrejection.
System and constant
Rank bound
Trace
5% critical value
Decision
Mouse and Harry
34.16
19.96
Continue
5.73
9.24
Stop at one
U.S., drift allowed
15.14
17.95
Stop at zero
U.S., constant in the gap
36.85
19.96
Continue
8.18
9.24
Stop at one
The U.S. fits use the same two log levels and four levels lags. Restricting the constant changes the deterministic trend the common stochastic component can accommodate.
How does the rank guide the model?
For a system of series, the rank summarizes how many independent combinations of levels are stationary under the chosen deterministic specification.
Selected rank
What the evidence supports
Forecast model to consider
No supported stationary gap
VAR in changes
stationary gaps and stochastic trends
VECM with lagged gaps
Full rank in levels
Recheck the I(1) premise and consider a stationary levels VAR
U.S. example. Allowing drift gives . Restricting the constant to the gap gives . Which assumption would you defend for two growing U.S. aggregates?
Which specification would you use for the U.S. forecast?
Engle–Granger. With zero lags, the residual test narrowly rejects ( versus ), but residual dependence remains. With four lags, the statistic is and the test fails to reject no cointegration.
Johansen. Allow the common trend to drift and vary the number of levels lags.
Levels lags
2
4
6
Trace statistic for rank zero
12.24
15.14
16.86
5% critical value
17.95
17.95
17.95
If drift is plausible, start with a VAR in changes. Four lags in levels give three lags of changes. Its adjusted residual portmanteau test through 12 quarters gives . Report the rank-one result when the constant is restricted to the gap.
How does a levels VAR become a VECM?
Start with two lags of the levels vector , suppressing deterministic terms for clarity.
Subtract from both sides. Substitute and collect the levels and changes.
Johansen’s trace test helps choose the rank of . Rank zero gives and a VAR in changes. Rank one gives and one gap, .
In the known three-walker model, and Karen has zero gap weight. The three entries of tell us how each walker adjusts to yesterday’s gap.
What gap does R estimate for the three walkers?
Add Karen to the same 240 observations on Mouse and Harry. Use two levels lags and a constant inside the equilibrium relation.
jo <- urca::ca.jo(Y, K =2, type ="trace",ecdet ="const",spec ="transitory")urca::summary(jo) # start at r = 0fit <- urca::cajorls(jo, r =1)beta <-drop(fit$beta)alpha <-coef(fit$rlm)["ect1", ]
5% trace test
Statistic
Cutoff
Decision
37.32
34.91
Continue
7.01
19.96
Rank one
One fitted gap, three change equations
Normalize the weight on Mouse’s location to one. Yesterday’s fitted gap is
Next change
Fitted error-correction term
(Mouse)
(Harry)
(Karen)
A one-unit larger gap changes each forecast by its loading, holding all three lagged changes fixed.
Karen’s estimated gap weight and adjustment loading are both small. Both are exactly zero in the model that generated these walks.
Where do the fitted walkers go from here?
Stand at the final observation, . Forecast each walker’s location with the rank-one model. Future shocks have conditional mean zero.
Period
Mouse
Harry
Karen
Fitted gap
Observed at T
3.816
3.492
-19.653
0.150
1 period ahead
3.717
3.462
-19.689
0.080
4 periods ahead
3.686
3.479
-19.684
0.033
Use the same estimated weights and constant on every row. The gap shrinks from at the origin to in the four-period forecast. The three location forecasts can still move.
Who responds to yesterday’s gap?
Let yesterday’s gap be . Mouse is two units ahead of Harry and both had zero change last period.
Before the new shocks arrive, what changes would you forecast for Mouse, Harry, and Karen?
Mouse −0.20, Harry +0.20, Karen 0. The expected Mouse–Harry gap falls from 2.00 to 1.60.
Can one walker close the gap?
Both walkers stood still last period. In one history they are together today. In the other, Mouse is two units ahead. A changes-only VAR forecasts the same next changes from these identical recent changes.
Starting gap, Mouse minus Harry
Who adjusts by 10%?
Expected gap after 1 period
After 4 periods
0
Both
0.00
0.00
2
Both
1.60
0.82
2
Mouse alone
1.80
1.31
Now start both walkers five units farther down the street. What happens to their location forecasts and to their gap?
Each location forecast shifts up by five at every horizon. The gap follows the same path.
How does error correction change a shock’s forecast impact?
Mouse shock, Harry’s location. Both models let Harry respond to Mouse’s last change. The VECM also responds to yesterday’s Mouse–Harry gap.
Model
Harry’s period-8 response to one Mouse shock
Mouse shocks’ share at period 8
Changes-only VAR (dashed)
+0.250 units
5.19%
VECM (solid)
+0.496 units
20.19%
What would we see for an independent walker?
Karen’s random walk obeys . Her shocks are independent, and her location and changes enter neither walker’s equation.
What happens in both models when Karen is the source, the target, or both? Try the comparison.
Shock source
Forecast target
Level response
Share of target’s forecast-error variance
Karen
Harry or Mouse
0 units
0%
Harry or Mouse
Karen
0 units
0%
Karen
Karen
+1 unit permanently
100%
Where can Mouse’s history enter Harry’s forecast?
In the original walker model, Harry’s one-step change equation contains yesterday’s Mouse–Harry gap:
There is no lagged term. If yesterday’s Mouse location is one unit higher, with Harry’s location and the lagged changes held fixed, does Harry’s forecast change?
Yes. The gap is one unit larger, so Harry’s forecast next change rises by 0.10 units. In the comparison widget Harry also responds to .
Full one-step exclusion in a VECM: all Mouse lagged-change coefficients and its lagged-level coefficient must be zero in Harry’s equation.
What would you put in the forecast briefing?
For each question, name the exhibit you would use, the quantity it measures, and one assumption that matters to your answer.
Canadian unemployment riskOne year ahead, how much uncertainty about the quarterly rate change comes from unemployment’s own shock?
Canadian wage historyDoes past wage growth add information to the forecast of unemployment change, given the other series?
U.S. consumption and incomeIf the common trend can drift, would you put last quarter’s fitted gap into the next forecast?
When a stable gap does enter a model, how could you show what it changes for a forecast?
Canada: the four-quarter own-shock share is 26.0% with unemployment ordered last. The wage-lag test gives qualified predictive evidence. United States: allowing drift points to a changes VAR; restricting the constant points to a VECM. Compare matched IRFs and variance shares to show what error correction changes.