Descriptive Statistics Mean Median Mode Grouped Data 35 min read November 1, 2026
BY: Statistics Fundamentals Team
Reviewed By: Minsa A (Senior Statistics Editor)

Measures of Central Tendency: Mean, Median and Mode Explained

A measure of central tendency is a single value that summarizes an entire dataset by identifying where most values cluster. The three main measures are the mean (arithmetic average), the median (middle value when data is ordered), and the mode (most frequently occurring value). Which one to use depends on the type of data and whether the distribution is symmetric or skewed.

Mean ↓ Median ↓ Mode ↓ Grouped Data ↓ When to Use ↓ Karl Pearson ↓ Python & Excel ↓

Mean, Median & Mode Calculator

Enter your data below for instant results with full step-by-step working. Ungrouped: enter comma-separated numbers. Grouped: fill the frequency table.

Enter class intervals (e.g. 10–20) and their frequencies. Add rows as needed.

#Lower BoundUpper BoundFrequency (f)
1
2
3
4
5

For a dedicated tool, see the mean, median and mode calculator or the interactive visualizer.

What Are Measures of Central Tendency?

When you collect data — exam scores, salaries, product ratings, daily temperatures — you end up with a list of numbers. That list tells you everything, but it is hard to absorb at a glance. A measure of central tendency compresses the entire distribution into one representative value, giving you a quick answer to the question: "What is a typical observation in this dataset?"

The three most widely used measures each define "typical" differently. They can agree closely when data is symmetric, or diverge sharply when it is skewed or multimodal. That divergence, when it occurs, is itself informative.

Quick Definition — Featured Snippet Target

A measure of central tendency is a single summary value that represents the center of a dataset. The mean sums all values and divides by the count. The median identifies the middle value of ordered data. The mode identifies the most frequently occurring value. Choosing among them depends on the data's measurement level and distribution shape.

Central tendency is always one half of a complete descriptive summary. The other half is dispersion: how spread out the values are around that central point. A mean of 50 means something very different when paired with a standard deviation of 2 versus a standard deviation of 30.

For a broader grounding in the field, the parent category — descriptive statistics — covers every technique for summarizing data before inference begins.

Mean — Definition, Formula, and Examples

The mean, most often called the arithmetic mean or simply the average, is the most widely used measure of central tendency. You add all the values together and divide by the count. Every observation contributes equally to the result.

Arithmetic Mean (Ungrouped Data)

Arithmetic Mean — Ungrouped Data
x̄ = Σxᵢ / n
x̄ = sample mean Σxᵢ = sum of all values n = number of observations
Worked Example

Dataset: 12, 7, 3, 14, 6, 9, 19

1

Count: n = 7 values.

2

Sum: 12 + 7 + 3 + 14 + 6 + 9 + 19 = 70

3

Divide: x̄ = 70 ÷ 7 = 10

✓ Mean = 10. The sum of deviations from this mean equals zero: (12−10)+(7−10)+(3−10)+(14−10)+(6−10)+(9−10)+(19−10) = 2+(−3)+(−7)+4+(−4)+(−1)+9 = 0.

Key properties of the arithmetic mean

Every value in the dataset contributes to the mean, which makes it maximally informative for symmetric data. Adding a constant to every value increases the mean by that constant; multiplying every value by a constant multiplies the mean by that constant. The mean minimizes the sum of squared deviations — this is why it anchors the formulas for variance and standard deviation.

Arithmetic Mean (Grouped Data)

When raw values are unavailable and only class intervals with frequencies are given, the mean is estimated using class midpoints (also called class marks).

Mean — Grouped Data
x̄ = Σ(fᵢ × xᵢ) / Σfᵢ
xᵢ = class midpoint = (lower + upper) ÷ 2 fᵢ = class frequency Σfᵢ = total frequency (n)

The midpoint method (direct method) is the most common approach. There is also the assumed mean method (short-cut method) and the step-deviation method, both of which simplify arithmetic when midpoints are large — but they produce identical results.

Geometric Mean

The geometric mean is the nth root of the product of n positive values. In logarithmic form it equals the antilog of the average log-transformed value.

Geometric Mean
G.M. = (x₁ · x₂ · x₃ · … · xₙ)^(1/n)
Equivalent: antilog(Σ log xᵢ / n)

Use the geometric mean for investment returns, population growth rates, percentage changes, and any process where effects multiply rather than add. An important rule: GM ≤ AM when values are not all equal, and the gap widens as variability increases. For a full treatment with more examples, see the dedicated geometric mean page.

Worked Example — Why Geometric Mean Matters

Annual investment returns: +5%, +8%, −3%, +12%, +6%

1

Convert to growth factors: 1.05, 1.08, 0.97, 1.12, 1.06

2

Arithmetic mean of growth factors: (1.05+1.08+0.97+1.12+1.06) ÷ 5 = 5.28 ÷ 5 = 1.056 → implies +5.6%/year

3

Geometric mean: (1.05 × 1.08 × 0.97 × 1.12 × 1.06)^(1/5) = (1.3069)^0.2 ≈ 1.0550 → implies +5.5%/year

✓ The geometric mean of +5.5% is the actual compound annual growth rate. The arithmetic mean overstates it because it ignores the sequence and compounding of gains and losses.

