The consumer price index (CPI) is a measure that examines the weighted average of prices of a basket of consumer goods and services, such as food, transportation, and healthcare. It is used to assess price changes associated with the cost of living and inflation. Understanding CPI is crucial during times of economic stagflation, as it reflects how rising prices impact consumers' purchasing power.