Does it really matter if a correlation is spurious? Let’s say you are trying to find if there is a correlation between two stock prices, where both are likely non stationary series. You have no concern as it relates to a potentially causal relationship...
You run a simple correlation analysis against all the rules. Both our series are autocorrelated and non stationary. You find there is a 98% correlation so you conclude they depend on each other.
This is the conversation I just had with a colleague... but I think they are 100% wrong and I’d like some confirmation.
If you find two autocorrelated and non stationary series to be 98% correlated, then the correlation is likely spurious. What this means to me is that the correlation we observe is likely due to complete chance (and their correlation is likely a result of their mutual dependence on something else outside of the two series themselves). So if our goal is to identify the extent to which these two series “depend” on each other, finding a valid correlation coefficient is necessary. Is this correct?
 A: The whole notion of "spurious" correlation is easy to misinterpret.  Correlation is correlation --- if it is estimated well (i.e., via a good estimator and with a reasonable amount of data) then we can confidently say that the correlation is such-and-such.  Correlation is a statistical measure with an extremely weak interpretation --- it just measures the tendency for things to vary together (usually measured linearly), irrespective of the cause of this tendency.  The only thing that can be spurious is if we go further than this and interpret the correlation in a way that is not justified.  This can occur if a person uses correlation to infer a causal relationship between variables, or it can occur if a person uses marginal correlation to infer conditional correlation.  In either case the larger inference can be "spurious" insofar as it does not follow from the correlation.  As I've noted in another answer, I've always hated the term "spurious correlation" because it it is not the correlation that is spurious, but the inference to some stronger result.  If it were up to me we would never use this term, and would instead just state what we actually mean --- e.g., "spurious inference of cause", "spurious inference to conditional correlation", etc.
Now, with that little rant out of the way, let me address your specific concern.  Since you are only interested in describing the past statistical relationships between the stock prices (as you say in your comments), you can report the correlation, but it should come with a number of important caveats on interpretation.  Firstly, you should note that strong correlation between time-series can occur even for purely deterministic series with no statistical variation, so it often does not reflect any stochastic dependency between the series.  This is something that has been recognised in the statistical community for over a century (see e.g., Yule 1926 and see this related answer).  Secondly, even if changes in the stock prices are correlated, the ability to predict one stock from the other will depend on the cross-correlation in changes in the stock prices at sufficient lag values to allow use of one series to predict changes in the other.   In large part, analysis of stock prices is best done by looking at lagged cross-correlation of changes in price, rather than correlation of the price series themselves.
A: There are two concerns with correlations of time series

*

*Correlation when causal relationship is absent. Correlation does not imply causation. An example is the correlation between ice cream sales and the death rate due to drawing. These two are both high in summer and low in winter and they correlate in time, but this is not due to a direct causal relationship between the two. In such case, if a causal relationship between two variables is inferred based on a correlation between two variables then people use the term 'spurious relationship' (the inference is not correct).


*Correlation in a sample when statistical relationship for the population is absent.  Another concern is that the correlation might be likely found in data, even in the absence of an underlying statistical relationship. Time series with autocorrelation have a tendency to go up/down for short periods of time and so they tend to correlate with each other within short windows of time. But, this correlation is not significant. Yes, if you would compute the significance assuming that the datapoints are independently distributed according to a bivariate normal distribution (for which you can compute the exact sample distribution for the correlation coefficient), then it will turn out to be significant, but that assumption of independence is not correct when the time series follow trends or are autocorrelated.
A: The problem with spurious relationships - in the narrow context of pair trading - is not even with causality. The problem is that the relationship doesn't hold out of sample. This means that when you actually start trading on the developed algorithm, you won't make any money. And that can be a little bit of an issue, right?
