The Consumer Price Index (CPI) measures the average change over time in prices paid by urban consumers for a market…