Harmonic Mean

Harmonic Mean
H.M. = n / Σ(1/xᵢ)

Use the harmonic mean when averaging rates where the denominator is the variable — most often speed over equal distances. The classic example: a car travels 60 km/h going out and 40 km/h coming back. The harmonic mean gives the correct average speed: H.M. = 2 ÷ (1/60 + 1/40) = 2 ÷ (0.0167 + 0.025) = 2 ÷ 0.0417 ≈ 48 km/h. The arithmetic mean of 50 km/h is wrong because more time is spent at the slower speed.

The three classical means obey: H.M. ≤ G.M. ≤ A.M. for positive values (equality only when all values are identical).

Weighted Mean

Weighted Mean
x̄_w = Σ(wᵢ × xᵢ) / Σwᵢ

The weighted mean accounts for values of unequal importance. It is essential for GPA calculations (courses have different credit hours), survey data with unequal sampling probabilities, and financial portfolio returns. See the weighted mean page for a full GPA example.

Trimmed Mean

The trimmed mean removes a fixed percentage of the most extreme values — typically 5% or 10% from each tail — before calculating the arithmetic mean. It sits between the mean and the median in terms of outlier sensitivity. Olympic judging uses a form of this: the lowest and highest scores from judges are discarded before averaging the rest.

Population Mean vs. Sample Mean

ℹ️
Notation matters

Population mean: μ = Σx / N (uses capital N, symbol mu). Sample mean: x̄ = Σx / n (uses lowercase n, symbol x-bar). The calculation is identical. The distinction matters for statistical inference, not for computation.

Advantages and Disadvantages of the Mean

AdvantagesDisadvantages
Uses every data point in the calculationHeavily influenced by outliers and extreme values
Algebraically tractable; basis for variance and SDMisleading summary for skewed distributions
Unique — exactly one mean exists per datasetNot appropriate for nominal or ordinal data
Sum of deviations from mean equals zeroMay fall outside the range of possible values for discrete data

Median — Definition, Formula, and Examples

The median is the middle value of a dataset arranged in order. It divides the distribution into two equal halves: 50% of values fall below it and 50% above. Unlike the mean, it depends only on position, not on magnitude.

Median of Ungrouped Data (Odd N)

Median — Odd Number of Values
Median = value at position (n+1)/2
Worked Example — Odd N

Dataset: 15, 3, 22, 8, 11, 2, 9, 17, 6 (n = 9)

1

Sort ascending: 2, 3, 6, 8, 9, 11, 15, 17, 22

2

Middle position: (9+1)/2 = 5th value

3

The 5th value in the sorted list is 9.

✓ Median = 9. Common mistake: forgetting to sort the data before finding the position.

Median of Ungrouped Data (Even N)

Median — Even Number of Values
Median = (value at n/2 + value at n/2+1) / 2
Worked Example — Even N

Dataset: 15, 3, 22, 8, 11, 2, 9, 17, 6, 20 (n = 10)

1

Sort ascending: 2, 3, 6, 8, 9, 11, 15, 17, 20, 22

2

Middle positions: 10/2 = 5th and 6th values

3

Average the 5th (9) and 6th (11) values: (9 + 11) / 2 = 10

✓ Median = 10. The median is the 50th percentile — these two concepts are equivalent.

Median of Grouped Data

This is where many students get stuck. When data is presented as a frequency distribution, you cannot identify the exact middle value, so you interpolate within the median class.

Median — Grouped Data (Interpolation Formula)
Median = l + ((n/2 − cƒ) / f) × h
l = lower class boundary of the median class n = total frequency cƒ = cumulative frequency before the median class f = frequency of the median class h = class width

Step-by-step procedure: (1) Find total frequency n. (2) Calculate n/2. (3) Build a cumulative frequency column. (4) The median class is the first class whose cumulative frequency ≥ n/2. (5) Apply the formula. The complete example appears in the Grouped Data section below.

Why the Median Is Resistant to Outliers

Resistance to Outliers

Salaries at a small firm (9 employees)

1

Salaries: $32k, $34k, $36k, $35k, $33k, $38k, $37k, $36k, $500k (the CEO).

2

Mean: ($32k+$34k+$36k+$35k+$33k+$38k+$37k+$36k+$500k) / 9 ≈ $89k

3

Sorted: $32k, $33k, $34k, $35k, $36k, $36k, $37k, $38k, $500k. Median = 5th value = $36k

✓ The median ($36k) accurately reflects what a typical employee earns. The mean ($89k) misrepresents 8 of the 9 workers because a single outlier more than doubled it. This is why reported income figures use median household income, not mean income.

Advantages and Disadvantages of the Median

AdvantagesDisadvantages
Not affected by outliers or extreme valuesIgnores most of the data values in its calculation
Best central tendency measure for skewed dataLess algebraically tractable than the mean
Appropriate for ordinal-level dataMore involved to compute for even-sized datasets
Always within the range of the observed dataLess stable than the mean in small samples

For deeper exploration, see the median page and the worked examples collection at median examples.

Mode — Definition, Formula, and Examples

