Re: a_correlate is wrong... [message #10480] |
Thu, 11 December 1997 00:00 |
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 |
------------------------------------------------------------ ------
|
|
|