• Home
  • Chemistry
  • Astronomy
  • Energy
  • Nature
  • Biology
  • Physics
  • Electronics
  • How to Calculate Mean, Median, Mode, Range, and Standard Deviation: A Step‑by‑Step Guide

    By Karen G Blaettler | Updated Aug 30, 2022

    How to Calculate Mean, Median, Mode, Range, and Standard Deviation: A Step‑by‑Step Guide

    Master the core statistics that let you summarize and compare data sets with confidence. This guide walks you through the formulas, calculations, and interpretation of mean, median, mode, range, and standard deviation.

    Calculating Mean

    The mean is the arithmetic average of a data set. It reflects the central tendency of the values.

    1. Formula

    Mean = Σx / n

    2. Example

    Data set: 20, 24, 25, 36, 25, 22, 23

    Sum: 20+24+25+36+25+22+23 = 175

    Number of values (n): 7

    Mean: 175 ÷ 7 = 25

    Calculating Median

    The median is the middle value when the data are ordered from lowest to highest. It is robust to outliers.

    1. Order the Data

    Ordered set: 20, 22, 23, 24, 25, 25, 36

    2. Find the Center

    With 7 values, the median is the 4th value: 24.

    For an even number of values, average the two middle numbers. Example: 22, 23, 25, 26 → (23+25)/2 = 24.

    Calculating Mode

    The mode is the value(s) that appear most frequently. A data set can be unimodal, multimodal, or have no mode.

    1. Identify Repeated Values

    In the example, 25 appears twice while all others appear once. Mode = 25.

    Other scenarios:

    • 22, 23, 23, 24, 27, 27, 29 → Modes: 23 and 27.
    • 23, 23, 24, 24, 24, 28, 29 → Mode: 24.
    • 21, 23, 24, 25, 26, 27, 29 → No mode.

    Calculating Range

    The range measures spread by subtracting the smallest value from the largest.

    1. Identify Extremes

    Minimum: 20, Maximum: 36

    2. Compute Range

    Range = 36 – 20 = 16

    A large range often signals an outlier; in this set, 36 stands out.

    Calculating Standard Deviation

    Standard deviation quantifies how much the values deviate from the mean. Smaller values indicate tighter clustering.

    1. Formula

    SD = √(Σ(xᵢ – μ)² / (n – 1))

    2. Step‑by‑Step

    1. Mean (μ) = 25 (from earlier).
    2. Compute squared deviations:
      • (20–25)² = 25
      • (24–25)² = 1
      • (25–25)² = 0
      • (36–25)² = 121
      • (25–25)² = 0
      • (22–25)² = 9
      • (23–25)² = 4
    3. Sum of squares = 25+1+0+121+0+9+4 = 160
    4. Divide by n–1: 160 ÷ 6 ≈ 26.6667
    5. Square root: √26.6667 ≈ 5.164
    6. Standard deviation ≈ 5.164

    3. Interpretation

    Values within ±1 SD of the mean (20–30) are typical. Values beyond ±2 SDs (≈10–40) are extreme; 36 exceeds two SDs, flagging it as an outlier.

    By mastering these measures, you can describe, compare, and interpret data sets with authority and precision.

    Science Discoveries © www.scienceaq.com