The consumer price index (CPI) measures the cost of a basket of goods and services relative to the base year, and is used to calculate the inflation rate. The CPI imperfectly measures cost of living due to substitution bias, new products, and unmeasured quality changes, causing it to overstate inflation by about 1% annually. The GDP deflator differs from the CPI by including all domestic production rather than consumption, and automatically adjusting its basket over time.