ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> numpy-discussion
numpy-discussion
[Numpy-discussion] Definition of correlation, correlate and so on ?
by David Cournapeau other posts by this author
Dec 11 2006 11:52PM messages near this date
[Numpy-discussion] Installation - Numpy 1.0.1 Suse Linux 10.1 | Re: [Numpy-discussion] Definition of correlation, correlate and so on ?
Hi,

    I am polishing some code to compute autocorrelation using fft, and 
when testing the code against numpy.correlate, I realised that I am not 
sure about the definition... There are various function related to 
correlation as far as numpy/scipoy is concerned:
   
    numpy.correlate
    numpy.corrcoef
    scipy.signal.correlate

    For me, the correlation between two sequences X and Y at lag t is 
the sum(X[i] * Y*[i+lag]) where Y* is the complex conjugate of Y. 
numpy.correlate does not use the conjugate, scipy.signal.correlate as 
well, and I don't understand numpy.corrcoef. I've never seen complex 
correlation used without the conjugate, so I was curious why this 
definition was used ? It is incompatible with the correlation as a 
scalar product, for example.

    Could someone give the definition used by those function ?

    cheers,

    David
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Thread:
David Cournapeau
Charles R Harris
Travis Oliphant
Alan G Isaac
David Huard
Pierre GM
David Cournapeau
Tim Hochberg
David Cournapeau
Alan G Isaac

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved