Giter Club home page Giter Club logo

di40 / time-series-forecasting-museum-visitors Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 38.76 MB

Analyze and forecast time series data on the number of visitors to various Italian museums using techniques such as TimeGPT, SARIMAX, Holt-Winters, Lasso, Gradient Boosting, GAM, etc.

R 11.15% Jupyter Notebook 88.85%
arima forecasting generalized-additive-models gradient-boosting holt-winters sarimax time-series-analysis tslm xgboost bass-model lasso-regression timegpt

time-series-forecasting-museum-visitors's Introduction

Time Series Forecasting of Museum Visitors

This repository showcases an application of concepts learned during the "Business, Economic, and Financial Data" course at the University of Padua to analyze time series data of the number of visitors in some Italian museums.

Objective

Predict monthly visitors for two Italian museums by leveraging time series forecasting techniques.

Dataset

Manually crafted, using data from multiple sources:

Baseline Models

  • Basic Baseline: Predicts using the mean OR the same value as the last year, serving as a simple benchmark.
  • Advanced Baseline (SoTA): Utilizes TimeGPT, representing the cutting-edge model for time series forecasting.

Methods

  • Holt-Winters' exponential smoothing with additive seasonality
  • Generalized Additive Model (GAM)
  • SARIMA
  • SARIMAX
  • Generalized Bass Model (GBM)
  • Time-series linear regression
  • Lasso regression
  • Boosting (Gradient Boosting and XGBoost)

Also, combinations of methods are utilized, like GBM + SARIMAX for first modeling the trend, and then modeling the residuals.

Hyperparameter Selection

Time-series cross validation in combination with AIC.

Test Metrics

  • RMSE
  • MAPE
  • AIC

Results

Museum of Cinema

Five models outperform both baselines, including: Exp. smoothing Holt Winters, TSLM, SARIMA, XGBoost, and Gradient Boosting.

image

image

Egyptian Museum

Eleven models outperform both baselines, with SARIMAX showing exceptional performance (0.271 RMSE vs 1.085 of TimeGPT).

image

image

COVID lockdown - Effects on forecasting

Finally, performed analysis of the effects of COVID, trying to interpolate the outliers using two approaches:

  1. Use a good forecasting model.
  2. Replace each month using the historical monthly mean.

This didn't give much of an improvement of the previous models.

Conclusion

image

time-series-forecasting-museum-visitors's People

Contributors

annacerbaro avatar di40 avatar grazianacapurso avatar

Watchers

 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.