Finite Mathematics • Probability and Statistics

Mean, Median & Standard Deviation — Compute and interpret mean, median, and standard deviation

Master the central measures and spread that underpin every statistical analysis in finite mathematics.

A finite grid with probability die and proportion chart for finite mathematics
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

The desire to distill large collections of observations into a single representative number is as old as record-keeping itself. Ancient astronomers in Babylon and Greece averaged repeated measurements of celestial positions to improve accuracy, though they lacked formal terminology for what they were doing. The modern statistical toolkit—mean, median, and standard deviation—emerged over several centuries as mathematicians grappled with the twin questions of center and spread. Understanding where these ideas originated clarifies why each measure captures a different facet of a data set and when one is preferable to another.

1669 • Christiaan Huygens & Expected Value

Huygens published De Ratiociniis in Ludo Aleae, formalizing the concept of expected value—the theoretical precursor to the arithmetic mean—in the context of games of chance.

1809 • Gauss & the Method of Least Squares

Carl Friedrich Gauss demonstrated that the arithmetic mean minimizes the sum of squared deviations, establishing a deep connection between the mean and variance that remains foundational in regression analysis.

1893 • Karl Pearson Coins 'Standard Deviation'

Pearson introduced the term standard deviation as a concise replacement for earlier phrases like 'mean error,' giving the discipline a standardized vocabulary for measuring dispersion.

1900s • Median Gains Prominence in Robust Statistics

As researchers encountered heavily skewed income and wealth data, the median rose in importance as a measure of center that resists the pull of extreme observations—a property now called robustness.

These historical threads converge on a fundamental question in finite mathematics: given a finite collection of numerical values, how do we best summarize its central tendency and variability? The mean and median each answer the first question differently, while the standard deviation addresses the second. Together they form the essential descriptive statistics toolkit you will use throughout probability, inferential statistics, and applied data analysis.

SECTION 2

Core Principles & Definitions

Before computing anything, it is essential to understand what each measure represents conceptually. The mean, median, and standard deviation are not interchangeable—they each answer a distinct question about a data set. A data set's shape (symmetric, skewed, multimodal) determines which measure of center is most informative, while the standard deviation quantifies how tightly the data clusters around the mean. The following foundational ideas anchor everything that follows.

1

Arithmetic Mean (x̄)

The sum of all observations divided by the count. The mean acts as the balance point of the distribution: the signed deviations from the mean always sum to zero. It is sensitive to every value in the data set, including outliers.
2

Median (Med)

The value that splits the sorted data set into two equal halves. Exactly 50% of observations fall at or below the median. Because it depends only on positional rank, the median is robust to outliers and is preferred for skewed distributions.
3

Standard Deviation (s or σ)

A measure of spread expressed in the same units as the data. It is defined as the square root of the variance, which is the average (or corrected average) of squared deviations from the mean. A small standard deviation means the data are tightly clustered; a large one signals high dispersion.
4

Population vs. Sample

