01 / 20

Mean, Median
& Mode

Learn to compute and interpret the three fundamental measures of central tendency used in biostatistics to summarize data.

Biostatistics

What Is Central Tendency?

In biostatistics, we often collect many data points: patient ages, blood pressure readings, cell counts. Central tendency gives us a single representative value that summarizes the "center" of a dataset.

Why It Matters in Biology

Clinical Trials
Compare average recovery times between treatment and control groups.
Ecology
Report the median body mass of a species to avoid skew from outliers.
Genetics
Identify the modal blood type in a population for transfusion planning.

Visualizing the Three Measures

Value Frequency 2 3 4 5 6 7 15 1 1 3 1 1 1 1
\(Median = 4\)
\(Mode = 4\)
\(Mean \approx 5.6\)
outlier

The Mean: \(\bar{x}\)

The arithmetic mean is the sum of all observations divided by the total number of observations. It is the most commonly used measure and works best with symmetric distributions.

The Median

The median is the middle value when data are sorted in order. It divides the dataset into two equal halves and is resistant to outliers.

1
Sort the data from smallest to largest.
2
If \(n\) is odd: median = the value at position \(\frac{n+1}{2}\).
3
If \(n\) is even: median = the average of the two middle values at positions \(\frac{n}{2}\) and \(\frac{n}{2}+1\).

The Mode

The mode is the value that appears most frequently in a dataset. It is the only measure of central tendency that works for categorical data (e.g., blood type, eye color).

Unimodal
One value has the highest frequency. Example: {2, 3, 4, 4, 4, 5} has mode = 4.
Bimodal
Two values tie for highest frequency. Example: {1, 2, 2, 3, 5, 5} has modes 2 and 5.
No Mode
All values appear equally often. Example: {1, 2, 3, 4} has no mode.

Mean vs. Median: When to Use Which

Mean \(\bar{x}\) Median
Best for Symmetric data Skewed data
Outlier sensitivity High Low (robust)
Uses all data? Yes No (position only)
Data type Quantitative Quantitative / Ordinal
Bio example Mean heart rate of healthy adults Median hospital stay (days)

Skewness and the Three Measures

Left-Skewed Mean Median Mode Symmetric
\(Mean = Median = Mode\)
Right-Skewed Mode Median Mean

How to Compute All Three

1
Organize: Write all data values and sort them in ascending order.
2
Mean: Add all values and divide by \(n\). \(\bar{x} = \frac{\sum x_i}{n}\).
3
Median: Find the middle value (or average of two middle values).
4
Mode: Identify which value(s) appear most often. Count frequencies.
5
Interpret: Compare the three: if they differ significantly, note the skew and choose the best summary for your context.

Example 1: Patient Ages

A clinic records the ages of 7 patients: 22, 25, 28, 28, 31, 35, 40. Find the mean, median, and mode.

25 30 35 40
\(Mode = 28\)
\(Median = 28\)

Example 2: Blood Glucose (Even \(n\))

Fasting blood glucose (mg/dL) for 8 subjects: 82, 88, 90, 95, 102, 105, 110, 240. Note the outlier.

Example 3: Bacterial Colony Counts

Colony counts from 10 Petri dishes: 12, 15, 15, 18, 20, 20, 20, 22, 25, 30.

12 15 18 20 22 25 30 Mode
\(Median = 20\)

Common Mistakes

✕ Forgetting to Sort
The median requires data in order. Picking the middle value of an unsorted list gives the wrong answer.
✕ Mean for Skewed Data
Using the mean when outliers are present (e.g., one extremely high hospital bill) misrepresents the typical value.
✕ "No Mode" Confusion
If every value is unique, the dataset has no mode. Do not report 0 or the smallest value as the mode.

Summary Comparison

Property Mean Median Mode
Formula \(\frac{\sum x_i}{n}\) Middle value Most frequent
Data type Quantitative Quantitative / Ordinal Any (incl. categorical)
Outlier effect Strongly affected Resistant Not affected
Always unique? Yes Yes No (can be multiple)
Best for Symmetric data Skewed data Categorical / peaks

Question 1 of 5

What is the mean of the dataset: 4, 7, 10, 13, 16?

Question 2 of 5

For the dataset 3, 5, 7, 9, 11, 13, what is the median?

Question 3 of 5

A researcher records blood types in a sample: A, B, A, O, A, AB, O, A. Which measure of central tendency is appropriate here?

Question 4 of 5

A dataset of hospital stay durations (days) is right-skewed with a few very long stays. Which measure best represents the typical stay?

Question 5 of 5

Given the dataset 5, 8, 8, 10, 12, 12, 12, 15, what are the mean, median, and mode?