For any time period \(t\), the smoothed value \(S_t\) is found by computing $$ S_t = \alpha y_{t-1} + (1-\alpha)S_{t-1} ,円,円,円,円,円,円,円 0 < \alpha \le 1 ,円,円,円,円,円,円,円 t \ge 3 ,円 . $$ This is the basic equation of exponential smoothing and the constant or parameter \(\alpha\) is called the smoothing constant.
Note: There is an alternative approach to exponential smoothing that replaces \(y_{t-1}\) in the basic equation with \(y_t\), the current observation. That formulation, due to Roberts (1959), is described in the section on EWMA control charts. The formulation here follows Hunter (1986).
Still another possibility would be to average the first four or five observations.
It can also be shown that the smaller the value of \(\alpha\), the more important is the selection of the initial EWMA. The user would be wise to try a few methods, (assuming that the software has them available) before finalizing the settings.
| Illustrates exponential behavior | This illustrates the exponential behavior. The weights, \(\alpha(1-\alpha)^t\) decrease geometrically, and their sum is unity as shown below, using a property of geometric series: $$ \alpha \sum_{i=0}^{t-1} (1-\alpha)^i = \alpha \left[ \frac{1-(1-\alpha)^t}{1-(1-\alpha)} \right] = 1 - (1-\alpha)^t ,円 . $$ From the last formula we can see that the summation term shows that the contribution to the smoothed value \(S_t\) becomes less at each consecutive time period. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example for \(\alpha = 0.3\) |
Let \(\alpha = 0.3\).
Observe that the weights \(\alpha(1-\alpha)^t\)
decrease exponentially (geometrically)
with time.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| What is the "best" value for \(\alpha\)? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How do you choose the weight parameter? |
The speed at which the older responses are dampened (smoothed) is a
function of the value of \(\alpha\).
When \(\alpha\)
is close to 1, dampening is quick and when \(\alpha\)
is close to 0, dampening is slow. This is illustrated in the
table below.
\(\alpha\)
\((1-\alpha)\)
\((1-\alpha)^2\)
\((1-\alpha)^3\)
\((1-\alpha)^4\)
0.9
0.1
0.01
0.001
0.0001
0.5
0.5
0.25
0.125
0.0625
0.1
0.9
0.81
0.729
0.6561
We choose the best value for \(\alpha\) so the value which results in the smallest MSE. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example |
Let us illustrate this principle with an example. Consider the
following data set consisting of 12 observations taken over time:
The sum of the squared errors (SSE) = 208.94. The mean of the squared errors (MSE) is the SSE /11 = 19.0. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Calculate for different values of \(\alpha\) | The MSE was again calculated for \(\alpha = 0.5\) and turned out to be 16.29, so in this case we would prefer an \(\alpha\) of 0.5. Can we do better? We could apply the proven trial-and-error method. This is an iterative procedure beginning with a range of \(\alpha\) between 0.1 and 0.9. We determine the best initial choice for \(\alpha\) and then search between \(\alpha - \Delta\) and \(\alpha + \Delta\). We could repeat this perhaps one more time to find the best \(\alpha\) to 3 decimal places. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Nonlinear optimizers can be used | But there are better search methods, such as the Marquardt procedure. This is a nonlinear optimizer that minimizes the sum of squares of residuals. In general, most well designed statistical software programs should be able to find the value of \(\alpha\) that minimizes the MSE. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sample plot showing smoothed data for 2 values of \(\alpha\) | [画像:Plot with raw data and smoothed data for alpha = .1 and alpha = .5] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||