Photo by Aron Visuals on Unsplash
This repository presents in three notebooks some basics about time series and introduceS SARIMAX models and Facebook Prophet forecasting algorithm.
In 01-Intro_time_series_tutorial.ipynb you learn about time series properties and how to identify them using both statistical and graphical tools.
Next, in 02-Forecasting_with_SARIMAX.ipynb you are introduced to ARIMA models and its variants. There we apply SARIMA model on a store-item sales data and forecast the sales 3 months in the future.
In the last notebook, 03-Forecasting_with_Facebook_Prophet.ipynb , we introduce Facebook Prophet. We compare it with other models such as SARIMAX and apply it to the same dataset. We finalize by comparing the performance of all models obtained (SARIMA and Prophet models).
In the pratical examples we used the following data:
-
Data obtained from Google Trends consisting on how many times the word
diet
was searched in US in the period from the week starting at2016-03-27
till week starting at2021-03-21
. This data can be found here. -
global temperature dataset time series. This dataset includes global monthly mean temperature anomalies in degrees Celsius from 1880 to the present. Data are included from the GISS Surface Temperature (GISTEMP) analysis and the global component of Climate at a Glance (GCAG). This data can be found here.
-
Data from Kaggle's competition Store Item Demand Forecasting Challenge which consists of 5 years of store-item sales data split in a training dataset (train.csv) and a test dataset (test.csv).
More specifically, in our examples, we used a part of this data that can be found here.
- statsmodel
- Prophet
Brief description of the tools used
- Install requirements using
pip install -r time_series_requirements.txt
.- Make sure you use Python 3.
- You may want to use a virtual environment for this.