01 / 20

Mean, Median,
Variance & SD

Master the four pillars of descriptive statistics that drive every business decision: from averages to spread.

Business Analytics

Why Descriptive Statistics Matter

Every dataset tells a story, but raw numbers are overwhelming. Descriptive statistics compress thousands of data points into a handful of meaningful numbers that answer two fundamental questions:

Central Tendency
Where is the "center" of my data? What is a typical value?
Spread
How much do values vary? Is the data tightly clustered or widely dispersed?

The Mean: Arithmetic Average

The mean is the sum of all values divided by the number of values. It is the most common measure of central tendency.

The mean uses every data point, making it sensitive to extreme values (outliers). In business, outliers like one massive sale can skew the mean far from typical performance.

The Median: The Middle Value

The median is the value that splits a sorted dataset into two equal halves. It is robust to outliers: extreme values do not pull it away from the center.

1
Sort all \( n \) values in ascending order.
2
If \( n \) is odd, the median is the middle value at position \( \frac{n+1}{2} \).
3
If \( n \) is even, the median is the average of the two middle values.

Mean vs Median: Visual

3
5
7
8
9
10
42
\( \text{Median} = 8 \)
\( \text{Mean} = 12 \)
Outlier
Data Values (sorted)

Measuring Spread: Variance

Variance measures how far each data point is from the mean, on average. It quantifies the average squared deviation.

Standard Deviation: Readable Spread

Variance is in squared units (dollars squared, kg squared), which is hard to interpret. The standard deviation is simply the square root of variance, returning to the original units.

Low SD
Data points cluster tightly around the mean: consistent, predictable.
High SD
Data points are widely spread: volatile, unpredictable.

Low vs High Standard Deviation

Low SD
mean
High SD
mean
1 SD
1 SD

Population vs Sample Formulas

Population Sample
Size \( N \) (all items) \( n \) (subset)
Mean \( \mu \) \( \bar{x} \)
Variance \( \sigma^2 = \frac{\sum(x_i - \mu)^2}{N} \) \( s^2 = \frac{\sum(x_i - \bar{x})^2}{n-1} \)
Std Dev \( \sigma \) \( s \)
Divisor \( N \) \( n - 1 \) (Bessel's)

How to Compute All Four Measures

1
List and sort the data in ascending order.
2
Compute the mean: sum all values, divide by \( n \).
3
Find the median: identify the middle value (or average of the two middle values).
4
Compute deviations: subtract the mean from each value: \( x_i - \bar{x} \).
5
Square each deviation, then sum them: \( \sum(x_i - \bar{x})^2 \).
6
Divide by \( n - 1 \) for sample variance, then take the square root for SD.

Example 1: Five Sales Figures

A small store records daily sales (in $1000s): 4, 7, 5, 9, 5. Compute the sample mean, median, variance, and standard deviation.

Example 2: Even-Sized Dataset

Quarterly profits (in $M): 12, 15, 11, 18, 14, 20. Find the sample mean, median, and sample SD.

Example 3: Visualizing Deviation

Dataset: 2, 4, 4, 4, 5, 5, 7, 9. Mean \( \bar{x} = 5 \). Let's see each deviation from the mean.

\( \bar{x} = 5 \)
2
\( -3 \)
4 (x3)
\( -1 \)
5 (x2)
\( 0 \)
7
\( +2 \)
9
\( +4 \)
Deviations from the mean shown above each point

Common Mistakes to Avoid

✕ Dividing by \( n \) Instead of \( n - 1 \)
For sample variance, always divide by \( n - 1 \). Using \( n \) underestimates the true spread.
✕ Forgetting to Square Root
Variance gives squared units. Standard deviation requires taking \( \sqrt{s^2} \) to return to original units.
✕ Not Sorting for Median
The median requires a sorted list. Picking the middle of unsorted data gives wrong answers.

Summary: Four Measures at a Glance

Measure What It Tells You Sensitive to Outliers? Units
Mean \( \bar{x} \) Arithmetic center Yes Same as data
Median Positional center No Same as data
Variance \( s^2 \) Average squared spread Yes Squared units
Std Dev \( s \) Average spread Yes Same as data

Question 1 of 5

A dataset has values 10, 12, 14, 16, 18. What is the sample mean \( \bar{x} \)?

Question 2 of 5

For the dataset 3, 7, 8, 12, 14, 20 (already sorted, \( n = 6 \)), what is the median?

Question 3 of 5

When computing sample variance, why do we divide by \( n - 1 \) instead of \( n \)?

Question 4 of 5

A sample of 5 values has a sum of squared deviations \( \sum(x_i - \bar{x})^2 = 40 \). What is the sample standard deviation \( s \)?

Question 5 of 5

A company's monthly revenues are highly right-skewed due to occasional blockbuster months. Which measure of center should a business analyst report?