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
Notes
The variances of the first few k-statistics are given by:
var(k1)=κ2nvar(k2)=κ4n+2κ22n−1var(k3)=κ6n+9κ2κ4n−1+9κ23n−1+6nκ32(n−1)(n−2)var(k4)=κ8n+16κ2κ6n−1+48κ3κ5n−1+34κ24n−1+72nκ22κ4(n−1)(n−2)+144nκ2κ23(n−1)(n−2)+24(n+1)nκ42(n−1)(n−2)(n−3)