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

Home » Public Forums » archive » 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
a_correlate is wrong... [message #10481] Thu, 11 December 1997 00:00
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
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.

Eg:

a=sin(indgen(12*16)*!pi/4.)
plot,a_correlate(a,indgen(12*8))

At least, it seems to me that the correlations at high lags should be
corrected for having fewer elements - I confess I'm not perfectly sure
of my statistics here!

- William (back now iTSS have fixed our news poster...)

ps - this is v5.03. Pre v5 was even worse...

---
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: a_correlate is wrong...
Next Topic: Re: Deleting and erasing lines

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

Current Time: Fri Oct 10 16:31:00 PDT 2025

Total time taken to generate the page: 0.72009 seconds