MKB-Datalab / time-series-analysis-with-SARIMAX-and-Prophet

This repository introduces some basics on time series. It also presents ARIMA models and its variants as well as the Facebook Prophet forecasting model.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ“ˆ Time Series Analysis and Forecasting with SARIMAX and Facebook Prophet models: An Intro

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).

๐Ÿ“ Data

In the pratical examples we used the following data:

  1. Data obtained from Google Trends consisting on how many times the word diet was searched in US in the period from the week starting at 2016-03-27 till week starting at 2021-03-21. This data can be found here.

  2. 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.

  3. 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.

๐Ÿ”ง Tools

  • statsmodel
  • Prophet

Brief description of the tools used

๐Ÿ’ป Install requirements

  • 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.

โ—€๏ธ Back to repository main page

About

This repository introduces some basics on time series. It also presents ARIMA models and its variants as well as the Facebook Prophet forecasting model.

License:MIT License


Languages

Language:Jupyter Notebook 100.0%