Cross-Correlation Function (CCF)

The cross-correlation function between two jointly stationary time series and is the normalized cross-covariance, measuring the linear dependence between and on a unitless scale:

where is the cross-covariance at lag , and , are the variances of each series. This extends the autocorrelation function to a pair of series, and is the time series analogue of the correlation coefficient .

Like cross-covariance, the CCF is not symmetric: in general. The relationship holds, so reading the CCF from one direction gives the lead-lag structure from ‘s perspective, and reversing it gives ‘s.

Spurious Cross-Correlation and share a common trend or seasonal component, the CCF can show large values at many lags even when the series have no genuine dynamic relationship. It is standard practice to pre-whiten both series (remove autocorrelation and trend) before interpreting the CCF causally.

If both

Intuition

The CCF answers: on a scale from to , how strongly is the value of series at time linearly associated with the value of series at time ? It is the primary tool for detecting lead-lag relationships between two series.

A peak in at means that leads by periods (future covaries with current , equivalently current covaries with future ). A peak at means leads . A peak at indicates contemporaneous association. In practice, the sample CCF is plotted and compared against confidence bands at to identify statistically significant lead-lag structure.

Properties

(Boundedness) for all , by the Cauchy–Schwarz inequality.

(Asymmetry) , but in general.

(Autocorrelation as Special Case) When , the CCF reduces to the ACF: .

(Normalization) , where and .

(Independence) If and are independent, then for all .

(Invariance to Location-Scale) If and with , then . The CCF is unaffected by shifts and positive rescalings.

Examples

Delayed Response

An economist models monthly advertising spend and monthly revenue for a company. Both series are stationary after differencing. The sample CCF shows a significant peak at .

CCF of Lagged Signal

Let , where is stationary white noise with variance , is independent of , and .