Definition: Quartiles split an ordered data set into four equal parts so that 25 %, 50 %, and 75 % of observations fall below Q1, Q2 (median), and Q3 respectively.
Together with the minimum and maximum, the three quartiles form the five-number summary that underpins box-and-whisker plots.
Computing Quartiles (Inclusive Method)
Quartile position:Pos(Qk)=(n+1)4k,k=1,2,3
where n is the sample size; interpolate if the position is not an integer.
Most spreadsheet packages (e.g., Excel QUARTILE.INC, Google Sheets QUARTILE) and MATLAB’s quantile default to this inclusive rule.