Lably
Skip to content

Autocorrelation

Correlation of a signal with a time-shifted copy of itself, as a function of shift

  • 20 min read
  • 10 chapters

Related on Lably

Through Correlation, Signal and Random variable

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

RXX⁡(t1,t2)=E⁡[Xt1X¯t2]

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:

KXX⁡(t1,t2)=E⁡[(Xt1−μt1)(Xt2−μt2)¯]=E⁡[Xt1X¯t2]−μt1μ¯t2=RXX⁡(t1,t2)−μt1μ¯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

RXX⁡(τ)=E⁡[Xt+τX¯t]

and the auto-covariance function:

KXX⁡(τ)=E⁡[(Xt+τ−μ)(Xt−μ)¯]=E⁡[Xt+τX¯t]−μμ¯=RXX⁡(τ)−μμ¯

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τ.

Sign in to keep reading

9 more chapters are free with a Lably account.

More in Statistics and probability