<?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>What is autocorrelation?</name>
<metadata>
  <md:version>1.1</md:version>
  <md:created>2006/02/15 08:55:32.122 US/Central</md:created>
  <md:revised>2006/02/15 09:06:09.217 US/Central</md:revised>
  <md:authorlist>
      <md:author id="Brandon_Hodgson">
      <md:firstname>Brandon</md:firstname>
      
      <md:surname>Hodgson</md:surname>
      <md:email>brandon.hodgson@gmail.com</md:email>
    </md:author>
  </md:authorlist>

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

  <md:abstract/>
</metadata>
<content>
<section id="id31329673">
<name>What is autocorrelation?</name>
<para 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 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 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 
<link src="file:///C:/Documents%20and%20Settings/Barney1/My%20Documents/Wits2006/Teletraffic%20engineering/Assignment%202/Html%20files/Autocovariance.htm">
autocovariance</link>(Wikipedia 2006).</para>
<para id="id33758061">In statistics, the autocorrelation of a
discrete 
<link src="file:///C:/Documents%20and%20Settings/Barney1/My%20Documents/Wits2006/Teletraffic%20engineering/Assignment%202/Html%20files/TimeSeries.htm">
time series</link>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 id="id34186851">
<figure id="id33937549">
<media type="image/png" src="b649019848cf9ea45681a1f74712992a"/>
</figure>(1)(Wikipedia 2006)</para>
<para 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 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 id="id34057831">
<figure id="id34057834">
<media type="image/png" src="f58e9aabd35490fe19ce6de9867d4e4c"/>
</figure>(2)(Wikipedia 2006)</para>
<para 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 id="id34354072">Formally, the discrete autocorrelation R at
lag j for signal xn is</para>
<para id="id32980297">
<figure id="id32980300">
<media type="image/png" src="5609ddb2f8b127e19aa3f396a3a12602"/>
</figure>(3)(Wikipedia 2006)</para>
<para 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 id="id34264535">
<figure id="id34264538">
<media type="image/png" src="932daf9f6808bf90d219e97775e2a82c"/>
</figure>(4)(Wikipedia 2006)</para>
<para id="id13265947">Multi-dimensional autocorrelations are
defined similarly.</para>
<para id="id34194566">Example: In three dimensions the
autocorrelation would be defined as</para>
<para id="id32981417">
<figure id="id33575356">
<media type="image/png" src="751bee19b4b334a0a5f88589a41c167b"/>
</figure>(5)(Wikipedia 2006)</para>
<para 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 type="bulleted" id="id32737446">
<item>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 id="id33878738">
<figure id="id33874968">
<media type="image/png" src="abd8da04d1eaad633e29f41c9a74e655"/>
</figure>(6)(Wikipedia 2006)</para>
<para id="id33949776">when f is a real function, and an Hermitian
function</para>
<para id="id5372396">
<figure id="id34055191">
<media type="image/png" src="28b7dc68f25dac34520549659a1354d6"/>
</figure>(7)(Wikipedia 2006)</para>
<para id="id34233767">when f is a complex function.</para>
<list type="bulleted" id="id34105166">
<item>The continuous autocorrelation function reaches its peak at
the origin, where it takes a real value, i.e. for any delay τ, 
<figure id="id32618174">
<media 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 type="bulleted" id="id32594507">
<item>The autocorrelation of a periodic function is, itself,
periodic with the very same period.</item>
</list>
<list type="bulleted" id="id11660536">
<item>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 type="bulleted" id="id33876425">
<item>Since autocorrelation is a specific type of
cross-correlation, it maintains all the properties of
cross-correlation.</item>
</list>
<list type="bulleted" id="id5699774">
<item>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 type="bulleted" id="id12906282">
<item>The Wiener-Khinchin theorem relates the autocorrelation
function to the power spectral density via the Fourier
transform:</item>
</list>
<para id="id34218638">
<figure id="id34218642">
<media type="image/png" src="8cf3336cea1f2be4ae65647151af4cce"/>
</figure>(8)(Wikipedia 2006)</para>
<para id="id33524973">
<figure id="id34048155">
<media type="image/png" src="e1104259b1b8ea4926308e3c01d26a40"/>
</figure>(9)(Wikipedia 2006)</para>
<para id="id15251967">Exercise: What does the following
autocorrelation function depend on?
<figure id="id32726433">
<media type="image/" src="clip_image002"/>
</figure>(10)(Ali 2000)
<link src="file:///C:/Documents%20and%20Settings/Barney1/My%20Documents/Wits2006/Teletraffic%20engineering/Assignment%202/Html%20files/AnswerAutocorrelation.htm"/>
<link src="file:///C:/Documents%20and%20Settings/Barney1/My%20Documents/Wits2006/Teletraffic%20engineering/Assignment%202/Html%20files/AnswerAutocorrelation.htm">
Answer.</link></para>
<para id="id32805191">References:</para>
<para id="id33527863">Ali M. "Probabilistic Systems Analyses : Part
II," University of the Witwatersrand, South Africa, 2000.</para>
<para id="id6456243">Parr J, Phillips C. "Signals, Systems and
Transforms," Prentice Hall, New Jersey, second edition,
1999.</para>
<para id="id13475194">Wikipedia. "Autocorrelation", Wikimedia
Foundation Inc, 
<link src="http://en.wikipedia.org/wiki/Autocorrelation">
http://en.wikipedia.org/wiki/Autocorrelation</link>, Last accessed
14 February 2006.</para>
<para id="id6461295"/>
<para id="id4851897">Brandon Hodgson</para>
</section>
</content>
</document>
