- Introduced by
- Raffaella Giacomini & Halbert White
- Year
- 2006
- Type
- Non-nested forecast comparison test
- Family
- Forecast evaluation
What does it do?
The Giacomini-White (GW) test, introduced by Raffaella Giacomini and Halbert White in 2006, asks whether two competing forecasting methods have equal conditional predictive ability, that is, whether one is expected to be more accurate given the information available at the forecast origin.
Unlike the unconditional Diebold-Mariano test, it allows the comparison to depend on observable conditions such as the prevailing economic state. The test compares forecasts produced by competing forecasting procedures, including possibly misspecified models, and accounts for the effect of estimation uncertainty on their relative performance.
The intuition behind the method
Rather than asking 'which forecast is better on average?', the GW test asks 'is one forecast consistently better given what we currently know?' If a model performs well only during recessions but poorly otherwise, an unconditional test might miss this pattern. By multiplying the loss differential by a vector of conditioning variables observed before the forecast is made, the test can detect systematic, exploitable differences in forecast accuracy that depend on prevailing economic conditions.
History
Raffaella Giacomini and Halbert White published the test in Econometrica in 2006. The paper treats conditional evaluation objectives as a generalisation of the unconditional objectives in earlier forecast comparison work, and proposes a two-step decision rule that uses current information to choose the forecast for a future date of interest. The test is therefore an extension of unconditional forecast comparison rather than a replacement for it.
When to use it
Use the GW test when you have two competing forecasts of the same target variable, both produced out of sample, and the question is whether one is more accurate given information known at the forecast origin, for example within a particular economic regime. Choose the conditioning variables from the information set before the results are inspected, and set the estimation window scheme in line with the asymptotic conditions of Giacomini and White (2006). Do not use it when the question concerns only average accuracy over the evaluation sample, where the Diebold-Mariano test is the simpler alternative. Do not use it to compare several models jointly, where the Model Confidence Set is the relevant tool, or when no conditioning variable can be motivated in advance, since the test then gives little direction and invites data snooping.
Limitations and considerations
- The chi-squared approximation depends on the estimation window scheme assumed in the source, and a rolling window can discard early observations, which may reduce power in small samples
- Power depends on the conditioning variables in the test function vector; a poor choice can leave the test with little power against the departures from equal conditional accuracy that the analyst cares about
- The chi-squared distribution is an asymptotic approximation, and in short evaluation samples its critical values may be inaccurate, so size distortions are possible. The kernel and bandwidth of the HAC variance estimator also influence size
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Tests conditional predictive ability, asking whether one forecast is expected to be more accurate given information available at the forecast origin, not only on average across the sample
- The loss function enters the formulation as a general function L(·), so the choice of loss is left to the analyst
- Designed for possibly misspecified forecasting models, and the cited framework accounts for the effect of estimation uncertainty on relative forecast performance
- Accepts forecasts produced by general estimation methods, and the chi-squared limit with degrees of freedom equal to the number of test functions gives simple asymptotic critical values, which may be inaccurate in short samples
Applications
- Comparing macroeconomic forecasting models (e.g., GDP growth, inflation) across business cycle phases
- Evaluating competing financial volatility models such as GARCH variants in bull versus bear markets
- Assessing energy demand or electricity price forecasts under different seasonal or regulatory regimes
- Comparing forecasts from parameter-reduction methods for macroeconomic forecasting when many predictors are available
- Exchange rate forecast evaluation where economic conditions such as interest rate differentials may moderate model accuracy
How it works
How it works
Compute the period-by-period loss differential between the two competing forecasting methods. A loss function such as squared error or absolute error is applied to each method's forecast error, and the difference is recorded for every evaluation period.
Formula
\Delta L_{t+\tau} = L(e_{1,t+\tau}) - L(e_{2,t+\tau}), \quad e_{i,t+\tau} = y_{t+\tau} - \hat{y}_{i,t+\tau}Select a vector of test functions drawn from the information set available at the time of forecast. These conditioning variables, such as lagged indicators, regime dummies, or economic state variables, determine which conditional comparisons are made. The null hypothesis is that the expected product of this vector and the loss differential is zero for all periods.
Formula
h_t \in \mathcal{F}_t, \quad \mathcal{H}_0: \mathbb{E}[h_t \Delta L_{t+\tau}] = 0 \; \forall tForm the GW statistic as a quadratic form in the sample mean of the product of the test function and the loss differential, scaled by n and by the inverse of the estimated variance matrix Ω̂n. Ω̂n is a HAC estimator of the asymptotic variance of h_t ΔL, and its kernel and bandwidth choice affects the test's size.
Formula
\mathrm{GW}_n = \left(\frac{1}{n}\sum_{t=R}^{T-\tau} h_t \Delta L_{t+\tau}\right)^\top \hat{\Omega}_n^{-1} \left(\frac{1}{n}\sum_{t=R}^{T-\tau} h_t \Delta L_{t+\tau}\right) \cdot nUnder the null of equal conditional predictive ability, the GW statistic follows an asymptotic chi-squared distribution with degrees of freedom equal to the dimension of the test function vector. Reject the null at the chosen significance level when the statistic exceeds the corresponding chi-squared critical value. The statistic is nonnegative and does not by itself show which forecast is better. The direction is read from the sample mean of h_t ΔL. With ΔL defined as the loss of method 1 minus the loss of method 2, a positive mean in the conditioned states means that method 1 has the larger average loss there, so method 2 is preferred. A negative mean indicates the reverse.
Formula
\mathrm{GW}_n \xrightarrow{d} \chi^2(q) \text{ under } \mathcal{H}_0, \quad q = \dim(h_t)Common pitfalls
- Using an estimation window scheme other than the one covered by the asymptotic results, such as an expanding window, may leave the chi-squared critical values unjustified; check the conditions in Giacomini and White (2006) before making this choice
- Choosing conditioning variables after inspecting the data introduces data snooping bias and inflates rejection rates
- Conflating a rejection of equal conditional predictive ability with a statement about the population fit of the underlying models; the test compares the forecasts produced by the competing procedures
Frequently asked questions
How does the GW test differ from the Diebold-Mariano test?
The Diebold-Mariano test evaluates unconditional equal predictive accuracy, meaning whether, on average across all periods, two forecasts differ. The GW test conditions on information available at the forecast origin, so it can detect whether one method is systematically better in specific economic states. This conditional question is the one the GW framework is designed to answer.
Does the estimation window scheme matter?
Yes. Giacomini and White (2006) derive the tests so that the finite-sample properties of the estimators behind the forecasts are preserved asymptotically, and the chi-squared approximation depends on the estimation scheme assumed there. Rolling and expanding schemes should therefore be checked against those conditions before the critical values are used. A scheme outside those conditions may leave the chi-squared approximation unjustified.
What should I use as the test function vector?
The test function vector should contain variables in the forecaster's information set at the forecast origin, for instance lagged loss differentials, economic indicators, or regime indicators. Setting the vector to a constant reduces the GW test to an unconditional version. Adding economically motivated variables can increase power against specific alternatives, but choosing them after inspecting the results risks data snooping.
Related methods
Sources
Giacomini, R., & White, H. (2006). Tests of conditional predictive ability. Econometrica, 74(6), 1545–1578.
Open DOI referenceRobustness in Econometrics