What Is the Interquartile Range (IQR)?
The interquartile range (IQR) is a measure of statistical dispersion, or spread, in a data set. It is defined as the difference between the third quartile (Q3) and the first quartile (Q1). The IQR represents the range within which the central 50% of the data points lie.
Section 2: How to Calculate the IQR
To calculate the interquartile range, you first order the data from least to greatest. Then, you find the quartiles, which divide the data into four equal parts. The first quartile (Q1) is the median of the lower half of the data, and the third quartile (Q3) is the median of the upper half. The formula is simply: IQR = Q3 - Q1.
Section 3: A Practical Example
Consider the following data set of test scores: {70, 75, 80, 82, 85, 90, 95}. The median (Q2) is 82. The lower half of the data is {70, 75, 80}, so its median, Q1, is 75. The upper half is {85, 90, 95}, so its median, Q3, is 90. Therefore, the IQR = Q3 - Q1 = 90 - 75 = 15.
Section 4: Importance of the IQR
The primary importance of the IQR is its resistance to outliers. Unlike the total range (maximum value minus minimum value), the IQR is not affected by extremely high or low values in the data set. This makes it a more robust and reliable measure of spread, especially for data that is skewed. It is also commonly used to identify potential outliers in box plots.