Autoregressive models
An autoregressive model can be used to represent a time series with the goal of forecasting future values. In such a model, a variable is assumed to depend on its previous values. The relation is also assumed to be linear and we are required to fit the data in order to find the parameters of the data.
Note
The mathematical formula for the autoregressive model is as follows:
In the preceding formula, c
is a constant and the last term is a random component also known as white noise.
This presents us with the very common problem of linear regression. For practical reasons, it's important to keep the model simple and only involve necessary ...
Get Python Data Analysis now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.