Autocorrelation, sometimes known as serial correlation in the discrete time case, measures the correlation of a signal with a delayed copy of itself. Essentially, it quantifies the similarity between observations of a random variable at different points in its domain (commonly, time, as in temporal correlation). The analysis of autocorrelation is a mathematical tool for identifying repeating patterns or hidden periodicities within a signal obscured by noise. Autocorrelation is widely used in signal processing, time domain and time series analysis to understand the behavior of data over time. Different fields of study define autocorrelation differently, and not all of these definitions are equivalent. In some fields, the term is used interchangeably with autocovariance. Various time series models incorporate autocorrelation, such as unit root processes, trend-stationary processes, autoregressive processes, and moving average processes.
Autocorrelation of stochastic processes In statistics, the autocorrelation of a real or complex random process is the Pearson correlation between values of the process at different times, as a function of the two times or of the time lag. Let {Xt} be a random process over time and Xt be the random variable at time t. (t may be an integer for a discrete-time process or a real number for a continuous-time process.) Then the definition of the autocorrelation function between times t1 and t2 is
where E is the expected value operator and the bar represents complex conjugation. Note that the expectation may not be well defined. Suppose that the process has mean μt and variance σt2 at time t, for each t. Subtracting the mean before multiplication yields the auto-covariance function between times t1 and t2:
Note that this expression is not well defined for all-time series or processes, because the mean may not exist, or the variance may be zero (for a constant process) or infinite (for processes with distribution lacking well-behaved moments, such as certain types of power law).
Definition for wide-sense stationary stochastic process If {Xt} is a wide-sense stationary process then the mean μ and the variance σ2 are time-independent, and further the autocovariance function depends only on the lag between t1 and t2: the autocovariance depends only on the time-distance between the pair of values but not on their position in time. This further implies that the autocovariance and autocorrelation can be expressed as a function of the time-lag, and that this would be an even function of the lag τ=t2−t1. This gives the more familiar forms for the autocorrelation function
and the auto-covariance function:
In particular, note that KXX(0)=σ2.
Normalization It is common practice in some disciplines (e.g. statistics and time series analysis) to normalize the autocovariance function to get a time-dependent Pearson correlation coefficient. However, in other disciplines (e.g. engineering) the normalization is usually dropped and the terms "autocorrelation" and "autocovariance" are used interchangeably. The definition of the autocorrelation coefficient of a stochastic process is ρXX(t1,t2)=KXX(t1,t2)σt1σt2=E[(Xt1−μt1)(Xt2−μt2)‾]σt1σt2. If the function ρXX is well defined, its value must lie in the range [−1,1], with 1 indicating perfect correlation and −1 indicating perfect anti-correlation. For a wide-sense stationary (WSS) process, the definition is ρXX(τ)=KXX(τ)σ2=E[(Xt+τ−μ)(Xt−μ)‾]σ2. The normalization is important both because the interpretation of the autocorrelation as a correlation provides a scale-free measure of the strength of statistical dependence, and because the normalization has an effect on the statistical properties of the estimated autocorrelations.
Properties
Symmetry property The fact that the autocorrelation function RXX is an even function can be stated as RXX(t1,t2)=RXX(t2,t1)‾ respectively for a WSS process: RXX(τ)=RXX(−τ)‾.
Maximum at zero For a WSS process: |RXX(τ)|≤RXX(0) Notice that RXX(0) is always real.
Cauchy–Schwarz inequality The Cauchy–Schwarz inequality, inequality for stochastic processes: |RXX(t1,t2)|2≤E[|Xt1|2]E[|Xt2|2]
Autocorrelation of white noise The autocorrelation of a continuous-time white noise signal will have a strong peak (represented by a Dirac delta function) at τ=0 and will be exactly 0 for all other τ.
Wiener–Khinchin theorem The Wiener–Khinchin theorem relates the autocorrelation function RXX to the power spectral density SXX via the Fourier transform: RXX(τ)=∫−∞∞SXX(ω)eiωτdωSXX(ω)=∫−∞∞RXX(τ)e−iωτdτ. For real-valued functions, the symmetric autocorrelation function has a real symmetric transform, so the Wiener–Khinchin theorem can be re-expressed in terms of real cosines only: RXX(τ)=∫−∞∞SXX(ω)cos(ωτ)dωSXX(ω)=∫−∞∞RXX(τ)cos(ωτ)dτ.
Autocorrelation of random vectors The (potentially time-dependent) autocorrelation matrix (also called second moment) of a (potentially time-dependent) random vector 𝐗=(X1,…,Xn)T is an n×n matrix containing as elements the autocorrelations of all pairs of elements of the random vector 𝐗. The autocorrelation matrix is used in various digital signal processing algorithms. For a random vector 𝐗=(X1,…,Xn)T containing random elements whose expected value and variance exist, the autocorrelation matrix is defined by
where T denotes transposition of the vector. R𝐗𝐗 is a matrix of dimensions n×n: R𝐗𝐗=[E[X1X1]E[X1X2]⋯E[X1Xn]E[X2X1]E[X2X2]⋯E[X2Xn]⋮⋮⋱⋮E[XnX1]E[XnX2]⋯E[XnXn]] For example, if 𝐗=(X1,X2,X3)T is a random vector, then R𝐗𝐗 is a 3×3 matrix whose (i,j)-th entry is E[XiXj]. If 𝐙 is a complex random vector, the autocorrelation matrix is instead defined by R𝐙𝐙≜ E[𝐙𝐙H]. Here H denotes Hermitian transpose.
Properties of the autocorrelation matrix The autocorrelation matrix is a Hermitian matrix for complex random vectors and a symmetric matrix for real random vectors. The autocorrelation matrix is a positive semidefinite matrix, i.e. 𝐚TR𝐗𝐗𝐚≥0for all 𝐚∈ℝn for a real random vector, and respectively 𝐚HR𝐙𝐙𝐚≥0for all 𝐚∈ℂn in case of a complex random vector. All eigenvalues of the autocorrelation matrix are real and non-negative. The auto-covariance matrix is related to the autocorrelation matrix as follows:K𝐗𝐗=E[(𝐗−E[𝐗])(𝐗−E[𝐗])T]=R𝐗𝐗−E[𝐗]E[𝐗]TRespectively for complex random vectors:K𝐙𝐙=E[(𝐙−E[𝐙])(𝐙−E[𝐙])H]=R𝐙𝐙−E[𝐙]E[𝐙]H
… excerpt ends here. Continue reading the full article.



