MathsFrancais4 min de lectureMis a jour 2 avr. 2026
How to Calculate Mean, Median, and Mode
Learn the formulas for mean, median, and mode with worked examples, and discover when to use each measure of central tendency.
Points Cles
- The mean (average) is calculated by dividing the sum of all values by the count of values.
- The median is the middle value in a sorted dataset, unaffected by extreme outliers.
- The mode is the most frequently occurring value and a dataset can have zero, one, or multiple modes.
- Use the mean for symmetric data, the median for skewed data, and the mode for categorical data.
- In a perfectly symmetric distribution, the mean, median, and mode are all equal.
What Is Central Tendency?
Central tendency is a statistical concept that identifies a single value representing the "center" or "typical value" of a dataset. The three most common measures of central tendency are the mean, median, and mode.
Each measure answers the same question differently: "What is a typical value in this data?" Choosing the right one depends on the shape of your data and the question you are trying to answer.
How to Calculate the Mean
The mean, often called the arithmetic average, is found by adding all data points together and dividing by the total count.
```
$$ label: Mean Formula
\bar{x} = \frac{\sum_{i=1}^{n} x_i}{n}
$$
```
Where x represents each data value and n is the total number of values.
Worked Example:
Find the mean of: 4, 8, 6, 5, 3, 2, 8, 9, 2, 5
```
1. Add all values: 4 + 8 + 6 + 5 + 3 + 2 + 8 + 9 + 2 + 5 = 52
2. Count the values: n = 10
3. Divide: 52 / 10 = 5.2
```
The mean is 5.2. One important limitation is that the mean is sensitive to outliers. If one value in the dataset above were changed to 100, the mean would jump to 14.6, which no longer represents a "typical" value.
How to Find the Median
The median is the middle value when all data points are arranged in ascending order. It divides the dataset into two equal halves.
```
$$ label: Median Formula
\text{If } n \text{ is odd:} \quad \text{Median} = \left( \frac{n + 1}{2} \right)\th \text{value}
\text{If } n \text{ is even:} \quad \text{Median} = \frac{ \left( \frac{n}{2} \right)\th + \left( \frac{n}{2} + 1 \right)\th }{2}
text: where n = number of values in the dataset
$$
```
Worked Example (odd count):
Find the median of: 3, 7, 1, 9, 5
```
1. Sort the data: 1, 3, 5, 7, 9
2. Count: 5 values (odd)
3. Middle position: (5 + 1) / 2 = 3rd value
4. Median = 5
```
Worked Example (even count):
Find the median of: 4, 8, 6, 2
```
1. Sort the data: 2, 4, 6, 8
2. Count: 4 values (even)
3. Two middle values: 4 and 6
4. Median = (4 + 6) / 2 = 5
```
The median is especially useful when data contains outliers, because unlike the mean, a single extreme value cannot distort it.
How to Identify the Mode
The mode is the value that appears most frequently in a dataset. It is the only measure of central tendency that can be used with categorical (non-numeric) data.
```
$$ label: Mode Definition
\text{Mode} = \text{value with } \max(f_i)
text: where f is the frequency (count) of each value in the dataset
$$
```
Worked Example:
Find the mode of: 4, 2, 7, 2, 9, 4, 2, 5
```
1. Count each value: 2 appears 3 times, 4 appears 2 times, others appear once
2. Highest frequency: 3 (the value 2)
3. Mode = 2
```
A dataset can be:
- Unimodal: one mode (e.g., 2, 3, 3, 5 has mode 3)
- Bimodal: two modes (e.g., 1, 2, 2, 5, 5, 7 has modes 2 and 5)
- Multimodal: three or more modes
- No mode: when no value repeats (e.g., 1, 2, 3, 4, 5)
The mode is commonly used in market research ("What is the most popular shoe size?") and quality control ("What is the most common defect type?").
Mean vs Median vs Mode: Quick Comparison
The following table highlights the key differences between these three measures of central tendency:
```
| Feature | Mean | Median | Mode |
| --- | --- | --- | --- |
| Definition | Sum divided by count | Middle value when sorted | Most frequent value |
| Affected by outliers | Yes, heavily | No | No |
| Best for | Symmetric data | Skewed data | Categorical data |
| Always unique? | Yes | Yes | No, can have 0, 1, or many |
| Works with non-numeric data? | No | No | Yes |
| Easy to calculate? | Yes, simple arithmetic | Requires sorting first | Requires counting frequencies |
| Common real-world use | Average salary, GPA | Median home price | Most popular product |
```
When to Use Each Measure
Choosing the right measure of central tendency depends on your data:
```
Use Mean -> Symmetric data, no outliers (e.g., test scores, average revenue)
Use Median -> Skewed data or outliers present (e.g., home prices, income)
Use Mode -> Categorical data or finding most common (e.g., popular product)
```
A practical rule of thumb:
```
If Mean and Median are far apart -> data is skewed -> use the Median
If Mean and Median are close -> data is symmetric -> use the Mean
```
For example, U.S. household income has a median of about $75,000 but a mean of about $105,000. The large gap signals right-skewed data, making the median a more representative summary.
Essayez Ces Calculateurs
Continuer la Lecture
statisticsmeanmedianmodeaveragecentral-tendency