The mode is the value (or values) that appear most often in a dataset. A dataset can have no mode (when all values are distinct), one mode (unimodal), two modes (bimodal), or more (multimodal). The mode is the only measure of central tendency that makes sense for categorical data.

Mode of Ungrouped Data

There is no formula to memorize — simply count frequencies and identify the most common value.

Worked Example — Three Cases

Case 1 (Unimodal): 3, 5, 7, 5, 9, 5, 2

Value 5 appears 3 times, all others once. Mode = 5

Case 2 (Bimodal): 4, 8, 4, 12, 8, 3

Values 4 and 8 each appear twice. Both are modes: 4 and 8. The bimodal nature reveals two distinct clusters that neither the mean nor median can show.

Case 3 (No mode): 2, 4, 7, 11, 18

Each value appears exactly once. There is no mode.

⚠️
Software caveat

scipy.stats.mode() returns the smallest value when no true mode exists. This is a software convention, not the statistical definition. Always verify the output against your actual data.

Mode of Grouped Data

For grouped frequency distributions, the exact mode is unknown. Instead, identify the modal class (highest frequency) and estimate the mode by interpolation.

Mode — Grouped Data (Modal Class Formula)
Mode = l + ((f₁ − f₀) / (2f₁ − f₀ − f₂)) × h
l = lower class boundary of the modal class f₁ = frequency of the modal class f₀ = frequency of the class immediately before the modal class f₂ = frequency of the class immediately after the modal class h = class width

When to Use the Mode

The mode is the correct choice when data is nominal (categorical) — it is the only valid measure of central tendency in that situation. Most common brand, most common eye colour, most-voted candidate: mode only. It also reveals the distinct peaks in bimodal data that mean and median cannot show, and it is unaffected by outliers.

When not to use it: avoid the mode for continuous data with no repeating values (it may not exist), and for summarizing the center of a distribution when the mode happens to fall at an extreme.

The full standalone treatment is at mode.

Advantages and Disadvantages of the Mode

AdvantagesDisadvantages
Only valid measure for nominal/categorical dataMay not be unique (bimodal or multimodal)
Easy to identify by inspectionMay not exist in continuous datasets
Not affected by outliersCan fall anywhere, not necessarily near the center
Reveals multiple clusters in bimodal dataUnstable in small samples

Formulas Reference Table

MeasureUngrouped FormulaGrouped Formula
Meanx̄ = Σxᵢ / nx̄ = Σ(fᵢxᵢ) / Σfᵢ
Median (odd n)Value at position (n+1)/2l + ((n/2 − cƒ) / f) × h
Median (even n)Average of values at n/2 and (n/2)+1 positions
ModeMost frequently occurring valuel + ((f₁ − f₀) / (2f₁ − f₀ − f₂)) × h
ℹ️
Grouped data note

All three grouped data formulas are estimates. Because raw values are collapsed into class intervals, the exact mean, median, and mode cannot be recovered from a frequency table alone.

How Distribution Shape Affects Mean, Median, and Mode

The relative positions of mean, median, and mode shift depending on whether the distribution is symmetric or skewed. This relationship is one of the most tested concepts in introductory statistics, and it provides a practical rule for choosing which measure to report. For a deeper treatment of distribution shape, see skewness and kurtosis.

Symmetric (Normal)
Mean=Median=Mode
Mean = Median = Mode

All three are equivalent. The mean is preferred because it uses all data and supports further calculations.

Positively Skewed (Right Skew)
Mode Median Mean
Mode < Median < Mean

Mean is pulled right by high-value outliers. Income data, property prices, response times. Report the median.

Negatively Skewed (Left Skew)
Mean Median Mode
Mean < Median < Mode

Mean is pulled left by low-value outliers. Age at retirement, easy exam scores. Report the median.

To visualize these relationships interactively, the mean median mode visualizer lets you drag values and watch the three measures shift in real time.

Which Measure of Central Tendency Should You Use?

This is the most practically important question in descriptive statistics. The answer depends on three factors: the measurement level of your data, whether the distribution is symmetric, and whether extreme values are present. The table below covers the eight most common situations — it is the primary featured snippet target for "when to use mean vs median."

Data TypeDistributionOutliers?Best MeasureWhy
Nominal (categorical)AnyN/AModeOnly valid option for categories
Ordinal (ranked)AnyYes/NoMedianPreserves rank order; mean is inappropriate
Interval / RatioSymmetricNoMeanUses all data; algebraically tractable
Interval / RatioSkewedYesMedianResistant to extreme values
Interval / RatioSkewedExtremeTrimmed MeanBalance between mean and median
Rates / RatiosAnyNoGeometric MeanCorrect for multiplicative processes
Rates over equal denominatorsAnyNoHarmonic MeanCorrect for rate problems (speed, etc.)
Unequal importanceAnyNoWeighted MeanAccounts for differential importance

Mean vs. Median — The Key Rule

The mean is pulled toward the tail of a skewed distribution. The median stays near the actual center regardless of what happens in the tails.

If mean ≈ median: your distribution is approximately symmetric. Either measure is defensible; the mean is preferred for its algebraic properties. If mean > median: the distribution is right-skewed (positive skew). Report the median as your primary summary, and note the mean if comparisons with other research require it. If mean < median: the distribution is left-skewed (negative skew). Same advice — report the median.

