Interquartile Range (IQR)
Before studying interquartile range, we first should study quartiles for they act as a base for the interquartile range. Quartiles are those values which divide the series into equal parts. Before calculating the quartiles, first we have to arrange all the individual observations in an ascending order. Let us study some components of quartiles.
First quartile: This is the first value that divides the series into equal parts. It is also known as lower quartile. It divides the series in such a manner that one-fourth of the observations are below it and the remaining three quarters are above it. It is represented by the letter
Second quartile: This is the second value that divides the series into equal parts. It is also called median. It divides the series equally. Half of the observations are below it and the other half of the observations are above it. It is represented by the letter or . For more information on median, see Median.
Third quartile: This is the third value that divides the series into equal parts. It is also called upper quartile. It divides the series in such a way that three-fourth of the observations are below it and the remaining one-fourth of the observations are above it. It is represented by the letter .
How to calculate the quartiles?
The following are some formulas for calculating the quartiles:
Individual Series: For calculating , the formula is observation, where is the number of observations. For calculating , the formula is observation, where is the number of observations.
Discrete Series: For calculating the quartiles, first calculate the cumulative frequency . For calculating , the formula is observation, where is the number of observations. For calculating , the formula is observation, where is the number of observations.
Continuous Series: For calculating , the formula is and for calculating , the formula is where
- is the lower limit of the quartile class interval
- is the number of observations
- is the cumulative frequency of the class interval preceding the quartile class interval
- is the frequency of the quartile class interval
- is the width of the quartile class interval.
NOTE: The formulas for calculating or the median have already been given in the wiki page of Median.
While calculating quartiles, if comes in a decimal, then use this:
- Separate the integer and fractional parts.
Add the integer number observation and the positive difference of the integer observation and its next observation multiplied by the fractional value.
For example, if , then
Now comes the turn of interquartile range. It is defined as the difference of the upper quartile and the lower quartile. Let's see some worked examples.
Calculate and the interquartile range of the following distribution:
The values are arranged in ascending order. So, we can calculate using the formula. As there are observations, we put in the formula observation and get as the observation which is .
For , we get as the observation which is . So the interquartile range is equal to .
Calculate and the interquartile range of the following distribution:
Arranging the values in ascending order, we get . Calculating , we get observation as our . Now to calculate the observation, we will use the technique given in the Note of this page and we will get from which we get our as .
Similarly doing for , we get as . Hence, the interquartile range will be