Mean, Median and Mode

Mean, median and mode are measures that summarise different notions of a typical value in a dataset. In brief: for 2, 3, 3, 4 and 8, the mean is 4, the median is 3 and the mode is 3. They differ because the mean uses every value, the median uses position and the mode uses frequency.

No single measure describes every dataset equally well. The data type, distribution and presence of unusual values affect which summary is informative. This guide explains the calculations, handles even-sized datasets and repeated values, and shows how weighted means and frequency tables connect to the same underlying ideas.

How do you calculate the arithmetic mean?

The arithmetic mean is the sum of all numerical observations divided by their number. For values x₁ through xₙ with n positive, the formula is x̄ = (x₁ + x₂ + … + xₙ)/n. Every observation contributes, including repeated values and zeros.

For 2, 3, 3, 4 and 8, the sum is 20 and there are 5 observations, so the mean is 20/5 = 4. The mean can be interpreted as the equal-share value obtained by redistributing the total evenly across the observations.

The mean need not be one of the observed values and need not be an integer even when all data are integers. For 1, 2 and 5, it is 8/3. Keep an exact fraction or state a sensible decimal approximation rather than rounding automatically to a value that happens to occur in the dataset.

How do you find the median?

The median is the middle of the ordered data. Sort the observations from least to greatest before locating it. With an odd number n of observations, the median is the value in position (n + 1)/2, counting the first observation as position 1.

For 8, 2, 3, 4 and 3, sorting gives 2, 3, 3, 4, 8. The third observation is 3, so the median is 3. Looking at the middle entry of the unsorted list would not be a valid method, even if it accidentally produced the same answer.

With an even number of numerical observations, the usual median is the mean of the two central values. For 2, 4, 7 and 9, the middle values are 4 and 7, giving median 5.5. The median can therefore lie between observations rather than equal an observed value.

How do you identify the mode?

The mode is a value or category with the greatest frequency. In 2, 3, 3, 4 and 8, the value 3 appears twice while every other value appears once, so 3 is the unique mode. Mode can be used with categories as well as numerical measurements.

A dataset can have more than one most frequent value. In 1, 1, 2, 3, 3, the values 1 and 3 tie for highest frequency, making the dataset bimodal. More generally, several values can share the maximum frequency, so a mode need not be unique.

When every value occurs equally often, elementary conventions often describe the data as having no mode, especially when no value repeats. More formally, all values tie for maximum frequency. State the convention used if the distinction matters, and avoid selecting one value arbitrarily from a complete tie.

How do you calculate all three measures for one dataset?

Consider the data 6, 2, 4, 4, 9 and 5. Sort them as 2, 4, 4, 5, 6, 9. Their sum is 30 and there are 6 observations, so the mean is 5. The two middle values are 4 and 5, so the median is 4.5.

0 2 4 6 8 10 4.5

The value 4 occurs twice, more often than any other value, so the mode is 4. The three summaries are therefore mean 5, median 4.5 and mode 4. None is an arithmetic error; each answers a different question about total balance, central position or repetition.

Check the mean by multiplying it by the count: 5 × 6 = 30, recovering the total. Check the median’s position in the sorted list, and check the mode against a frequency count. Using a different check for each measure reinforces why their procedures should not be mixed.

  1. Count the observations and sort them.
  2. Add all values and divide by the count for the mean.
  3. Locate the middle value or pair for the median.
  4. Count repetitions to identify the mode or modes.
  5. Interpret the measures together with the data’s spread.
Mean, median and mode for 2, 4, 4, 5, 6, 9
MeasureCalculation or ruleResult
Mean30 ÷ 65
Median(4 + 5) ÷ 24.5
ModeMost frequent value4

How do unusual values affect mean, median and mode?

The mean is sensitive to every value, so an extreme observation can shift it substantially. For 2, 3, 3, 4, 8, the mean is 4. Replacing 8 with 80 changes the sum to 92 and the mean to 18.4, even though four of the five observations are unchanged.

The median remains 3 in that example because the central ordered position does not change. The mode also remains 3 because the frequency pattern is unchanged. This illustrates the median’s resistance to the size of extreme values, though adding or removing observations can still alter its position.

An unusual value should not be deleted merely because it affects the mean. It may be a valid observation that reveals an important feature, or it may be a recording error requiring investigation. Describe the distribution and choose summaries appropriately rather than modifying data solely to obtain a preferred average.

How do you calculate a mean from frequencies or weights?

For a frequency table, multiply each value by its frequency, add those products and divide by the total frequency. If value 2 occurs three times and value 5 occurs twice, the total is 2 × 3 + 5 × 2 = 16 across five observations, so the mean is 3.2.

A weighted mean uses the same structure: sum of value × weight divided by sum of weights, with nonnegative weights and a positive total weight. If two scores 70 and 90 have weights 40% and 60%, the weighted mean is 70 × 0.4 + 90 × 0.6 = 82.

Do not average group means equally when group sizes differ. A group of 10 with mean 6 contributes total 60, while a group of 30 with mean 10 contributes total 300. The combined mean is 360/40 = 9, not the unweighted average of 6 and 10, which is 8.

When should you use mean, median or mode?

Use the mean when numerical totals and equal-share interpretation are important, especially when extreme values do not dominate the description. Use the median when central rank is more informative or the distribution is strongly skewed. Use the mode to describe the most common category or repeated value.

For nominal categories such as colours, the mode is meaningful but an arithmetic mean is not. Ordered categories can support positional summaries, but averaging two category labels may not make sense. The data’s measurement type determines which operations are legitimate before any preference about robustness or simplicity is considered.

The background principle is that typical has several meanings. A balanced average, a middle position and a most common value can disagree without contradiction. Reporting more than one measure, together with the sample size and spread, often gives a clearer description than insisting on one universal average.

What mistakes should you avoid with averages?

Do not forget to sort before finding the median, and do not confuse the middle position number with the data value at that position. For an even dataset, average the two central numerical values, not the two endpoints or the entire lower and upper halves.

For the mean, include repeated observations and zeros, and divide by the number of observations rather than by the number of distinct values. For the mode, check all frequencies and report ties. A dataset without a unique most frequent value should not be forced to have one.

Finally, keep units and precision appropriate. The mean and median of measured lengths have the same length unit as the observations, while a category mode is a label. A centre alone does not describe variability, so avoid treating two datasets with the same mean as identical in distribution or practical behaviour.