Order Statistics & Five-Number Summary

5 Number Summary Calculator

Generate the complete Five-Number Summary (Minimum, Q1, Median, Q3, Maximum), Interquartile Range, and Tukey outlier fences with real-time interactive boxplot visualization.

Box-and-Whisker Plot Tukey Outlier Markers (•)
Five-Number Summary N = 13 observations
Min 4
Q1 17.0
Median 21.0
Q3 25.0
Max 52
Interquartile Range 8.000 IQR = Q3 − Q1
Statistical Range 48.000 Max − Min
Tukey Inner Fences: [5.00, 37.00]
Q1 − 1.5×IQR  to  Q3 + 1.5×IQR
Flagged Outliers: 4, 52

Points beyond inner fences are marked as statistical outliers on the boxplot whiskers.

Exploratory Data Analysis & Non-Parametric Profiling

Critical Problems This 5 Number Summary Calculator Solves

Developed by legendary statistician John Tukey in 1977, the five-number summary replaced fragile parametric averages with robust order statistics. Our 5 number summary calculator solves fundamental exploratory challenges:

Diagnosing Severe Asymmetry and Skewness

By inspecting the distance between Q1 and Median versus Median and Q3, you immediately discover whether a distribution is right-skewed or left-skewed without needing complex moment integrals.

Automating Box-and-Whisker Construction

Drawing a boxplot by hand requires finding five separate order statistics, computing the IQR, and drawing whiskers to fences. Our live SVG engine draws an exact, scaled boxplot directly from your input data in real time.

Screening Outliers with John Tukey's 1.5×IQR Rule

The tool automatically establishes inner fences \([Q_1 - 1.5\text{IQR}, Q_3 + 1.5\text{IQR}]\) and isolates anomalous data points that fall outside the expected core population boundaries.

Eliminating Quantile Interpolation Confusion

Whether you are solving high school AP Statistics homework (exclusive median method) or validating Python/R machine learning outputs (continuous linear Type 7), you can switch algorithms with one click.

Features Available in the 5 Number Summary Calculator

Complete Five-Point Array

Extracts Minimum, First Quartile (Q1), Median (Q2), Third Quartile (Q3), and Maximum.

Interactive Scaled Boxplot

Renders a vector SVG boxplot displaying whiskers, median divide, and tagged outlier dots.

Dispersion Analysis Suite

Simultaneously calculates Interquartile Range (IQR = Q3 - Q1) and Total Range (Max - Min).

Tukey Fence Outlier Screen

Computes lower and upper boundary fences and lists all observations breaching thresholds.

How to Use the 5 Number Summary Calculator

1

Select Quantile Algorithm

Choose Continuous Linear (Type 7 / NumPy) or Exclusive Median (Moore & McCabe).

2

Enter Observations

Paste your raw numbers separated by commas, spaces, tabs, or newlines.

3

Inspect Five Core Values

Examine the card displaying Min, Q1, Median (Q2), Q3, and Max in order.

4

Evaluate Scaled Boxplot

Review the dynamic SVG diagram showing whisker lengths and median line position.

5

Audit Outlier Fences

Inspect Tukey's lower and upper fences to confirm whether any points exceed bounds.

6

Copy Summary Report

Copy the formatted five-number summary audit directly to your clipboard.

Mathematical Formulations of the Five-Number Summary

Given an ordered sample \(x_{(1)} \le x_{(2)} \le \dots \le x_{(n)}\), the five order statistics are:

$$\text{Five-Number Summary} = \left\{\text{Min}, Q_1, \text{Median}, Q_3, \text{Max}\right\}$$

The core dispersion metrics and Tukey outlier inner fences are defined as:

$$\text{IQR} = Q_3 - Q_1 \quad,\quad \text{Range} = x_{(n)} - x_{(1)}$$
$$\text{Lower Inner Fence (LIF)} = Q_1 - 1.5 \times \text{IQR} \quad,\quad \text{Upper Inner Fence (UIF)} = Q_3 + 1.5 \times \text{IQR}$$

Worked Case Study: Employee Commute Times (\(N = 13\))

Scenario: Commute times in minutes for 13 office workers are surveyed: 4, 12, 15, 17, 18, 19, 21, 22, 23, 25, 29, 34, 52.

  • 1. Minimum: Smallest observation = \(\mathbf{4\,\text{minutes}}\).
  • 2. First Quartile (\(Q_1\)): 25th percentile of ordered data = \(\mathbf{17.0\,\text{minutes}}\).
  • 3. Median (\(Q_2\)): 7th middle value of 13 entries = \(\mathbf{21.0\,\text{minutes}}\).
  • 4. Third Quartile (\(Q_3\)): 75th percentile of ordered data = \(\mathbf{25.0\,\text{minutes}}\).
  • 5. Maximum: Largest observation = \(\mathbf{52\,\text{minutes}}\).
  • Interquartile Range: \(\text{IQR} = 25.0 - 17.0 = \mathbf{8.0\,\text{minutes}}\).
  • Outlier Fences: $$\text{LIF} = 17.0 - (1.5 \times 8.0) = 5.0\,\text{min} \quad;\quad \text{UIF} = 25.0 + (1.5 \times 8.0) = 37.0\,\text{min}$$
  • Outliers Flagged: The 4-minute commute falls below 5.0, and the 52-minute commute exceeds 37.0. Both are identified as statistical outliers.

