📊 Statistics Calculator

Compute descriptive statistics, a frequency distribution and a histogram, including sample variance, for data analysis and teaching.

📐 计算公式 / 原理
Descriptive statistics (page-code conventions; data separated by commas, spaces, newlines or semicolons): mean x̄=Σx÷n; variance=Σ(x−x̄)²÷(n−1) for a sample or ÷n for a population; s=√variance; SE=s÷√n; Q1/Q3 use (n−1)p linear interpolation and IQR=Q3−Q1; skewness and kurtosis are given for both sample and population (kurtosis is excess kurtosis). Validation: no valid data shows "Please enter data"; sample type with n<2 shows "Sample variance needs at least 2 data points". Interpretation: skewness>0 right-skewed, <0 left-skewed; kurtosis>0 peak heavier/taller than normal, <0 flatter; skewness≈0 or kurtosis≈0 only means the sample moment is near the reference value, not proof of symmetry or normality. Histogram bin count uses Sturges ⌈log₂n+1⌉ clamped to [1,50].
Descriptive statistics: mean, sample variance and standard deviation, range, median and quartiles. Sample variance uses n−1 (Bessel correction) for an unbiased estimate; population variance uses N.
Statistics keep at most 3 decimals; nonzero values below 0.001 keep 6 significant digits, and absolute values below 1e-6 use scientific notation.

📚 深度解析:统计计算器

💡 常见使用场景

  • 描述统计与推断一键算。
  • 一站式得到描述统计量与常用检验统计量。
计算
[2,4,6,8] 均值 5、方差 6.67(样本)。

❓ 常见问题(FAQ)

偏度峰度?
描述分布不对称与尖峭程度。
偏度为 0 就是正态吗?
不一定,还需结合峰度与分布图综合判断。

Formula & Standard References

Item Formula / Note Source / Standard
Descriptive stats mean x̄=Σx/n; sd s=√(Σ(x−x̄)²/(n−1)) ISO 3534-1 Statistics vocabulary
⚠️ 使用说明与注意事项