---
url: >-
  https://jer-k.github.io/effect-prophet/benchmarks/flat/country-us-flat-multiplicative.md
---

# US holidays, multiplicative

&#x20;[← All flat growth benchmarks](/benchmarks/flat)

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`](https://github.com/jer-k/effect-prophet/blob/main/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.

| Date | Effect Prophet | Python Prophet | Difference |
| --- | ---: | ---: | ---: |
| 2024-12-25 | 20.0010 | 20.0010 | 3.5e-10 |
| 2025-01-01 | 23.0368 | 23.0368 | 9.9e-12 |
| 2025-01-02 | 20.0010 | 20.0010 | 1.1e-11 |
| 2025-01-05 | 21.4459 | 21.4459 | 9.5e-12 |

## Timing

Median of all measured repetitions.

| Step | Effect Prophet | Python Prophet | Effect Prophet is |
| --- | ---: | ---: | --- |
| Convert input rows | 20 µs | 471 µs | 23× faster |
| Fit | 3.54 ms | 16.6 ms | 4.7× faster |
| Predict | 253 µs | 5.48 ms | 22× faster |
| Fit and predict | 3.25 ms | 21.7 ms | 6.7× faster |
| Convert, fit and predict | 3.11 ms | 22.3 ms | 7.2× faster |
| First forecast in a new process | 175 ms | 1.60 s | 9.1× faster |
| Save model to JSON | 122 µs | 706 µs | 5.8× faster |
| Load model from JSON | 1.15 ms | 3.92 ms | 3.4× faster |
| Load and predict in a new process | 164 ms | 1.57 s | 9.6× 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
  }
}
```
