Demantra Bayesian White Paper PDF
Demantra Bayesian White Paper PDF
Demantra Bayesian White Paper PDF
Forecasting
An Oracle White Paper
Updated September 2006
The Bayesian Approach to Forecasting
INTRODUCTION
The Bayesian approach uses a combination of a priori and post priori knowledge to
The main principle of forecasting is to find
model time series data. That is, we know if we toss a coin we expect a probability
the model that will produce the best
forecasts, not the best fit to the historical of 0.5 for heads or for tails—this is a priori knowledge. Therefore, if we take a coin
data. The model that explains the historical and toss it 10 times, we will expect five heads and five tails. But if the actual result
data best may not be best predictive is ten heads, we may lose confidence in our a priori knowledge. This may be
model. explained by a change to the coin that was introduced to alter the probability—this
is post priori knowledge. Another example of post priori knowledge is future price
change or marketing promotion that is likely to alter the forecast.
The main principle of forecasting is to find the model that will produce the best
forecasts, not the best fit to the historical data. The model that explains the
historical data best may not be best predictive model for several reasons.
• The future may not be described by the same probability as the past. Perhaps
neither the past nor the future is a sample from any probability distribution.
The time series could be nothing more than a non-recurrent historical record.
• The model may involve too many parameters. Overfitted models could
account for noise or other features in the data that are unlikely to extend into
the future.
• The error involved in fitting a large number of parameters may be damaging
to forecast accuracy, even when the model is correctly specified.
In any of these cases, the model may fit the historical data very well, yet still
forecast poorly, illustrating that there is a vast difference between its internal and
external validities.
From the graph above, we can see how a regular model with all the parameters
cannot correctly predict the historical data. We would like to select a model that
minimizes the forecasting error and not the historical data error.
Several forecasting approaches and the methods they use to generate forecasts.
The Bayesian technique uses a methodology that can be described by the following
equation: F = w1f1 + w2f2 + wnfn. Where F is the final forecast; f1 refers to the
forecast using model 1; f2 refers to the forecast using model 2; fn refers to the
forecast using model n and wj is a weight given to model j.
The value assigned for weight takes into account the residuals, or the difference
between the true data and estimated data. When determining the weight value, a
The Demantra Demand Planner forecast engine automatically combines different forecast
models in the same time series.
The X-axis represents item IDs and the Y-axis represents relative error (calculated
as Mean Absolute Percent error). For items 6740, 6759, 6753, 6872, 6873, and
6877, the differences between the Bayesian and the “pick-best” approaches used by
other vendors are relatively small (maximum absolute difference in MAPE is 4
percent maximum; relative difference in MAPE is approximately 30 percent). The
difference between the approaches is noticeable for other item IDs; it was as large
as 25 percent on an absolute and more than 100 percent on a relative basis.
CONCLUSION
Because the behavior of items can differ from item to item, and in some cases from
Bayesian analysis, in contrast, allows
location to location, using one pick-best model to generate forecasts is not
multiple data models of comparable high
quality to be combined by assigning recommended. The Bayesian forecasting approach relies on an optimal
probabilities to each model. In addition to combination model for each item and location combination. The engine adapts the
improving the accuracy and robustness of model weights as new data becomes available so that the users do not have to track
predictive abilities, this approach also product behavior and respecify the model usage manually, as some other
adds considerable flexibility to the system.
commercial packages require the user to do.
The patented Bayesian analytical forecast engine used in Oracle Demantra planning
solutions offers the most accurate forecasts possible. Automated algorithms
consider 15 industry-standard and proprietary forecasting models, each geared to
different demand patterns. The forecast engine automatically combines different
forecast models in the same time series. This produces a forecast that
accommodates seasonality, promotions, trends, and many other causal factors.
Oracle Corporation
World Headquarters
500 Oracle Parkway
Redwood Shores, CA 94065
U.S.A.
Worldwide Inquiries:
Phone: +1.650.506.7000
Fax: +1.650.506.7200
oracle.com