Inter-quartile range
The inter-quartile range is a measure of variability or spread in the dataset. It is calculated by dividing a dataset into quartiles. Quartiles divide the dataset into four halves based on the five number summary that we studied earlier—minimum, first quartile, second quartile, third quartile, and maximum. The second quartile is the median value of the rank-ordered dataset; the first quartile is the middle value of the first half of the rank-ordered dataset, and the third quartile is the middle value of the second half of the rank-ordered dataset.
The inter-quartile range is the difference between the third quartile (quartile75 or Q3) and the first quartile (quartile25 or Q1).
We calculate the IQR in Python using the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access