8. Discovered a suite of classical time series forecasting methods#
8.1 Time Series Forecasting#
Making predictions about the future is called extrapolation in the classical statistical handling of time series data.
More modern fields focus on the topic and refer to it as time series forecasting.
Forecasting involves taking models fit on historical data and using them to predict future observations.
Descriptive models can borrow for the future (i.e. to smooth or remove noise), they only seek to best describe the data.
An important distinction in forecasting is that the future is completely unavailable and must only be estimated from what has already happened.
“The purpose of time series analysis is generally twofold: to understand or model the stochastic mechanisms that gives rise to an observed series and to predict or forecast the future values of a series based on the history of that series” ref
The skill of a time series forecasting model is determined by its performance at predicting the future. This is often at the expense of being able to explain why a specific prediction was made, confidence intervals and even better understanding the underlying causes behind the problem.
8.2 Concerns of Forecasting#
When forecasting, it is important to understand your goal. for example:
How much data do you have available and are you able to gather it all together? More data is often more helpful, offering greater opportunity for exploratory data analysis, model testing and tuning, and model fidelity.
What is the time horizon of predictions that is required? Short, medium or long term? Shorter time horizons are often easier to predict with higher confidence.
Can forecasts be updated frequently over time or must they be made once and remain static? Updating forecasts as new information becomes available often results in more accurate predictions.
At what temporal frequency are forecasts required? Often forecasts can be made at a lower or higher frequencies, allowing you to harness down-sampling, and up-sampling of data, which in turn can offer benefits while modeling.
8.3 Examples of Time Series Forecasting#
There is almost an endless supply of time series forecasting problems.
Below are 10 examples from a range of industries to make the notions of time series analysis and forecasting more concrete.
Forecasting the corn yield in tons by state each year.
Forecasting whether an EEG trace in seconds indicates a patient is having a seizure or not.
Forecasting the closing price of a stock each day.
Forecasting the birth rate at all hospitals in a city each year.
Forecasting product sales in units sold each day for a store.
Forecasting the number of passengers through a train station each day.
Forecasting unemployment for a state each quarter.
Forecasting utilization demand on a server each hour.
Forecasting the size of the rabbit population in a state each breeding season.
Forecasting the average price of gasoline in a city each day.
I expect that you will be able to relate one or more of these examples to your own time series forecasting problems that you would like to address
8.4 Classical time series forecasting methods#
This cheat sheet demonstrates 11 different classical time series forecasting methods. they are:
Autoregression (AR)
Moving Average (MA)
Autoregressive Moving Average (ARMA)
Autoregressive Integrated Moving Average (ARIMA)
Seasonal Autoregressive Integrated Moving-Average (SARIMA)
Seasonal Autoregressive Integrated Moving-Average with Exogenous Regressors (SARIMAX)
Vector Autoregression (VAR)
Vector Autoregression Moving-Average (VARMA)
Vector Autoregression Moving-Average with Exogenous Regressors (VARMAX)
Simple Exponential Smoothing (SES)
Holt Winter’s Exponential Smoothing (HWES)