naginterfaces.library.correg.coeffs_​zero

naginterfaces.library.correg.coeffs_zero(x)[source]

coeffs_zero computes means and standard deviations of variables, sums of squares and cross-products about zero, and correlation-like coefficients for a set of data.

For full information please refer to the NAG Library document for g02bd

https://support.nag.com/numeric/nl/nagdoc_30.1/flhtml/g02/g02bdf.html

Parameters
xfloat, array-like, shape

must be set to the value of , the th observation on the th variable, for , for .

Returns
xbarfloat, ndarray, shape

contains the mean value, , of the th variable, for .

stdfloat, ndarray, shape

The standard deviation, , of the th variable, for .

sspzfloat, ndarray, shape

is the cross-product about zero, , for , for .

rzfloat, ndarray, shape

is the correlation-like coefficient, , between the th and th variables, for , for .

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

The input data consists of observations for each of variables, given as an array

where is the th observation on the th variable.

The quantities calculated are:

  1. Means:

  2. Standard deviations:

  3. Sums of squares and cross-products about zero:

  4. Correlation-like coefficients:

    If or is zero, is set to zero.