四分位数计算器
求一组数据的五数概括——最小值、Q1、中位数、Q3 和最大值——以及四分位距和箱线图所需的异常值。
结果
输入数值并点击“计算”查看结果。
公式
The spread of the middle half of the data.
A value outside these fences is an outlier.
如何使用此计算器
- Enter at least 4 numbers separated by commas, spaces or new lines.
- Press Calculate to get the five-number summary, the IQR and any outliers.
例题
Eight test scores
Sorted: 2, 4, 4, 5, 6, 7, 8, 30. The median is (5 + 6) ÷ 2 = 5.5.
Lower half 2, 4, 4, 5 gives Q1 = 4; upper half 6, 7, 8, 30 gives Q3 = 7.5.
IQR = 7.5 − 4 = 3.5. The fences are −1.25 and 12.75, so 30 is an outlier.
常见问题
Why does my spreadsheet give different quartiles?
There are several quartile methods. Sumzo uses the median-of-halves method taught in most schools; spreadsheet functions such as QUARTILE often interpolate instead.
Is the median included in the halves?
No. With an odd number of values the middle one is left out of both halves.