Headline inflation measures the overall change in the price level of goods and services in an economy. Core inflation, on the other hand, is a measure of inflation that excludes certain volatile items, such as food and energy prices. The purpose of measuring core inflation is to obtain a more accurate picture of underlying inflation trends by removing the volatility caused by these items.