Inflation is defined as a general increase in the prices of goods and services in an economy over a period. This general increase is measured using price indices such as the Consumer Price Index (CPI) or Wholesale Price Index (WPI), which track the average change in prices of a basket of goods and services.