The interquartile range (IQR) identifies and eliminates the deviations from both ends of a data series. It also measures variation in cases of skewed data distribution. But, when we compare it with the standard deviation, it is less sensitive to extreme observations or values. For calculating the interquartile range, firstly, we need to calculate the Quartiles. Let us study the interquartile range formula in detail.

**What are Quartiles?**

The Quartiles divide a set of data series into four equal parts. The four parts are namely, First Quartile (Q_{1}), Second Quartile (Q_{2}), Third Quartile (Q_{3}), and Fourth Quartile (Q_{4}). We also know Second Quartile (Q_{2}) as the Median of the data series as it also divides the data into two equal parts.

**First quartile:**It divides the data such that one-fourth or the 25% of the values are below it and the remaining three-fourth or 75% are above it. We also call the first quartile as a lower quartile. We denote it as Q_{1.}**Second quartile:**It divides the data or observations into two equal parts so that 50% of the observations are below it and 50% of the observations are above it. We also know it as Median. We denote it as Q_{2.}**Third quartile:**It divides the series such that three-fourth or 75% of the observation is below it and the remaining one-fourth or 25% of the observations are above it. We also call the third quartile as the upper quartile. We denote it as Q_{3.}

**What is the Interquartile Range?**

The interquartile range is a measure of variance. It represents the range from the 25^{th} percentile to the 75^{th} percentile. In other words, we can say that it represents the middle 50 percent of a data series. It is useful in determining the average range of observations. It is a more effective tool of analyzing the data in comparison to mean or median as it identifies the dispersion range.

**Formula for Quartiles**

**1.Individual series**

We need to arrange the values in ascending order, before calculating the quartiles.

- \(Q_1 = \frac{(N + 1)}{4}^th term\)
- \(Q_2Â = \frac{(N + 1)}{2}Â term\)
- \(Q_3Â = 3 \times \frac{(N + 1)}{4}Â term\)

Where, N is the number of observations

**2. Discrete series**

- \(Q_1Â = \frac{(N + 1)}{4}Â term\)
- \(Q_2= \frac{(N + 1)}{2}Â term\)
- \(Q_3Â = 3 \times \frac{(N + 1)}{4}Â term\)

Note: In discrete series, we need to calculate the cumulative frequency first. Then, we apply the formula. Then we see that the value that we get falls in which cumulative frequency. The observation corresponding to that cumulative frequency is our answer.

**3. Continuous series**

- \(Q_1Â = l + \frac{\frac{N}{4} â€“ c.f.}{f} \times h\)
- \(Q_3Â = l + \frac{\frac{3N}{4} â€“ c.f.}{f} \times h\)

l | Lower limit of the quartile class interval |

N | No. of observations |

c.f. | Cumulative frequency of the preceding class |

f | Frequency of the quartile class |

h | Upper limit â€“ the lower limit of the quartile class |

Note: For calculating the quartile class, apply the formula given under the individual series. If the answer is in fraction then round it off to integer.

**Formula for Interquartile Range**

And from the above equations, let us see the interquartile range formula

**Â **IQR = Q_{3 }â€“ Q_{1}

IQR | Interquartile range |

Q_{3} |
Third quartile |

Q_{1} |
First quartile |

**Solved Examples forÂ ****Interquartile Range Formula**

Q.1:Â Find the inter-quartile range for the following data: 56, 14, 84, 21, 85, 2, 35, 74, 66, 52, 45

Solution: Arranging the data in ascending order: 2, 14, 21, 35, 45, 52, 56, 66, 74, 84, 85,

\(Q_1Â = \frac{(N + 1)}{4}Â term\)

=\( \frac{11 + 1}{4}Â Â term\)

= 3rd term

= 21

And, \(Q_3Â = 3 \times \frac{(N + 1)}{4}Â term\)

\(= 3 \times \frac{11 + 1}{4}Â term\)

\(= 3 \times 3Â term\)

= 9th term

= 74

Interquartile Range = Q3 â€“ Â Q1= 74 â€“ 21 = 53

I get a different answer for first example.

I got Q1 as 20.5

median 23 and

Q3 26