Expand description
Descriptive statistics of a sample.
See the book entry Descriptive statistics.
Structs§
- Summary
- A summary of a sample.
Functions§
- excess_
kurtosis - The excess kurtosis
g₂ = m₄ / m₂² − 3(biased; 0 for a normal distribution). - geometric_
mean - The geometric mean (all values positive).
- harmonic_
mean - The harmonic mean (all values positive).
- interquartile_
range - The interquartile range
Q3 − Q1. - mean
- The arithmetic mean.
- median
- The median.
- median_
absolute_ deviation - The median absolute deviation
median(|x − median(x)|), scaled byscale(1.4826 makes it a consistent estimator of σ for normal data). - quantile
- The
p-quantile (0 ≤ p ≤ 1) by linear interpolation between order statistics ath = (n − 1)p(Hyndman and Fan type 7, the default of R and NumPy). - skewness
- The sample skewness
g₁ = m₃ / m₂^{3/2}(biased, asscipy.stats.skewby default). - standard_
deviation - The standard deviation with
ddofdelta degrees of freedom. - standard_
error - The standard error of the mean,
s / √n. - summary
- Count, mean, standard deviation and the five-number summary.
- variance
- The variance with
ddofdelta degrees of freedom:Σ(x − x̄)² / (n − ddof)(1 for the unbiased sample variance, 0 for the population variance). Two-pass for accuracy. - weighted_
mean - The weighted mean
Σ wᵢxᵢ / Σ wᵢ.