The classic illustration is U.S. household income: mean income is far higher than median income because a small number of very high earners pull the mean upward. The median represents what the typical household actually earns.

For a systematic comparison of these two measures, the mean vs median vs mode blog goes through real-world cases in more depth.

What to Do When ALL Three Measures Disagree Significantly

This situation is absent from all top competing resources on this topic. When mean, median, and mode all differ substantially, do the following before reporting any single number.

First, graph your data. A histogram will reveal whether the distribution is skewed or multimodal. No other step is more informative.

Second, check for outliers. Use the IQR method or visual inspection (see outliers for detection methods). If extreme values are driving the divergence, the median is almost certainly the right primary measure.

Third, consider bimodality. If the histogram shows two distinct peaks, no single measure adequately summarizes the data. Report both modes and investigate whether subgroups explain the two peaks. A single average hides the structure that matters most.

Fourth, report both mean and median when readers need to compare your data with prior research — the gap itself communicates that the distribution is non-normal.

Empirical Relation Between Mean, Median, and Mode

Karl Pearson observed that for moderately skewed unimodal distributions, the three measures follow a consistent spacing. This empirical formula allows you to estimate one measure when the other two are known.

Karl Pearson's Empirical Formula
Mode ≈ 3 × Median − 2 × Mean
Equivalent: Mean − Mode ≈ 3(Mean − Median)
⚠️
Approximation, not identity

Pearson's formula is an empirical rule that holds reasonably well for moderately skewed distributions. It is not an exact mathematical identity. Do not apply it to severely skewed data or to multimodal distributions.

Using Karl Pearson's Formula — Worked Examples

Example 1 — Find the Mode

Given: Mean = 35, Median = 33. Find the Mode.

Mode = 3 × 33 − 2 × 35 = 99 − 70 = 29

Answer: Mode = 29 (Since mode < median < mean, the distribution is negatively skewed — consistent.)

Example 2 — Find the Median

Given: Mean = 26, Mode = 23. Find the Median.

23 = 3 × Median − 2 × 26 → 23 + 52 = 3 × Median → Median = 75/3 = 25

Answer: Median = 25

Example 3 — Find the Mean

Given: Median = 40, Mode = 36. Find the Mean.

36 = 3 × 40 − 2 × Mean → 2 × Mean = 120 − 36 = 84 → Mean = 42

Answer: Mean = 42 (Since mode < median < mean, this is a positively skewed distribution.)

Practice: (a) Mean = 60, Median = 55. Find Mode. (b) Mean = 18, Mode = 15. Find Median. (c) Mode = 28, Median = 33. Find Mean. Answers: (a) Mode = 45. (b) Median = 17. (c) Mean = 35.5.

Calculating Mean, Median, and Mode from a Frequency Distribution Table

This is the most common pain point for students in Class 10, Class 11, and undergraduate statistics. The key insight: all three grouped data formulas are estimates. Work through one complete example to see how each measure is extracted from the same frequency table.

Complete Worked Example — All Three Measures from One Table

Class IntervalFrequency (f)Midpoint (x)f × xCumulative Freq.
10 – 20515755
20 – 3082520013
30 – 4012 ← modal & median class3542025
40 – 5094540534
50 – 6065533040
Totaln = 40—Σfx = 1430—

Step 1: Mean

x̄ = Σfx ÷ Σf = 1430 ÷ 40 = 35.75

Step 2: Median

1

n/2 = 40/2 = 20

2

The cumulative frequency first reaches or exceeds 20 at the 30–40 class (cumulative frequency = 25). This is the median class.

3

l = 30, n/2 = 20, cƒ = 13 (cumulative frequency before 30–40 class), f = 12, h = 10

4

Median = 30 + ((20 − 13) / 12) × 10 = 30 + (7/12) × 10 = 30 + 5.83 = 35.83

Step 3: Mode

1

Modal class = 30–40 (highest frequency: 12)

2

l = 30, f₁ = 12, f₀ = 8 (frequency of 20–30), f₂ = 9 (frequency of 40–50), h = 10

3

Mode = 30 + ((12 − 8) / (2×12 − 8 − 9)) × 10 = 30 + (4 / 7) × 10 = 30 + 5.71 = 35.71

✓ Summary: Mean = 35.75, Median = 35.83, Mode = 35.71. All three are close, confirming this distribution is nearly symmetric. Karl Pearson's check: 3 × 35.83 − 2 × 35.75 = 107.49 − 71.50 = 35.99 ≈ 35.71 (mode). Holds approximately. ✓

For a descriptive statistics calculator that computes these and more from a frequency table, see the descriptive statistics calculator.

How Outliers Affect Mean, Median, and Mode

Effect on Mean

The mean incorporates every value in the dataset equally. One extreme observation can shift the mean far from the rest of the data. This is not a flaw — it is a mathematical property. The mean faithfully reports the arithmetic average, which may or may not represent a typical value.

Effect on Median

The median is determined by position, not by value. Changing any observation that remains on the same side of the median position leaves the median unchanged. This resistance to outliers makes the median reliable for skewed data and for small samples where a single erroneous entry might otherwise distort the summary. For a complementary tool, the interquartile range is the natural companion to the median for measuring spread.

