Skip to content

US holidays, multiplicative ​

match ← All flat growth benchmarks

96 daily rows from 2024, country holidays plus custom January events, including simultaneous activations. Prediction spans late 2024 and early 2025; fitting includes lookup, and saved models embed the country snapshot.

Input ​

benchmark/inputs/v5/country-basic-96.json: 96 history rows and 4 forecast rows.

Output ​

Largest difference: 3.5e-10 (< 0.0001% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2024-12-2520.001020.00103.5e-10
2025-01-0123.036823.03689.9e-12
2025-01-0220.001020.00101.1e-11
2025-01-0521.445921.44599.5e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows15 µs477 µs33× faster
Fit4.85 ms17.8 ms3.7× faster
Predict218 µs5.51 ms25× faster
Fit and predict3.50 ms22.2 ms6.4× faster
Convert, fit and predict3.29 ms22.7 ms6.9× faster
First forecast in a new process169 ms1.61 s9.5× faster
Save model to JSON95 µs697 µs7.4× faster
Load model from JSON906 µs3.97 ms4.4× faster
Load and predict in a new process159 ms1.59 s10× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "country-calendar-public-v1"
  },
  "configuration": {
    "growth": "flat",
    "countryHolidays": {
      "country": "US",
      "coverage": "reject-known-gaps",
      "priorScale": 10
    },
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "multiplicative",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [],
    "events": [
      {
        "name": "launch",
        "date": "2024-01-01",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      },
      {
        "name": "launch",
        "date": "2024-01-05",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      },
      {
        "name": "launch",
        "date": "2025-01-01",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      },
      {
        "name": "launch",
        "date": "2025-01-05",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      }
    ],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.