Sub topic 6
Weighted Averages and Why Ratios Act as Weights
Prerequisites and the core idea
Assume you know basic ratios, fractions, and the arithmetic mean. You should also be comfortable simplifying ratios and solving simple equations.
A weighted average combines values when they do not all represent the same number of items. The weight tells us how much each value contributes.
For values \(x1,x2,\ldots\) with weights \(w1,w2,\ldots\),
\[ \text{Weighted average} = \frac{w1x1+w2x2+\cdots}{w1+w2+\cdots} \]
The ordinary average is a special case. Every value has the same weight.
For example, the average of 10 and 20 is
\[ \frac{1(10)+1(20)}{1+1}=15. \]
If there are three items worth 10 each and one item worth 20, the average is instead
\[ \frac{3(10)+1(20)}{3+1}=12.5. \]
The value 10 has a larger effect because it occurs more often.
Ratios provide the weights
Suppose the quantities of two types of products are in the ratio \(2:3\). Their exact quantities might be 2 and 3, 20 and 30, or 200 and 300. The weighted average is unchanged because multiplying all weights by the same factor changes both the numerator and denominator by that factor.
If the values are \(x\) and \(y\), and their quantities are in the ratio \(a:b\), then
\[ \text{Average}=\frac{ax+by}{a+b}. \]
Example: average price
A shop mixes rice priced at ₹40 per kilogram and ₹60 per kilogram. The quantities are in the ratio \(2:3\). The average price is
\[ \frac{2(40)+3(60)}{2+3} = \frac{80+180}{5} = ₹52\text{ per kilogram}. \]
The answer is closer to ₹60 because the more expensive rice has the larger quantity.
| Component | Quantity ratio | Price per unit | Contribution |
|---|---|---|---|
| Cheaper rice | 2 | ₹40 | ₹80 |
| Dearer rice | 3 | ₹60 | ₹180 |
The total contribution is ₹260 for 5 kilograms, giving ₹52 per kilogram.
from fractions import Fraction
quantity_a = 2
quantity_b = 3
price_a = 40
price_b = 60
average_price = Fraction(
quantity_a * price_a + quantity_b * price_b,
quantity_a + quantity_b
)
print(average_price) # 52The sum-of-values view
It is often easier to think in terms of totals:
\[ \text{Average}=\frac{\text{total value}}{\text{total quantity}}. \]
For the rice example, the total value is ₹260 and the total quantity is 5 kilograms. This view is useful when the quantities are given directly rather than as a ratio.
Suppose 4 litres of juice contain 10% sugar and 6 litres contain 20% sugar. The total sugar is
\[ 4(0.10)+6(0.20)=0.4+1.2=1.6\text{ litres}. \]
The total mixture is 10 litres, so its concentration is
\[ \frac{1.6}{10}=16\%. \]
This is a weighted average of the two concentrations, with weights 4 and 6.
Visual model
Common errors and CAT checks
- Do not average component values directly unless their weights are equal.
- Use quantities, not prices, as the weights in a price mixture.
- Use volumes or masses, not concentrations, as the weights in a concentration mixture.
- Keep units consistent. Do not combine kilograms with grams without conversion.
- Check whether the result is closer to the value with the larger weight.
- Ratios can be used directly as weights. There is no need to find the actual quantities unless the question asks for them.
Exercise
A class has 20 students with an average score of 65 and 30 students with an average score of 75. What is the average score of the whole class?
Show answer
The combined average is [20(65) + 30(75)] / (20 + 30) = 3550 / 50 = 71.