IDEAS home Printed from https://ideas.repec.org/p/msh/ebswps/2007-6.html
   My bibliography  Save this paper

Automatic time series forecasting: the forecast package for R

Author

Listed:
  • Rob J. Hyndman

    ()

  • Yeasmin Khandakar

    ()

Abstract

Automatic forecasts of large numbers of univariate time series are often needed in business and other contexts. We describe two automatic forecasting algorithms that have been implemented in the forecast package for R. The first is based on innovations state space models that underly exponential smoothing methods. The second is a step-wise algorithm for forecasting with ARIMA models. The algorithms are applicable to both seasonal and non-seasonal data, and are compared and illustrated using four real time series. We also briefly describe some of the other functionality available in the forecast package.

Suggested Citation

  • Rob J. Hyndman & Yeasmin Khandakar, 2007. "Automatic time series forecasting: the forecast package for R," Monash Econometrics and Business Statistics Working Papers 6/07, Monash University, Department of Econometrics and Business Statistics.
  • Handle: RePEc:msh:ebswps:2007-6
    as

    Download full text from publisher

    File URL: http://www.buseco.monash.edu.au/ebs/pubs/wpapers/2007/wp6-07.pdf
    Download Restriction: no

    Other versions of this item:

    References listed on IDEAS

    as
    1. Makridakis, Spyros & Hibon, Michele, 2000. "The M3-Competition: results, conclusions and implications," International Journal of Forecasting, Elsevier, vol. 16(4), pages 451-476.
    2. Archibald, Blyth C., 1990. "Parameter space of the Holt-winters' model," International Journal of Forecasting, Elsevier, vol. 6(2), pages 199-209, July.
    3. Everette S. Gardner, Jr. & Ed. Mckenzie, 1985. "Forecasting Trends in Time Series," Management Science, INFORMS, vol. 31(10), pages 1237-1246, October.
    4. Hyndman, Rob J. & Khandakar, Yeasmin, 2008. "Automatic Time Series Forecasting: The forecast Package for R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i03).
    5. Hylleberg, S. & Engle, R. F. & Granger, C. W. J. & Yoo, B. S., 1990. "Seasonal integration and cointegration," Journal of Econometrics, Elsevier, vol. 44(1-2), pages 215-238.
    6. repec:sae:niesru:v:167:y::i:1:p:106-112 is not listed on IDEAS
    7. Hyndman, R.J. & Koehler, A.B. & Ord, J.K. & Snyder, R.D., 2001. "Prediction Intervals for Exponential Smoothing State Space Models," Monash Econometrics and Business Statistics Working Papers 11/01, Monash University, Department of Econometrics and Business Statistics.
    8. Rob J. Hyndman & Andrey V. Kostenko, 2007. "Minimum Sample Size requirements for Seasonal Forecasting Models," Foresight: The International Journal of Applied Forecasting, International Institute of Forecasters, issue 6, pages 12-15, Spring.
    9. Hyndman, Rob J. & Billah, Baki, 2003. "Unmasking the Theta method," International Journal of Forecasting, Elsevier, vol. 19(2), pages 287-290.
    10. Kwiatkowski, Denis & Phillips, Peter C. B. & Schmidt, Peter & Shin, Yongcheol, 1992. "Testing the null hypothesis of stationarity against the alternative of a unit root : How sure are we that economic time series have a unit root?," Journal of Econometrics, Elsevier, vol. 54(1-3), pages 159-178.
    11. Dickey, David A & Fuller, Wayne A, 1981. "Likelihood Ratio Statistics for Autoregressive Time Series with a Unit Root," Econometrica, Econometric Society, vol. 49(4), pages 1057-1072, June.
    12. Hyndman, Rob J. & Koehler, Anne B. & Snyder, Ralph D. & Grose, Simone, 2002. "A state space framework for automatic forecasting using exponential smoothing methods," International Journal of Forecasting, Elsevier, vol. 18(3), pages 439-454.
    13. Rob Hyndman & Muhammad Akram & Blyth Archibald, 2008. "The admissible parameter space for exponential smoothing models," Annals of the Institute of Statistical Mathematics, Springer;The Institute of Statistical Mathematics, vol. 60(2), pages 407-426, June.
    14. Taylor, James W., 2003. "Exponential smoothing with a damped multiplicative trend," International Journal of Forecasting, Elsevier, vol. 19(4), pages 715-725.
    15. Assimakopoulos, V. & Nikolopoulos, K., 2000. "The theta model: a decomposition approach to forecasting," International Journal of Forecasting, Elsevier, vol. 16(4), pages 521-530.
    16. Canova, Fabio & Hansen, Bruce E, 1995. "Are Seasonal Patterns Constant over Time? A Test for Seasonal Stability," Journal of Business & Economic Statistics, American Statistical Association, vol. 13(3), pages 237-252, July.
    17. Durbin, James & Koopman, Siem Jan, 2012. "Time Series Analysis by State Space Methods," OUP Catalogue, Oxford University Press, edition 2, number 9780199641178.
    18. Goodrich, Robert L., 2000. "The Forecast Pro methodology," International Journal of Forecasting, Elsevier, vol. 16(4), pages 533-535.
    19. Rob J. Hyndman & Lydia Shenstone, 2005. "Stochastic models underlying Croston's method for intermittent demand forecasting," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 24(6), pages 389-402.
    20. Anne B. Koehler & Rob J. Hyndman & Ralph D. Snyder & J. Keith Ord, 2005. "Prediction intervals for exponential smoothing using two new classes of state space models," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 24(1), pages 17-37.
    21. Rob J Hyndman & Maxwell L. King & Ivet Pitrun & Baki Billah, 2002. "Local Linear Forecasts Using Cubic Smoothing Splines," Monash Econometrics and Business Statistics Working Papers 10/02, Monash University, Department of Econometrics and Business Statistics.
    22. Hyndman, Rob J. & Koehler, Anne B., 2006. "Another look at measures of forecast accuracy," International Journal of Forecasting, Elsevier, vol. 22(4), pages 679-688.
    23. Smith, Jeremy & Yadav, Sanjay, 1994. "Forecasting costs incurred from unit differencing fractionally integrated processes," International Journal of Forecasting, Elsevier, vol. 10(4), pages 507-514, December.
    24. Melard, G. & Pasteels, J. -M., 2000. "Automatic ARIMA modeling including interventions, using time series expert software," International Journal of Forecasting, Elsevier, vol. 16(4), pages 497-508.
    25. Reilly, David, 2000. "The AUTOBOX system," International Journal of Forecasting, Elsevier, vol. 16(4), pages 531-533.
    26. Hendry, David F, 1997. "The Econometrics of Macroeconomic Forecasting," Economic Journal, Royal Economic Society, vol. 107(444), pages 1330-1357, September.
    27. Ord, J.K. & Koehler, A. & Snyder, R.D., 1995. "Estimation and Prediction for a Class of Dynamic Nonlinear Statistical Models," Monash Econometrics and Business Statistics Working Papers 4/95, Monash University, Department of Econometrics and Business Statistics.
    28. Chatfield, Chris & Yar, Mohammed, 1991. "Prediction intervals for multiplicative Holt-Winters," International Journal of Forecasting, Elsevier, vol. 7(1), pages 31-37, May.
    Full references (including those not matched with items on IDEAS)

    More about this item

    Keywords

    ARIMA models; automatic forecasting; exponential smoothing; prediction intervals; state space models; time series; R.;

    JEL classification:

    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • C22 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes
    • C52 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Model Evaluation, Validation, and Selection

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:msh:ebswps:2007-6. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Dr Xibin Zhang). General contact details of provider: http://edirc.repec.org/data/dxmonau.html .

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.