Frees Cross-Sectional Dependence Test for Panel Data

Econometrics
Introduced by
Edward Frees
Year
1995
Type
Non-parametric panel diagnostic test
Family
Cross-sectional dependence

What does it do?

The Frees test, introduced by Edward Frees in 1995, is a non-parametric diagnostic for cross-sectional dependence in panel data.

It is normally run after a panel model has been estimated, to check whether the residuals of different units move together before standard errors from methods that assume cross-sectional independence are relied on. It tests residuals from the estimated model, not the raw data.

The intuition behind the method

If individuals, countries, or firms in a panel react to shared global shocks, such as oil price changes or financial crises, their regression residuals will move together across units. The Frees test exploits the rank-order correlation structure of these residuals. Instead of using raw correlations, it computes Spearman rank correlations between each pair of units' residual series and aggregates the squared values into a single Q-statistic. Because the correlations are computed on ranks, the statistic does not depend on the residuals being normally distributed. A large Q signals that units are systematically co-moving, which violates the independence assumption that standard estimators require.

History

Edward Frees published his cross-sectional dependence test in the Journal of Econometrics in 1995 (Frees, 1995). The statistic is based on squared Spearman rank correlations between units' residual series. Frees also provided tabulated critical values, which allow applied users to run the test without deriving its null distribution.

When to use it

Apply the Frees test after estimating a panel model and before relying on its standard errors, when you suspect that units share common shocks, spatial spillovers, or network linkages. It is intended for balanced panels with many units observed over a moderate number of time periods, and the tabulated critical values should be checked against your own N and T. Because it is built on ranks, it does not require normally distributed residuals, which can be useful for macro panels with heavy-tailed errors. It is less reliable when T is very short or when the panel is severely unbalanced, and Pesaran's CD test is a common alternative to run alongside it. If cross-sectional dependence is confirmed, OLS, fixed-effects, or random-effects inference will be unreliable and a robust correction becomes necessary.

Limitations and considerations

  • Critical values are tabulated for specific (N, T) combinations in the original article; for dimensions that the tables do not cover, consult Frees (1995) for the appropriate approach rather than assuming the nearest entry applies.
  • Relative power against Pesaran's CD test depends on the structure of the dependence; consult the original article and the simulation evidence on the CD test before choosing between them.
  • The test is designed for balanced panels; application to severely unbalanced panels requires modification.
  • Like all residual-based diagnostics, test validity depends on correct specification of the regression model.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Non-parametric: the statistic is built from Spearman ranks, so it does not require normally distributed residuals.
  • Rank-based construction limits the influence of extreme residuals compared with an average of Pearson correlations.
  • Because the statistic averages squared pairwise correlations, it responds to dependence regardless of the sign of individual pairwise correlations.
  • Frees (1995) provides tabulated critical values for the Q-statistic, so the test can be run without deriving a reference distribution.
  • Complements Pesaran's CD test and Breusch-Pagan LM test, offering a fuller diagnostic picture.

Applications

  • Testing for common business-cycle shocks across countries in international macro panels before estimating growth regressions.
  • Diagnosing spatial dependence among regional units in housing price or labor market panel studies.
  • Pre-testing firm-level financial panels for sector-wide contagion before applying pooled or fixed-effects estimators.
  • Validating the independence assumption in environmental economics panels studying pollution or energy consumption across nations.
  • Assessing whether residuals from health outcome panel regressions exhibit dependence due to unmodeled geographic clustering.

How it works

How it works

1

After estimating the panel model (e.g., fixed or random effects), residuals are extracted for each unit i at each time point t. These residuals capture the variation unexplained by regressors and form the raw material for the dependence diagnostic.

Formula
\hat{e}_{it} = y_{it} - \hat{\alpha}_i - \hat{\beta}' x_{it}, \quad i=1,\ldots,N,\; t=1,\ldots,T
2

For every pair of units (i, j), the Spearman rank correlation is computed from the ranks of their residual series over the T time points, following the formula in mechanics. Because the correlation is based on ranks rather than raw values, extreme residuals have less influence than in a Pearson correlation, and the calculation does not require normally distributed residuals.

Formula
r_S(i,j) = 1 - \frac{6\sum_{t=1}^{T}[R_{it}-R_{jt}]^2}{T(T^2-1)}, \quad i \neq j
3

The squared Spearman correlations are averaged over all N(N-1)/2 unit pairs. A centring term is then subtracted and the result is scaled by T, following the formula in mechanics. Confirm the centring constant and the scaling against Frees (1995) before computing Q, because the reference distribution is defined relative to them. The reference distribution under the null of no cross-sectional dependence is the one tabulated by Frees (1995).

Formula
Q = T\left[\frac{1}{N(N-1)/2}\sum_{i<j} r_S(i,j)^2 - \frac{2}{T-1}\right]
4

The observed Q is compared with the critical value at the chosen significance level from the tables that Frees (1995) provides. These critical values depend on the panel dimensions N and T, so the entry matching your own N and T should be used. Rejecting the null indicates cross-sectional dependence in the residuals, which means that standard errors from OLS, fixed-effects, or random-effects estimation may be unreliable. The analyst should then consider robust alternatives such as Driscoll-Kraay standard errors or SUR-type frameworks.

Formula
\text{Reject } H_0 \text{ if } Q > Q_{\alpha}^{\text{Frees}}, \text{ where } Q_{\alpha}^{\text{Frees}} \text{ is the } (1-\alpha) \text{ critical value tabulated by Frees (1995)}

Common pitfalls

  • Forgetting to re-run the test after adding or removing regressors: model misspecification inflates residual dependence spuriously.
  • Confusing the Frees Q critical values with chi-squared or normal critical values from other CD tests, leading to incorrect inference.
  • Applying the test to very short panels, where each rank correlation rests on few time points; the estimates are then unreliable and the tabulated values may not cover the case.
  • Treating non-rejection as proof of independence rather than as failure to detect dependence at the chosen significance level.

Frequently asked questions

How does the Frees test differ from the Pesaran CD test?

Both detect cross-sectional dependence in panel residuals, but they use different statistics. The Frees test averages squared Spearman rank correlations and compares the Q-statistic with tabulated critical values. Pesaran's CD test is built from plain Pearson correlations, which keep their sign. Because the Frees test squares the correlations, it responds to dependence of either sign, which makes it a natural diagnostic when the direction of dependence is not known in advance. Which test has higher power depends on the dependence structure, so the two are often run together.

What should I do if the Frees test rejects the null?

Rejection means residuals are cross-sectionally correlated, so standard errors from OLS, FE, or RE estimators are invalid. Common remedies include Driscoll-Kraay standard errors (robust to cross-sectional and serial dependence), feasible GLS with a cross-sectionally correlated error structure, or two-way fixed effects with clustered standard errors. The choice depends on panel dimensions and the source of dependence.

Is the Frees test suitable for unbalanced panels?

The original Frees (1995) framework assumes a balanced panel where all N units are observed over the same T periods. For unbalanced panels, the pairwise Spearman correlations can still be computed over the common time periods shared by each pair, but the tabulated critical values may no longer apply exactly. Researchers typically either balance the panel by restricting the sample or treat non-rejection cautiously in severely unbalanced settings.

Related methods

Sources

  1. Frees, E. W. (1995). Assessing cross-sectional correlation in panel data. Journal of Econometrics, 69(2), 393–414.

    Open DOI reference