Cross Correlation in Statistics
In statistics, a cross-correlation function (a specific type of correlation function) is a measure of association. For example, the most common correlation coefficient, the Pearson product-moment correlation coefficient (PPMC), is a normalized version of a cross-correlation. The PPMC gives a measure of temporal similarity for two time series.
Cross Correlation in Signal Processing
In signal processing, cross correlation is where you take two signals and produce a third signal. The method, which is basically a generalized form of “regular” linear correlation, is a way to objectively compare different time series and allows you to see how two signals match and where the best match occurs. It can be used to create plots that may reveal hidden sequences.
The basic process involves:
- Calculate a correlation coefficient. The coefficient is a measure of how well one series predicts the other.
- Shift the series, creating a lag. Repeat the calculations for the correlation coefficient.
- Repeat steps 1 and 2. How many times you repeat the process will depend on your data, but as the lag increases the potential matches will decrease.
- Identify the lag with the highest correlation coefficient. The lag with the highest correlation coefficient is where the two series match the best.
Difference Between Cross Correlation and Autocorrelation
Cross correlation and autocorrelation are very similar, but they involve different types of correlation:
- Cross correlation happens when two different sequences are correlated.
- Autocorrelation is the correlation between two of the same sequences. In other words, you correlate a signal with itself.
Caltech. Cross-Correlation. Retrieved September 3, 2019 from: https://ned.ipac.caltech.edu/level5/Sept01/Peterson2/Peter4.html
Derrick, T.R. and Thomas, J.M. (2004). Chapter 7. Time-Series Analysis: The cross-correlation function. In: Innovative Analyses of Human Movement, (pp. 189-205), Stergiou, N. (ed). Human Kinetics Publishers, Champaign, Illinois, 189-205.
Ghosh, S. (2005) Signals and Systems. Pearson Education India.
Smith, S. (2003). Digital Signal Processing: A Practical Guide for Engineers and Scientists. Newnes.
United States Naval Academy. Cross Correlation. Retrieved September 3, 2019 from:https://www.usna.edu/Users/oceano/pguth/md_help/html/time0alq.htm