Interquartile range is the smallest of all the measures of dispersion. It is defined as the difference between the two extreme observation of the distribution. In other words, range is the difference between the greatest ( maximum ) and the smallest (minimum) observation of the distribution.
Range = Xmax - Xmin
Where Xmax is the greatest observation and Xmin is the smallest observation of the variable values.
In case of the grouped frequency distribution or the continuous frequency distribution, range is defined as the difference between the upper limit of the higher class and the lower limit of the smallest class.
Q1- Lower Quartile Part
Q2 – Median
Q3 - Upper Quartile Part
Inter-quartile Range = Q3 - Q1
Semi inter-quartile Range = (Q3 - Q1) / 2
Procedure to calculate the interquartile range in mathematical statistics:
Arrange the given set of numbers into increasing or decreasing order.
Then count the given values. If it is odd then center value is median otherwise obtain the mean value for two center values. This is known as Q2 value.
Median equally cuts the given values into 2 equal parts. They are described as Q1 and Q3 part.
From Q1 values we have to find one median value.
From Q3 values we have to find one median value.
Finally we can subtract the median values of Q1 and Q3.
This gives the result as interquartile range.
Example: Find the interquartile range value for the first ten prime numbers.
Solution:
The first ten prime numbers are 2,3,5,7,11,13,17,19,23,29
This is already in the decreasing order.
Here number of values = 10
10 is a even number, therefore, median is mean of 11 and 13
That is Q2 = 12.
Now we have to get 2 parts. That is known as Q1 and Q3.
Q1 part : 2, 3, 5,7,11
Here number of values = 5
5 is an odd number, therefore, center value is 5, that is Q1= 5
Q3 part : 13, 17,19,23,29
Here number of values = 5
5 is an odd number, therefore, center value is 19, that is Q3= 19
The subtraction of Q1 and Q3 value is 19-5 = 11
Therefore, 11 is the interquartile range value.
Merits:
Quartile deviation is quite easy to understand and calculate. It has a number of obvious advantages over range as a measure of dispersion. For example:
Thus, Quartile Deviation is not a reliable measure of variability, particularly for distributions in which the variation is considerable.
You can see the example on interquartile range given below -
Example 1: Find Interquartile Range, Quartile Deviation for the following distribution:
| Class Interval | 0-15 | 15-30 | 30-45 | 45-60 | 60-75 | 75-90 | 90-105 |
| f | 8 | 26 | 30 | 45 | 20 | 17 | 4 |
| Class Interval | f | c.f |
| 0-15 | 8 | 8 |
| 15-30 | 26 | 34 |
| 30-45 | 30 | 64 |
| 45-60 | 45 | 109 |
| 60-75 | 20 | 129 |
| 75-90 | 17 | 146 |
| 90-105 | 4 | 150 |
| Total | N = 150 |
Here N = 150 , $\frac{N}{4}$ = 3705. The cummulative frequency just greater than 37.5 is 64.
Hence Q1 lies in the corresponding class 30-45
Q1 = l + $(\frac{h}{f})$ ( $(\frac{N}{4})$ - C )
= 30 + $(\frac{15}{30})$ ( 37.5 - 34)
= 31.75
$\frac{3N}{4}$ = 112.5 The c.f just greater than 112.5 is 129.
Hence Q3 lies in the corresponding class 60-75
Q3 = l + $(\frac{h}{f})$ ( $(\frac{3N}{4})$ - C )
= 1 + $(\frac{15}{20})$ ( 112.5-109)
= 60 + 2.625 = 62.625
= 62.625 - 31.750
= 30.875
= $\frac{30.875}{ 2}
= 15.44
Example 2: - Find the Inter quartile range of the following data: 4, 6, 7, 8, 10, 23, 34.
Solution : Here the numbers are arranged in the increasing order. n = 7
First quartile, $Q_{1}$ = $\frac {n+1^{2k}}{4}$ item = $\frac {(7+1)}{4th}$ item = $2^{nd}$ item = 6
Third quartile, $Q_{3}$ = $\frac {3(n+1)^{2k}}{4}$ item = $\frac {3(7+1)}{4th}$ item = 6^{th}$item = 23
Inter quartile range (IQR) = $Q_{3}-Q_{1}$ = 23 - 6 = 17
Answer: Inter quartile range = 17
Example 2: - Find the Inter quartile range of the following marks: 22,13,37,16,26,35,26,35.
Solution : First we have to arrange the numbers in the ascending order
13,16,22,26,26,35,35,37
n = 8
Lower Quartile, $Q_{1}$ = $ \frac {n+1^{th}}{4}$ item= $\frac {(8+1)}{4^{th}}$ item = $2.25^{th}$ item
= $2^{nd}item+0.25(3^{rd}item-2^{nd}item)$
= 15+0.25(21-15) = 16+0.25(6) = 17.5
Upper Quartile,$Q_{3}$ = $3\frac{n+1^{th}}{4}$ item = $ \frac{3(8+1)}{4^{th}}$ item = $6.75^{th}$ item
= $6^{th}item+0.75(7^{th}item-6^{th}item)$
= 35+0.75(35-35) = 35+0.75(0) = 35
Inter quartile range (IQR) = $Q_{3}-Q_{1}$ = 35-17.5 = 17.5
Answer: Inter quartile range = 17.5
While finding Inter quartile range in discrete and continuous case, we use the corresponding formulas for quartiles and then use the formula for Inter quartile range.
Examples calculating Inter quartile range in discrete series
Example 1: Find the Inter quartile range of the following data
| X | 12 |
14 |
16 |
18 |
20 |
| F | 6 | 3 |
4 |
1 |
5 |
Solution :
| X |
F |
Cumulative Frequency |
| 12 | 6 | 6 |
| 14 | 3 | 6+3=9 |
| 16 | 4 | 9+4=13 |
| 18 | 1 | 13+1=14 |
| 20 | 5 | 14+5=19 |
First quartile $Q_{1}$ = Size of $\frac{N+1^{th}}{4}$ item = Size of $\frac{19}{4}^{th}$ item = Size of
$4.75^{th}$ item = 12
Third Quartile, $Q_{3}$ = Size of 3 $\frac{N+1^{th}}{4}$ item = Size of $\frac{3(19)}{4^{th}}$ item
= Size of $14.25^{th}$ item = 20
Inter quartile range
(IQR) = $Q_{3}-Q_{1}$ = 20-12 = 8
Answer: Inter quartile range = 8
Example 2:
Find the Inter quartile range of the following data
| X |
2 |
8 | 16 | 25 | 38 |
| F | 12 | 4 | 6 | 8 | 10 |
Solution: N = 40
First quartile $Q_{1}$ = Size of $\frac{N+1^{th}}{4}item$ = Size of $\frac{41}{4^{th}}item$ = Size of $10.25^{th}$item = 2
Third Quartile, Q3= Size of $3\frac{N+1^{th}}{4}$ item = Size of $\frac{3(41)}{4^{th}}$ item
= Size of $30.75^{th}$ item = 38
Inter quartile range (IQR) = $Q_{3}-Q_{1}$ = 38 – 2 = 36
Answer: Inter quartile range = 36
| Class |
10-20 |
20-30 |
30-40 |
40-50 | 50-60 |
| F |
4 |
2 | 3 |
1 |
5 |
| Class | F |
Cumulative Frequency |
| 10-20 | 4 | 4 |
| 20-30 | 2 | 4 + 2 = 6 |
| 30-40 | 3 | 6 + 3 = 9 |
| 40-50 | 1 | 9 + 1 = 10 |
| 50-60 | 5 | 10 + 1 = 15 |
| Marks | 10-15 |
15-20 |
20-25 |
25-30 |
30-35 |
35-40 |
| Number Of Students | 5 | 4 | 6 | 6 | 4 | 5 |
| Class |
F |
Cumulative Frequency |
| 10-15 | 5 |
5 |
| 15-20 | 4 |
5 + 4 = 9 |
| 20-25 | 6 |
9 + 6 = 15 |
| 25-30 | 6 |
15 + 6 = 21 |
| 30-35 | 4 | 21 + 4 =25 |
| 35-40 | 5 |
25 + 5 = 30 |