Skip to content

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.

Notifications You must be signed in to change notification settings

Di40/Time-Series-Forecasting-Museum-Visitors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published