This is documentation for an old release of NumPy (version 1.6.0). Read this page in the documentation of the latest stable release (version > 1.17).
Return correlation coefficients.
Please refer to the documentation for cov for more detail. The relationship between the correlation coefficient matrix, P, and the covariance matrix, C, is
The values of P are between -1 and 1, inclusive.
Parameters : | x : array_like
y : array_like, optional
rowvar : int, optional
bias : int, optional
ddof : {None, int}, optional
|
---|---|
Returns : | out : ndarray
|
See also