numpy/scipy: correlation

Robert Kern robert.kern at
Sat Nov 11 13:09:49 CET 2006

robert wrote:
> Is there a ready made function in numpy/scipy to compute the correlation y=mx+o of an X and Y fast: 
> m, m-err, o, o-err, r-coef,r-coef-err ?

numpy and scipy questions are best asked on their lists, not here. There are a
number of people who know the capabilities of numpy and scipy through and
through, but most of them don't hang out on comp.lang.python.

scipy.optimize.leastsq() can be told to return the covariance matrix of the
estimated parameters (m and o in your example; I have no idea what you think
r-coeff is).

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the Python-list mailing list