<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN" "http://cnx.rice.edu/technology/cnxml/schema/dtd/0.5/cnxml_plain.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id16296320">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">What is autocorrelation?</name>
<metadata xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">
  <md:version xmlns:bib="http://bibtexml.sf.net/">1.3</md:version>
  <md:created xmlns:bib="http://bibtexml.sf.net/">2006/02/15 08:55:32 US/Central</md:created>
  <md:revised xmlns:bib="http://bibtexml.sf.net/">2008/07/21 03:10:56.643 GMT-5</md:revised>
  <md:authorlist xmlns:bib="http://bibtexml.sf.net/">
      <md:author xmlns:bib="http://bibtexml.sf.net/" id="Brandon_Hodgson">
      <md:firstname xmlns:bib="http://bibtexml.sf.net/">Brandon</md:firstname>
      
      <md:surname xmlns:bib="http://bibtexml.sf.net/">Hodgson</md:surname>
      <md:email xmlns:bib="http://bibtexml.sf.net/">brandon.hodgson@gmail.com</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist xmlns:bib="http://bibtexml.sf.net/">
    <md:maintainer xmlns:bib="http://bibtexml.sf.net/" id="Brandon_Hodgson">
      <md:firstname xmlns:bib="http://bibtexml.sf.net/">Brandon</md:firstname>
      
      <md:surname xmlns:bib="http://bibtexml.sf.net/">Hodgson</md:surname>
      <md:email xmlns:bib="http://bibtexml.sf.net/">brandon.hodgson@gmail.com</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist xmlns:bib="http://bibtexml.sf.net/">
    <md:keyword xmlns:bib="http://bibtexml.sf.net/">elen5007</md:keyword>
  </md:keywordlist>

  <md:abstract xmlns:bib="http://bibtexml.sf.net/"/>
</metadata>
<content xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">
<section xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id31329673">
<name xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">What is autocorrelation?</name>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id15257122">Correlation is a mathematical tool used
frequently in signal processing for analysing functions or series
of values, such as time domain signals (Wikipedia 2006).
Correlation is the mutual relationship between two or more random
variables (Ali). Autocorrelation is the correlation of a signal
with itself (Parr 1999). This is unlike cross-correlation, which is
the correlation of two different signals (Parr 1999).</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id7185696">Autocorrelation is useful for finding
repeating patterns in a signal, such as determining the presence of
a periodic signal which has been buried under noise, or identifying
the fundamental frequency of a signal which doesn't actually
contain that frequency component, but implies it with many harmonic
frequencies (Wikipedia 2006).</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id7185700">Different definitions of autocorrelation are
in use depending on the field of study which is being considered
and not all of them are equivalent (Wikipedia 2006). In some
fields, the term is used interchangeably with autocovariance(Wikipedia 2006).</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33758061">In statistics, the autocorrelation of a
discrete time series or a process Xt is simply the correlation of the
process against a time-shifted version of itself (Wikipedia 2006).
If Xt is second-order stationary with mean μ then this definition
is</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34186851">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33937549">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="b649019848cf9ea45681a1f74712992a"/>
</figure>(1)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id13605436">where E is the expected value and k is the
time shift being considered (usually referred to as the lag)
(Wikipedia 2006). This function has the attractive property of
being in the range [−1, 1] with 1 indicating perfect
correlation (the signals exactly overlap when time shifted by k)
and −1 indicating perfect anti-correlation (Wikipedia 2006). It is
common practice in many disciplines to drop the normalisation by σ2
and use the term autocorrelation interchangeably with
autocovariance (Wikipedia 20006).</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33708286">In signal processing, given a signal f(t),
the continuous autocorrelation Rf(τ) is the continuous
cross-correlation of f(t) with itself, at lag τ, and is defined
as:</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34057831">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34057834">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="f58e9aabd35490fe19ce6de9867d4e4c"/>
</figure>(2)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id4632620">where f* represents the complex conjugate and
the circle represents convolution (Wikipedia 2006). For a real
function, f* = f (Wikipedia 2006).</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34354072">Formally, the discrete autocorrelation R at
lag j for signal xn is</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id32980297">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id32980300">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="5609ddb2f8b127e19aa3f396a3a12602"/>
</figure>(3)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34287771">where m is the average value (expected value)
of xn. Frequently, autocorrelations are calculated for
zero-centered signals, that is, for signals with zero mean
(Wikipedia 2006). The autocorrelation definition then
becomes</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34264535">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34264538">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="932daf9f6808bf90d219e97775e2a82c"/>
</figure>(4)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id13265947">Multi-dimensional autocorrelations are
defined similarly.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34194566">Example: In three dimensions the
autocorrelation would be defined as</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id32981417">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33575356">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="751bee19b4b334a0a5f88589a41c167b"/>
</figure>(5)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id32737442">The properties of autocorrelation are
discussed in the following list. The properties are for
one-dimensional autocorrelations only, but can easily be
transferred to multi-dimensional cases (Wikipedia 2006). This list
is extracted from (Wikipedia 2006).</para>
<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="bulleted" id="id32737446">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">A fundamental property of the autocorrelation is symmetry,
R(i) = R(−i), which is easy to prove from the definition.
In the continuous case, the autocorrelation is an even
function</item>
</list>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33878738">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33874968">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="abd8da04d1eaad633e29f41c9a74e655"/>
</figure>(6)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33949776">when f is a real function, and an Hermitian
function</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id5372396">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34055191">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="28b7dc68f25dac34520549659a1354d6"/>
</figure>(7)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34233767">when f is a complex function.</para>
<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="bulleted" id="id34105166">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">The continuous autocorrelation function reaches its peak at
the origin, where it takes a real value, i.e. for any delay τ, 
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id32618174">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="d99f67bdd96b68c50e9e65e622b82853"/>
</figure>. This is a consequence of the Cauchy-Schwarz inequality.
The same result holds in the discrete case.</item>
</list>
<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="bulleted" id="id32594507">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">The autocorrelation of a periodic function is, itself,
periodic with the very same period.</item>
</list>
<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="bulleted" id="id11660536">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">The autocorrelation of the sum of two completely uncorrelated
functions (the cross-correlation is zero for all τ) is the sum of
the autocorrelations of each function separately.</item>
</list>
<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="bulleted" id="id33876425">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">Since autocorrelation is a specific type of
cross-correlation, it maintains all the properties of
cross-correlation.</item>
</list>
<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="bulleted" id="id5699774">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">The autocorrelation of a white noise signal will have a
strong peak at τ = 0 and will be close to 0 for all other
τ. This shows that a sampled instance of a white noise signal is
not statistically correlated to a sample instance of the same white
noise signal at another time.</item>
</list>
<list xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="bulleted" id="id12906282">
<item xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/">The Wiener-Khinchin theorem relates the autocorrelation
function to the power spectral density via the Fourier
transform:</item>
</list>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34218638">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34218642">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="8cf3336cea1f2be4ae65647151af4cce"/>
</figure>(8)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33524973">
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id34048155">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/png" src="e1104259b1b8ea4926308e3c01d26a40"/>
</figure>(9)(Wikipedia 2006)</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id15251967">Exercise: What does the following
autocorrelation function depend on?
<figure xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id32726433">
<media xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" type="image/" src="clip_image002"/>
</figure>(10)(Ali 2000)
</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id32805191">References:</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id33527863">Ali M. "Probabilistic Systems Analyses : Part
II," University of the Witwatersrand, South Africa, 2000.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6456243">Parr J, Phillips C. "Signals, Systems and
Transforms," Prentice Hall, New Jersey, second edition,
1999.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id13475194">Wikipedia. "Autocorrelation", Wikimedia
Foundation Inc, 
<link xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" src="http://en.wikipedia.org/wiki/Autocorrelation">
http://en.wikipedia.org/wiki/Autocorrelation</link>, Last accessed
14 February 2006.</para>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id6461295"/>
<para xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id4851897">Brandon Hodgson</para>
</section>
</content>
</document>
