Smoothing Data with Moving Averages
How to smooth a volatile data series
The Economic Problem
Economists Use Smoothing Techniques to Help Show the Economic Trend in Data
To decipher trends in data series, researchers perform various statistical manipulations. These operations are referred to as “smoothing techniques” and are designed to reduce or eliminate short-term volatility in data. A smoothed series is preferred to a non-smoothed one because it may capture changes in the direction of the economy better than the unadjusted series does.
Seasonal Adjustment Is One Smoothing Technique
One common smoothing technique used in economic research is seasonal adjustment. This process involves separating out fluctuations in the data that recur in the same month every year (seasonal factors). Such fluctuations can be a result of annual holidays (a jump in December retail sales) or predictable weather patterns (an increase in homebuilding in the spring). For further information on the seasonal adjustment process, see "Seasonally Adjusting Data."
A Moving Average Can Smooth Data That Remains Volatile after Seasonal Adjustment
In other cases, a data series retains volatility even after seasonal adjustment. A good example is housing permits, which exhibit strong seasonal fluctuations primarily due to predictable weather patterns. Even after seasonal adjustment eliminates these predictable patterns, however, considerable volatility remains (Chart 1). Why? Because seasonal adjustment does not account for irregular factors such as unusual weather conditions or natural disasters, among others. Such events are unexpected and cannot be isolated the way seasonal factors can. For instance, did single-family housing permits fall in June because economic conditions worsened, or was it just a wetter June than usual? Economists use a simple smoothing technique called “moving average” to help determine the underlying trend in housing permits and other volatile data. A moving average smoothes a series by consolidating the monthly data points into longer units of time—namely an average of several months' data.
There is a downside to using a moving average to smooth a data series, however. Because the calculation relies on historical data, some of the variable's timeliness is lost. For this reason, some researchers use a “weighted” moving average, where the more current values of the variable are given more importance. Another way to reduce the reliance on past values is to calculate a “centered” moving average, where the current value is the middle value in a five-month average, with two lags and two leads. The lead figures are forecasted values. Data available from the Dallas Fed's web site are adjusted using the simple moving average technique explained below.
The Technical Solution
The formula for a simple moving average is:
where y is the variable (such as single-family housing permits), t is the current time period (such as the current month), and n is the number of time periods in the average. In most cases, researchers use three-, four- or five-month moving averages (so that n = 3, 4 or 5), with the larger the n, the smoother the series.
Texas Housing Permits Are Volatile from Month to Month; a Moving Average Helps Show the Underlying Trend in the Data
|Month||Single-family housing permits
|Five-month moving average,
single-family housing permits
In the third column, the bottom figure (7,218) is found by taking the average of the current month and the previous four months in column two.
The series in the third column is smoothed, and as Chart 2 shows, is much less volatile than the original series. Using the smoothed data, a researcher can more easily determine underlying trends in the data, as well as detect significant changes in direction.
Smoothing techniques reduce the volatility in a data series, which allows analysts to identify important economic trends. The moving average technique offers a simple way to smooth data; however, because it utilizes data from past time periods, it may obscure the latest changes in the trend.
Glossary at a Glance
- Moving average:
- A calculation that smoothes a volatile data series by averaging neighboring data points.
- Seasonal adjustment:
- The type of smoothing technique in which seasonal fluctuations in the data are estimated and removed.
- Smoothing technique:
- A statistical operation performed on economic data series to reduce or eliminate short-term volatility.