Python workflow

Run a forecast.

Use Murphet on your computer to fit a monthly rate series. Your CSV stays on your machine.

Start with hotel occupancy

The example includes 60 monthly observations for Hong Kong high-tariff A hotels from February 2020 through January 2025. The script fits a Beta model and prints the next six monthly rates by default.

Run it locally

Follow the Python and CmdStan setup, place both files in the same folder, then run the command below. Change --months to set the forecast horizon.

python forecast.py hotel-occupancy.csv --months 6

Use your own series

Supply one row per consecutive month with a ds date and a y proportion between 0 and 1, exclusive. The script checks dates, duplicates and missing months before fitting. Output uses the same proportion scale as the input.

See published holdout comparisons