Skip to main content

Forecasting

  • Chapter
  • First Online:
Algorithms for Data Science

Abstract

This chapter provides an introduction to time series and foundational algorithms related to and for forecasting. We adopt a pragmatic, first-order approach aimed at capturing the dominant attributes of the time series useful for prediction. Two forecasting methods are developed: Holt-Winters exponential forecasting and linear regression with time-varying coefficients. The first two tutorials, using complaints received by the U.S. Consumer Financial Protection Bureau, instruct the reader on processing data with time attributes and computing autocorrelation coefficients. The following tutorials guide the reader through forecasting using economic and stock price series.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 99.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Chapter 12 discusses computational aspects of processing streaming data.

  2. 2.

    We used these data in Sect. 6.5

  3. 3.

    Exercise 9.5 of Chap. 9 asked the reader to program a moving average.

  4. 4.

    This is an example of a time series with time steps of distinctly different lengths.

  5. 5.

    As would be done if the data were arriving in a stream.

  6. 6.

    We’ll do just this in the Chap. 12.

  7. 7.

    The Python function with the same purpose is named type.

  8. 8.

    It’s not necessary to stagger the data because the data set has been constructed from staggered data pairs.

  9. 9.

    This statement is mathematically vague—the influence of recent errors on the determination of \(\widehat{\boldsymbol{\beta }}_{n}^{{\ast}}\) depends on α.

References

  1. A.C. Harvey, Forecasting, Structural Time Series and the Kalman Filter (Cambridge University Press, Cambridge, 1989)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Steele, B., Chandler, J., Reddy, S. (2016). Forecasting. In: Algorithms for Data Science. Springer, Cham. https://doi.org/10.1007/978-3-319-45797-0_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-45797-0_11

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-45795-6

  • Online ISBN: 978-3-319-45797-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics