Statistics · Data presentation
1 / 14
Cumulative frequency, box plots and outliers
Building a cumulative frequency diagram and reading the median, quartiles and percentiles off it by plotting against the UPPER class boundary; testing for outliers with the 1.5×IQR rule or the mean ± 2 standard deviations rule; drawing a box plot whose whiskers stop at the most extreme value that is NOT an outlier; and comparing two distributions with a measure of location and a measure of spread.
Statistics · Data presentation
Cumulative frequency, box plots and outliers
Building a cumulative frequency diagram and reading the median, quartiles and percentiles off it by plotting against the UPPER class boundary; testing for outliers with the 1.5×IQR rule or the mean ± 2 standard deviations rule; drawing a box plot whose whiskers stop at the most extreme value that is NOT an outlier; and comparing two distributions with a measure of location and a measure of spread.
Why it works
A grouped frequency table hides where individual values sit, so we can't read the median straight off it. A cumulative frequency diagram fixes that by recording, at each class, the running total of "how many values so far".Plot against the upper class boundary. The cumulative frequency for a class is the total of that class and all earlier ones — and you only know you have reached that total once you pass the top of the class. So each point is , starting from the lower end of the first class with cumulative frequency . Join the points (a smooth curve or straight segments) to get a graph you can read both ways.
Here is the cumulative frequency diagram for the times (minutes) of people, with class frequencies :Reading a value. To estimate the median, go up the cumulative-frequency axis to the position, across to the curve, then down to the data axis. For grouped continuous data the positions are
Use , not — the version is for a discrete list of values, but a cumulative frequency graph is a continuous estimate. Here , so the median is read at cumulative frequency : it falls between and , and interpolating, minutes.
Outliers. An outlier is a value far enough from the middle to be treated as unusual. A question always tells you which rule to use; the two standard ones are:
- rule — a value is an outlier if it is below
- standard deviations rule — a value is an outlier if it is more than
The boundary values and are the fences; measure from the quartiles (or the mean), never from the median.
Box plots. A box-and-whisker plot draws the five-number summary on one axis: a box from to with the median marked inside, and whiskers out to the lowest and highest values. The catch: a whisker stops at the most extreme value that is not an outlier, and any outliers are plotted separately as crosses beyond it.Here the whisker reaches (the largest in-range value) and the outlier at is a separate cross — the whisker does not stretch out to it.
Skewness from the quartiles. If the longer tail is on the right, so the data is positively skewed; if it is negatively skewed.
Comparing two distributions. Always compare two things, in context: a measure of location (usually the median) — which set is higher on average — and a measure of spread (usually the IQR) — which set is more consistent. "The median mark in class B (28) is higher than in class A (22), so B scored higher on average; the IQR in B (6) is smaller than in A (10), so B's marks were more consistent."