Compute quartiles (Q1, Q2/Median, Q3), interquartile range, lower/upper fences, and identify outliers using the Tukey method. Visualize your data distribution with an interactive box‑and‑whisker plot.
The Interquartile Range (IQR) is a robust measure of statistical dispersion, representing the middle 50% of a dataset. It is calculated as the difference between the third quartile (Q₃, 75th percentile) and the first quartile (Q₁, 25th percentile). Unlike range or standard deviation, the IQR is not affected by extreme outliers, making it essential for analyzing skewed distributions or data containing anomalies.
This method is widely accepted in exploratory data analysis (EDA), box plot construction, and many statistical software packages (R, Python pandas, SPSS). The IQR is also used to define the box‑and‑whisker plot, invented by John Tukey, which provides a concise graphical summary of a data distribution's center, spread, skewness, and potential outliers.
A medium-sized company examines monthly salaries (in thousands). Using the example "Salaries (thousands)" preset, we found Q₁ = 50.0, Q₃ = 62.0, IQR = 12.0. Lower fence = 50.0 - 1.5×12.0 = 32.0, upper fence = 62.0 + 1.5×12.0 = 80.0. Salaries of 120 and 130 are flagged as outliers, indicating possible executive compensation or data entry errors. The IQR gives HR analysts a robust view of typical salary range without the distortion of extreme values, supporting fair compensation policies.