So what is inflation? Simple — prices going up. If one kg of tomato was 40 rupees yesterday and today it is 50, that is inflation. Now the government needs to measure how much prices have gone up overall, across the entire economy. For that, they use a tool called the Consumer Price Index (CPI).
Think of CPI as a giant shopping basket. It has everything in it — food, fuel, housing, clothes, healthcare, education, transport — basically everything a regular household spends money on. Each item in this basket has a "weight" — meaning how important it is in your monthly spending. Food has the highest weight because the common person spends the most on food. So when food becomes expensive, CPI shoots up.
When we measure inflation using CPI, we call it retail inflation — because it captures the price that the final consumer, meaning you and me, actually pays at the shop.
Now there is another index you should know — Wholesale Price Index (WPI). This measures prices at the wholesale level — from the manufacturer to the wholesaler, before goods reach retail shops. CPI tells you how your pocket is hurting. WPI tells you what is happening at the factory and godown level.