HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Index Numbers
  1. 1Price relatives
  2. 2Weighted aggregate index numbers
  3. 3Using an index number and its limits
  1. Statistics & Data Science
  2. /Index Numbers
  3. /Weighted aggregate index numbers

Course 7.2·Lesson 2 of 3

Weighted aggregate index numbers

Food went up by 20%, energy by 50% and transport by 10%. By how much did the cost of living go up? Not by the plain average, because a family spends far more on some things than on others. A weighted aggregate index gives each price relative a weight from what the household spent in the base year.

about 25 min1 simulation1 practice question1 Python program6 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Lesson 2 of 3Show all lessonsHide
Index Numbers
  1. 1Price relatives
  2. 2Weighted aggregate index numbers
  3. 3Using an index number and its limits

Try the code and the simulations beside the lesson.

What you will be able to do

  • calculate a weighted aggregate index number from weights and price relatives;
  • calculate the weights from base-year spending, or from quantities and base-year prices;
  • explain why the weights matter.

Ana's shopping

Ana's household kept a record of its spending in the base year, in euros a week.

GroupSpending (euros)Price relative now
food80120
energy30150
transport50110
other40105

Prices in every group have gone up, but by different amounts. Energy went up by 50%, but Ana spends little on it. Food went up by 20%, and she spends a lot on it. What one number describes the rise in her cost of living?

The weighted aggregate index

The weights are the amounts spent on each group in the base year. Each price relative is multiplied by its weight, and the total is divided by the total of the weights.

I=∑(w×price relative)∑w\displaystyle I = \frac{\sum (w \times \text{price relative})}{\sum w}I=∑w∑(w×price relative)​

Here III is the weighted aggregate index.

Here www is a weight, and ∑\sum∑ means "add up over all the groups".

  1. Multiply. 80×120=960080 \times 120 = 960080×120=9600, 30×150=450030 \times 150 = 450030×150=4500, 50×110=550050 \times 110 = 550050×110=5500 and 40×105=420040 \times 105 = 420040×105=4200.
  2. Add. 9600+4500+5500+4200=23 8009600 + 4500 + 5500 + 4200 = 23\,8009600+4500+5500+4200=23800.
  3. Divide by the total weight. 23 800200=119\dfrac{23\,800}{200} = 11920023800​=119.

The weighted aggregate index is 119. The plain average of the four relatives is 4854=121.25\dfrac{485}{4} = 121.254485​=121.25. It is too high, because it gives energy, the group with the biggest rise, as much weight as food.

Bar chart of Ana's base-year spending in euros a week, which gives the weights: food 80, energy 30, transport 50, other 40. A second panel shows the price relatives of the same four groups, 120, 150, 110 and 105, with a dashed line at the weighted aggregate index of 119 and a dotted line at the plain average of 121.25.

Why it works

Think about the same basket bought now. Food that cost 80 euros now costs 80×1.20=9680 \times 1.20 = 9680×1.20=96 euros. Energy costs 30×1.50=4530 \times 1.50 = 4530×1.50=45, transport 50×1.10=5550 \times 1.10 = 5550×1.10=55 and other things 40×1.05=4240 \times 1.05 = 4240×1.05=42 euros. The basket that cost 200 euros now costs 238 euros.

238200×100=119\displaystyle \frac{238}{200} \times 100 = 119200238​×100=119

That is the same number. A weighted aggregate index with base-year spending as weights is the cost of the base-year basket now, as a percentage of what it cost then.

When the weights must be worked out

Sometimes you are given what was bought, not what was spent. Then each weight is the base-year spending: quantity ×\times× base-year price.

A café buys these each week in the base year.

  • Milk: 50 litres at 1.20 euros a litre, so a weight of 50×1.20=6050 \times 1.20 = 6050×1.20=60.
  • Coffee: 5 kilograms at 16 euros a kilogram, so a weight of 5×16=805 \times 16 = 805×16=80.
  • Sugar: 10 kilograms at 1.00 euro a kilogram, so a weight of 10×1.00=1010 \times 1.00 = 1010×1.00=10.

The price relatives now are 125 for milk, 110 for coffee and 140 for sugar.

The products are 60×125=750060 \times 125 = 750060×125=7500, 80×110=880080 \times 110 = 880080×110=8800 and 10×140=140010 \times 140 = 140010×140=1400. The weights add up to 150.

7500+8800+1400150=118\displaystyle \frac{7500 + 8800 + 1400}{150} = 1181507500+8800+1400​=118

Weights can also be given as a ratio, such as 5:3:25 : 3 : 25:3:2, or as percentages. Use the numbers as they are and divide by their total.

Practise with new numbers

Try it in Python

The program finds Ana's weighted aggregate index, and checks it by pricing her base-year basket at today's prices.

Predict first. Will the index be above or below the plain average of 121.25? Then run it and check with Show the answer.

Your turn.

Now change the program.

1. Change the energy weight from 30 to 90. What happens to the index, and why?

2. Set every weight to 50. Check that the index becomes the plain average of the four price relatives.

The usual mistakes

  • Taking a plain average of the price relatives. That gives every group the same weight.
  • Using quantities as weights. 50 litres of milk and 5 kilograms of coffee cannot be added. Multiply each quantity by its base-year price.
  • Using this year's prices to make the weights. The weights come from the base year.
  • Dividing by the number of groups. Divide by the total of the weights.

Remember these

  • Weighted aggregate index =∑(w×price relative)∑w= \dfrac{\sum (w \times \text{price relative})}{\sum w}=∑w∑(w×price relative)​.
  • Weights === base-year spending, or quantity ×\times× base-year price.
  • The index equals the cost of the base-year basket now, as a percentage of its cost then.
  • The base year has an index of 100.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A family's weights are 5, 3 and 2 for food, housing and travel. The price relatives are 110, 130 and 95. Find the weighted aggregate index.
  1. Why is the plain average of Ana's price relatives too high?
  1. A bakery bought 200 kilograms of flour at 0.90 euros a kilogram in the base year. What is the weight for flour?
  1. Two groups have weights 3 and 1, and price relatives 140 and 100. Find the index.
  1. A household spent 250 dollars a week in the base year. The same goods cost 290 dollars now. What is the weighted aggregate index?

Enroll free in Index Numbers

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (4)

A household's spending in the base year was in the ratio 5 : 3 : 2 on food, housing and clothing…Easy · High School (9–10) · by StemPy Lab
In the base year a café bought 50 litres of milk each week, at 1.20 euros a litre…Medium · High School (9–10) · by StemPy Lab
A council's index of building costs uses three groups with weights 45, 35 and 20…Hard · High School (9–10) · by StemPy Lab
Next: lesson 3Using an index number and its limits
← Index Numbers
← Price relativesUsing an index number and its limits →

Discussion (0)

Log in to join the discussion.

Loading…

A small index uses two groups only: fuel, with a price relative of 140, and everything else, with a…Hard · High School (9–10) · by StemPy Lab

Python Labs (1)

Build a weighted indexPython Lab · by StemPy Lab