The interquartile range (IQR) is a measure of statistical dispersion, which describes the range of the middle 50% of a dataset. It is calculated as the difference between the upper quartile (Q3) and the lower quartile (Q1) of the dataset. In other words, it represents the spread of the middle 50% of the data points.
To calculate the interquartile range:
- Arrange the dataset in ascending order.
- Find the median, which separates the data into two halves: the lower half (Q1) and the upper half (Q3).
- Calculate Q1, which is the median of the lower half of the dataset.
- Calculate Q3, which is the median of the upper half of the dataset.
- Subtract Q1 from Q3 to find the interquartile range.
In summary, the interquartile range gives insight into the spread of the central portion of the data, making it particularly useful for identifying the variability within a dataset while being less affected by extreme values or outliers compared to measures like the range.