Re: A question about Covariance??
- From: Gordon Sande <g.sande@xxxxxxxxxxxxxxxx>
- Date: Fri, 02 Jun 2006 13:07:54 GMT
On 2006-06-02 07:24:55 -0300, "Rune Allnor" <allnor@xxxxxxxxxxxx> said:
VijaKhara skrev:Dear members,
For two Real Random Process X(t) and Y(t), the cross-covariance is Mean
of ((X(t)-MeanX(t))(Y(t)-MeanY(t)).
I learn that people calculate the correlation of two Random Process to
determine how similar two processes are. I am wondering what is the
target of calculating the covariance? If we want to find out the
similarity of two process, correlation is enough, why we need
covariance?
I think you are wrong. If we want to find the "similarity" between two
general signals, we need to use covariance. Correlation only works if
we want to test zero-mean signals.
Take an example:
x(n) = cos(pi*n/2)+10
y(n)= sin(pi*n/2)+ 3
The cos and sin terms (with zero mean) are orthogonal.
Adding the mean terms destroy this orthiogonality, as is
easily seen:
One period, cos and sin terms only, zero mean:
x1(n) = 1 0 -1 0
y1(n) = 0 1 0 -1
<x1,y1> = 0
Adding the means:
x2(n) = 11 10 9 10
y2(n) = 3 4 3 2
<x2,y2> = 33+40+27+20 = 110
So two signal shapes that ought to be orthogonal
end up with a non-zero correlation by adding a
non-zero mean.
The "spurious" correlation <x2,y2> above can
easily mask the "true" match <y2,y2>, as can
be seen
<y2,y2> = 9 + 16 + 9 +4 = 38 << 110.
Subtracting the means is crucial to find the correct match.
One more thing, correlation is for determine the similarity of two
processes, what is the target of Auto-correlation?
One use is to test for periodic features in the signal.
Rune
The difference between correlation and covariance is scaling and not
centering. Correlation is scaled to lie between -1 and +1. The scale
factor is the product of the two standard deviations (which is of the
same physical dimension like volts) so correlation is a pure number.
Both correlation and covariance are with respect to the mean, or in other
words they are centered.
One expects that what the original poster missed was the extra word "auto"
as in autocorrelation, autocovariance and autocrosscovariance. There is
a terminology problem. The autocovariance is between time offsets of
the same time series while the scalar version is between two different
statistical events. So autocrosscovariance would be needed for time
offsets of differing time series.
In you example the sine times series is zero correlated at offset zero
with the cosine but well correlated (value 1) at an offset of 1/4 period.
The answer to the original question is that the correlation needs to
also specifiy a timing offset. That then involves the extra adjective
of auto as in autocovariance to see if a time series is like itself
but with a delay or autocrosscovariance to see if the one time series
more like the other at some particular delay.
Ask how one detect the other series being a delayed version of the first
series as a simple case where the offset is important.
.
- Follow-Ups:
- Re: A question about Covariance??
- From: Rune Allnor
- Re: A question about Covariance??
- References:
- Re: A question about Covariance??
- From: Rune Allnor
- Re: A question about Covariance??
- Prev by Date: Re: Exam revision
- Next by Date: Re: FFT Chirp Problems MATLAB
- Previous by thread: Re: A question about Covariance??
- Next by thread: Re: A question about Covariance??
- Index(es):
Relevant Pages
|
Loading