In addition to finding the center of a data set, such as the mode or median, statistics is also interested in finding a number that tells you how far the data set is spread out from the center. By determining how spread out the data set is, you are establishing a measure of what is known as variability. Two ways to measure variability are the range of a data set and the interquartile range of a data set.
With either of these measures, understanding the variability in data can help determine if the findings of two tests are comparable. Tests may come from within the same study or may be from studies conducted at different places or at different times. By comparing variability of different tests or studies, you can add reliability to those tests or studies. When there is less variability between data across the test or studies, these tests may be considered more valid.
If you recall from the eight steps of the experimental method, step seven asks to revise the guess if the prediction is wrong, and return to step two. If the prediction looks right, you need to start testing again from step four to verify the results.
Finding the range of a data set means finding the smallest value, known as the minimum, and the largest value, which is known as the maximum. The range is simply the difference between the maximum and the minimum values. The range is a measure of variability or spread, meaning that the larger the range, the more spread out the values in the data set are.
Say you’re dealing with incomes of people, a situation where there’s going to be a very large range. You could have very low income, maybe a few thousand dollars a year, and you could have a very high income, potentially tens of millions of dollars per year. Obviously, this is an extreme range. It’s not going to give you a good sense of how well those incomes are distributed.
Take a look at this graph of the average monthly rainfall in San Francisco:
Sometimes, however, you might be interested in determining how an observation falls into a specific range in order to make comparisons to other observations. In some cases, splitting your information into groups called quartiles, which each represent 25% of the data, can be useful.
A chart of men’s heights will have a normal distribution. The median height for men, as shown below, is roughly 70 inches. The quartiles are broken down here:
According to this, anything less than 68 inches will be in the first quartile, anything between 68 and 70 inches will be in the second quartile, between 70 and 72 in the third, and anything above 72 inches will be in the fourth quartile.
When considering just the range of a data set, sometimes the range can be thrown off by an occasional random value that may cause the range to not represent the true variability of a data set. In a case such as this, it’s useful to have a measure of variability that is more accurate. Such a measure of variability is known as the interquartile range.
While the range represents the entire extent of the data set, the interquartile range represents the middle 50% of the data set. Like the range, the interquartile range is a measure of variability or spread. The larger the interquartile range, the more spread out the values in the middle 50% of the data set are. The interquartile range is a more reliable measure of the spread of data than the range is, because it does not only take into account the maximum and minimum values of a data set.
To find the interquartile range of a data set, find the first quartile (Q1) and the third quartile (Q3). The interquartile range is then the difference between the third quartile and the first quartile. To consider the middle portion of the data, you are only concerned about the first and the third quartile.
So how do we go about figuring this out?
First, sort the data from smallest to largest value, and then, divide it into two halves. The middle value would be the median. Next, find the middle value of the first half. This is the first quartile, Q1. Third, determine the middle value of the second half. This would be the third quartile, or Q3.
Let’s look at a hypothetical data set that involves the income of 25 to 34 year olds:
Now take $77,000 – $36,000 to get $41,000. That is the interquartile range for this group of income.
Notice how that compares to the range, which is $87,000. That is twice as much as the interquartile range. You can see how the interquartile range gives us a much better measure of variability.
Source: This work is adapted from Sophia author Dan Laub.
Q3 - Q1
Max - min