A consumer price index is a statistical estimate of the level of prices of goods and services bought for consumption purposes by households. It is calculated as the weighted average price of a market basket of consumer goods and services. Changes in CPI track changes in prices over time. The items in the basket are updated periodically to reflect changes in consumer spending habits.