STATISTICS CALCULATOR
统计计算器,描述数据全貌一遍算出。
输入一组数据即算计数、求和、平均、中位数、众数、极差、方差与标准差,并给出四分位数与分布直方图。浏览器本地运行,不上传。
数据输入(支持空格、逗号、换行或 CSV)
统计结果
分布直方图
本页处理在浏览器本地完成
这个工具能做什么?
粘贴任意一组数字(空格、逗号、换行或 CSV 均可),一次得到计数、求和、平均数、中位数、众数、极差、方差、标准差、最小/最大值与上下四分位数,并按区间绘制分布直方图。标准差可切换「总体」与「样本」口径,适合作业、成绩单分析和快速了解一组数据的集中与离散趋势。全部在浏览器本地完成。
常见问题
总体标准差和样本标准差有什么区别?
样本标准差用 n−1 作分母,用于估计总体的离散程度(更常用);总体标准差用 n 作分母,用于描述已知的完整总体。勾选框可随时切换。
众数有多个怎么办?
若存在多个出现次数相同且最多的值,会全部列出并用顿号分隔;若每个值只出现一次,则显示「无众数」。
示例与注意事项Example & notes
一个例子A worked example
算一组成绩的平均分与标准差:把「82 91 76 88 95」粘进去(或直接贴 CSV 的一列),一次得到计数 5、求和 432、平均 86.4、中位数 88、众数无、标准差 6.87 与分布直方图。For a set of scores: paste "82 91 76 88 95" (or a CSV column) and you get count 5, sum 432, mean 86.4, median 88, no mode, standard deviation 6.87 and a distribution histogram.
注意事项Things to watch
- 标准差区分总体与样本两种口径:本页默认按总体计算(除以 n),若做抽样推断请改用 n−1。Standard deviation comes in population and sample flavours: this page uses the population form (divide by n); for inference from a sample use n−1.
- 偶数个数据的中位数取中间两个数的平均,因此可能不是原数据里出现过的值。With an even count the median is the mean of the two middle values, so it may not be a value that appears in the data.
- 众数可能不止一个;没有重复值时本页显示「无众数」而不是硬凑一个。There can be several modes; when nothing repeats the page says "no mode" rather than inventing one.
相关问答More Q&A
平均数和中位数该用哪个?Should I use the mean or the median?
看分布是否对称:正态、均匀的数据两者接近;收入、房价这类右偏数据用中位数更代表「典型水平」,因为少数极大值会把平均数拉高。本页两个都给出,方便对比判断。It depends on the shape: for symmetric data the two are close; for right-skewed data like income or house prices the median better represents the typical case, because a few huge values drag the mean up. This page shows both so you can compare.
标准差越大说明什么?What does a large standard deviation mean?
说明数据分散、个体差异大:比如两个班的平均分都是 85,一班标准差 3 说明大家水平接近,另一班标准差 15 说明强弱分化明显。It means the data is spread out and individuals differ a lot: two classes may both average 85, but a standard deviation of 3 means the levels are close while 15 means a wide gap between strong and weak students.