Effect on Mode

The mode is unaffected by outliers unless the outlier value happens to repeat more often than other values — a scenario that is rare in practice.

Practical Diagnostic Rule

✅
Mean–median gap as a diagnostic

When mean and median differ substantially, suspect either a skewed distribution or influential outliers. Investigate before choosing which to report. A box plot makes outliers visible at a glance. For formal detection methods, see outliers in descriptive statistics.

Calculating Mean, Median, and Mode in Python and Excel

This section is absent from all major competitor pages on this topic. Both sets of code below have been verified to run without error on the stated inputs.

Python — statistics module (built-in)

Python — Built-in statistics module
import statistics

data = [4, 7, 13, 2, 7, 9, 7, 3, 15, 7]

mean   = statistics.mean(data)
median = statistics.median(data)
mode   = statistics.mode(data)    # Raises StatisticsError if no unique mode
modes  = statistics.multimode(data) # Returns list of all modes — use for bimodal data

print(f"Mean:   {mean}")    # 7.4
print(f"Median: {median}")  # 7.0
print(f"Mode:   {mode}")    # 7
print(f"All modes: {modes}") # [7]

Python — NumPy and SciPy

Python — NumPy and SciPy
import numpy as np
from scipy import stats

data = [4, 7, 13, 2, 7, 9, 7, 3, 15, 7]

mean        = np.mean(data)                # 7.4
median      = np.median(data)              # 7.0
mode_result = stats.mode(data, keepdims=True)
mode        = mode_result.mode[0]         # 7 — smallest mode if tie

# CAUTION: scipy.stats.mode() returns the smallest value when all values
# are unique — a software convention, not the statistical definition.

# Geometric mean (investment returns as growth factors)
from scipy.stats import gmean
geo_mean = gmean([1.05, 1.08, 0.97, 1.12, 1.06])
print(f"Geometric Mean: {geo_mean:.4f}")   # 1.0550

# Harmonic mean (speeds over equal distances)
import statistics
harmonic = statistics.harmonic_mean([60, 40])
print(f"Harmonic Mean: {harmonic}")        # 48.0

# 10% trimmed mean (removes lowest 5% and highest 5%)
from scipy.stats import trim_mean
trimmed = trim_mean(data, 0.1)
print(f"10% Trimmed Mean: {trimmed}")

# Weighted mean (GPA with credit hours as weights)
values  = [85, 92, 78]
weights = [3, 4, 2]
weighted = np.average(values, weights=weights)
print(f"Weighted Mean: {weighted:.2f}")    # 85.56

Excel Functions

MeasureExcel FunctionNotes
Arithmetic Mean=AVERAGE(A1:A10)Standard arithmetic mean
Median=MEDIAN(A1:A10)Handles both odd and even n automatically
Mode (single)=MODE.SNGL(A1:A10)Returns smallest mode if tied
Mode (multiple)=MODE.MULT(A1:A10)Array function — returns all modes
Geometric Mean=GEOMEAN(A1:A10)Values must be positive
Harmonic Mean=HARMEAN(A1:A10)Values must be positive
Trimmed Mean (10%)=TRIMMEAN(A1:A10, 0.1)Removes 5% from each end
Weighted Mean=SUMPRODUCT(A1:A3,B1:B3)/SUM(B1:B3)A = values, B = weights

Measures of Central Tendency in Real Life

The choice of measure matters in practice. Using the wrong one produces summaries that mislead, and in public policy or finance that has real consequences.

💰

Income and Economics

Income distributions are heavily right-skewed. Median household income is the standard for comparing living standards. Mean income overstates what most people earn because a small number of very high earners pull the average up.

Median
🏠

Real Estate

A few very expensive properties inflate the mean home price. The National Association of Realtors reports median sale prices for this reason. A handful of $10M homes in a neighbourhood can make the average look nothing like what a typical buyer pays.

Median
📈

Investment Returns

A stock that gains 50% one year and loses 50% the next has an arithmetic mean return of 0%, but the geometric mean reveals a compound loss of about −13.4%. For multi-period returns, the geometric mean is the only correct measure.

Geometric Mean
🏭

Manufacturing & Quality Control

Statistical Process Control charts (x̄ charts) plot the arithmetic mean of small samples over time to detect process shifts. When the production process is normally distributed, the mean is the appropriate center measure.

Mean
📋

Likert Scale Surveys

For 1–5 satisfaction ratings, the median is the safest choice (data is ordinal). The mode shows the most common response. Mean is widely reported in practice but technically assumes equal intervals between scale points — a contested assumption.

Median / Mode
🏥

Healthcare & Clinical Research

Median survival times are standard in oncology because survival data is always right-skewed — a few long-term survivors can heavily distort the mean. Clinical guidelines report median progression-free survival for this reason.

Median
📚

Education — Test Scores

For approximately normally distributed scores, the mean is appropriate. For standardized tests with extreme scores (perfect or zero), report the median alongside the mean so the reader can assess symmetry.

Mean / Median
🛒

Retail — Product Demand

The mode of sales quantity tells retailers which order size appears most often — critical for inventory planning. Mean and median answer "how much on average," but mode answers "what amount do I need most ready for?"

