Skip to main content

Module quartiles

Module quartiles 

Source
Expand description

Quartiles, IQR, and Tukey whisker/outlier bounds for box plots.

Quartile method: quartiles are computed by linear interpolation between order statistics — the “type 7” definition used by NumPy’s percentile/quantile and R’s default quantile. Different statistics packages use different quartile definitions that disagree by small amounts; we fix type 7 and document it here because that disagreement is a classic source of “my box looks slightly off” confusion.

Structs§

Quartiles
Five-number summary plus Tukey fences and the outliers of a sample.

Functions§

quartiles
Compute Quartiles for data using the type-7 (linear-interpolation) quartile definition and the standard 1.5 * IQR Tukey rule for whiskers and outliers.