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.

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.

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.

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.

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.

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) × Σᵢ₌₁ⁿ 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₍₍ₙ₊₁₎/₂₎ 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
s² = (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) × Σᵢ₌₁ᴺ (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.

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.

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
±1σ → 68%
+1σ to ±2σ → 27%
±2σ to ±3σ → 4.7%
μ − 3σμ + 3σ

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
Step 1 — Sort the DataArrange 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
Step 2 — Compute the Sample MeanSum the values: 68 + 72 + 78 + 82 + 85 + 90 + 95 = 570. Divide by n = 7: x̄ = 570 / 7 ≈ 81.43.
x̄ ≈ 81.43
3
Step 3 — Find the MedianWith n = 7 (odd), the median is the (7 + 1)/2 = 4th value in the sorted list. The 4th value is 82.
Median = 82
4
Step 4 — Compute Deviations from the MeanFor 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
Step 5 — Square and Sum the DeviationsSquare 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
Step 6 — Compute Variance and Standard DeviationSample variance s² = 551.71 / (7 − 1) = 551.71 / 6 ≈ 91.95. Sample standard deviation s = √91.95 ≈ 9.59.
s ≈ 9.59 points
7
Step 7 — Interpret the ResultsThe 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.

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.

Comparison of Mean, Median, and Standard Deviation across key criteria
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
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.

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.

From descriptive to inferential: how each concept extends
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)

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.

Practice Problems

PROBLEM 1CONCEPTUAL
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.
PROBLEM 2BASIC CALCULATION
Find the mean and median of the data set: {14, 22, 18, 25, 10, 22}.
PROBLEM 3INTERMEDIATE
For the sample data {5, 8, 12, 7, 10}, compute the sample standard deviation s. Show all intermediate calculations including each squared deviation.
PROBLEM 4APPLIED
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?
PROBLEM 5CRITICAL 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.

Lesson 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