Mean, Median, and Mode Calculations

April 12, 2026

Problem

Find mean, median, and mode of {3, 7, 7, 2, 9, 4, 7, 5}. Show sorted data with markers for each measure.

Explanation

Three measures of center

Mean (average): Add all values, divide by the count.

Median: Sort the data, take the middle value (or average of two middle values if even count).

Mode: The most frequently occurring value.

Step-by-step: {3, 7, 7, 2, 9, 4, 7, 5}

Step 1 — Sort: {2, 3, 4, 5, 7, 7, 7, 9}

Step 2 — Mean:

xˉ=2+3+4+5+7+7+7+98=448=5.5\bar{x} = \frac{2 + 3 + 4 + 5 + 7 + 7 + 7 + 9}{8} = \frac{44}{8} = 5.5

Step 3 — Median: 8 values (even count), so median = average of 4th and 5th values:

median=5+72=6\text{median} = \frac{5 + 7}{2} = 6

Step 4 — Mode: 7 appears 3 times (most frequent). Mode = 7.

Summary

  • Mean = 5.5 (sensitive to extreme values)
  • Median = 6 (robust to outliers)
  • Mode = 7 (most common value)

When to use which

  • Mean when data is symmetric with no outliers.
  • Median when data is skewed or has outliers (e.g., income data).
  • Mode for categorical data or finding the most popular option.

Try it in the visualization

The sorted data is displayed with markers for mean (red line), median (green line), and mode (blue highlight). Drag values to see how each measure responds.

Interactive Visualization

Parameters

3.00
7.00
7.00
2.00
9.00
4.00
7.00
5.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Mean, Median, and Mode Calculations | MathSpin