The consumer price index and inflation

The CPI prices a fixed basket of goods each year relative to a base year, the inflation rate is its percentage change, and because buyers switch away from goods that get dearer the CPI tends to overstate inflation.

From AP Macroeconomics.