A consumer price index (CPI) is the relative measure of a market basket of consumer goods and services purchased by households.