Standard Deviation Calculator
Calculate sample and population spread from a list of numbers
Enter at least two values for sample standard deviation.
How standard deviation is calculated
Standard deviation measures how far values typically sit from their mean. Paste values separated by spaces, commas, semicolons or new lines, then choose whether the list is a sample or the complete population.
Formulas
population variance = sum((x - mean)^2) / n
standard deviation = square root of variance
Interpretation
A smaller result means the values cluster more tightly around the mean. The result uses full precision internally and rounds only for display.
Sample or population?
Use the population formula only when your list contains every member of the group you want to describe, such as the scores of a whole class or every measurement of a single batch. Use the sample formula whenever the list is a subset used to infer something about a larger group. The sample denominator n − 1 corrects for the fact that a sample mean sits closer to its own data than the true mean does, which would otherwise understate the spread. The difference matters most for small samples and becomes negligible above about thirty values.
Reading the result alongside the mean
A standard deviation has the same units as the data, so a mean of 50 with a standard deviation of 5 describes a tight cluster, while the same mean with a standard deviation of 20 describes widely scattered values. Roughly two thirds of values in a bell-shaped distribution fall within one standard deviation of the mean and about 95% within two, which is the basis of the empirical rule. A single extreme value inflates the result noticeably, so check for data-entry mistakes and consider the range and interquartile range when the distribution is skewed.
标准差如何计算
标准差表示数据通常偏离平均值的程度。输入用空格、逗号、分号或换行分隔的数据,再选择样本或总体口径。
公式
总体方差 = Σ((x - 平均值)^2) / n
标准差 = 方差的平方根
如何理解
结果越小,数据越集中在平均值附近。计算内部保留完整精度,只在显示时舍入。
该用样本还是总体
只有当列表包含你想描述的那一组的全部成员时(例如全班成绩,或同一批次的全部测量值),才用总体公式;只要列表是用以推断更大群体的子集,就应用样本公式。样本分母 n − 1 的修正,是因为样本均值比真实均值更贴近自身数据,否则会低估离散程度。该差别在小样本时最明显,超过约三十个数值后就基本可忽略。
与平均值一起看
标准差与数据同单位:平均值为 50、标准差为 5 表示数据紧密聚拢;同样的平均值而标准差为 20 则表示数值非常分散。在钟形分布中,约三分之二的数值落在平均值正负一个标准差内,约 95% 落在正负两个标准差内,这就是经验法则的基础。个别极端值会明显抬高结果,建议检查录入错误;分布偏斜时还应同时参考极差与四分位距。
Frequently Asked Questions
When should I use sample standard deviation?
Use the sample formula when your list represents part of a larger population. It divides by n - 1.
When should I use population standard deviation?
Use the population formula when the list contains every member of the group you want to describe. It divides by n.
How should I enter values?
Separate numbers with commas, spaces, semicolons or new lines.
What is the difference between variance and standard deviation?
Variance is the average squared distance from the mean, so it is expressed in squared units. Standard deviation is its square root and returns to the original units, which makes it easier to interpret.
Does one outlier change the result much?
Yes. Because each value is squared, a single extreme value raises the standard deviation noticeably more than a cluster of moderate ones. Check for entry errors and look at the range as well.