All your statistics
Every figure for the numbers in the box. Standard deviation and variance are shown both ways: use the sample figures unless your list holds every value there is.
| Measure | Answer |
|---|---|
| Count | 5 |
| Sum | 125 |
| Mean (average) | 25 |
| Median | 27 |
| Mode | None |
| Smallest | 15 |
| Largest | 31 |
| Range | 16 |
| Midrange | 23 |
| Standard deviation (sample) | 6.6 |
| Standard deviation (population) | 5.9 |
| Variance (sample) | 43.5 |
| Variance (population) | 34.8 |
| First quartile (Q1) | 18.5 |
| Third quartile (Q3) | 30.5 |
| Interquartile range (IQR) | 12 |
| Outliers | None (1.5 × IQR rule) |
What are descriptive statistics?
They are the few numbers that describe a whole list. Measures of location give a typical value: the mean (the numbers added up and divided by how many there are), the median (the middle number once they are in order) and the mode (the number that appears most often). Measures of spread show how far apart the numbers are: the range, the variance and the standard deviation.
The quartiles split the ordered list into four equal parts, and the interquartile range is the spread of the middle half.
Source NIST/SEMATECH e-Handbook of Statistical Methods · 1.3.5.1 Measures of location ↗NIST/SEMATECH e-Handbook of Statistical Methods · 1.3.5.6 Measures of scale ↗CDC · Principles of Epidemiology, Lesson 2, Section 7: Measures of spread ↗
How to calculate the mean, median, mode and standard deviation
Here are the steps CDC teaches, using your numbers.
Here it is with your numbers:
- Add the numbers: 27 + 31 + 15 + 30 + 22 = 125.
- Mean: divide the sum by how many numbers there are, 125 ÷ 5 = 25.
- Median: in order, the numbers are 15, 22, 27, 30, 31, and the middle one (number 3) is 27.
- Mode: no number appears more than once, so there is no mode.
- Range: the largest minus the smallest, 31 − 15 = 16.
- Sample variance: square each number’s distance from the mean and add them up (174), then divide by 4, one less than the count: 174 ÷ 4 = 43.5.
- Sample standard deviation: the square root of the variance, √43.5 = 6.6.
It means the numbers centre on about 25, the middle number is 27, and a typical number sits about 6.6 from the mean.
Source CDC · Principles of Epidemiology, Lesson 2, Section 6: Measures of central location ↗
Statistics examples
| Numbers | Mean, median, mode |
|---|---|
| 27, 31, 15, 30, 22 (days) | 25, 27, no mode |
| Hospital stays of 30 patients | 12, 10, 10 |
| 27 food poisoning cases (hours) | Two modes, 3 and 12 |
| Ages 4, 23, 28, 31, 32 | 23.6, 28, no mode |
The quartiles use the (n + 1) method from NIST and CDC. Excel’s QUARTILE.INC uses another rule, and the Quartile Calculator shows both.
Source NIST/SEMATECH e-Handbook of Statistical Methods · 7.2.6.2 Percentiles ↗
FAQs
How do you calculate the average?
Add the numbers, then divide by how many numbers there are. For 27, 31, 15, 30 and 22 days, the total is 125, and 125 ÷ 5 = 25 days. This average is also called the mean.
Source CDC · Principles of Epidemiology, Lesson 2, Section 6: Measures of central location ↗
What is standard deviation in statistics?
It is a measure of how spread out the numbers are around the mean: the square root of the variance, which puts the spread back in the same units as the numbers.
Source NIST/SEMATECH e-Handbook of Statistical Methods · 1.3.5.6 Measures of scale ↗
What is variance in statistics?
The variance is roughly the average squared distance of the numbers from the mean. For a sample, add up the squared distances and divide by one less than how many numbers there are. Squaring gives far-off numbers more weight.
How do you find quartiles?
Put the numbers in order. The first quartile is the 25th percentile, the median is the 50th and the third quartile is the 75th. This calculator finds the 25th percentile at position (n + 1) ÷ 4 in the ordered list, and the 75th at 3 × (n + 1) ÷ 4, going part way between two numbers when the position isn’t whole.
Source NIST/SEMATECH e-Handbook of Statistical Methods · 7.2.6.2 Percentiles ↗
Sources
- CDC: Principles of Epidemiology, Lesson 2, Section 6: Measures of central location
- CDC: Principles of Epidemiology, Lesson 2, Section 7: Measures of spread
- NIST/SEMATECH e-Handbook of Statistical Methods: 1.3.5.1 Measures of location
- NIST/SEMATECH e-Handbook of Statistical Methods: 1.3.5.6 Measures of scale
- NIST/SEMATECH e-Handbook of Statistical Methods: 7.2.6.2 Percentiles