5 Number Summary Calculator

Compute the five-number summary for any set of numbers, including minimum, first quartile (Q1), median, third quartile (Q3), and maximum. Instantly understand your data's range, spread, and central tendency for statistics, education, and data analysis.

Five number summary
Minimum
-
First quartile (Q1)
-
Median (Q2)
-
Third quartile (Q3)
-
Maximum
-
Additional summary statistics
Mean (average)
-
Standard deviation
-
Variance
-
Mean absolute deviation (MAD)
-
Mean deviation (about median)
-

The five-number summary is a fundamental concept in descriptive statistics that provides a concise overview of a dataset's distribution. By capturing key aspects of central tendency, spread, and range, this collection of five statistics offers valuable insights into data characteristics before detailed analysis. This article explores what the five-number summary is, how to calculate it, and why it serves as an essential tool in exploratory data analysis.

What is the five-number summary?

The five-number summary consists of five key statistical values that together provide a comprehensive overview of a dataset's distribution. These five values are presented in ascending order:

  1. Minimum: The smallest value in the dataset
  2. First Quartile (Q1): The value below which 25% of the observations fall
  3. Median (Q2): The middle value that divides the dataset in half
  4. Third Quartile (Q3): The value below which 75% of the observations fall
  5. Maximum: The largest value in the dataset

Together, these five numbers give us information about:

  • The range of the data (from minimum to maximum)
  • The central tendency (from the median)
  • The spread or dispersion (from the quartiles)

Why use the five-number summary?

The five-number summary offers several advantages as a descriptive statistical tool:

  1. Robustness: Unlike the mean and standard deviation, the five-number summary is less sensitive to outliers since it relies primarily on order statistics.

  2. Versatility: It works well for ordinal, interval, and ratio data, making it more versatile than some other statistical measures.

  3. Distribution insights: It reveals important characteristics about the shape of the distribution, such as skewness and spread.

  4. Exploratory power: It provides a quick initial assessment of data before more complex analyses.

  5. Visual compatibility: It forms the basis for box plots (box-and-whisker plots), a powerful visualization tool.

Calculating the five-number summary

Let's walk through the process of calculating a five-number summary using a simple example.

Consider the following dataset: 4, 10, 7, 15, 3, 18, 6, 9, 12, 14

Step 1: Arrange the data in ascending order

3, 4, 6, 7, 9, 10, 12, 14, 15, 18

Step 2: Find the minimum and maximum values

  • Minimum: 3
  • Maximum: 18

Step 3: Calculate the median (Q2)

Since we have 10 data points (an even number), the median is the average of the 5th and 6th values:

  • Median = (9 + 10) / 2 = 9.5

Step 4: Find the first quartile (Q1)

Q1 is the median of the lower half of the data:

  • Lower half: 3, 4, 6, 7, 9
  • Q1 = 6

Step 5: Find the third quartile (Q3)

Q3 is the median of the upper half of the data:

  • Upper half: 10, 12, 14, 15, 18
  • Q3 = 14

Five-number summary

The five-number summary for this dataset is:

  • Minimum: 3
  • Q1: 6
  • Median: 9.5
  • Q3: 14
  • Maximum: 18

Interpreting the five-number summary

Once calculated, a five-number summary can reveal several important characteristics of your data:

1. Central tendency

The median (9.5 in our example) indicates the central value of the distribution. Unlike the mean, the median is resistant to the influence of outliers.

2. Spread and variability

Several measures of spread can be derived from the five-number summary:

  • Range: The difference between the maximum and minimum values.

    • Range = Maximum - Minimum = 18 - 3 = 15
  • Interquartile Range (IQR): The difference between Q3 and Q1, representing the middle 50% of the data.

    • IQR = Q3 - Q1 = 14 - 6 = 8

The IQR is particularly useful because it's robust against outliers and gives a stable measure of dispersion.

3. Distribution shape

The five-number summary can indicate whether a distribution is symmetric or skewed:

  • Symmetric distribution: The median is approximately centered between Q1 and Q3, and the distances from minimum to Q1 and Q3 to maximum are roughly equal.

  • Right-skewed (positively skewed): The distance from Q3 to the maximum is greater than from the minimum to Q1. The median is closer to Q1 than to Q3.

  • Left-skewed (negatively skewed): The distance from the minimum to Q1 is greater than from Q3 to the maximum. The median is closer to Q3 than to Q1.