When data include every member of a group, we compute the population mean (μ) and standard deviation (σ) using N. When data are a subset, we compute the sample mean (x̄) and standard deviation (s), dividing by n − 1 (Bessel's correction) to obtain an unbiased estimator.
✦

KEY TAKEAWAY

Think of a data set as a physical beam with weights at each observation. The mean is the fulcrum point where the beam balances perfectly—move one weight far to the right and the fulcrum shifts. The median is the position where half the weights sit on each side—it barely budges if one extreme weight moves. The standard deviation tells you how far, on average, those weights sit from the fulcrum.

SECTION 3

Visual Explanation — Mean vs. Median on a Number Line

A dot plot on a number line is one of the most direct ways to see how the mean and median relate to the shape of a distribution. The following diagram plots two small data sets: one symmetric and one right-skewed. Observe how the mean and median coincide in the symmetric case but diverge when skew is present.

Mean vs. Median: Symmetric & Skewed DataSymmetric: {2, 4, 5, 6, 8}012345678Mean = Median = 5Right-skewed: {2, 4, 5, 6, 18}024569121518Median = 5Mean = 7Outlier (18) pulls the mean right
In the symmetric set {2, 4, 5, 6, 8}, the mean and median both equal 5. Replacing 8 with the outlier 18 creates right skew: the mean jumps to 7 while the median remains at 5, illustrating the median's robustness to extreme values.

The upper panel shows the symmetric case where the data points are evenly distributed around the center; here the mean and median coincide. In the lower panel a single extreme observation at 18 introduces right skew, dragging the mean upward by two full units while the median stands firm. This visual reinforces a practical rule of thumb: when you suspect outliers or skew, report the median as your primary summary of center, and always pair it with an indication of spread.

SECTION 4

Mathematical Framework

We now formalize the three measures with explicit formulas. Throughout, let the data set consist of n observations denoted x₁, x₂, …, xₙ. When we refer to the population (every member of the group of interest), we use N and the Greek letters μ and σ; for a sample drawn from the population, we use n, x̄, and s.

ARITHMETIC MEAN

xˉ=(1/n)×Σi=1nxi=(x1+x2+⋯+xn)/nx̄ = (1/n) × Σᵢ₌₁ⁿ xᵢ = (x₁ + x₂ + ⋯ + xₙ) / n

Where x̄ is the sample mean, n is the number of observations, and xᵢ is the i-th data value. The population mean μ uses the same formula with N replacing n.

MEDIAN

Med=x((n+1)/2)ifnisodd;Med=(x(n/2)+x(n/2+1))/2ifnisevenMed = x₍₍ₙ₊₁₎/₂₎ if n is odd; Med = (x₍ₙ/₂₎ + x₍ₙ/₂₊₁₎) / 2 if n is even

Sort the data in ascending order. If n is odd, the median is the middle value. If n is even, it is the arithmetic mean of the two central values. Here x₍ₖ₎ denotes the k-th order statistic (the k-th smallest observation).

SAMPLE VARIANCE & STANDARD DEVIATION

s2=(1/(n−1))×Σi=1n(xi−xˉ)2s=√s2s² = (1/(n−1)) × Σᵢ₌₁ⁿ (xᵢ − x̄)² s = √s²

The divisor n − 1 (Bessel's correction) ensures s² is an unbiased estimator of σ². Each squared deviation (xᵢ − x̄)² measures how far observation i lies from the mean. The standard deviation s returns dispersion to the original units by taking the square root of the variance.

POPULATION STANDARD DEVIATION

σ=√[(1/N)×Σi=1N(xi−μ)2]σ = √[(1/N) × Σᵢ₌₁ᴺ (xᵢ − μ)²]

When data represent the entire population (e.g., final grades for every student in a class), divide by N rather than N − 1.

ℹ

Why n − 1?

Using the sample mean x̄ in place of the unknown population mean μ 'uses up' one degree of freedom. The deviations xᵢ − x̄ are constrained (they sum to zero), so only n − 1 of them are independent. Dividing by n − 1 corrects the downward bias that would otherwise underestimate σ². This is known as Bessel's correction.

SECTION 5

Visualizing Standard Deviation

The standard deviation is easier to interpret when you see it drawn on a distribution. For data that are roughly bell-shaped (normal), the Empirical Rule (also called the 68-95-99.7 rule) provides a quick way to gauge what fraction of data falls within one, two, or three standard deviations of the mean. Even for non-normal distributions, Chebyshev's inequality guarantees that at least 1 − 1/k² of data lies within k standard deviations for any k > 1.

The Empirical Rule (68-95-99.7)μμ−σμ+σ68%μ−2σμ+2σ95%μ−3σμ+3σ99.7%Data Value →Frequency
For a normally distributed data set, approximately 68% of values lie within one standard deviation of the mean (cyan band), 95% within two standard deviations (amber band), and 99.7% within three standard deviations (emerald band). The dashed pink line marks the mean μ.

In the diagram above, the cyan band (±1σ) captures the majority of observations. The amber band (±2σ) leaves only about 5% in the tails, and by the emerald band (±3σ) nearly the entire data set is enclosed. This makes the standard deviation an actionable ruler: if a new observation falls more than two standard deviations from the mean, it is unusual (roughly a 5% event), which is precisely the logic behind statistical hypothesis testing and quality-control charts.

Data Coverage by Number of Standard Deviations

μ − 3σ μ + 3σ

SECTION 6

Worked Example

Consider the following exam scores (out of 100) for a sample of seven students: 72, 85, 90, 68, 95, 78, 82. We will compute the sample mean, the median, and the sample standard deviation, then interpret each result.

Computing Mean, Median & Standard Deviation

  1. 1

    Step 1 — Sort the Data

    Arrange the scores in ascending order: 68, 72, 78, 82, 85, 90, 95. This ordering is required for finding the median and helpful for checking our work.
    Sorted: {68, 72, 78, 82, 85, 90, 95}
  2. 2

    Step 2 — Compute the Sample Mean

    Sum the values: 68 + 72 + 78 + 82 + 85 + 90 + 95 = 570. Divide by n = 7: x̄ = 570 / 7 ≈ 81.43.
    x̄ ≈ 81.43
  3. 3

    Step 3 — Find the Median

    With n = 7 (odd), the median is the (7 + 1)/2 = 4th value in the sorted list. The 4th value is 82.
    Median = 82
  4. 4

    Step 4 — Compute Deviations from the Mean

    For each observation xᵢ, calculate (xᵢ − x̄): (68 − 81.43) = −13.43, (72 − 81.43) = −9.43, (78 − 81.43) = −3.43, (82 − 81.43) = 0.57, (85 − 81.43) = 3.57, (90 − 81.43) = 8.57, (95 − 81.43) = 13.57. Notice these sum to approximately zero (rounding aside), confirming the mean is the balance point.
  5. 5

    Step 5 — Square and Sum the Deviations

    Square each deviation: (−13.43)² = 180.37, (−9.43)² = 88.92, (−3.43)² = 11.76, (0.57)² = 0.33, (3.57)² = 12.74, (8.57)² = 73.44, (13.57)² = 184.14. Sum of squared deviations = 551.71.
    Σ(xᵢ − x̄)² ≈ 551.71
  6. 6

    Step 6 — Compute Variance and Standard Deviation

    Sample variance s² = 551.71 / (7 − 1) = 551.71 / 6 ≈ 91.95. Sample standard deviation s = √91.95 ≈ 9.59.
    s ≈ 9.59 points
  7. 7

    Step 7 — Interpret the Results

    The sample mean of about 81.4 and the median of 82 are close, suggesting the distribution is roughly symmetric—consistent with no extreme outliers pulling the mean. The standard deviation of approximately 9.6 points tells us that a typical exam score deviates from the mean by about 9.6 points. Under the Empirical Rule, roughly 68% of scores would be expected to fall between 81.4 − 9.6 = 71.8 and 81.4 + 9.6 = 91.0, which aligns well with our sorted data.

SECTION 7

Strengths & Limitations of Each Measure

No single statistic tells the whole story. Choosing between the mean and median—or knowing when to supplement either with the standard deviation—depends on the data's distribution, the presence of outliers, and the context of the analysis. The table below summarizes key trade-offs.

CriterionMean (x̄ / μ)MedianStandard Deviation (s / σ)
Sensitivity to outliersHigh — a single extreme value can shift x̄ substantiallyLow — depends only on the middle rank(s)High — outliers inflate squared deviations
Algebraic tractabilityExcellent — additive, differentiable, integrableLimited — not algebraically decomposableGood — variance is additive for independent variables
Best for skewed data?No — can misrepresent the 'typical' valueYes — often the better center measureShould be paired with IQR for skewed data
Uses all data points?YesNo — only the central observation(s)Yes
Role in inferential statisticsCentral to CLT, t-tests, ANOVAUsed in non-parametric methods (sign test, Wilcoxon)Essential for z-scores, confidence intervals, hypothesis tests

Comparison of Mean, Median, and Standard Deviation across key criteria

✦

KEY TAKEAWAY

In engineering quality control, the mean is the target and the standard deviation is the tolerance band. A manufacturing process might aim for a mean bolt diameter of 10.00 mm with a standard deviation under 0.02 mm. If the process starts producing bolts with a higher standard deviation, the mean might still be on target, but the fraction of defective parts outside the specification window increases rapidly. This is why center alone is never enough—you always need spread.

SECTION 8

Connection to Advanced Theory

The descriptive statistics covered here serve as the stepping stones to deeper probabilistic and inferential frameworks. The sample mean x̄, for instance, is itself a random variable whose behavior is governed by the Central Limit Theorem (CLT): regardless of the population's distribution shape, x̄ is approximately normally distributed for large n, with mean μ and standard deviation σ/√n. This fact underpins confidence intervals, hypothesis tests, and regression analysis, making the mean and standard deviation the most important pair of statistics in classical inference.

Descriptive ConceptAdvanced ExtensionWhere You'll See It
Sample mean x̄Sampling distribution of x̄; CLT; E[X]Confidence intervals, t-tests, ANOVA
MedianQuantile functions; robust estimation (M-estimators)Non-parametric tests, quantile regression, survival analysis
Sample variance s²Chi-squared distribution of (n−1)s²/σ²Chi-squared tests, F-tests for comparing variances
Standard deviation sStandard error SE = s/√n; z-scoresMargin of error calculations, process control (Six Sigma)

From descriptive to inferential: how each concept extends

As you progress through finite mathematics and into formal probability theory, you will encounter the expected value E[X] and Var(X) as the population-level analogues of the sample mean and sample variance. The computational formulas extend naturally: E[X] = Σ xᵢ P(xᵢ) for a discrete random variable, and Var(X) = E[X²] − (E[X])². Mastering the data-level computations in this lesson gives you the concrete foundation on which those abstract formulations rest.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A data set has a mean of 50 and a median of 42. What can you infer about the shape of its distribution? Explain which measure would better represent a 'typical' value and why.
Show answer
Because the mean (50) exceeds the median (42), the distribution is right-skewed. Extreme high values are pulling the mean upward while the median, anchored to the positional center, remains lower. In a right-skewed distribution, the median better represents a typical value because it is not inflated by the outliers in the right tail. For example, if this data set represented household incomes in a neighborhood, a few very wealthy households would elevate the mean, but the median would more accurately reflect the income of a 'middle' household.

Question 2: BASIC CALCULATION

Find the mean and median of the data set: {14, 22, 18, 25, 10, 22}.
Show answer
First, compute the mean: (14 + 22 + 18 + 25 + 10 + 22) / 6 = 111 / 6 = 18.5. Next, sort the data in ascending order: {10, 14, 18, 22, 22, 25}. Since n = 6 is even, the median is the average of the 3rd and 4th values: (18 + 22) / 2 = 20. The mean is 18.5 and the median is 20. The slight difference (median > mean) suggests a very mild left skew, though with only six observations the difference is negligible.

Question 3: INTERMEDIATE

For the sample data {5, 8, 12, 7, 10}, compute the sample standard deviation s. Show all intermediate calculations including each squared deviation.
Show answer
Step 1: Compute the mean: x̄ = (5 + 8 + 12 + 7 + 10) / 5 = 42 / 5 = 8.4. Step 2: Compute each deviation and square it: (5 − 8.4)² = (−3.4)² = 11.56; (8 − 8.4)² = (−0.4)² = 0.16; (12 − 8.4)² = (3.6)² = 12.96; (7 − 8.4)² = (−1.4)² = 1.96; (10 − 8.4)² = (1.6)² = 2.56. Step 3: Sum the squared deviations: 11.56 + 0.16 + 12.96 + 1.96 + 2.56 = 29.20. Step 4: Divide by n − 1 = 4: s² = 29.20 / 4 = 7.30. Step 5: Take the square root: s = √7.30 ≈ 2.70. The sample standard deviation is approximately 2.70 units, indicating that a typical observation deviates from the mean by roughly 2.7 units.

Question 4: APPLIED

A quality-control engineer measures the weights (in grams) of 8 randomly selected cereal boxes from a production line: {498, 502, 497, 505, 500, 501, 499, 503}. The target weight is 500 g, and any box more than two sample standard deviations from the sample mean is flagged for inspection. (a) Compute x̄ and s. (b) Determine the range [x̄ − 2s, x̄ + 2s]. (c) Are any boxes flagged?
Show answer
(a) Sum = 498 + 502 + 497 + 505 + 500 + 501 + 499 + 503 = 4005. Mean x̄ = 4005 / 8 = 500.625 g. Squared deviations: (498 − 500.625)² = 6.89, (502 − 500.625)² = 1.89, (497 − 500.625)² = 13.14, (505 − 500.625)² = 19.14, (500 − 500.625)² = 0.39, (501 − 500.625)² = 0.14, (499 − 500.625)² = 2.64, (503 − 500.625)² = 5.64. Sum = 49.87. s² = 49.87 / 7 ≈ 7.12, so s ≈ 2.67 g. (b) The acceptable range is x̄ ± 2s = 500.625 ± 5.34, giving [495.29, 505.96]. (c) All eight observations fall within this range, so no boxes are flagged. The process appears well-centered near 500 g with low variability.

Question 5: CRITICAL THINKING

Prove algebraically that for any data set {x₁, x₂, …, xₙ}, the sum of deviations from the mean equals zero: Σᵢ₌₁ⁿ (xᵢ − x̄) = 0. Then explain why this property implies the mean minimizes the sum of absolute deviations only when the distribution is symmetric, whereas the median always minimizes it.
Show answer
Proof: Σᵢ₌₁ⁿ (xᵢ − x̄) = Σᵢ₌₁ⁿ xᵢ − Σᵢ₌₁ⁿ x̄ = Σᵢ₌₁ⁿ xᵢ − n × x̄. Since x̄ = (1/n) Σ xᵢ, we have n × x̄ = Σ xᵢ, so the expression equals Σ xᵢ − Σ xᵢ = 0. This shows the positive and negative deviations from the mean cancel perfectly. Now consider the sum of absolute deviations f(c) = Σ |xᵢ − c|. The function f is piecewise linear and convex, and its minimum occurs at the median of the data (or anywhere in the interval between the two middle values when n is even). The mean minimizes the sum of squared deviations Σ (xᵢ − c)² instead. For symmetric distributions, the mean and median coincide, so the mean also minimizes absolute deviations in that special case. For skewed distributions, the median remains the minimizer of absolute deviations while the mean is pulled toward the tail, making the median the more robust measure of center.

SUMMARY

Lesson Summary

Summary

This lesson introduced the three foundational descriptive statistics in finite mathematics. The arithmetic mean (x̄ = Σxᵢ / n) serves as the balance point of a data set and plays a central role in inferential statistics via the Central Limit Theorem. The median is the positional center—the value that splits sorted data into two equal halves—and is preferred when distributions are skewed or contain outliers. The standard deviation (s = √[Σ(xᵢ − x̄)² / (n − 1)]) quantifies dispersion in the same units as the data, with the Empirical Rule providing a practical interpretation for approximately normal distributions: about 68% of data falls within ±1σ, 95% within ±2σ, and 99.7% within ±3σ.

Always report both a measure of center and a measure of spread; neither alone gives a complete picture. Distinguish between population parameters (μ, σ with divisor N) and sample statistics (x̄, s with divisor n − 1). These descriptive tools form the bedrock upon which confidence intervals, hypothesis tests, and regression models are built in the next stages of your study.

Varsity Tutors • Finite Mathematics • Mean, Median & Standard Deviation