janbrus / prophet

Application of Facebook Prophet model (Python) for forecasting Eurostat monthly indicators

Home Page:https://github.com/eurostat/prophet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prophet

Applying Facebook Prophet model for forecasting Eurostat monthly indicators

About

This is a blind/dummy (no assumption whatsoever) application of Prophet automatic procedure for forecast estimates of Eurostat tour_occ_nim time-series on the number of "nights spent at tourist accommodation establishments" per month.

status since 2017 – closed
contributors
license EUPL

Description

(from the source webpage)

At its core, the Prophet procedure is an additive regression model with four main components (using Stan Bayesian approach, see reference below):

  • a piecewise linear (or logistic) growth curve trend: Prophet automatically detects changes in trends by selecting changepoints from the data,
  • a yearly seasonal component modeled using Fourier series,
  • a weekly seasonal component using dummy variables,
  • a user-provided list of important holidays.

In practice, non-linear trends are fit with yearly and weekly seasonality (plus holidays). The method is also robust to missing data, shifts in the trend, and large outliers.

Usage

Facebook has open sourced Prophet software, a forecasting project with an interface available in Python. We use this resource.

Run the tour_forecast.py source code or explore the run_forecast.ipynb notebook to produce the following 5-years forecast estimates of Eurostat tour_occ_nim monthly indicator:

tour_occ_nim prediction

Another example is provided by the 1-year prediction of unemployment une_rt_m monthly indicator:

une_rt_m prediction

Reference

About

Application of Facebook Prophet model (Python) for forecasting Eurostat monthly indicators

https://github.com/eurostat/prophet

License:European Union Public License 1.1


Languages

Language:Jupyter Notebook 50.2%Language:HTML 49.1%Language:Python 0.7%