In our example, the distances are:

  • Minimum to Q1: 6 - 3 = 3
  • Q1 to Median: 9.5 - 6 = 3.5
  • Median to Q3: 14 - 9.5 = 4.5
  • Q3 to Maximum: 18 - 14 = 4

This suggests a slightly right-skewed distribution as the right side (above the median) is somewhat more spread out than the left side.

4. Potential outliers

While the five-number summary doesn't explicitly identify outliers, it provides a basis for flagging potential outliers using the IQR method:

  • Potential lower outliers: Values less than Q1 - 1.5 × IQR
  • Potential upper outliers: Values greater than Q3 + 1.5 × IQR

In our example:

  • Lower bound = Q1 - 1.5 × IQR = 6 - 1.5 × 8 = -6
  • Upper bound = Q3 + 1.5 × IQR = 14 + 1.5 × 8 = 26

Since all values fall within these bounds, we have no potential outliers according to this method.

Visualizing the five-number summary: box plots

The five-number summary forms the foundation of box plots (also known as box-and-whisker plots), which provide a visual representation of the distribution.

In a box plot:

  • The box represents the IQR (from Q1 to Q3)
  • A line inside the box represents the median
  • The "whiskers" typically extend to the minimum and maximum values (or to the furthest non-outlier values)
  • Points beyond the whiskers represent potential outliers

Box plots are particularly useful for comparing multiple datasets visually and quickly identifying differences in central tendency, spread, and the presence of outliers.

Alternative calculation methods

There are multiple methods for calculating quartiles, which can lead to slight differences in five-number summaries:

Method 1: Exclusive median

When finding Q1 and Q3, exclude the median from both halves. This is more commonly used when the dataset has an odd number of observations.

Method 2: Inclusive median

When the dataset has an odd number of observations, include the median in both halves when calculating Q1 and Q3.

Method 3: Interpolation

Use positional formulas to determine quartile positions and interpolate between values when necessary.

Different statistical software packages may use different methods, which can lead to small variations in the calculated five-number summary.

Applications in different fields

The five-number summary has practical applications across numerous fields:

Economics and finance

  • Summarizing income distributions
  • Analyzing stock price variations
  • Evaluating portfolio returns

Health sciences

  • Describing patient vital statistics
  • Analyzing treatment outcomes
  • Summarizing medical test results

Education

  • Summarizing test score distributions
  • Comparing student performance across schools
  • Tracking educational outcomes

Environmental science

  • Analyzing pollution levels
  • Summarizing climate data
  • Describing ecological observations

Related statistical concepts

Derived measures

Several useful statistical measures can be derived from the five-number summary:

  • Mid-range: (Maximum + Minimum) / 2
  • Midhinge: (Q1 + Q3) / 2
  • Trimean: (Q1 + 2×Median + Q3) / 4

Percentiles

Quartiles are special cases of percentiles:

  • Q1 is the 25th percentile
  • Median (Q2) is the 50th percentile
  • Q3 is the 75th percentile

Comparison to mean and standard deviation

The five-number summary provides similar information to the mean and standard deviation but has different properties:

  • Mean and standard deviation are more sensitive to outliers
  • Five-number summary works better for skewed distributions
  • Mean and standard deviation are more mathematically tractable for further analyses

Frequently asked questions

How does the five-number summary handle ties in the data?

When calculating quartiles, ties are treated like any other value. Their position in the ordered dataset determines how they affect the quartile calculations.

What does it mean if Q1 equals the minimum?

If Q1 equals the minimum, it suggests that at least 25% of the values are identical to the minimum value, indicating a highly concentrated distribution at the lower end.

Can the five-number summary be used with categorical data?

The five-number summary is primarily designed for numerical data. For categorical data, frequency counts, mode, and proportions are more appropriate descriptive statistics.

How large should my dataset be to use the five-number summary?

While technically possible with any dataset size, the five-number summary becomes more informative and reliable with larger datasets. For very small datasets (less than 10 observations), the quartiles may not provide meaningful information about the distribution.