Descriptive statistics
Descriptive statistics summarizes a data set with a few numbers and charts: where the center is, how spread out the data are, whether they are symmetric and whether there are unusual values. This topic explains the mean, median and mode, variance and standard deviation (sample and population), quartiles, the box plot and outliers.
Central tendency
The mean is the balance point of the data. The median is the middle value with the data sorted (with even , the average of the two central ones). The mode is the most repeated value. The mean uses every value, but a single extreme value drags it; the median does not notice.
Spread
The variance is the average of the squared deviations from the mean, and the standard deviation its square root (in the same units as the data):
Divide by when the data are a sample of something larger (the sample mean already «used up» one degree of freedom and dividing by would underestimate the variance), and by when they are the whole population. The coefficient of variation compares the spread of data with different means.
Quartiles, box plot and outliers
The quartiles , (the median) and leave 25 %, 50 % and 75 % of the data below them; the interquartile range measures the spread of the central 50 %. There are several ways to interpolate them; the tool uses Excel's PERCENTILE.INC: the position of percentile is in the sorted data.
A value is an outlier if it falls outside Tukey's fences, and . The box plot sums it all up: the box goes from to , the line is the median, the whiskers reach the last value within the fences and outliers are drawn apart.
Skewness tells which side the tail of the distribution is on (positive: tail to the right, mean greater than the median) and kurtosis whether its tails are heavier than those of a normal distribution.
Common mistakes
- Computing the median without sorting the data.
- Mixing and : with a sample, the standard deviation divides by .
- With a frequency table, forgetting that is the sum of the frequencies, not the number of distinct values.
- Deleting an outlier just like that: it may be a measurement error or the most important value; it must be investigated.
Worked examples
Example 1All the measures by hand
Solution
- , , . Sorted, the middle ones are 4 and 5: median . Mode: 4 (three times).
- Squared deviations: . , ; , .
- : position , between the 2nd and 3rd values (4 and 4) → . : position , between 5 and 7 → . .
- Fences: and . The 9 is outside: it is an outlier.
Solve it in Simuveliq
- In Math → Statistics, type or paste in Data
2 4 4 4 5 5 7 9, with «The data are: a sample (n − 1)». The cards give Mean 5, Median 4.5, Mode 4 (3×), Sample standard deviation 2.13809, population 2, Q₁ 4, Q₃ 5.5, Tukey fences 1.75 · 7.75 and Outliers 9.
Example 2Exam scores
Solution
- , . Sorted, the 8th is 7: median 7, which is also the mode (three times).
- and : moderate spread.
- , , ; fences and : no outliers (the 4 is inside).
Solve it in Simuveliq
- In Math → Statistics, type or paste in Data the scores (it is the first example in the list), with «The data are: a sample (n − 1)». Besides the summary, it draws the histogram with 5 classes (Sturges' rule) and the box plot.
Example 3Data with frequencies
Solution
- families. , so children.
- Median: the 26th and 27th values; the cumulative frequencies are 6, 20, 39…, so both are 2. Mode: 2.
- .
Solve it in Simuveliq
- In Math → Statistics, type or paste in Data
0 1 2 3 4 5and in Frequencies6 14 19 9 3 1, with «The data are: a sample (n − 1)». It gives n 52, Mean 1.84615, Median 2, Mode 2 (19×) and sample deviation 1.1442, with the table of relative and cumulative frequencies.
Example 4An outlier
Solution
- , larger than nine of the ten values. Median: the 5th and 6th sorted values, 14 and 15 → .
- , , ; fences and . The 48 is an outlier.
- The median (14.5) describes the group better; the high skewness (3.089) and kurtosis (9.665) give away the unusual value.
Solve it in Simuveliq
- In Math → Statistics, type or paste in Data the ten values (it is the «With an outlier» example), with «The data are: a sample (n − 1)». It gives Mean 17.5, Median 14.5, Tukey fences 10.625 · 17.625 and Outliers 48, which the box plot draws with a circle.