Coder Social home page Coder Social logo

eurostat / prophet Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 6.0 1.5 MB

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

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

License: European Union Public License 1.1

HTML 49.06% Jupyter Notebook 50.24% Python 0.70%
prophet time-series eurostat-data python

prophet's Introduction

prophet

Applying Facebook Prophet model for forecasting Eurostat monthly indicators

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.

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

About

status since 2017 โ€“ closed
contributors
license EUPL

Reference

prophet's People

Contributors

gjacopo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.