We present a simple exercise in bridging the gap between statistics and everyday business practice, based on two powerful tools already available in the R system: the forecast package Hyndman (2011) for automatic time series forecasting and the RExcel add-in for MS Excel Baier and Neuwirth (2007), allowing to embed R functionality into spreadsheets and to interact with their built-in macro language. The application we developed makes forecasting practice accessible to those who are not familiar with statistical programs and, possibly, do not even have a sound statistical background. Many processes inside the firm involve forecasting. Some build on models and relationships between bal- ance sheet items, but sometimes an a-theoretical extrapolation of past tendencies is needed. As few firms can afford to have trained statisticians dedicated to supply-chain forecasting and the like, budgeting and other activities are often based on simple, heuristic extrapolation of past data. It is commonplace, especially in small enterprises, to ”pick last year/month’s value”, either in terms of stocks or of increments, as the best estimate for the coming period. Fully automatic forecasting of time series, based on model fitting and model comparing algorhythms selecting the ’best’ model for the data at hand, provides a statistically well founded solution to the forecasting problem and can be of great use to the firm in obtaining accurate predictions for variables like sales, commodities’ input needs and the like, where forecast errors cost money. Such fully automatic procedures are implemented in a variety of commercial software. We show how an open-source solution is also very easy to set up. The ideal way is thus to have the forecaster dealing only with Excel for data input, commmand issuing and results’ retrieval, while a ’real’ statistical engine transparently does the computing in the background. Now the forecaster just has to select the data vector, press the trigger keys for showing up the userform, select the data frequency and press OK. He will get the forecasts at the end of the original series.

Integrating R and Excel for automatic business forecasting

Millo G;
2011-01-01

Abstract

We present a simple exercise in bridging the gap between statistics and everyday business practice, based on two powerful tools already available in the R system: the forecast package Hyndman (2011) for automatic time series forecasting and the RExcel add-in for MS Excel Baier and Neuwirth (2007), allowing to embed R functionality into spreadsheets and to interact with their built-in macro language. The application we developed makes forecasting practice accessible to those who are not familiar with statistical programs and, possibly, do not even have a sound statistical background. Many processes inside the firm involve forecasting. Some build on models and relationships between bal- ance sheet items, but sometimes an a-theoretical extrapolation of past tendencies is needed. As few firms can afford to have trained statisticians dedicated to supply-chain forecasting and the like, budgeting and other activities are often based on simple, heuristic extrapolation of past data. It is commonplace, especially in small enterprises, to ”pick last year/month’s value”, either in terms of stocks or of increments, as the best estimate for the coming period. Fully automatic forecasting of time series, based on model fitting and model comparing algorhythms selecting the ’best’ model for the data at hand, provides a statistically well founded solution to the forecasting problem and can be of great use to the firm in obtaining accurate predictions for variables like sales, commodities’ input needs and the like, where forecast errors cost money. Such fully automatic procedures are implemented in a variety of commercial software. We show how an open-source solution is also very easy to set up. The ideal way is thus to have the forecaster dealing only with Excel for data input, commmand issuing and results’ retrieval, while a ’real’ statistical engine transparently does the computing in the background. Now the forecaster just has to select the data vector, press the trigger keys for showing up the userform, select the data frequency and press OK. He will get the forecasts at the end of the original series.
2011
File in questo prodotto:
Non ci sono file associati a questo prodotto.
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11368/3003854
 Avviso

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact