comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: a_correlate is wrong...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: a_correlate is wrong... [message #10480] Thu, 11 December 1997 00:00
B}rd Krane is currently offline  B}rd Krane
Messages: 5
Registered: April 1997
Junior Member
William Connolley wrote:
>
> The a_correlate function seems to be wrong to me. Whats wrong is that
> at every lag, the correlation is divided by the total number of elements
> in the series, not by the number-in-series minus the lag. If you take
> a perfectly correlated series, this make the correlations at higher lags
> get artificially smaller.

This is not necessarily wrong, it just gives you a biased estimator
instead of an unbiased estimator. The autocovariance (correlation) is
defined as the ensemble average of two elements separated by k elements

R[k] = < x[i+k] x[i] >

With a finite record length the average for the maximum lag contains
only one entry and is highly unreliable. Thus it is sometimes given
a smaller weight, i.e. divide by N instead of 1.
This is a sloppy explanation, but it should give you the necessary
starting points for further reading, e.g.
Modern Spectral Estimation
Steven M. Kay
ISBN 0-13-598582-x

Baard


------------------------------------------------------------ ------
B{\aa}rd Krane | Email : bard.krane@fys.uio.no
Institute of Physics | Phone : (+47) 2285 5666
University of Oslo | Fax : (+47) 2285 5671
POB 1048, blindern, N-0316 Norway |
------------------------------------------------------------ ------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: command-file
Next Topic: a_correlate is wrong...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:59:16 PDT 2025

Total time taken to generate the page: 0.40321 seconds