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

# US holidays, multiplicative

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

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-logistic-96.json`](https://github.com/jer-k/effect-prophet/blob/main/benchmark/inputs/v5/country-logistic-96.json): 96 history rows and 4 forecast rows.

## Output

Largest difference: **5.3e-9** (< 0.0001% of the input's range).

Every forecast row from both libraries.

| Date | Effect Prophet | Python Prophet | Difference |
| --- | ---: | ---: | ---: |
| 2024-12-25 | 78.6444 | 78.6444 | 2.7e-9 |
| 2025-01-01 | 94.6730 | 94.6730 | 5.3e-9 |
| 2025-01-02 | 78.7702 | 78.7702 | 2.5e-9 |
| 2025-01-05 | 86.0085 | 86.0085 | 4.1e-9 |

## Timing

Median of all measured repetitions.

| Step | Effect Prophet | Python Prophet | Effect Prophet is |
| --- | ---: | ---: | --- |
| Convert input rows | 18 µs | 509 µs | 29× faster |
| Fit | 44.1 ms | 61.5 ms | 1.4× faster |
| Predict | 239 µs | 5.65 ms | 24× faster |
| Fit and predict | 43.4 ms | 66.5 ms | 1.5× faster |
| Convert, fit and predict | 43.4 ms | 67.6 ms | 1.6× faster |
| First forecast in a new process | 225 ms | 1.69 s | 7.5× faster |
| Save model to JSON | 125 µs | 699 µs | 5.6× faster |
| Load model from JSON | 1.14 ms | 4.08 ms | 3.6× faster |
| Load and predict in a new process | 168 ms | 1.60 s | 9.5× faster |

## Settings

The case declaration both libraries ran.

```json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "country-calendar-public-v1"
  },
  "configuration": {
    "growth": "logistic",
    "countryHolidays": {
      "country": "US",
      "coverage": "reject-known-gaps",
      "priorScale": 10
    },
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "multiplicative",
    "changepoints": {
      "mode": "auto",
      "count": 2,
      "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": []
  },
  "effectOptimizer": {
    "algorithm": "auto",
    "maxIterations": 10000,
    "fallback": "newton",
    "lbfgs": {
      "historySize": 5,
      "initAlpha": 0.001,
      "tolObj": 1e-12,
      "tolRelObj": 10000,
      "tolGrad": 1e-8,
      "tolRelGrad": 10000000,
      "tolParam": 1e-8
    }
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}
```
