Skip to content

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

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published