Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

Katlego-DataLab/Tourist-Accommodation-Time-Series-SARIMA-LSTM

Domaine:

socioeconomic

Type de record:

project
Créateur:
Kat
Hôte:
This study analyses South Africa's tourist accommodation sector (2007-2024) using stats SA data and SARIMA modelling. Results show uneven post-Covid recovery, with hotels most resilient. SARIMA outperformed ARIMA, achieving lower RMSE and MAPE, and delivering reliable forecasts to support data-driven tourist policy and planning. # SA Hotel Occupancy Forecasting ### Statistical Baseline (R) → Deep Learning Upgrade (PyTorch) > **Can a deep learning model outperform a purpose-built statistical model on highly seasonal time series data?** > This project answers that question using 18 years of official South African hotel occupancy data running SARIMA in R first to set an honest baseline, then building an LSTM in PyTorch to directly challenge it. --- ## Project Structure ``` sa-hotel-forecasting/ ├── README.md │ ├── r/ │ └── sarima_baseline.Rmd ← Stage 1: data cleaning, EDA, ARIMA vs SARIMA │ └── python/ ├── sa_hotel_lstm.py ← Stage 2: PyTorch LSTM upgrade ├── hotel_occupancy.csv ← exported from R (see setup below) ├── sa_hotel_lstm_results.png ← generated on run └── sa_hotel_lstm_model.pt ← saved model checkpoint ``` --- ## Why Two Languages? This is intentional, not inconsistency. The two stages use the best tool for each job: | Stage | Language | Why | |-------|----------|-----| | Data cleaning, EDA, statistical modelling | **R** | `tidyverse`, `forecast`, and `auto.arima` are the industry standard for time series statistics | | Deep learning, sequence modelling | **Python / PyTorch** | PyTorch is the dominant framework for neural network research and production ML engineering | --- ## The Data **Source:** Statistics South Africa Tourist Accommodation Survey **Period:** January 2007 → June 2025 (18.5 years, 222 monthly observations) **Target:** Hotel occupancy rate (%) percentage of available rooms occupied each month **Notable event:** COVID-19 caused a collapse from ~49% average to 1.5% in April 2020 --- ## Stage 1 — SARIMA Baseline (R) **File:** `r/sarima_baseline.Rmd` The R script handles the full data engineering pipeline and establishes the baseline every subsequent model must beat. ### What it does - Loads and cleans the raw Stats SA Excel file (drops admin columns, splits H04, parses measurement types, reshapes from wide …

Visit

github.com

Similaires

bokangntovana/SA-Tourist-Accommodation-Forecastinghenri-climber/LSTM-time-series-prediction-KenyaNigeria Food Price Forecasts (Hybrid SARIMA-LSTM)evansbestmann/RNN-Time-series-forecast-using-LSTM-in-PythonSARIMA Time Series Modeling for Forecasting Malaria Positivity Rate: A Case Study of Kisumu County, KenyaConventional time series, machine and deep learning approaches for rainfall forecasting in a bimodal climate in Embu County, Kenya: A comparative study of SARIMA, ANN, LSTM, CNN and hybrid models

bokangntovana/SA-Tourist-Accommodation-Forecasting

This project develops a robust and operationalized time series model to forecast the Total Industry

henri-climber/LSTM-time-series-prediction-Kenya

Prediction of costly and hard-to-obtain weather parameters using real data from Kenya collected by J

Nigeria Food Price Forecasts (Hybrid SARIMA-LSTM)

Hybrid SARIMA-LSTM forecast of Nigerian retail food prices. Coverage: WFP-monitored states (~13-14 o

evansbestmann/RNN-Time-series-forecast-using-LSTM-in-Python

Time series forecasting using LSTM in Python for diesel price change in Nigeria from 2011 to 2022 #

SARIMA Time Series Modeling for Forecasting Malaria Positivity Rate: A Case Study of Kisumu County, Kenya

Malaria transmission in Kisumu County, Kenya, follows a seasonal cycle that repeatedly strains healt

Conventional time series, machine and deep learning approaches for rainfall forecasting in a bimodal climate in Embu County, Kenya: A comparative study of SARIMA, ANN, LSTM, CNN and hybrid models

Abstract Accurate rainfall forecasting is critical for agricultural planning, wate