Skip main navigation

Time series: linear regression with lags

The simplest kind of forecasting is linear regression, as Ian Witten explains. Adding lagged copies of variables increases its power enormously.

The simplest kind of forecasting is linear regression. Although this sounds mundane and not very useful – we rarely expect time series simply to be linearly increasing or decreasing – adding lagged copies of variables increases its power enormously by allowing cyclic models. Weka’s internal date format needs to be converted into something more sensible in order to be able to interpret the linear time-based models. Also, using a lagged variable means that early instances have missing values, which need to be removed.

This article is from the free online

Advanced Data Mining with Weka

Created by
FutureLearn - Learning For Life