By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Average (mean) and median are two fundamental measures of central tendency. You use them to summarize data, detect trends, or make decisions when raw numbers are too noisy or numerous.
Why use them today?- Business: Compare salaries, customer spending, or product performance.- Data Science: Clean datasets, detect outliers, or build fair models.- Everyday Life: Decide where to live (cost of living), evaluate test scores, or assess investment returns.
Numbers lie when misinterpreted. Averages hide extremes (e.g., billionaires skew income data), while medians reveal the true middle. Misusing them leads to bad decisions: - A company pays "average" salaries but ignores that half the team earns below poverty wages.- A city advertises "affordable" housing based on mean prices, masking sky-high rents for most residents.- A product manager optimizes for "average" user behavior, alienating 50% of customers.
Mean = (Sum of values) / (Number of values)
Example Dataset: [5, 7, 8, 12, 100]
[5, 7, 8, 12, 100]
5 + 7 + 8 + 12 + 100 = 132
5
Mean: 132 / 5 = 26.4
132 / 5 = 26.4
Median:
Middle value: 8 (odd count → 3rd value)
8
Comparison:
26.4
100
Right-skewed (e.g., income): ^ | * | * * | * * +----------------> Left-skewed (e.g., test scores): ^ * | * | * | +---------------->
import numpy as np data = [5, 7, 8, 12, 100] # Calculate mean and median mean = np.mean(data) median = np.median(data) print(f"Mean: {mean}") # Output: Mean: 26.4 print(f"Median: {median}") # Output: Median: 8.0
Fix: Use median for skewed distributions.
Ignoring sample size.
Fix: Ensure sample size is representative (n > 30 is a rule of thumb).
Confusing median with mode.
Fix: Remember: median = middle, mode = most frequent.
Assuming symmetry.
Fix: Plot a histogram to check skewness.
Overlooking missing data.
NaN
df.dropna()
Use histograms or box plots to spot skewness before choosing mean/median.
Pair mean and median.
Report both to highlight outliers (e.g., "Mean: $50k, Median: $35k").
Use weighted averages when needed.
Example: Calculating a course grade where exams count more than quizzes.
Document your choice.
Explain why you used mean or median in reports (e.g., "Median used due to right skew in housing prices").
Test robustness.
=AVERAGE(A1:A10)
=MEDIAN(A1:A10)
np.mean(data)
np.median(data)
df['column'].mean()
df['column'].median()
mean(data)
median(data)
AVG(column)
PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY column)
A company’s 5 employees earn: $30k, $35k, $40k, $45k, and $150k. What’s the best measure to describe "typical" salary? - A) Mean - B) Median - C) Mode - D) Range
Correct Answer: B) Median Explanation: The median ($40k) better represents the typical salary because the $150k outlier skews the mean upward.Why the Distractors Are Tempting:- A) Mean is commonly used but misleading here due to the outlier.- C) Mode is irrelevant (no repeated values).- D) Range describes spread, not central tendency.
You’re analyzing customer spending. The data is right-skewed (a few high spenders). Which measure should you use to report "average" spending? - A) Mean - B) Median - C) Standard deviation - D) Maximum value
Correct Answer: B) Median Explanation: Right-skewed data has a mean higher than the median. The median better reflects typical spending.Why the Distractors Are Tempting:- A) Mean is often the default but overestimates typical spending.- C) Standard deviation measures spread, not central tendency.- D) Maximum value is an extreme, not an average.
A dataset has 100 values. The mean is 50, and the median is 45. What does this tell you about the data? - A) The data is symmetric.- B) The data is left-skewed.- C) The data is right-skewed.- D) There are no outliers.
Correct Answer: C) The data is right-skewed.Explanation: When mean > median, the data is right-skewed (a few large values pull the mean up).Why the Distractors Are Tempting:- A) Symmetric data has mean ≈ median.- B) Left-skewed data has mean < median.- D) Outliers are likely present but not guaranteed.
Practice with small datasets (e.g., 5–10 numbers).
Intermediate:
Plot histograms to visualize skewness.
Advanced:
numpy
pandas
matplotlib
AVERAGE()
MEDIAN()
QUARTILE()
AVG()
PERCENTILE_CONT()
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.