|
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 nonsmoothed 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
volatililty 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.
Chart 1 |
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.
Real-World Example
Texas Housing Permits Are Volatile
from Month to Month; a Moving Average Helps Show the Underlying
Trend in the Data
Table 1 uses the formula above
to calculate a five-month moving average of single-family
housing permits.
| Table 1 |
| Month |
Single-family
housing permits
(seasonally adjusted) |
Five-month
moving average, single-family housing permits (seasonally
adjusted) |
|
December 2001 |
9,437 |
9,068 |
|
January 2002 |
9,823 |
9,236 |
|
February 2002 |
9,529 |
9,392 |
|
March 2002 |
8,765 |
9,320 |
|
April 2002 |
10,634 |
9,638 |
|
May 2002 |
10,027 |
9,756 |
|
June 2002 |
9,651 |
9,721 |
|
July 2002 |
10,442 |
9,904 |
|
August 2002 |
10,177 |
10,186 |
|
September 2002 |
10,201 |
10,100 |
|
October 2002 |
10,738 |
10,242 |
|
November 2002 |
10,289 |
10,242 |
|
December 2002 |
10,358 |
10,353 |
|
In the third column, the bottom figure
(10,353) 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.
Chart 2 |
| Glossary
at a Glance
Moving average:
A calculation that
smoothes a volatile data series by consolidating
monthly (or weekly) data points into longer units
of time (an average of several months' data).
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. |
|
|