Mode

For more applied examples across domains, see mean, median and mode in business.

Central Tendency vs. Dispersion — Why You Need Both

Central tendency tells you where data is centered. It does not tell you how spread out it is. Two datasets can share an identical mean and look completely different in practice.

Illustration

Both datasets have Mean = 50

Dataset A: 49, 50, 50, 50, 51 — tightly clustered, SD ≈ 0.7

Dataset B: 10, 30, 50, 70, 90 — widely spread, SD ≈ 31.6

Same center, completely different spread. Anyone who reads only the mean would have no idea how different these two datasets are.

The standard pairings: report standard deviation alongside the mean; report interquartile range alongside the median; report relative frequency alongside the mode. For visualizing both properties together, the standard deviation visualizer shows how data spreads around the mean in real time.

The related concept of variance is the squared standard deviation, and it is the foundation for ANOVA, regression, and most inferential procedures.

Common Mistakes When Working with Measures of Central Tendency

1
Using the mean for skewed data

The mean can give a misleading picture of the typical value when the distribution has a long tail. Check the mean–median gap first.

2
Forgetting to sort before finding the median

The median is the middle value of ordered data. Finding the middle position of unsorted data gives a wrong and arbitrary result.

3
Assuming the mode always exists

Continuous data and data where all values are distinct may have no mode. This is not an error in the dataset.

4
Using arithmetic mean for rates or ratios

Speeds, percentages, and growth rates require the geometric or harmonic mean. The arithmetic mean of rates over different time periods or distances is mathematically incorrect.

5
Confusing population mean (μ) with sample mean (x̄)

Same calculation, different notation, different statistical interpretation. The distinction matters in inference, not computation.

6
Applying Pearson's formula to severely skewed data

The empirical relation holds for moderate skewness only. Do not use it for distributions with heavy tails or multiple modes.

7
Reporting mean without any measure of spread

A mean without a standard deviation or interquartile range is incomplete. Central tendency alone cannot describe a distribution.

8
Using the mean for ordinal data

Likert scale responses (1 = strongly disagree, 5 = strongly agree) are ordinal. The intervals between scale points are not mathematically guaranteed to be equal, making the mean technically inappropriate — though widely used in practice.

9
Treating bimodal data as unimodal

Always graph data before computing any summary. A histogram revealing two peaks requires reporting both modes and investigating whether subgroups are driving the pattern.

10
Assuming grouped data formulas give exact values

Mean, median, and mode from a frequency table are estimates. The original data values cannot be recovered from a grouped distribution.

11
Accepting scipy.stats.mode() without checking

When all values are unique, this function returns the smallest value — not a statistical mode. Verify the output against actual data frequencies before reporting it.

12
Using weighted mean without verifying weights sum correctly

Always confirm Σwᵢ equals the intended total before interpreting the result. Wrong weights silently produce wrong answers.

13
Confusing the median with the 50th percentile for grouped data

They are the same value, but the two formulas — median interpolation and percentile interpolation — should agree when applied to the same data. If they don't, check for a data entry error.

Frequently Asked Questions

What are the three main measures of central tendency? ▼

The three main measures are the mean (arithmetic average, calculated by dividing the sum of values by the count), the median (middle value of ordered data), and the mode (most frequently occurring value). Each defines "center" differently and suits different data types and distribution shapes.

What is the difference between mean, median, and mode? ▼

The mean uses every value in its calculation, making it sensitive to outliers. The median uses only the middle position, making it resistant to outliers. The mode counts frequencies and can identify multiple peaks in data. For symmetric data without outliers, all three coincide; for skewed data, they diverge systematically.

Which measure of central tendency is best? ▼

There is no universally best measure. Use the mean for symmetric interval or ratio data without extreme outliers. Use the median for skewed data or ordinal data, or when outliers are present. Use the mode for nominal data or to identify the most common value. The "best" measure is the one that honestly represents a typical observation given your specific data and question.

When should I use the mean? ▼

Use the mean when your data is measured on an interval or ratio scale, the distribution is approximately symmetric, and there are no extreme outliers distorting the average. The mean is also preferred when you need to perform further calculations (variance, standard deviation, confidence intervals), because it is algebraically tractable in ways the median and mode are not.

When should I use the median? ▼

Use the median when the data is skewed, when outliers are present and would distort the mean, or when the data is measured on an ordinal scale. Common domains include income data, housing prices, healthcare survival times, and any situation where a few extreme values would make the mean unrepresentative of the typical case.

When should I use the mode? ▼

Use the mode for nominal (categorical) data — it is the only valid measure of central tendency in that case. It is also useful for identifying the most common value in discrete datasets, for revealing multiple peaks in bimodal distributions, and for describing what "most people" chose or experienced. Avoid it for continuous data where values rarely repeat.

What is the only measure of central tendency for nominal data? ▼

The mode. Nominal data consists of categories with no meaningful numeric ordering — for example, blood type, country of origin, or favourite colour. Because these values cannot be averaged or ranked, the mean and median are meaningless. The mode simply identifies the most common category, which is the only valid summary of center for categorical data.

How do outliers affect the mean? ▼

Outliers pull the mean toward the extreme value, sometimes dramatically. If nine employees earn between $30k and $40k and one earns $500k, the mean salary is roughly $89k — which accurately describes nobody. The mathematical reason is that the mean sums all values, so one very large or very small number carries as much weight as all the others combined when the sample is small.

Do outliers affect the median? ▼

No — the median is resistant to outliers. Because it depends only on the position of the middle value, changing any observation that remains on the same side of the median leaves the median unchanged. In the salary example above, replacing the $500k CEO salary with $10M would not move the median at all.

What is Karl Pearson's empirical relation? ▼

Karl Pearson observed that for moderately skewed unimodal distributions, Mode ≈ 3 × Median − 2 × Mean. This allows you to estimate one measure when the other two are known. It is an approximation, not an exact identity, and it breaks down for severely skewed or multimodal distributions.

How do you find the mean of grouped data? ▼

Compute the class midpoint for each interval ((lower bound + upper bound) ÷ 2), multiply each midpoint by its class frequency, sum those products, and divide by the total frequency: x̄ = Σ(fx) ÷ Σf. The result is an estimate because the actual values within each class are unknown.

How do you find the median of grouped data? ▼

Use the interpolation formula: Median = l + ((n/2 − cƒ) ÷ f) × h. First build a cumulative frequency column and identify the median class — the first class whose cumulative frequency reaches or exceeds n/2. Then substitute l (lower class boundary), cƒ (cumulative frequency before the median class), f (frequency of the median class), and h (class width) into the formula.

How do you find the mode of grouped data? ▼

Identify the modal class (the class with the highest frequency), then apply: Mode = l + ((f₁ − f₀) ÷ (2f₁ − f₀ − f₂)) × h, where f₀ is the frequency of the class before the modal class and f₂ is the frequency of the class after it. The result is an estimate of where the mode lies within the modal class.

What is the geometric mean and when do you use it? ▼

The geometric mean is the nth root of the product of n positive values. Use it for data that involves multiplicative processes: investment returns (compound annual growth rate), population growth rates, and price index changes over time. It is always less than or equal to the arithmetic mean, and it correctly accounts for the compounding effect that the arithmetic mean ignores.

What is the harmonic mean used for? ▼

The harmonic mean, calculated as n ÷ Σ(1/xᵢ), is the correct average for rates where the denominator varies. The classic application is average speed over equal distances. If a car travels 60 km/h out and 40 km/h back, the harmonic mean (48 km/h) gives the actual average speed; the arithmetic mean (50 km/h) is wrong because more time is spent at the lower speed.

What is a weighted mean? ▼

A weighted mean assigns different importance to different observations. The formula is x̄_w = Σ(wᵢ × xᵢ) ÷ Σwᵢ. Common applications include GPA (courses with different credit hours), survey estimates where sampling probabilities differ, and portfolio returns where assets have different allocations. Always verify that the weights sum to the intended total before interpreting the result.

What is a trimmed mean? ▼

A trimmed mean removes a fixed percentage of the extreme values from both ends of the dataset before calculating the arithmetic mean. A 10% trimmed mean drops the lowest 5% and highest 5% of observations. It sits between the mean (which includes all values) and the median (which uses only the center) in terms of outlier sensitivity. It is common in competitive scoring, such as Olympic gymnastics judging.

What is the difference between population mean and sample mean? ▼

The calculation is identical: sum all values and divide by the count. The difference is notation and statistical interpretation. The population mean uses the symbol μ (mu) and N (total population size). The sample mean uses x̄ and n (sample size). The distinction matters for statistical inference — sample means are used to estimate population means, with associated uncertainty — but not for the arithmetic itself.

In a positively skewed distribution, which is largest: mean, median, or mode? ▼

In a positively skewed (right-skewed) distribution, the ordering is Mode < Median < Mean. The long tail extends to the right, pulling the mean in that direction while the mode remains at the most frequent (leftward) peak and the median sits between them. Income distribution is the most cited real-world example.

In a negatively skewed distribution, which is smallest: mean, median, or mode? ▼

In a negatively skewed (left-skewed) distribution, the ordering is Mean < Median < Mode. The long tail extends to the left, pulling the mean downward, while the mode remains at the peak on the right side of the distribution. Age at retirement and scores on an easy exam are common examples.

What is a bimodal distribution? ▼

A bimodal distribution has two distinct peaks — two values or ranges that appear with higher frequency than the values between them. When data is bimodal, no single measure of central tendency adequately summarizes it. Both modes should be reported, and the data should be investigated to determine whether subgroups (for example, two distinct populations or processes) are producing the two peaks.

Can a dataset have no mode? ▼

Yes. When every value in a dataset appears exactly once, there is no mode by definition. This is common with continuous data (measurements rarely repeat exactly) and with small datasets containing all distinct values. In these cases, the mean and median are the appropriate summary measures.

What is the difference between central tendency and dispersion? ▼

Central tendency measures where a dataset is centered (mean, median, mode). Dispersion measures how spread out the values are around that center (standard deviation, variance, interquartile range, range). Both are necessary for a complete descriptive summary. Two datasets can share the same mean but have completely different spreads — reporting only the center hides that difference.

What is the best pair for central tendency and variability? ▼

