Skip to content

About

Forecasting monthly Swiss hotel arrivals: 9 model families, rolling evaluation, Diebold-Mariano tests, 12-month forecast

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiss Tourism Forecasting

Forecasting monthly hotel arrivals in Switzerland. Nine model families are compared with rolling-origin evaluation and one untouched test set, and the pandemic months are handled three different ways.

Status: results ready, charts and text under review.

Question

Which model forecasts monthly hotel arrivals in Switzerland best at 1, 3, 6 and 12 months ahead, and does it still win after the pandemic distorted the series?

Data

  • Arrivals: Swiss Federal Statistical Office (FSO/BFS), hotel sector statistics (HESTA), table px-x-1003020000_102: arrivals of all visitors, whole country, by month. Retrieved through the FSO PxWeb API: https://www.pxweb.bfs.admin.ch/api/v1/en/px-x-1003020000_102/px-x-1003020000_102.px (human-readable: https://www.pxweb.bfs.admin.ch/pxweb/en/px-x-1003020000_102/-/px-x-1003020000_102.px/).
  • 261 months, 2005-01 to 2026-09, downloaded on 2026-11-16. The FSO revises past figures, so results depend on the download date.
  • Hotel arrivals only. Other accommodation types are not included.
  • Optional city-level extension: table px-x-1003020000_101 (186 communes, 2013 onwards).

How the data is split

Part Months Use
First window 2005-01 to 2014-12 (120) choose model orders (BIC)
Rolling evaluation 118 origins: training windows end 2014-12 to 2024-09, forecasts scored through 2025-09 compare models, 12 months ahead from each origin
Pandemic and recovery 2020-03 to 2023-03 left out of the rolling comparison (25 flagged outlier months plus 12 months of recovery)
Final test set 2025-10 to 2026-09 (12) scored once, never used for any choice

The test set starts 3.5 years after the last pandemic month (2022-03).

Method

  1. Stationarity (prepare.py): ADF, ADF-GLS, Phillips-Perron and KPSS on the level, the log and the differenced series, using training months only.
  2. Outlier months: trend and month effects are removed, then a modified z-score (median and MAD) flags months above 3.5. All 25 flagged months are between 2020-03 and 2022-03, which matches the pandemic period.
  3. Models (models.py): seasonal naive, moving averages (3, 6, 12), ETS, ARMA, ARIMA with month dummies, SARIMA, SARIMAX with an outlier dummy.
  4. Three treatments of the outlier months: raw data, outliers replaced by expected values (clean), and outliers treated as missing (missing, SARIMA only).
  5. Evaluation (evaluate.py):
    • Rolling origin: one forecast origin per month, each forecasting 12 months ahead.
    • relative MAE is the model's MAE divided by the MAE of its seasonal naive baseline (below 1 beats it). Models trained on cleaned data use the seasonal naive trained on cleaned data, so the baseline is not penalised by the pandemic.
    • Diebold-Mariano tests (Harvey-Leybourne-Newbold correction) and interval coverage.
  6. Forecast (forecast.py): next 12 months with 80% and 95% bands. Charts: plots.py.

Results

Stationarity. The level and the log are not clearly stationary: the four tests disagree and the answer depends on the sample window. The first difference, the 12-month difference and both together are stationary in all four tests, so the models use differencing.

Rolling evaluation, stable period (relative MAE, below 1 beats the baseline):

Model 1 month 3 6 12
ETS trend, clean 0.55 0.58 0.56 0.78
ARMA(3,3), clean 0.64 0.67 0.68 0.79
SARIMA(0,1,1)(0,1,1)12, clean 0.56 0.61 0.62 0.86
SARIMA, outliers as missing 0.53 0.55 0.58 0.88
ARIMA(1,1,2) with dummies, clean 0.70 0.77 0.78 1.06
ETS trend, raw data 0.70 1.14 0.73 0.76
SARIMA, raw data 0.71 1.15 0.76 0.76
SARIMAX with outlier dummy 0.77 1.19 0.82 0.85
Moving averages (3, 6, 12) 4.4 to 5.5 4.3 to 7.2 4.5 to 7.9 2.7 to 4.7

Raw-data models are compared with the raw seasonal naive and clean models with the clean seasonal naive, so the two blocks are not directly comparable.

Diebold-Mariano. ETS and SARIMA trained on cleaned data beat the seasonal naive baseline at all four horizons (p < 0.05; at 12 months p = 0.03 and 0.045). ETS and SARIMA do not differ significantly from each other. Cleaning improves SARIMA significantly at 1, 3 and 6 months but not at 12.

Interval coverage (SARIMA, cleaned, stable period). The 80% band contained 84%, 80%, 86% and 80% of actual values at 1, 3, 6 and 12 months. The 95% band contained 94%, 93%, 94% and 93%. The bands are close to their stated levels.

Final test set, 2025-10 to 2026-09 (12 months, scored once):

Model MAPE relative MAE
Seasonal naive 2.6% 1.00
ETS trend, clean 2.9% 1.07
ARMA(3,3), clean 2.9% 1.12
SARIMA, clean 3.1% 1.15
SARIMA, outliers as missing 3.0% 1.17
ETS, SARIMA, SARIMAX on raw data 6.1% to 6.3% 2.15 to 2.20
Moving averages 18% to 38% 7 to 12

On this one year, no model beats the seasonal naive baseline. The cleaned models are close (7% to 17% larger error), while models trained on raw pandemic data are more than twice as inaccurate and under-forecast by about 3% to 5%.

Forecast, 2026-10 to 2027-09. About 1.83 million arrivals in October 2026, a low of 1.33 million in November 2026, and a peak of about 2.6 million in July and August 2027. The 80% band is roughly plus or minus 5% to 6%.

Final test set Next 12 months

Limits

  • One country series, hotel arrivals only.
  • Cleaning relies on a linear trend and fixed month effects. The replacement values are estimates, not observed data.
  • The test set is 12 months from one period. A different year could change the ranking, so the test result and the rolling result are both reported.
  • Outlier flags come from one pass over the whole training window, so for forecast origins inside the pandemic they use some information from later months. Origins before 2020 are not affected.
  • The rolling comparison leaves out 2020-03 to 2023-03. Conclusions apply to normal periods, not to the next shock.

Run

pip install -r requirements.txt
python src/download.py     # data/swiss_arrivals_monthly.csv
python src/prepare.py      # stationarity tests, outlier months, data/prepared.csv
python src/evaluate.py     # all models, tests, results/*.csv (about 2 minutes)
python src/forecast.py     # next 12 months
python src/plots.py        # results/figures/

About

Forecasting monthly Swiss hotel arrivals: 9 model families, rolling evaluation, Diebold-Mariano tests, 12-month forecast

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages