The Gnumeric Manual
Prev | Chapter 14. Data Analysis Tools | Next

# 14.6. Forecast Tools

## 14.6.1. Exponential Smoothing Tool

Figure 14-20. Exponential Smoothing Tool Dialog

The Exponential Smoothing tool performs the exponential smoothing for the given set or sets of values. Each value in the smoothed set is predicted based on the forecast for the prior period. The formula to calculate the forecast is: `F(t+1) = F(t) + (1 - dampingFactor) * (A(t) - F(t))`, where `A(t)` is the `t`th value in the original data set.

Specify the cells containing the datasets in the "Input Range" entry. The entered range or ranges are grouped into datasets either by rows or by columns.

If you have labels in the first cell of each data set, select the "Labels" option.

Specify prior forecast adjustment value in the "Damping factor" entry. A value, for example, between 0.2 and 0.3 represents 20 to 30 percent error adjustment in the prior forecast.

Figure 14-21. Some Example Data for the Exponential Smoothing Tool

Example 14-6. Using the Exponential Smoothing Tool

Figure 14-21 shows some example data and Figure 14-22 the corresponding output.

Figure 14-22. Exponential Smoothing Tool Output

## 14.6.2. Moving Average Tool

Figure 14-23. Moving Average Tool Dialog

Use the moving average tool to calculate moving averages of one or more data sets. A moving average provides useful trend information of the data that is lost in a simple average. In addition, moving averages can be used to eliminate random variance. For example, use this tool to create a smoother curve of a stock prize.

Specify the cells containing the datasets in the "Input Range" entry. The entered range or ranges are grouped into datasets either by rows or by columns.

If you have labels in the first cell of each data set, select the "Labels" option.

Specify the "Interval" for the moving average. The interval `i` is the number of consecutive values to be included in each moving average.

The results are given in one column for each dataset Each row represents the moving average of the corresponding row or column in the input range. The moving average cannot be calculated for the first `k` rows in the input range where `k` is smaller than the given interval `i`.

Figure 14-24. Some Example Data for the Moving Average Tool

Example 14-7. Using the Moving Average Tool

Figure 14-24 shows some example data and Figure 14-25 the corresponding output.

Figure 14-25. Moving Averages Tool Output

Prev | Home | Next
Descriptive Statistics Tool | Up | Fourier Analysis Tool