Implementation in PythonImplementation in Python

Having become familiar with the models that will allow us to predict time series, you probably have a question, which Python libraries will be used?

Firstly, in order to better understand the mathematical mechanism - you can implement one of the models yourself in Python.

While we will load the rest of the models through libraries such as statsmodels:

We have formed a prediction for the next hundred months in the plot above.

The above code uses a model that captures the last "pattern" of seasonality, i.e., the same repeating segment.

Everything was clear?

Section 1. Chapter 4