…
…
Financial Literacy and Economics Fundamentals · Lesson 7 / 35 · Inflation and purchasing power
PreviewIn this lesson you will
You can read the explanation without an account. The exercises and quiz at the end of the lesson are for members.
In November, Alex's friend reads a number in the news: "The reported inflation rate is 31%, but my spending went up a lot more." Alex gets curious and puts last September's and this September's spending side by side. Alex's monthly spending was $500 last year. Buying the same things this year costs $679.
Alex's spending went from $500 to $679. What percent is that increase? Why is it different from the number Alex's friend read? Is one of them wrong, or are they measuring different things? In this lesson you will learn to measure inflation yourself: you will build a basket, turn it into an index, and calculate the annual change from the index. By the end, you will be able to show with numbers why a reported inflation rate may not fit you.
Every basket, price, and rate in this lesson is fictional. All of it is a course example. The "31%" Alex's friend mentions is not a real announcement; it is just a number for this lesson. At the end of the lesson you will see where to look for a real official figure.
In this lesson you will:
In the previous lesson you saw how supply and demand move the price of one good, tomatoes. Inflation is different: it is the prices of all the things you buy rising together. But how do you measure "all"? Tomatoes might rise 50% while a phone plan rises 10%. To reduce them to one number, economists build a price basket: a list of goods and services a typical household buys, with the quantities held fixed.
The core of the method is this: you buy the same list, in the same quantities, at the prices of two different years. The quantities stay the same, and only the prices change. So the difference between the two totals comes only from prices, not from buying more or buying less.
Example 1 (not the case): a student club's snack basket. A student club buys the same five things every month. With last year's and this year's prices, the table looks like this (course example):
| Item | Quantity | Last year price | This year price | Last year total | This year total |
|---|---|---|---|---|---|
| Bread | 30 | $0.50 | $0.65 | $15.00 | $19.50 |
| Milk | 8 | $2.00 | $2.60 | $16.00 | $20.80 |
| Bus ticket | 40 | $0.75 | $1.00 | $30.00 | $40.00 |
| Coffee | 10 | $3.00 | $3.75 | $30.00 | $37.50 |
| Notebook | 4 | $2.25 | $2.70 | $9.00 | $10.80 |
| Total |
The quantity column is the same in both years: 30 loaves of bread, 8 cartons of milk, 40 tickets. Even if the club decides to drink less coffee this year, the quantity is not changed for the measurement. Otherwise a price increase and a change in consumption would get mixed together. In real life, people avoid things whose price rises a lot and move toward cheaper ones. Because the basket stays fixed, the measurement does not see this switching, and it can make the increase look a little larger. Keep this in mind as a limit.
Not every item goes into the basket. The basket measures spending. Money you save or lend to someone is not a purchase. The items that do go in do not all carry the same weight either: a large amount paid every month moves the result a lot, and a small thing bought once a year moves it very little. The share of an item in total spending is called its weight.
Where does each of Alex's expenses fall in Alex's personal price basket?
For each row, pick its match from the list, then check.
The easiest way to compare two totals is to build a price index. You set the starting year, the base year, to 100. The index for a later year is the basket's cost in that year divided by its cost in the base year, times 100.
For the snack basket: 128.60 / 100.00 = 1.286. Multiply by 100 and the index is 128.6. Because the base year is 100, the reading is easy: the basket is 28.6% more expensive than last year. The change over one year, meaning the percent by which the index rose in a year, is called inflation. The calculation is the same as the percent change formula from lesson 4: (new / old - 1) × 100 = (128.6 / 100 - 1) × 100 = 28.6%.
Now let's add each item's own increase to the same table:
| Item | Last year total | This year total | Item increase |
|---|---|---|---|
| Bread | $15.00 | $19.50 | 30% |
| Milk | $16.00 | $20.80 | 30% |
| Bus ticket | $30.00 | $40.00 | 33.3% |
| Coffee | $30.00 | $37.50 | 25% |
| Notebook | $9.00 | $10.80 | 20% |
| Basket | $100.00 | $128.60 | 28.6% |
No single item rose exactly 28.6%. The increases range from 20% to 33.3%, and the basket's increase is a kind of average of them. But it is not an ordinary average: bus tickets and coffee are the two largest items in the basket ($30 each), so their increases decide more of the result. Inflation is the average of the item increases, weighted by spending share.
Inflation in the snack basket came out at 28.6%. How much did the price of the notebook rise?
Now let's move to Alex's own basket. Alex groups last September's spending into five categories. Alex calculates the share of each category in the total, as in lesson 2, and then writes down what each category would cost if bought again this September.
Example 2 (the case): Alex's basket. The amounts and increases are course examples.
| Item | Last year total | Share | Price increase | This year total | Contribution to the increase |
|---|---|---|---|---|---|
| Food | $200 | 40% | 40% | $280 | $80 |
| Housing | $120 | 24% | 50% | $180 | $60 |
| Transit | $30 | 6% | 30% | $39 | $9 |
| Phone and internet | $20 | 4% | 20% | $24 | $4 |
| Clothing and fun | $130 | 26% | 20% | $156 | $26 |
| Total |
Index: 679 / 500 × 100 = 135.8. Alex's personal inflation is 35.8%. Look at the last column: of the $179 total increase, $80 comes from food alone. Food both rose a lot (40%) and is the largest item (40%). Clothing and fun is also a large item (26%), but it rose only 20%, so its contribution stays at $26.
You can think of an item's contribution to inflation roughly as share × its own increase. For food, 0.40 × 40 = 16 points; for housing, 0.24 × 50 = 12 points. When you add the contributions of all five items, you get 35.8. This is exactly what a weighted average is.
Keep the price increases the same (food 40%, clothing and fun 20%). Suppose Alex spent equal amounts on food and on clothing and fun ($165 on each; housing $120, transit $30, phone and internet $20 stay the same). What would Alex's inflation be?
Where could the 31% Alex's friend read come from? An official inflation rate is calculated not for one person but with a basket built from the average spending shares of households in the country. Let's build a fictional "general basket" that copies this logic. The price increases are exactly the same as Alex's; only the shares are different.
Example 3 (the case): Alex's basket and the general basket. The general basket is a course example; it does not use real official weights.
| Item | Price increase | General basket last year | General basket this year | Alex last year | Alex this year |
|---|---|---|---|---|---|
| Food | 40% | $125.00 | $175.00 | $200.00 | $280.00 |
| Housing | 50% | $75.00 | $112.50 | $120.00 | $180.00 |
| Transit | 30% | $75.00 | $97.50 | $30.00 | $39.00 |
| Phone and internet | 20% | $25.00 | $30.00 | $20.00 | $24.00 |
| Clothing and fun | 20% | $200.00 | $240.00 | $130.00 | $156.00 |
The general basket's inflation is 31.0%, and Alex's is 35.8%. Both calculations are correct. The difference comes from Alex spending more than average on the two fast-rising items, food and housing. The chart below shows the shares of the two baskets side by side.
% · Fictional sample data
So the reported rate is not "wrong"; it is the result of a different basket. Everyone's basket is a little different, so everyone's personal inflation is a little different too. For someone who rents, the share of housing is large; for someone who walks to school, the share of transit is close to zero.
The code below calculates Alex's basket. You do not need to read the code. Just pick the food and housing increases and look at the output. Python prints numbers with a decimal point, as in 135.8.
Change the food and housing price increases: what happens to Alex's index and inflation?
Pick a value; predict the output first, then look.
1food_increase = 402housing_increase = 503# 1. Last year's basket (course example, $)4old_total = 200 + 120 + 30 + 20 + 1305# 2. The same basket at this year's prices6food = 200 * (1 + food_increase / 100)7housing = 120 * (1 + housing_increase / 100)8other = 30 * 1.30 + 20 * 1.20 + 130 * 1.209new_total = food + housing + other10# 3. Index and annual change11index = new_total / old_total * 10012print(f"This year's cost: ${new_total:.2f}")13print(f"Index: {index:.1f}")14print(f"Annual change: {index - 100:.1f}%")
This year's cost: $679.00 Index: 135.8 Annual change: 35.8%
Faded lines didn't run with this value. Moving the food increase by 20 points moves inflation by about 8 points, because the share of food is 40% (0.40 × 20 = 8). Moving the housing increase by 30 points moves it by about 7 points, because the share of housing is 24% (0.24 × 30 = 7.2). An item's effect on inflation is its increase times its share.
Indexes are usually published as a series over many years. When you read a series, remember one rule: annual inflation is always calculated against the previous year, not against the base year.
Example 4 (not the case): a city's three-year index. In a fictional city, the index went like this: year 1 was 100, year 2 was 130, and year 3 was 169. From year 2 to year 3, the index rose 39 points. But inflation is not 39: (169 / 130 - 1) × 100 = 30%. The point difference is the subtraction difference between two indexes; inflation is a rate. The two give the same number only when the previous year is exactly 100: going from 100 to 130, the point difference is 30 and the percent is 30. As the index gets higher, the same percent increase equals more points.
| Year | Index | Point difference | Annual inflation |
|---|---|---|---|
| 1 | 100 | ||
| 2 | 130 | 30 | 30% |
| 3 | 169 | 39 | 30% |
The city's index rose from 130 to 169. What is inflation this year?
In most countries, the national statistics office calculates official inflation and publishes it every month as the consumer price index (CPI). The method is a large-scale version of what you did in this lesson: a basket of hundreds of goods and services is built, a large number of prices are collected across the country, and the items are weighted by the average spending shares of households. You can read the current figure on your own national statistics office's website. That number describes the basket of the "average household" in the country; if your basket does not look like the average, your inflation will come out different from it.
So what does Alex do with this? When building next year's budget, instead of growing every line by the reported rate, Alex grows the fast-rising lines in their own basket by their own increases. Put the steps for finding your own inflation in order.
Put the steps for finding your own inflation in the right order.
Click the lines in order; to undo one you placed wrong, click it in the list below.
Shuffled lines
Your order
Now look at Alex's budget decision. Alex will grow the food line, which is $280 a month this year, for next year. Let's assume food prices rise 40% next year, as they did this year (course example).
Alex is building next year's monthly budget. The food line is $280 a month this year. By how much should Alex increase the food budget?
Pick an option and see what happens. There are no points; you can try the other options too.
To wrap up this lesson, match the four numbers you used with their names.
Match each statement with its number from the lesson.
For each row, pick its match from the list, then check.
We calculate the question from block 3: if Alex spent $165 each on food and on clothing and fun, with the same price increases, what would Alex's inflation be?
old_total = 165 + 120 + 30 + 20 + 165 new_total = 165 * 1.40 + 120 * 1.50 + 30 * 1.30 + 20 * 1.20 + 165 * 1.20 print(f"Last year: ${old_total:.2f}") print(f"This year: ${new_total:.2f}") print(f"Annual change: {(new_total / old_total - 1) * 100:.1f}%")
OutputLast year: $500.00
This year: $672.00
Annual change: 34.4%The prices are the same and only the shares changed; inflation fell from 35.8% to 34.4%.
Let's add a fourth year to the city's series: the index is 186. Each year is calculated against the previous year.
indexes = [100, 130, 169, 186] for i in range(1, len(indexes)): old = indexes[i - 1] new = indexes[i] change = (new / old - 1) * 100 difference = new - old print(f"Year {i}: {old} -> {new}, difference {difference} points, {change:.1f}%")
OutputYear 1: 100 -> 130, difference 30 points, 30.0%
Year 2: 130 -> 169, difference 39 points, 30.0%
Year 3: 169 -> 186, difference 17 points, 10.1%In the last year, inflation fell from 30% to 10.1%, but the index still went from 169 to 186: prices did not get cheaper, they got more expensive more slowly. The same 30% was worth 30 points in the first year and 39 points in the second.
Mistaking an index point difference for a percent. Saying "The index went from 130 to 169, so inflation is 39%" is wrong. 39 is the point difference between the two indexes; inflation is that difference divided by the previous year's index. The correct calculation takes two lines: first 169 / 130 = 1.30; then (1.30 - 1) × 100 = 30%. A point difference and a percent give the same number only when the previous index is exactly 100. A sibling of the same mistake is finding inflation with the simple average of the item increases: if rent rose 50%, groceries 20%, and transit 10%, inflation is not (50 + 20 + 10) / 3; you need to weight each increase by the item's share of spending.
Next lesson: While prices rose 35.8%, how much did a scholarship and family support rise? You will calculate how much Alex's income really buys: purchasing power.
This content is for education only and is not investment advice.
Exercises and quiz are for members
This lesson has 7 coding exercises and a 10-question quiz. Sign up free to solve them, save your progress and move on to the next lesson.
| $100.00 |
| $128.60 |
| 100% |
| $679 |
| $179 |
| Total |
| $500.00 |
| $655.00 |
| $500.00 |
| $679.00 |
| — | Alex | General basket |
|---|
| Food | 40 | 25 |
|---|---|---|
| Housing | 24 | 15 |
| Transit | 6 | 15 |
| Phone and internet | 4 | 5 |
| Clothing and fun | 26 | 40 |
Alex is growing this year's food ($280) and housing ($180) lines for next year: once with the general rate (31%), and once with their own increases (40% and 50%). The rates are course examples.
# 1. This year's monthly amounts (course example, $) food = 280 housing = 180 # 2. Two ways to plan next year for name, amount, own_increase in [("Food", food, 40), ("Housing", housing, 50)]: general = amount * 1.31 own = amount * (1 + own_increase / 100) difference = own - general print(f"{name}: general ${general:.2f}, own ${own:.2f}, difference ${difference:.2f}")
OutputFood: general $366.80, own $392.00, difference $25.20
Housing: general $235.80, own $270.00, difference $34.20On these two lines, using the general rate hides a total shortfall of $59.40 a month.