naginterfaces.library.stat.summary_​onevar_​combine

naginterfaces.library.stat.summary_onevar_combine(mrcomm)[source]

summary_onevar_combine combines sets of summaries produced by summary_onevar().

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

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/g01/g01auf.html

Parameters
mrcommfloat, array-like, shape

The th column of must contain the information returned in from one of the runs of summary_onevar().

Returns
pnint

The number of valid observations, that is the number of observations with , for .

xmeanfloat

, the mean.

xsdfloat

, the standard deviation.

xskewfloat

, the coefficient of skewness.

xkurtfloat

, the coefficient of kurtosis.

xminfloat

The smallest value.

xmaxfloat

The largest value.

rcommfloat, ndarray, shape

An amalgamation of the information held in . This is in the same format as from summary_onevar().

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

On entry, is not in the expected format.

Warns
NagAlgorithmicWarning
(errno )

On entry, the number of valid observations is zero.

(errno )

On exit we were unable to calculate or . A value of has been returned.

(errno )

On exit we were unable to calculate , or . A value of has been returned.

Notes

Assume a dataset containing observations, denoted by and a set of weights, , has been split into blocks, and each block summarised via a call to summary_onevar(). Then summary_onevar_combine takes the communication arrays returned by summary_onevar() and returns the mean (), standard deviation (), coefficients of skewness () and kurtosis (), and the maximum and minimum values for the whole dataset.

For a definition of and see Notes for summary_onevar.

References

West, D H D, 1979, Updating mean and variance estimates: An improved method, Comm. ACM (22), 532–555