Beware of Spurious Factors

The word spurious refers to “outwardly similar or corresponding to something without having its genuine qualities.” Fake.

While the meanings of spurious correlation and spurious regression are common knowledge nowadays, much less is understood about spurious factors. This post draws your attention to recent, top-shelf, research flagging the risks around spurious factor analysis. While formal solutions are still pending there are couple of heuristics we can use to detect possible problems.

Since you know what spurious correlation is, it’s easy to board the train of thought at this station. When two variables, think prices of two stocks, drift upwards or downwards simultaneity, this “drifting”-fact alone is enough to spike the correlation, regardless of the actual statistical relation between the two variables. Now, factors are often extracted from cross-sectional data using principal component analysis (PCA). The numerical procedure starts with the computation of the correlation\covariance matrix. Therefore, with spurious entries in the correlation matrix the extracted factors would over-represent the common variation in the data – sometimes absurdly so.

The problem is serious on at least couple of levels. First, the deception effect is substantial: the first factor extracted from random walk data without any common factors, would falsely claim to explain circa 61% of the variation in the data. Below you can find code which expresses how serious a problem this actually is. Second, presently there is no way of solving for this. But, there are couple of things we can do.

The paper Spurious Factor Analysis (see references for a working version), suggests a couple of heuristics to cope with spurious factors. The first is to always compare factors estimated from level data, with factors estimated from first-differenced data. A mismatch between the two would call for more investigation. Second, but less formal strategy is to eyeball a times series plot of the extracted factors, and compare it with another plot of completely spurious factors. If the two plots resemble each other than you are a go to sound the alarm.

Code

The following code is for replicating the monte carlo simulation presented in the aforementioned paper (Table A.II). It generates N i.i.d. Gaussian random walks of length T. You can change the (N, T) numbers in code ((P,TT) below) for the data-dimensions you wish to simulate. The Matlab code is taken directly from the supplementary material of the paper, and the R code is my own translation (so any bugs are my doing).

References

  • Spurious Factor Analysis – working paper version
  • One comment on “Beware of Spurious Factors”

    Leave a Reply

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