Back to Course
Averages, Mean, and Medians
The Arithmetic Mean
The arithmetic mean is the most commonly used measure of central tendency. It takes all values into account and redistributes them equally — if every person in a group gave the same amount, that amount would be the mean.
$$\bar{x} = \frac{x_1 + x_2 + \cdots + x_n}{n} = \frac{\sum x_i}{n}$$
The arithmetic mean is the sum of all observations divided by the number of observations.
$\bar{x}$=Arithmetic mean(same as data)
$x_1, x_2, \ldots, x_n$=Individual observations(same as data)
$n$=Number of observations(count)
$\sum x_i$=Sum of all observations(same as data)
All values are equal
→The mean equals every individual value.
$n = 2$
→The mean is the midpoint between the two numbers.
Sum ↔ Mean Link: This is the most powerful relationship in average problems: $\sum x_i = \bar{x} \times n$. If you know any two of sum, mean, and count, you can find the third.
Affected by Outliers: A single very large or very small value can pull the mean far from the centre — a billionaire walking into a room of average earners spikes the mean dramatically.
Always a Value the Data Can Take: Unlike the median, the mean doesn't have to equal any actual observation, but it always lies between the minimum and maximum.
Two properties of the arithmetic mean solve many exam-style problems quickly without recalculating from scratch.
$$\sum x_i = n \bar{x} \quad | \quad \bar{x} + a = \text{new mean when each value increases by } a$$
The total sum equals count times mean, and shifting every observation by a constant shifts the mean by the same constant.
$a$=A constant added to (or subtracted from) every observation(same as data)
Each value is multiplied by $k$
→The new mean is $k \times \bar{x}$.
Each value is multiplied by $k$ then $a$ is added
→The new mean is $k\bar{x} + a$.
Deviation Sum is Zero: The sum of deviations from the mean is always zero: $\sum(x_i - \bar{x}) = 0$. Positive and negative deviations cancel perfectly.
Combined Mean Shortcut: If group 1 has mean $\bar{x}_1$ with $n_1$ items and group 2 has mean $\bar{x}_2$ with $n_2$ items, the combined mean is $\bar{x}_c = \frac{n_1 \bar{x}_1 + n_2 \bar{x}_2}{n_1 + n_2}$.
Weighted Average
A weighted average assigns different importance (weights) to different values. Not all observations count equally — a final exam worth 50% matters more than a quiz worth 10%, even though both produce a single score.
$$\bar{x}_w = \frac{w_1 x_1 + w_2 x_2 + \cdots + w_n x_n}{w_1 + w_2 + \cdots + w_n} = \frac{\sum w_i x_i}{\sum w_i}$$
Each value is multiplied by its weight before summing, then divided by the total weight.
$\bar{x}_w$=Weighted average(same as data)
$x_i$=Individual values(same as data)
$w_i$=Weight assigned to each value(varies (count, percentage, etc.))
All weights are equal
→The weighted average reduces to the ordinary arithmetic mean.
Blend / Mixture Problems: When two groups are mixed (e.g., blending tea priced at Rs 400/kg and Rs 600/kg), the price of the mixture is the weighted average of the two prices.
Alligation Method: A quick visual technique for mixture problems — the ratio of quantities equals the ratio of differences between the mixture value and each group's value.
Percentage Weights: If weights are given as percentages (e.g., 40% midterm, 60% final), you can multiply directly: $\bar{x}_w = 0.4 \times \text{midterm} + 0.6 \times \text{final}$.
The Median
The median is the middle value when all observations are arranged in order. It splits the data into two equal halves — 50% of values lie below it and 50% above it. Unlike the mean, it is unaffected by extreme values.
$$\text{Median} = \begin{cases} x_{\frac{n+1}{2}} & \text{if } n \text{ is odd} \\ \frac{x_{\frac{n}{2}} + x_{\frac{n}{2}+1}}{2} & \text{if } n \text{ is even} \end{cases}$$
For odd $n$, the median is the single middle value. For even $n$, it is the average of the two middle values.
$n$=Number of observations(count)
$x_k$=The $k$-th value in sorted order(same as data)
$n = 1$
→The median equals the single value (same as the mean).
All values are identical
→The median equals that value (same as the mean).
Sort First, Always: The median requires ordered data. For unsorted data like {7, 1, 4}, first sort to {1, 4, 7}, then pick the middle.
Resistant to Outliers: For salaries of {30K, 35K, 40K, 2,000K}, the median is Rs 37,500 but the mean is Rs 526,250. The median tells a more honest story.
Odd vs Even Matters: With 7 data points, the median is the 4th value ($\frac{7+1}{2} = 4$). With 8 data points, average the 4th and 5th values.
For grouped data presented in a frequency table, the median is estimated using the cumulative frequency to locate the median class, then applying an interpolation formula.
$$\text{Median} = L + \left(\frac{\frac{n}{2} - F}{f}\right) \times h$$
Linearly interpolates within the median class to estimate where the middle value falls.
$L$=Lower boundary of the median class(same as data)
$n$=Total frequency (sum of all frequencies)(count)
$F$=Cumulative frequency of the class before the median class(count)
$f$=Frequency of the median class(count)
$h$=Class width (upper boundary − lower boundary)(same as data)
Find the Median Class: Compute cumulative frequencies and identify the first class whose cumulative frequency reaches or exceeds $\frac{n}{2}$.
Assumption of Uniformity: This formula assumes data is evenly spread within each class — it's an estimate, not exact.
Mode and Range
The mode is the value that appears most frequently in a dataset. A dataset can have one mode (unimodal), two modes (bimodal), or many modes (multimodal). If every value appears exactly once, there is no mode.
$$\text{Mode} = L + \left(\frac{f_1 - f_0}{2f_1 - f_0 - f_2}\right) \times h$$
For grouped data, this formula estimates the mode within the modal class (the class with the highest frequency).
$L$=Lower boundary of the modal class(same as data)
$f_1$=Frequency of the modal class(count)
$f_0$=Frequency of the class just before the modal class(count)
$f_2$=Frequency of the class just after the modal class(count)
$h$=Class width(same as data)
Ungrouped Data: Simply count occurrences — the value with the highest count is the mode. For {3, 5, 5, 7, 8, 8, 8}, the mode is 8.
Useful for Categorical Data: The mean and median require numerical data, but the mode works for categories too — e.g., the most popular car colour.
No Unique Mode Possible: If two or more values tie for highest frequency, the data is bimodal or multimodal.
The range is the simplest measure of dispersion — the difference between the largest and smallest values. It tells you how spread out the data is, but only uses two values and ignores everything in between.
$$\text{Range} = x_{\max} - x_{\min}$$
Subtract the smallest observation from the largest to get the total spread.
$x_{\max}$=Largest value in the dataset(same as data)
$x_{\min}$=Smallest value in the dataset(same as data)
Quick Check: The range is fast to compute and gives an immediate sense of variability — perfect for a first glance.
Sensitive to Outliers: One extreme value can make the range misleadingly large. The interquartile range (IQR) is a more robust alternative.
Coefficient of Range: For comparing spreads of different datasets: $\frac{x_{\max} - x_{\min}}{x_{\max} + x_{\min}} \times 100$.
Average Speed Problems
When two journeys cover the same distance at different speeds, the average speed is NOT the simple mean of the two speeds. Because you spend more time at the slower speed, it must pull the average down — you need the harmonic mean.
$$\bar{v} = \frac{2v_1 v_2}{v_1 + v_2}$$
For equal distances, the average speed is the harmonic mean of the two speeds — total distance divided by total time.
$\bar{v}$=Average speed over the entire journey(distance/time)
$v_1$=Speed during the first leg(distance/time)
$v_2$=Speed during the second leg(distance/time)
$v_1 = v_2$
→Average speed equals $v_1$ (no difference between arithmetic and harmonic mean).
Derivation: For distance $d$ each way, total distance $= 2d$, total time $= \frac{d}{v_1} + \frac{d}{v_2} = d\left(\frac{1}{v_1} + \frac{1}{v_2}\right)$. Average speed $= \frac{2d}{d\left(\frac{v_1 + v_2}{v_1 v_2}\right)} = \frac{2v_1 v_2}{v_1 + v_2}$.
Always Less Than Arithmetic Mean: For $v_1 \neq v_2$, the harmonic mean is always strictly less than the arithmetic mean $\frac{v_1 + v_2}{2}$.
Three Equal Parts: For three equal distances at speeds $v_1, v_2, v_3$: $\bar{v} = \frac{3}{\frac{1}{v_1} + \frac{1}{v_2} + \frac{1}{v_3}}$.
When two (or more) time periods have different speeds, the average speed is simply the arithmetic mean of the speeds, because each speed contributes equally to the total time.
$$\bar{v} = \frac{v_1 + v_2}{2} \quad \text{(for equal time intervals)}$$
With equal time spent at each speed, total distance = $(v_1 t + v_2 t)$ and total time = $2t$, so average speed = $(v_1 + v_2)/2$.
$t$=Duration of each time interval(time)
Same Time vs Same Distance: Same time → arithmetic mean. Same distance → harmonic mean. Memorise this distinction — it's a frequently tested difference.
General Case: For time periods $t_1, t_2, \ldots$ at speeds $v_1, v_2, \ldots$: $\bar{v} = \frac{v_1 t_1 + v_2 t_2 + \cdots}{t_1 + t_2 + \cdots}$ (a weighted average of speeds).
Missing Value and Algebraic Average Problems
Many average problems give you the mean and all but one observation, asking you to find the missing value. The key is always the sum–mean relationship: the total sum must equal the mean times the count.
$$\text{Missing value} = n \bar{x} - \sum \text{(known values)}$$
Subtract the sum of known values from the required total sum to isolate the missing value.
$n$=Total number of observations (including the missing one)(count)
$\bar{x}$=Given average (mean)(same as data)
New Person Joining: If a person with value $x$ joins a group of $n$ people with average $\bar{x}$, the new average is $\frac{n\bar{x} + x}{n + 1}$.
Person Leaving: If a person with value $x$ leaves a group of $n$ people with average $\bar{x}$, the new average is $\frac{n\bar{x} - x}{n - 1}$.
Replacement: If a person with value $a$ is replaced by a person with value $b$ in a group of $n$, the average changes by $\frac{b - a}{n}$.
Sometimes the average of a sequence or set of consecutive numbers is needed. For consecutive integers (or any arithmetic sequence), the mean equals the midpoint of the first and last terms.
$$\bar{x} = \frac{a + l}{2} \quad \text{(for equally spaced values)}$$
In any evenly spaced list, the mean equals the average of the first and last values.
$a$=First term(same as data)
$l$=Last term(same as data)
$n$ is odd
→The mean is the actual middle term.
Consecutive integers from $p$ to $q$
→Mean = $\frac{p + q}{2}$, count = $q - p + 1$.
Consecutive Integers Shortcut: The average of $1, 2, 3, \ldots, n$ is $\frac{n+1}{2}$. The average of $m, m+1, \ldots, n$ is $\frac{m+n}{2}$.
Sum from Average: Sum of first $n$ natural numbers $= \frac{n(n+1)}{2}$. Sum of first $n$ even numbers $= n(n+1)$. Sum of first $n$ odd numbers $= n^2$.
Integer Check: If the mean is not an integer, the individual values cannot all be integers (unless the count is even and the mean is a half-integer).