关于平均数、中位数与众数计算器
The mean is the sum of the values divided by how many there are. The median is the middle value once the data are sorted: the value at position (n + 1) ÷ 2 when n is odd, and the average of the two middle values when n is even. The mode is the value that occurs most often, and the range is the largest value minus the smallest.
For the 10 default quiz scores the sum is 849, so the mean is 84.9. Sorted, the 5th and 6th values are 85 and 88, which puts the median at 86.5; 92 appears three times and is the mode, and the range is 95 − 70 = 25.
Data can have several modes, all listed here, or none: when every value occurs equally often, no value is more typical than another. Standard deviation, quartiles and outliers are on the descriptive statistics calculator.
常见问题
How do you find the mean, median and mode?
Add the values and divide by the count for the mean: 10, 2, 38, 23, 38, 23, 21 sum to 155, and 155 ÷ 7 = 22.14. Sort them (2, 10, 21, 23, 23, 38, 38) and take the middle one, the 4th, for the median: 23. Count repeats for the mode: 23 and 38 each appear twice, so both are modes. The range is 38 − 2 = 36.
How do you find the median of an even number of values?
Sort the values and average the two in the middle, at positions n ÷ 2 and n ÷ 2 + 1. For the 16 values 9, 10, 12, 13, 13, 13, 15, 15, 16, 16, 18, 22, 23, 24, 24, 25, the 8th and 9th are 15 and 16, so the median is 15.5. This is the definition in the NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.1.
Can a data set have more than one mode or no mode?
Yes to both. NIST notes that the mode is not necessarily unique: 2, 3, 3, 5, 5, 8 has two modes, 3 and 5, and is called bimodal. When every value appears the same number of times, as in 4, 7, 9 or 1, 1, 2, 2, no value occurs more often than the others and the data have no mode.
Which average should I use: mean, median or mode?
Use the mean for roughly symmetric data without extreme values, the median when a few values are far from the rest, and the mode for categories or the most common size. One outlier moves the mean but not the median: for 3, 4, 5 the mean and median are both 4, but changing 5 to 50 lifts the mean to 19 while the median stays 4.
What is the difference between average and mean?
In everyday use "average" means the arithmetic mean, the sum divided by the count, and spreadsheet functions follow that: Excel's AVERAGE returns the mean. In statistics "average" is a looser word for any measure of center, so the median and mode are also called averages. When a report says "average" without saying which, it is almost always the mean.
“平均数、中位数与众数计算器”有多准确?
准确性取决于输入值和方法的假设。十进制运算使用50位有效数字,但估算、数值方法和源数据的精度可能较低;显示时的舍入并不能消除这些限制。 已按独立来源核验的计算示例:6。 例如,“Quiz scores (default)”根据Python 3.8 statistics.mean = 84.9, statistics.median = 86.5, statistics.multimode = [92]; sum 849进行核验。
这种方法出自哪里?
NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.1 Measures of location (mean, median, mode); NIST Statistical Reference Datasets: univariate summary statistics (NumAcc1); Python statistics module: mean, median, multimode.