The first of these correlation functions we will discuss is
the
autocorrelation, where each of the random
variables we will deal with come from the same random process.
Definition 1:
Autocorrelation
the expected value of the product of a random variable or
signal realization with a time-shifted version of itself
With a simple calculation and analysis of the autocorrelation
function, we can discover a few important characteristics
about our random process. These include:
-
How quickly our random signal or processes changes with
respect to the time function
-
Whether our process has a periodic component and what the
expected frequency might be
As was mentioned above, the autocorrelation function is simply
the expected value of a product. Assume we have a pair of
random variables from the same process,
X
1
=X
t
1
X
1
X
t
1
and
X
2
=X
t
2
X
2
X
t
2
, then the autocorrelation is often written as
R
xx
t
1
t
2
=E
X
1
X
2
=∫-∞∞∫-∞∞
x
1
x
2
f
x
1
x
2
d
x
2
d
x
1
R
xx
t
1
t
2
X
1
X
2
x
1
x
2
x
1
x
2
f
x
1
x
2
(1)
The above equation is valid for stationary and nonstationary
random processes. For
stationary processes, we can generalize
this expression a little further. Given a wide-sense
stationary processes, it can be proven that the expected
values from our random process will be independent of the
origin of our time function. Therefore, we can say that our
autocorrelation function will depend on the time difference
and not some absolute time. For this discussion, we will let
τ=
t
2
-
t
1
τ
t
2
t
1
, and thus we generalize our autocorrelation
expression as
R
xx
tt+τ=
R
xx
τ=EXtXt+τ
R
xx
t
t
τ
R
xx
τ
X
t
X
t
τ
(2)
for the continuous-time case. In most DSP course we will be
more interested in dealing with real signal sequences, and thus
we will want to look at the discrete-time case of the
autocorrelation function. The formula below will prove to be
more common and useful than
Equation 1:
R
xx
nn+m=∑n=-∞∞xnxn+m
R
xx
n
n
m
n
x
n
x
n
m
(3)
And again we can generalize the notation for our
autocorrelation function as
R
xx
nn+m=
R
xx
m=EXnXn+m
R
xx
n
n
m
R
xx
m
X
n
X
n
m
(4)
Estimating the Autocorrleation with Time-Averaging
Sometimes the whole random process is not available to us.
In these cases, we would still like to be able to find out
some of the characteristics of the stationary random
process, even if we just have part of one sample function.
In order to do this we can
estimate the
autocorrelation from a given interval,
0 0 to
T
T seconds, of the sample function.
Ř
xx
τ=1T-τ∫0T-τxtxt+τdt
Ř
xx
τ
1
T
τ
t
T
τ
0
x
t
x
t
τ
(5)
However, a lot of times we will not have sufficient
information to build a complete continuous-time function of
one of our random signals for the above analysis. If this
is the case, we can treat the information we do know about
the function as a discrete signal and use the discrete-time
formula for estimating the autocorrelation.
Ř
xx
m=1N-m∑n=0N-m-1xnxn+m
Ř
xx
m
1
N
m
n
N
m
1
0
x
n
x
n
m
(6)