Loading [MathJax]/jax/output/HTML-CSS/jax.js
SciPy

This is documentation for an old release of SciPy (version 0.17.0). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.stats.kstatvar

scipy.stats.kstatvar(data, n=2)[source]

Returns an unbiased estimator of the variance of the k-statistic.

See kstat for more details of the k-statistic.

Parameters:

data : array_like

Input array. Note that n-D input gets flattened.

n : int, {1, 2}, optional

Default is equal to 2.

Returns:

kstatvar : float

The nth k-statistic variance.

See also

kstat
Returns the n-th k-statistic.
moment
Returns the n-th central moment about the mean for a sample.

Notes

The variances of the first few k-statistics are given by:

var(k1)=κ2nvar(k2)=κ4n+2κ22n1var(k3)=κ6n+9κ2κ4n1+9κ23n1+6nκ32(n1)(n2)var(k4)=κ8n+16κ2κ6n1+48κ3κ5n1+34κ24n1+72nκ22κ4(n1)(n2)+144nκ2κ23(n1)(n2)+24(n+1)nκ42(n1)(n2)(n3)

Previous topic

scipy.stats.kstat

Next topic

scipy.stats.tmean