ArticleslgStudy

science

Autocorrelation

Autocorrelation is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Autocorrelation rather than just read about it. In short: 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).

Autocorrelation — main illustration
Autocorrelation — illustration

Key takeaways

  • Autocorrelation belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Autocorrelation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Autocorrelation from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Autocorrelation: Above: A plot of a series of 100 random numbers concealing a sine function. Below: Its correlogram plots the autocorrelation function (ACF) of the series on the y-axis for every lag on the x-axis. Peaks occur at lags where the series is highly correlated with itself. Peaks to the right of the initial peak at lag 0 indicate periodicity in the series and help estimate the concealed sine's period.
Above: A plot of a series of 100 random numbers concealing a sine function. Below: Its correlogram plots the autocorrelation function (ACF) of the series on the y-axis for every lag on the x-axis. Peaks occur at lags where the series is highly correlated with itself. Peaks to the right of the initial peak at lag 0 indicate periodicity in the series and help estimate the concealed sine's period.
Autocorrelation: Visual comparison of convolution, cross-correlation, and autocorrelation.  For the operations involving function .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}f, and assuming the height of f is 1.0, the value of the result at 5 different points is indicated by the shaded area below each point.  Also, the symmetry of f is the reason g∗f and f⋆g are identical in this example.
Visual comparison of convolution, cross-correlation, and autocorrelation. For the operations involving function .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}f, and assuming the height of f is 1.0, the value of the result at 5 different points is indicated by the shaded area below each point. Also, the symmetry of f is the reason g∗f and f⋆g are identical in this example.
Autocorrelation illustration

Worked examples

Example 1 — a first encounter with Autocorrelation

Start with the simplest possible case. Write down what Autocorrelation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Autocorrelation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Autocorrelation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Autocorrelation

In research
Autocorrelation appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Autocorrelation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Autocorrelation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Autocorrelation, Signal processing, Time domain analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Autocorrelation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Autocorrelation” →

How to study Autocorrelation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Autocorrelation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Autocorrelation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Autocorrelation in simple terms?

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…

Why does Autocorrelation matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Autocorrelation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Autocorrelation.

Tags

  • Autocorrelation
  • Signal processing
  • Time domain analysis

Keep exploring