Price indices are used in inflationary and deflationary economics. Generally the wholesale price index (WPI) or the consumer price index (CPI) is used to measure rates of inflation and deflation.