Quartiles
Quartiles are values that divide a rank-ordered data set into four equal-sized groups. They are commonly denoted as Q1, Q2, and Q3, corresponding to the 25th, 50th, and 75th percentiles, respectively. Q2 is the median of the data; Q1 marks the median of the lower half, and Q3 marks the median of the upper half. Because several conventions exist for calculating quartiles, especially for small data sets, the exact numerical values can differ slightly across methods.
For samples, a widely used approach is to order the data and take Q2 as the overall
The interquartile range, IQR, equals Q3 minus Q1 and measures the spread of the middle 50% of