One Irish Rail wait was 22 minutes. Does that tell you how much waits usually vary?
You time nine waits for an Irish Rail train. One lasts twenty-two minutes. Does that one wait tell you how much the waits usually vary? Start by looking at where the middle waits sit.
Read down the table as you would read ordered values from a stem-and-leaf plot. There are nine waits, so the fifth value is the median. Seven minutes sits in the middle, with four waits on either side.
Find the median of the lower four waits. That's Q one, the lower quartile. Leave out the overall median, seven. Find the median of the upper four waits. That's Q three, the upper quartile. With an even count, split between the two middle values.
Here are seven sorted waits: two, four, six, eight, ten, twelve and twenty minutes. Using the same rule for the middle value, which wait is the upper quartile? Pick an answer.
Subtract the lower quartile from the upper quartile. That gap is the interquartile range, or I Q R. Set fences one and a half I Q Rs below the lower quartile and above the upper quartile. A value beyond either fence is a possible outlier.
The fifth wait is seven. Average two and four to get three, then nine and eleven to get ten. Ten minus three gives seven. Subtract one and a half times seven from three: minus seven point five. Add the same amount to ten: twenty point five. Twenty-two is above that, so flag it.
A second set of waits, in minutes, is two, three, five, six, eight, nine, ten, fourteen and twenty-four. Find the quartiles, subtract to get the I Q R, then work out the upper fence. Pick the statement that fits.
On a scale in minutes, draw the box from three to ten and mark the median at seven. Extend the whiskers to one and eleven, the smallest and largest waits that weren't flagged. Plot twenty-two separately as a dot.
You might subtract one from twenty-two and call the result the I Q R. Twenty-one minutes is the total range, which uses the two extremes. The I Q R uses the edges of the box: ten minus three gives seven minutes.
Compare the distributions of waiting times for services A and B. Refer to the median and the interquartile range. B's median is nine minutes against seven, so its typical wait is longer. Its I Q R is four minutes against seven, so the middle half of its waits is less spread out.