Report mean with standard deviation when data is approximately symmetric and interval/ratio-level. Report median with interquartile range (IQR) when data is skewed or contains outliers, or when it is ordinal-level. Report mode with relative frequency for nominal data. These pairings are internally consistent: mean and SD are both sensitive to all values; median and IQR are both position-based and outlier-resistant.

What measure of central tendency should I use for income data? ▼

Always report the median for income data. Income distributions are right-skewed in virtually every country: a small number of very high earners pull the arithmetic mean well above what most people earn. Government agencies, the U.S. Census Bureau, and international organizations like the OECD all use median household income as the standard measure of typical living standards.

What measure of central tendency should I use for Likert scale data? ▼

The safest choice is the median, because Likert scale data is ordinal — the intervals between "Agree" and "Strongly Agree" are not guaranteed to be equal. The mode is also informative, showing the most common response. Mean is widely reported in practice and in published research, but this involves the assumption of equal intervals, which is contested. When in doubt, report all three and show the full distribution of responses.

How do I calculate the mean in Python? ▼

Three standard approaches: (1) statistics.mean(data) from Python's built-in statistics module; (2) numpy.mean(data) from NumPy; (3) sum(data) / len(data) using no imports. For grouped data, use numpy.average(midpoints, weights=frequencies) to compute the weighted mean of class midpoints.

How do I find the median in Excel? ▼

Use =MEDIAN(range). Excel handles both odd and even n automatically: for odd n, it returns the middle value; for even n, it averages the two middle values. The function accepts up to 255 separate number arguments or ranges and ignores text and logical values within a range.

What does it mean if the mean and median are very different? ▼

A substantial gap between mean and median is a signal that the data is skewed or contains influential outliers. If mean > median, the distribution is right-skewed (high values pulling the mean up). If mean < median, it is left-skewed. In either case, graph the data with a histogram before deciding which measure to report. For skewed data, the median is almost always the more informative summary of a typical observation.

What are the properties of the arithmetic mean? ▼

Key properties: (1) The sum of deviations from the mean equals zero: Σ(xᵢ − x̄) = 0. (2) The mean minimizes the sum of squared deviations. (3) Adding a constant to all values shifts the mean by that constant. (4) Multiplying all values by a constant scales the mean by that constant. (5) The mean is unique — there is exactly one per dataset. (6) It is algebraically tractable, making it the foundation for variance, standard deviation, and regression.

Is the mode useful for continuous data? ▼

Rarely, and with caution. Truly continuous measurements (like height or weight to many decimal places) rarely repeat exactly, so no mode exists. However, if continuous data is rounded to a practical precision and one value appears noticeably more often, reporting it may be informative. More commonly, the mode is reserved for discrete or categorical data where repetition is meaningful and expected.

What is the midrange as a measure of central tendency? ▼

The midrange is (minimum + maximum) ÷ 2. It is easy to compute but highly sensitive to outliers — even more so than the mean — because it uses only the two extreme values and ignores all others. It is rarely reported in practice. For the midrange in more detail, see midrange.

How are measures of central tendency related to the normal distribution? ▼

In a perfect normal distribution, mean = median = mode, and all three fall at the axis of symmetry. This equivalence is why the mean is the natural center measure for normally distributed data, and why testing assumptions of normality is important before applying procedures that assume mean-centered summaries. The empirical rule (68-95-99.7) describes how data clusters around that shared center.

What is the arithmetic mean vs geometric mean — when to use each? ▼

Use the arithmetic mean when values combine additively: total scores, total quantities, averaged measurements. Use the geometric mean when values combine multiplicatively: growth rates, ratios, investment returns, index numbers. The arithmetic mean of percentage returns overstates performance when there is volatility; the geometric mean gives the true compound rate. For symmetric data without multiplicative structure, the arithmetic mean is appropriate.

Key Takeaways

📌

A measure of central tendency summarizes an entire dataset with one representative value indicating where data clusters.

📌

The three main measures: mean (arithmetic average), median (middle value), mode (most frequent value).

📌

Use the mean for symmetric continuous data without extreme outliers. It uses all data points.

📌

Use the median for skewed distributions or data with outliers — it is resistant to extreme values.

📌

Use the mode for nominal/categorical data — it is the only valid measure for non-numeric categories.

📌

The geometric mean is correct for multiplicative processes: growth rates and investment returns.

📌

The harmonic mean is correct for rate problems where the denominator varies (average speed).

📌

The weighted mean accounts for values of unequal importance or frequency (GPA, portfolios).

📌

Symmetric distribution: Mean = Median = Mode. Positively skewed: Mode < Median < Mean. Negatively skewed: Mean < Median < Mode.

📌

Karl Pearson: Mode ≈ 3 × Median − 2 × Mean (holds approximately for moderate skewness only).

📌

Grouped data formulas are estimates — original values cannot be recovered from a frequency table.

📌

Always pair central tendency with a dispersion measure: mean + SD, or median + IQR.

References and Further Reading
Montgomery, D.C. & Runger, G.C. — Applied Statistics and Probability for Engineers (6th ed.) | Freedman, Pisani & Purves — Statistics (4th ed.) | Python documentation: statistics module | For practice problems, see mean examples, median examples, and the mean median mode calculator.