Exponential Smoothing: Weighted Average Formula
The forecast for the next period is a weighted average of the current actual value and the current forecast. This form is often easier for manual calculations than the error-correction form.
Joshua Emmanuel · YouTube · 4:59
This introductory tutorial explains the method of exponential smoothing for forecasting. It defines the notation for actual sales () and forecast values (), and presents two equivalent forms of the exponential smoothing formula: an error correction form and a weighted average form. The video demonstrates how to apply the formula to a seven-week sales dataset using a smoothing constant of alpha = 0.2. It covers the standard assumption for the initial forecast () and walks through the step-by-step calculation of subsequent forecasts, highlighting a shortcut for calculating . This video demonstrates how to perform time series forecasting using the exponential smoothing method with a smoothing constant of 0.2. It shows the step-by-step calculation of forecasts for several periods based on historical sales data. Following the forecast calculations, the video explains and computes the Mean Squared Error (MSE) to evaluate the accuracy of the forecasting model, detailing the process of finding forecast errors, squaring them, and calculating their average.
Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.
Generated from the video's visuals and explanation; not verbatim speech.
The video introduces the topic of forecasting using exponential smoothing and outlines the objectives: calculating forecasts and the Mean Squared Error (MSE).
A table displaying weekly sales data is presented. The narrator defines the notation: (or ) represents the actual sales value at time t, and represents the forecast value at time t.
The primary formula for exponential smoothing is introduced: . Here, is the smoothing constant, a value between 0 and 1. This formula updates the forecast by adding a fraction of the previous period's error to the previous forecast.
An alternative, computationally easier form of the formula is shown: . This expresses the new forecast as a weighted average of the most recent actual value and the most recent forecast. The video confirms both formulas are equivalent.
The tutorial applies the method to the provided data using a smoothing constant of . Consequently, , and the working formula becomes .
The video addresses the initialization problem. If no prior forecast is given, the standard assumption is to set the first forecast equal to the first actual value (). In this example, is set to 39.
The calculation for is demonstrated: . The narrator points out a shortcut: whenever , will always equal , so it can simply be copied without calculation.
The first substantive application of the formula occurs at . Using and , the calculation is . The video ends just as it begins to explain the calculation for .
The video begins by demonstrating the application of the exponential smoothing formula, , with a given smoothing constant . The narrator calculates the forecast for week 4 () by taking 0.2 times the actual sales of week 3 () plus 0.8 times the forecast for week 3 (), resulting in 40.00. This process is repeated sequentially for weeks 5, 6, 7, and 8, with each new forecast depending on the previous period's actual sales and forecast. The calculated forecasts are displayed in a table on the left.
The focus then shifts to evaluating the model's accuracy by calculating the Mean Squared Error (MSE). The narrator explains that this involves first finding the forecast errors, which are the differences between the actual sales and the forecasts. A key point is made that the error for the first period is not calculated, as the initial forecast is typically set to the first actual value. The errors for weeks 2 through 7 are computed and shown in the table. Next, each of these errors is squared. Finally, the squared errors are summed and divided by the number of periods with errors (six) to arrive at the MSE, which is calculated to be 11.58. The video concludes by summarizing the steps for calculating forecasts and MSE using exponential smoothing.
The forecast for the next period is a weighted average of the current actual value and the current forecast. This form is often easier for manual calculations than the error-correction form.
When no previous forecast is available to start the exponential smoothing process, it is standard practice to assume the first forecast equals the first actual observed value.
If the initial assumption is used, the calculation for the second forecast () will always result in . Therefore, you can skip the calculation and simply copy the value of to .
A time series forecasting method where the forecast for the next period is a weighted average of the current period's actual value and the current period's forecast. The formula is , where is the smoothing constant between 0 and 1.
A measure of the quality of an estimator. In forecasting, it represents the average of the squares of the errors—that is, the average squared difference between the estimated values (forecasts) and the actual value. A lower MSE indicates a better fit of the model to the data.
The forecast error for a given period is the difference between the actual observed value and the forecasted value for that same period. It is calculated as . In exponential smoothing, errors are typically not calculated for the first period.
Explore conditions, steps and evidence. Supplementary explanations are labeled separately from content shown in the video.
Table header shows 'Week' with rows 1 through 7.
Week
Time period index for the sales data.
Discrete integers from 1 to 7.
Table column 'Sales' contains values 39, 44, 40, 45, 38, 43, 39.
Sales
Actual sales values collected over a seven-week period.
Real numbers representing sales quantities.
Table column 'Forecast' is initially empty and later filled with calculated values.
Forecast
Predicted sales values for each week.
Real numbers representing forecasted quantities.
The actual sales will be represented by .
Label '' appears above the 'Sales' column.
Actual value at time t.
Real numbers.
Note that some authors use to represent actual values.
Text box states 'Actual Value or '.
Alternative notation for the actual value at time t.
Real numbers.
Forecast values on the other hand are generally represented by .
Label '' appears above the 'Forecast' column.
Forecast value for time t.
Real numbers.
where alpha is a value between zero and one referred to as the smoothing constant.
Text box states 'Smoothing Constant 0 <= alpha <= 1'.
Smoothing constant used in the exponential smoothing formula.
Real numbers such that .
Smoothing constant, a weight applied to the most recent actual observation.
in the formula
Actual value (sales) at time period t.
Real numbers
in the formula
Forecasted value for time period t.
Real numbers
mean squared error MSE
MSE = 11.58
MSE
Mean Squared Error, a measure of the average of the squares of the errors.
Non-negative real numbers
The exponential smoothing method uses the formula .
Orange box displays .
The first form of the exponential smoothing formula calculates the next period's forecast by adding a fraction of the previous period's forecast error to the previous period's forecast.
is the smoothing constant, .
is the actual value at time t.
is the forecast value at time t.
To make calculations easier, this formula can be rewritten as .
Blue box displays .
The second form of the formula expresses the new forecast as a weighted average of the last actual value and the last forecast value. The video notes this form is easier for calculations.
is the smoothing constant, .
is the actual value at time t.
is the forecast value at time t.
If no forecast value for the first period is given, then we assume .
Yellow highlight in the Forecast column for Week 1 shows .
When starting exponential smoothing without a prior forecast, the standard assumption is to set the first forecast equal to the first actual value.
No initial forecast value is provided for the first period.
The forecast for the next period is a weighted average of the actual value of the current period and the forecast of the current period.
Requires an initial forecast value, often set to the first actual observation.
The smoothing constant must be between 0 and 1.
To obtain the mean squared error MSE, we first obtain the forecast errors, square them, and then find the mean or average of the squared errors.
MSE is a metric used to evaluate the accuracy of a forecasting model. It is calculated by taking the average of the squared differences between the actual values and the forecasted values.
Errors are typically not calculated for the first period if the forecast is initialized with the first actual value.
To make calculations easier, this formula can be rewritten as... Note that both formulas will give the same result.
A double-headed arrow connects the orange and blue formula boxes.
Start with the error correction form of the formula.
Given in the video.
Distribute the smoothing constant alpha into the parentheses.
Algebraic distribution.
Rearrange the terms to group the terms together.
Commutative property of addition.
Factor out from the grouped terms.
Factoring.
The two forms of the exponential smoothing formula are algebraically equivalent, but the weighted average form is computationally simpler.
0.2 times 40 plus 0.8 times 40, which gives 40. For F5, we have 0.2 times 45 plus 0.8 times 40, which gives 41...
Calculate the forecast for week 4 using the actual sales from week 3 and the forecast for week 3.
Applying the exponential smoothing formula with .
Calculate the forecast for week 5 using the actual sales from week 4 and the forecast for week 4.
Applying the exponential smoothing formula.
Calculate the forecast for week 6 using the actual sales from week 5 and the forecast for week 5.
Applying the exponential smoothing formula.
Calculate the forecast for week 7 using the actual sales from week 6 and the forecast for week 6.
Applying the exponential smoothing formula.
Calculate the forecast for week 8 using the actual sales from week 7 and the forecast for week 7.
Applying the exponential smoothing formula.
The forecasts for weeks 4 through 8 are calculated sequentially.
So the forecast error for week two is 44 minus 39, which is 5... Next we square the errors... Since we only have six periods with errors, we add up these errors and divide by six to obtain a mean squared error of 11.58.
Error = Sales - Forecast Error^2 MSE = 11.58
Calculate the forecast error for week 2.
Subtracting the forecast from the actual sales.
Calculate the forecast error for week 3.
Subtracting the forecast from the actual sales.
Calculate the forecast error for week 4.
Subtracting the forecast from the actual sales.
Calculate the forecast error for week 5.
Subtracting the forecast from the actual sales.
Calculate the forecast error for week 6.
Subtracting the forecast from the actual sales.
Calculate the forecast error for week 7.
Subtracting the forecast from the actual sales.
Square the error for week 2.
Squaring the calculated errors.
Square the error for week 3.
Squaring the calculated errors.
Square the error for week 4.
Squaring the calculated errors.
Square the error for week 5.
Squaring the calculated errors.
Square the error for week 6.
Squaring the calculated errors.
The exact squared error is 3.6864; the video displays it rounded as 3.69.
Squaring the calculated errors.
Averaging the six displayed, individually rounded squared errors gives 11.575, reported on screen as 11.58.
Calculating the mean of the squared errors.
Keeping the last squared error unrounded until the final average gives 11.57 to two decimal places.
Independent arithmetic check of the same data.
The video reports MSE 11.58 from displayed rounded squared errors; using full precision until the end gives 11.57 to two decimals.
We then calculate as 0.2 times 39 plus 0.8 times 39... As a result, we just usually assume that equals ... This means that our first real use of the formula begins with . So is going to be 0.2 times 44 plus 0.8 times 39, which gives 40.
Screen shows , and .
Calculate the forecasts for weeks 2 and 3 using exponential smoothing with , given the sales data and .
Find and .
Calculate using the formula and the assumed .
Substitution into the weighted average formula.
Recognize that calculating when always yields , so it can be directly copied.
Algebraic simplification noted in the video.
Calculate using the formula with and .
Substitution into the weighted average formula.
,
The calculations match the values displayed in the table on screen.
Table showing Week, Sales, Forecast, Error, and Error^2 columns being filled out.
Given weekly sales data and an initial forecast, calculate subsequent forecasts using exponential smoothing with , and then compute the Mean Squared Error (MSE) for the model.
Weekly Sales data: Week 1: 39, Week 2: 44, Week 3: 40, Week 4: 45, Week 5: 38, Week 6: 43, Week 7: 39.
Initial Forecast: (which is ).
Smoothing constant: .
Find the forecasts for weeks 3 through 8 and the MSE for the model based on weeks 2 through 7.
Apply the exponential smoothing formula iteratively to find forecasts for weeks 3 to 8.
Using the provided formula and value.
Calculate the forecast error for each week from 2 to 7 by subtracting the forecast from the actual sales.
Definition of forecast error.
Square each of the calculated forecast errors.
Required step for MSE calculation.
Sum the squared errors and divide by the number of error terms () to find the MSE.
Definition of Mean Squared Error.
Forecasts: . MSE is 11.58 from the rounded table, or 11.57 if exact squared errors are averaged first.
The calculations are shown step-by-step in the video's table, and the final MSE is explicitly stated.
A table with columns Week, Sales, and Forecast is shown. The Forecast column is progressively filled with calculated values as the video explains the process.
Table with Week, Sales, and Forecast columns
Calculated forecast values
The Forecast column starts empty.
Values for , , and are sequentially added to the Forecast column.
The Week and Sales columns remain static throughout the segment.
The visual progression demonstrates the step-by-step application of the exponential smoothing formula to generate forecasts for each subsequent period.
A table is progressively filled with calculated values for Forecast, Error, and Error^2 columns.
Table with columns: Week, Sales, Forecast, Error, Error^2
Formulas on the right side of the screen
Values appear in the 'Forecast' column row by row.
Values appear in the 'Error' column row by row.
Values appear in the 'Error^2' column row by row.
The final MSE value appears at the bottom.
The 'Week' and 'Sales' columns remain static.
The general layout of the table and formulas remains unchanged.
The animation visually demonstrates the sequential nature of the calculations, where each new value depends on previously calculated ones.
As a result, we just usually assume that equals and not bother calculating it at all.
Students might waste time calculating using the full formula when is assumed to be .
The video explicitly points out that if , then will always equal , so it is more efficient to simply copy the value of to .
When computing errors for exponential smoothing forecasts, we do not calculate an error for period one unless otherwise stated.
A red 'X' is drawn over the Error cell for Week 1.
An error should be calculated for every period, including the first one.
In exponential smoothing, the first period's forecast is often initialized with the first period's actual value, making the error zero and uninformative. Therefore, errors are typically calculated starting from the second period.
Note that both formulas will give the same result, it is just a little easier to use the second one.
Double-headed arrow between the two formula boxes.
The error correction form and the weighted average form of the exponential smoothing equation are mathematically equivalent, but the latter is preferred for manual calculation.
Next we compute the mean squared error.
The MSE is calculated using the forecast errors, which are derived from the forecasts generated by the exponential smoothing method.
To make calculations easier, this formula can be rewritten as...
If no forecast value for the first period is given, then we assume equals .
To obtain the mean squared error MSE, we first obtain the forecast errors, square them, and then find the mean or average of the squared errors.
we do not calculate an error for period one unless otherwise stated.
Covered · Introduction and objectives of the tutorial.
Covered · Presentation of the data table and definition of notation for actual and forecast values.
Covered · Introduction and explanation of the two equivalent forms of the exponential smoothing formula.
Covered · Application of the formula to the given dataset, including the assumption for the initial forecast and the calculation of and .
Covered · Calculation of forecasts using the exponential smoothing formula.
Covered · Calculation of forecast errors, squared errors, and the final Mean Squared Error (MSE).
Reviewed subject paths
In exponential smoothing, the first period's forecast is typically initialized with the first period's actual value (). Because the forecast and the actual value are identical, the error is zero and uninformative.
Conditions: The initial forecast is set to the first actual value ().; You are calculating forecast errors to evaluate model accuracy.
There are two mathematically equivalent forms of the exponential smoothing formula. The first is the error correction form: .
Conditions: You are performing exponential smoothing calculations.; You want to understand the relationship between the two formula forms.
To calculate the next forecast, you use the weighted average form of the exponential smoothing formula: . With a smoothing constant of , the formula becomes .
Conditions: The smoothing constant is .; You know the actual sales value for the current period ().; You know the forecast value for the current period ().
If no forecast value for the first period is given, the standard assumption is to set the first forecast equal to the first actual value, expressed as . This provides a starting point for the exponential smoothing calculations.
Conditions: No initial forecast value is provided for the first period.; You are beginning an exponential smoothing calculation.
To calculate the Mean Squared Error (MSE), you first find the forecast errors by subtracting the forecast from the actual sales for each period. Next, you square each of these errors.
Conditions: You have calculated the forecasts for each period.; You have the actual sales data for each period.; Errors are not calculated for the first period if .