crosscorrelations
Cross-correlation is a statistical measure of similarity between two signals as a function of the displacement of one relative to the other. It is commonly used to detect time delays, align signals, or quantify how well two signals match after shifting.
For continuous-time signals f(t) and g(t), the cross-correlation is defined as R_fg(τ) = ∫_{-∞}^{∞} f(t) g(t+τ) dt. If
In the context of stochastic processes, the cross-covariance function between X(t) and Y(t) with means μ_X and
Cross-correlation is closely related to convolution: it can be computed as a convolution with one sequence
Practical considerations include non-stationarity, finite-sample bias, edge effects, and the need to subtract means or detrend