Cross-correlation
Cross-correlation is a fundamental concept in statistics and signal processing that measures the degree of similarity between two signals or time series as a function of the temporal displacement, or lag, between them.[1] For two continuous-time signals f(t) and g(t), the cross-correlation function is mathematically defined as (f \star g)(\tau) = \int_{-\infty}^{\infty} f^*(t) g(t + \tau) \, dt, where ^* denotes the complex conjugate and \tau represents the lag; this formulation generalizes to discrete-time signals as \sum_n f^*(n) g(n + l) for integer lags l.[1] Unlike autocorrelation, which assesses a signal's similarity to itself, cross-correlation evaluates relationships between distinct signals, providing insights into their statistical dependencies without assuming commutativity.[2] In signal processing, cross-correlation serves as an estimator for stationary stochastic processes, often computed via the discrete Fourier transform for efficiency, yielding the cross-spectral density as \hat{R}_{xy}(\omega_k) = \frac{\overline{X(\omega_k)} Y(\omega_k)}{N}.[1] It is essential for tasks such as detecting periodicities, aligning signals, and filtering noise, with applications extending to fields like audio analysis where it helps identify echoes or delays.[1] In statistics, particularly time series analysis, the sample cross-correlation function (CCF) quantifies lagged linear associations between variables, aiding in model identification for processes like ARIMA.[1] Cross-correlation also plays a key role in neuroscience for characterizing interactions between neural spike trains, such as computing spike-triggered averages to infer stimulus-response relationships, and in physics for analyzing correlations in experimental data.[2] Its origins trace back to early 20th-century statistical theory, with significant advancements by Norbert Wiener in the 1940s through his work on stochastic processes and filtering, which formalized its use in systems analysis.[3] Modern implementations, such as MATLAB'sxcorr function, facilitate its computation for practical research across disciplines.[2]