Expand description
More location, scale and shape summaries, following scipy.stats: trimmed means (trim_mean),
standard scores (zscore), the mode, circular statistics (circmean, circvar,
circstd), and the maximum-likelihood Box-Cox transform (boxcox, boxcox_llf,
boxcox_normmax).
See the book entry More descriptive statistics and robust regression.
Functions§
- boxcox
- The maximum-likelihood Box-Cox transform of positive data and its
λ(SciPy’sstats.boxcox). - boxcox_
llf - The Box-Cox profile log-likelihood of
λfor positive data (SciPy’sboxcox_llf):(λ − 1) Σ ln xᵢ − (n/2) ln σ̂²(λ), whereσ̂²is the variance (ddof = 0) of the transformed data. - boxcox_
normmax - The
λthat maximisesboxcox_llf(SciPy’sboxcox_normmaxwithmethod='mle'): the power that makes the data most nearly normal. A golden-section search on[−2, 2], widened while the maximum sits at an end of the interval. - circmean
- The circular mean of angles with period
high − low(SciPy’scircmean; use0and2πfor radians): the direction of the mean resultant vector, mapped into[low, high). - circstd
- The circular standard deviation
√(−2 ln R), in the units of the angles (SciPy’scircstd). It approaches the ordinary standard deviation for concentrated angles. - circvar
- The circular variance
1 − R(SciPy’scircvar), between 0 (all angles equal) and 1. - mode
- The most frequent value and its count; ties go to the smallest value (SciPy’s
mode). - trim_
mean - The mean after removing the
⌊proportion · n⌋smallest and largest values (SciPy’strim_mean). Withproportion = 0it is the mean; as it approaches ½ it approaches the median. - zscore
- The standard scores
(xᵢ − x̄)/swithscomputed withddofdegrees of freedom removed (SciPy’szscore, whose default isddof = 0).