Skip to content

Uncertainty ranges benchmarks ​

19 of 19 cases match Python Prophet.

Both libraries simulate possible futures with random draws, so individual simulated values never match. Each range must still match Python's within the variation expected from that many draws, on every trend type.

Each case runs the same input through Effect Prophet and Python Prophet 1.4.0, then compares every forecast row, the trend, each component and the fitted noise. A case matches when all of them agree within its tolerances, and only matching cases are timed.

Each case's dot shows its result: matches, matches with internal differences flagged, intentional difference, doesn't match. Hover over a dot for details.

How to read the tables:

  • Effect output and Python output are each library's final forecast value. Open a case to see every row side by side.
  • Largest difference is the biggest gap between the two forecasts, as a share of the input data's range.
  • Effect time and Python time are the median time for the timed step, usually fitting and predicting. Open a case for every step, including first-run and save/load times.
  • Flagged cases match, but the two libraries stopped their fitting search at slightly different points. The case page shows the internal numbers.
About these runs

Each trend's cases come from that trend's own run.

Linear growth

  • Run 2026-10-20T170110-379Z-27b7ec98 on 2026-10-20, commit 27b7ec9
  • Both libraries ran in linux/arm64 containers on Apple M4 Pro
  • effect-prophet 0.0.0
  • effect 4.0.0
  • prophet 1.4.0
  • Full benchmark report

Flat growth

  • Run 2026-10-20T171807-628Z-27b7ec98 on 2026-10-20, commit 27b7ec9
  • Both libraries ran in linux/arm64 containers on Apple M4 Pro
  • effect-prophet 0.0.0
  • effect 4.0.0
  • prophet 1.4.0
  • Full benchmark report

Logistic growth

  • Run 2026-10-20T174321-690Z-27b7ec98 on 2026-10-20, commit 27b7ec9
  • Both libraries ran in linux/arm64 containers on Apple M4 Pro
  • effect-prophet 0.0.0
  • effect 4.0.0
  • prophet 1.4.0
  • Full benchmark report

Timings come from one machine and describe this workload only. They are not a general speed ranking. Where Python is faster, it is often because Python runs Stan's optimizer as compiled C++, while Effect Prophet runs the same algorithm as WebAssembly with narrower vector instructions. The gap is widest for Newton's method on short histories with many parameters.

Linear growth ​

Both libraries simulate possible futures with random draws, so individual simulated values never match. Each range must still match Python's within the variation expected from that many draws. All linear growth benchmarks →

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
Defaults, three years of ranges1095 rows611.2687611.31560.011%Simulate uncertainty71.3 ms379 ms
Defaults, ranges on irregular dates192 rows108.5108108.43200.15%Simulate uncertainty11.9 ms158 ms
Samples with repeated timestamps96 rows17.903917.90390.0013%Simulate uncertainty498 µs16.9 ms
Ranges over past dates96 rows110.0950110.0950< 0.0001%Simulate uncertainty327 µs20.3 ms
Samples for one future date96 rows110.0819110.0819< 0.0001%Simulate uncertainty208 µs17.2 ms
Ranges with mixed effects96 rows45.135345.1353< 0.0001%Simulate uncertainty398 µs26.0 ms
Samples with mixed effects96 rows45.135345.1353< 0.0001%Simulate uncertainty726 µs68.6 ms

Flat growth ​

Both libraries simulate possible futures with random draws, so individual simulated values never match. Each range must still match Python's within the variation expected from that many draws. All flat growth benchmarks →

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
Country calendar uncertainty replay96 rows21.444721.44460.0048%Simulate uncertainty318 µs14.8 ms
Defaults, ranges with a weekly pattern96 rows35.002535.0025< 0.0001%Simulate uncertainty4.48 ms125 ms
Ranges with mixed effects96 rows35.028335.0283< 0.0001%Simulate uncertainty1.10 ms73.6 ms
Samples, eight months256 rows19.530519.5305< 0.0001%Simulate uncertainty1.21 ms22.3 ms

Logistic growth ​

Both libraries simulate possible futures with random draws, so individual simulated values never match. Each range must still match Python's within the variation expected from that many draws. All logistic growth benchmarks →

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
Defaults, ranges with changing growth365 rows193.9557193.95230.0086%Simulate uncertainty23.5 ms282 ms
Defaults, ranges with changing growth, second seed365 rows193.9557193.95230.0086%Simulate uncertainty23.1 ms288 ms
Samples, weekly pattern96 rows71.906071.9060< 0.0001%Simulate uncertainty1.22 ms80.7 ms
Ranges, eight months256 rows98.080498.0804< 0.0001%Simulate uncertainty861 µs26.6 ms
Ranges with an explicit floor96 rows72.219072.2190< 0.0001%Simulate uncertainty945 µs89.0 ms
Samples with an explicit floor96 rows72.219072.2190< 0.0001%Simulate uncertainty563 µs26.0 ms
Ranges with mixed effects96 rows72.227072.2270< 0.0001%Simulate uncertainty629 µs34.6 ms
Samples with mixed effects96 rows72.227072.2270< 0.0001%Simulate uncertainty794 µs27.5 ms

Inspired by Prophet from Meta. Not affiliated with Meta.