Five-Number Summary Best Practices

Examine Box Symmetry

If the median is centered between Q1 and Q3, the central 50% is symmetric. If the median sits close to Q1, the distribution exhibits strong positive right skewness.

Compare Whiskers to Detect Tail Heaviness

Whiskers show the spread of the outer 25% extremes. An elongated upper whisker with outlier dots indicates heavy right-tail risk in financial modeling.

Do Not Truncate Outliers Automatically

Outliers identified beyond Tukey's fences are not automatically bad data. They often represent vital discoveries, such as fraud attempts or rare clinical drug reactions.

Always State Sample Size N

The five-number summary can compress a million records or just ten records into five points. Always report the sample size \(N\) alongside the summary.

Parametric vs. Five-Number Summary Comparison Matrix

Dimension Five-Number Summary (Tukey) Parametric Summary (Gauss) Robustness Advantage
Location Median (50th Percentile) Arithmetic Mean (μ) Five-Number (50% breakdown)
Spread IQR (Q3 − Q1) Standard Deviation (σ) Five-Number (Immune to outliers)
Extremes Minimum & Maximum None directly recorded Five-Number captures full span
Visual Representation Box-and-Whisker Plot Normal Bell Curve Boxplot accommodates arbitrary shapes

Exploratory Statistics Glossary

Five-Number Summary

A concise quantitative description of a distribution consisting of Minimum, First Quartile (Q1), Median, Third Quartile (Q3), and Maximum.

Interquartile Range (IQR)

The difference between the third and first quartiles (\(Q_3 - Q_1\)), measuring the range of the middle 50% of the observations.

Tukey Fence

A boundary established at \(1.5 \times \text{IQR}\) beyond the quartiles used to identify mild and extreme statistical outliers.

Box-and-Whisker Plot

A graphical depiction of the five-number summary showing the central IQR box, median divide, and whisker extensions.

Frequently Asked Questions

What are the five numbers in a 5-number summary?
The five numbers are: 1) Minimum (the smallest value), 2) First Quartile (Q1 / 25th percentile), 3) Median (Q2 / 50th percentile), 4) Third Quartile (Q3 / 75th percentile), and 5) Maximum (the largest value).
What is the primary purpose of the five-number summary?
The five-number summary provides a non-parametric summary of a dataset's center, spread, and range that is completely resistant to extreme outliers, serving as the quantitative skeleton for constructing box-and-whisker plots.
How does the five-number summary relate to a boxplot?
In a boxplot, the whiskers extend to the Minimum and Maximum (or within Tukey fences), the left and right edges of the central box mark Q1 and Q3, and the vertical bar inside the box marks the Median.
What is the formula for the Interquartile Range (IQR)?
The Interquartile Range is calculated as IQR = Q3 - Q1. It measures the statistical dispersion of the middle 50% of the dataset.
How does the calculator handle odd vs. even sample sizes?
For odd sample sizes, the median is the exact middle value. For even sample sizes, the median is the arithmetic mean of the two middle values. Quartiles are computed using standard statistical interpolation.
How are statistical outliers detected from the 5-number summary?
Outliers are detected using John Tukey's fence criterion: any value below Lower Fence = Q1 - 1.5*IQR or above Upper Fence = Q3 + 1.5*IQR is flagged as an outlier.
Why is the 5-number summary preferred over mean and standard deviation for skewed data?
Because mean and standard deviation are heavily distorted by extreme values (0% breakdown point), whereas the median and quartiles have a 50% breakdown point and accurately reflect typical observations in skewed distributions.
Can the minimum or maximum be an outlier?
Yes. If the Minimum is less than Q1 - 1.5*IQR, or the Maximum is greater than Q3 + 1.5*IQR, those extreme boundary points are identified as statistical outliers.
What is the difference between range and IQR in the summary?
Range = Maximum - Minimum (measuring the total 100% boundary span), while IQR = Q3 - Q1 (measuring the middle 50% core spread immune to extreme values).
What is the minimum sample size required for a 5-number summary?
Mathematically, a 5-number summary can be computed for N >= 4 or 5 values, though it is most informative when applied to samples of at least 10 to 15 observations.
Does this calculator support negative numbers and decimals?
Yes. The calculator parses all real numbers including negative integers, floating-point decimals, and mixed datasets seamlessly.
How can I copy or export the five-number summary results?
Click the 'Copy Summary Audit' button below the outputs dashboard to copy the formatted five-number summary and IQR report directly to your clipboard.