Forecasting
Forecasting is the process of making predictions of the future based on past and present data and most commonly by analysis of trends. A commonplace example might be estimation of some variable of interest at some specified future date. Prediction is a similar, but more general term. Both might refer to formal statistical methods employing time series, cross-sectional or longitudinal data, or alternatively to less formal judgmental methods. Usage can differ between areas of application: for example, in hydrology the terms "forecast" and "forecasting" are sometimes reserved for estimates of values at certain specific future times, while the term "prediction" is used for more general estimates, such as the number of times floods will occur over a long period.
Risk and uncertainty are central to forecasting and prediction; it is generally considered good practice to indicate the degree of uncertainty attaching to forecasts. In any case, the data must be up to date in order for the forecast to be as accurate as possible. In some cases the data used to predict the variable of interest is itself forecast.
Categories of forecasting methods
Qualitative vs. quantitative methods
Qualitative forecasting techniques are subjective, based on the opinion and judgment of consumers and experts; they are appropriate when past data are not available.They are usually applied to intermediate- or long-range decisions. Examples of qualitative forecasting methods are informed opinion and judgment, the Delphi method, market research, and historical life-cycle analogy.
Quantitative forecasting models are used to forecast future data as a function of past data. They are appropriate to use when past numerical data is available and when it is reasonable to assume that some of the patterns in the data are expected to continue into the future.
These methods are usually applied to short- or intermediate-range decisions. Examples of quantitative forecasting methods are last period demand, simple and weighted N-Period moving averages, simple exponential smoothing, poisson process model based forecasting and multiplicative seasonal indexes. Previous research shows that different methods may lead to different level of forecasting accuracy. For example, GMDH neural network was found to have better forecasting performance than the classical forecasting algorithms such as Single Exponential Smooth, Double Exponential Smooth, ARIMA and back-propagation neural network.
Average approach
In this approach, the predictions of all future values are equal to the mean of the past data. This approach can be used with any sort of data where past data is available. In time series notation:where is the past data.
Although the time series notation has been used here, the average approach can also be used for cross-sectional data. Then, the prediction for unobserved values is the average of the observed values.
Naïve approach
Naïve forecasts are the most cost-effective forecasting model, and provide a benchmark against which more sophisticated models can be compared. This forecasting method is only suitable for time series data. Using the naïve approach, forecasts are produced that are equal to the last observed value. This method works quite well for economic and financial time series, which often have patterns that are difficult to reliably and accurately predict. If the time series is believed to have seasonality, the seasonal naïve approach may be more appropriate where the forecasts are equal to the value from last season. In time series notation:Drift method
A variation on the naïve method is to allow the forecasts to increase or decrease over time, where the amount of change over time is set to be the average change seen in the historical data. So the forecast for time is given byThis is equivalent to drawing a line between the first and last observation, and extrapolating it into the future.
Seasonal naïve approach
The seasonal naïve method accounts for seasonality by setting each prediction to be equal to the last observed value of the same season. For example, the prediction value for all subsequent months of April will be equal to the previous value observed for April. The forecast for time iswhere =seasonal period and is the smallest integer greater than.
The seasonal naïve method is particularly useful for data that has a very high level of seasonality.
Time series methods
methods use historical data as the basis of estimating future outcomes.They are based on the assumption that past demand history is a good indicator of future demand.
- Moving average
- Weighted moving average
- Exponential smoothing
- Autoregressive moving average
- Autoregressive integrated moving average
- Extrapolation
- Linear prediction
- Trend estimation
- Growth curve
- Recurrent neural network
Causal / econometric forecasting methods
Several informal methods used in causal forecasting do not rely solely on the output of mathematical algorithms, but instead use the judgment of the forecaster. Some forecasts take account of past relationships between variables: if one variable has, for example, been approximately linearly related to another for a long period of time, it may be appropriate to extrapolate such a relationship into the future, without necessarily understanding the reasons for the relationship.
Causal methods include:
- Regression analysis includes a large group of methods for predicting future values of a variable using information about other variables. These methods include both parametric and non-parametric techniques.
- Autoregressive moving average with exogenous inputs
Judgmental methods
Judgmental forecasting methods incorporate intuitive judgement, opinions and subjective probability estimates. Judgmental forecasting is used in cases where there is lack of historical data or during completely new and unique market conditions.Judgmental methods include:
- Composite forecasts
- Cooke's method
- Delphi method
- Forecast by analogy
- Scenario building
- Statistical surveys
- Technology forecasting
Artificial intelligence methods
- Artificial neural networks
- Group method of data handling
- Support vector machines
- Data mining
- Machine learning
- Pattern recognition
Other methods
- Simulation
- Prediction market
- Probabilistic forecasting and Ensemble forecasting
Forecasting accuracy
where E is the forecast error at period t, Y is the actual value at period t, and F is the forecast for period t.
A good forecasting method will yield residuals that are uncorrelated. If there are correlations between residual values, then there is information left in the residuals which should be used in computing forecasts. This can be accomplished by computing the expected value of a residual as a function of the known past residuals, and adjusting the forecast by the amount by which this expected value differs from zero.
A good forecasting method will also have zero mean. If the residuals have a mean other than zero, then the forecasts are biased and can be improved by adjusting the forecasting technique by an additive constant that equals the mean of the unadjusted residuals.
Measures of aggregate error:
Scaled-dependent Errors
The forecast error, E, is on the same scale as the data, as such, these accuracy measures are scale-dependent and cannot be used to make comparisons between series on different scales.Mean absolute error or mean absolute deviation :
Mean squared error or mean squared prediction error :
Root mean squared error :
Average of Errors :
Percentage Errors
These are more frequently used to compare forecast performance between different data sets because they are scale-independent. However, they have the disadvantage of being extremely large or undefined if Y is close to or equal to zero.Mean absolute percentage error :
Mean absolute percentage deviation :
Scaled Errors
Hyndman and Koehler proposed using scaled errors as an alternative to percentage errors.Mean absolute scaled error :
where m=seasonal period or 1 if non-seasonal
Other Measures
:Business forecasters and practitioners sometimes use different terminology. They refer to the PMAD as the MAPE, although they compute this as a volume weighted MAPE. For more information see Calculating demand forecast accuracy.
When comparing the accuracy of different forecasting methods on a specific data set, the measures of aggregate error are compared with each other and the method that yields the lowest error is preferred.
Training and test sets
When evaluating the quality of forecasts, it is invalid to look at how well a model fits the historical data; the accuracy of forecasts can only be determined by considering how well a model performs on new data that were not used when fitting the model. When choosing models, it is common to use a portion of the available data for fitting, and use the rest of the data for testing the model, as was done in the above examples.Cross-validation
is a more sophisticated version of training a test set.For cross-sectional data, one approach to cross-validation works as follows:
- Select observation i for the test set, and use the remaining observations in the training set. Compute the error on the test observation.
- Repeat the above step for i = 1,2,..., N where N is the total number of observations.
- Compute the forecast accuracy measures based on the errors obtained.
For time series data, the training set can only include observations prior to the test set. Therefore, no future observations can be used in constructing the forecast. Suppose k observations are needed to produce a reliable forecast; then the process works as follows:
- Starting with i=1, select the observation k + i for the test set, and use the observations at times 1, 2,..., k+i–1 to estimate the forecasting model. Compute the error on the forecast for k+i.
- Repeat the above step for i = 2,...,T–k where T is the total number of observations.
- Compute the forecast accuracy over all errors.
See also''
- Calculating demand forecast accuracy
- Consensus forecasts
- Forecast error
- Predictability
- Prediction intervals, similar to confidence intervals
- Reference class forecasting
Seasonality and cyclic behaviour
Seasonality
Seasonality is a characteristic of a time series in which the data experiences regular and predictable changes which recur every calendar year. Any predictable change or pattern in a time series that recurs or repeats over a one-year period can be said to be seasonal. It is common in many situations – such as grocery store or even in a Medical Examiner's office—that the demand depends on the day of the week. In such situations, the forecasting procedure calculates the seasonal index of the “season” – seven seasons, one for each day – which is the ratio of the average demand of that season to the average demand across all seasons. An index higher than 1 indicates that demand is higher than average; an index less than 1 indicates that the demand is less than the average.Cyclic behaviour
The cyclic behaviour of data takes place when there are regular fluctuations in the data which usually last for an interval of at least two years, and when the length of the current cycle cannot be predetermined. Cyclic behavior is not to be confused with seasonal behavior. Seasonal fluctuations follow a consistent pattern each year so the period is always known. As an example, during the Christmas period, inventories of stores tend to increase in order to prepare for Christmas shoppers. As an example of cyclic behaviour, the population of a particular natural ecosystem will exhibit cyclic behaviour when the population decreases as its natural food source decreases, and once the population is low, the food source will recover and the population will start to increase again. Cyclic data cannot be accounted for using ordinary seasonal adjustment since it is not of fixed period.Applications
Forecasting has applications in a wide range of fields where estimates of future conditions are useful. Not everything can be forecast reliably, if the factors that relate to what is being forecast are known and well understood and there is a significant amount of data that can be used very reliable forecasts can often be obtained. If this is not the case or if the actual outcome is affected by the forecasts, the reliability of the forecasts can be significantly lower.Climate change and increasing energy prices have led to the use of Egain Forecasting for buildings. This attempts to reduce the energy needed to heat the building, thus reducing the emission of greenhouse gases. Forecasting is used in Customer Demand Planning in everyday business for manufacturing and distribution companies.
While the veracity of predictions for actual stock returns are disputed through reference to the Efficient-market hypothesis, forecasting of broad economic trends is common. Such analysis is provided by both non-profit groups as well as by for-profit private institutions.
Forecasting foreign exchange movements is typically achieved through a combination of chart and fundamental analysis. An essential difference between chart analysis and fundamental economic analysis is that chartists study only the price action of a market, whereas fundamentalists attempt to look to the reasons behind the action. Financial institutions assimilate the evidence provided by their fundamental and chartist researchers into one note to provide a final projection on the currency in question.
Forecasting has also been used to predict the development of conflict situations. Forecasters perform research that uses empirical results to gauge the effectiveness of certain forecasting models. However research has shown that there is little difference between the accuracy of the forecasts of experts knowledgeable in the conflict situation and those by individuals who knew much less.
Similarly, experts in some studies argue that role thinking does not contribute to the accuracy of the forecast. The discipline of demand planning, also sometimes referred to as supply chain forecasting, embraces both statistical forecasting and a consensus process. An important, albeit often ignored aspect of forecasting, is the relationship it holds with planning. Forecasting can be described as predicting what the future will look like, whereas planning predicts what the future should look like.
There is no single right forecasting method to use. Selection of a method should be based on your objectives and your conditions. A good place to find a method, is by visiting a selection tree. An example of a selection tree can be found here.
Forecasting has application in many situations:
- Supply chain management - Forecasting can be used in supply chain management to ensure that the right product is at the right place at the right time. Accurate forecasting will help retailers reduce excess inventory and thus increase profit margin. Studies have shown that extrapolations are the least accurate, while company earnings forecasts are the most reliable. Accurate forecasting will also help them meet consumer demand.
- Economic forecasting
- Earthquake prediction
- Egain forecasting
- Finance against risk of default via credit ratings and credit scores
- Land use forecasting
- Player and team performance in sports
- Political forecasting
- Product forecasting
- Sales forecasting
- Technology forecasting
- Telecommunications forecasting
- Transport planning and Transportation forecasting
- Weather forecasting, Flood forecasting and Meteorology
Limitations
There are many events and values that cannot be forecast reliably. Events such as the roll of a die or the results of the lottery cannot be forecast because they are random events and there is no significant relationship in the data. When the factors that lead to what is being forecast are not known or well understood such as in stock and foreign exchange markets forecasts are often inaccurate or wrong as there is not enough data about everything that affects these markets for the forecasts to be reliable, in addition the outcomes of the forecasts of these markets change the behavior of those involved in the market further reducing forecast accuracy.
The concept of "self-destructing predictions" concerns the way in which some predictions can undermine themselves by influencing social behavior. This is because "predictors are part of the social context about which they are trying to make a prediction and may influence that context in the process". For example, a forecast that a large percentage of a population will become HIV infected based on existing trends may cause more people to avoid risky behavior and thus reduce the HIV infection rate, invalidating the forecast. Or, a prediction that cybersecurity will become a major issue may cause organizations to implement more security cybersecurity measures, thus limiting the issue.