Skip to content

Ranges with a forecast regressor ​

match ← All flat growth benchmarks

80% ranges from 1,000 simulated paths on every past and future date, each future path using one of the temperature model's own simulated values.

Input ​

benchmark/inputs/v4/flat-correlated-regressors.json: 730 history rows and 180 forecast rows.

Output ​

Largest difference: 0.00026 (0.0020% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2021-12-3144.664044.66380.00024
2022-01-0143.280943.28070.00024
2022-01-0241.806841.80660.00026
2022-01-0341.298141.29790.00026
2022-01-0442.047042.04680.00026
2022-01-0543.462043.46204.0e-5
2022-01-0644.459244.45910.00011
2022-01-0744.191344.19100.00023
2022-01-0842.804442.80420.00024
2022-01-0941.326641.32630.00025
2022-01-1040.814340.81410.00026
2022-01-1141.559741.55940.00025
2022-01-1242.971242.97123.2e-5
2022-01-1343.964943.96480.00010
2022-01-1443.693743.69350.00022
2022-01-1542.303542.30320.00023
2022-01-1640.822440.82210.00024
2022-01-1740.306840.30660.00025
2022-01-1841.048941.04870.00024
2022-01-1942.457142.45712.4e-5
2022-01-2043.447643.44759.3e-5
2022-01-2143.173043.17280.00021
2022-01-2241.779441.77910.00022
2022-01-2340.294840.29460.00023
2022-01-2439.775739.77550.00024
2022-01-2540.514240.51390.00023
2022-01-2641.918741.91871.6e-5
2022-01-2742.905342.90538.5e-5
2022-01-2842.626842.62660.00021
2022-01-2941.229341.22900.00021
2022-01-3039.740639.74040.00023
2022-01-3139.217439.21710.00023
2022-02-0139.951639.95130.00023
2022-02-0241.351841.35188.7e-6
2022-02-0342.334042.33397.8e-5
2022-02-0442.051142.05090.00020
2022-02-0540.649040.64880.00021
2022-02-0639.155839.15560.00022
2022-02-0738.628038.62780.00022
2022-02-0839.357639.35740.00022
2022-02-0940.753340.75339.4e-7
2022-02-1041.731041.73097.0e-5
2022-02-1141.443641.44340.00019
2022-02-1240.037040.03680.00020
2022-02-1338.539538.53920.00021
2022-02-1438.007338.00710.00022
2022-02-1538.732738.73240.00021
2022-02-1640.124140.12416.8e-6
2022-02-1741.097741.09766.2e-5
2022-02-1840.806240.80600.00018
2022-02-1939.395639.39540.00019
2022-02-2037.894137.89390.00020
2022-02-2137.358137.35790.00021
2022-02-2238.079738.07950.00020
2022-02-2339.467439.46741.5e-5
2022-02-2440.437340.43725.4e-5
2022-02-2540.142140.14190.00017
2022-02-2638.727938.72770.00018
2022-02-2737.222837.22260.00020
2022-02-2836.683236.68300.00020
2022-03-0137.401237.40100.00019
2022-03-0238.785438.78542.2e-5
2022-03-0339.751639.75164.6e-5
2022-03-0439.452939.45270.00017
2022-03-0538.035138.03500.00017
2022-03-0636.526536.52630.00019
2022-03-0735.983335.98310.00019
2022-03-0836.697636.69740.00019
2022-03-0938.078138.07813.0e-5
2022-03-1039.040739.04073.9e-5
2022-03-1138.738438.73820.00016
2022-03-1237.317037.31680.00017
2022-03-1335.804635.80450.00018
2022-03-1435.257835.25760.00019
2022-03-1535.968635.96840.00018
2022-03-1637.345537.34563.8e-5
2022-03-1738.304738.30463.1e-5
2022-03-1837.998837.99870.00015
2022-03-1936.574036.57390.00016
2022-03-2035.058435.05820.00017
2022-03-2134.508334.50810.00018
2022-03-2235.215935.21570.00017
2022-03-2336.589836.58984.6e-5
2022-03-2437.545937.54592.3e-5
2022-03-2537.237137.23700.00014
2022-03-2635.809535.80930.00015
2022-03-2734.291134.29090.00016
2022-03-2833.738433.73820.00017
2022-03-2934.443434.44320.00016
2022-03-3035.814735.81485.3e-5
2022-03-3136.768536.76841.5e-5
2022-04-0136.457436.45720.00014
2022-04-0235.027535.02730.00014
2022-04-0333.506933.50670.00016
2022-04-0432.952032.95180.00016
2022-04-0533.654933.65470.00016
2022-04-0635.024235.02436.1e-5
2022-04-0735.975935.97597.7e-6
2022-04-0835.662835.66270.00013
2022-04-0934.231034.23090.00014
2022-04-1032.708532.70830.00015
2022-04-1132.151732.15160.00016
2022-04-1232.852832.85270.00015
2022-04-1334.220334.22046.9e-5
2022-04-1435.170235.17027.7e-8
2022-04-1534.855434.85530.00012
2022-04-1633.421933.42180.00013
2022-04-1731.897731.89760.00014
2022-04-1831.339431.33920.00015
2022-04-1932.038932.03870.00014
2022-04-2033.404933.40507.7e-5
2022-04-2134.353434.35347.8e-6
2022-04-2234.037234.03710.00011
2022-04-2332.602432.60230.00012
2022-04-2431.077031.07690.00013
2022-04-2530.517530.51740.00014
2022-04-2631.216031.21590.00013
2022-04-2732.581132.58128.4e-5
2022-04-2833.528733.52881.6e-5
2022-04-2933.211833.21170.00010
2022-04-3031.776431.77630.00011
2022-05-0130.250530.25040.00013
2022-05-0229.690629.69040.00013
2022-05-0330.388730.38860.00012
2022-05-0431.753531.75369.2e-5
2022-05-0532.701132.70112.3e-5
2022-05-0632.384132.38409.7e-5
2022-05-0730.948630.94850.00010
2022-05-0829.422829.42270.00012
2022-05-0928.863128.86290.00012
2022-05-1029.561429.56130.00012
2022-05-1130.926630.92671.0e-4
2022-05-1231.874431.87443.1e-5
2022-05-1331.557831.55778.9e-5
2022-05-1430.122830.12279.7e-5
2022-05-1528.597528.59740.00011
2022-05-1628.038328.03820.00012
2022-05-1728.737328.73720.00011
2022-05-1830.103030.10310.00011
2022-05-1931.051531.05163.9e-5
2022-05-2030.735730.73568.2e-5
2022-05-2129.301429.30148.9e-5
2022-05-2227.776927.77680.00010
2022-05-2327.218627.21850.00011
2022-05-2427.918527.91840.00010
2022-05-2529.285229.28530.00012
2022-05-2630.234830.23484.7e-5
2022-05-2729.920129.92007.4e-5
2022-05-2828.487028.48698.1e-5
2022-05-2926.963826.96379.5e-5
2022-05-3026.406826.40670.00010
2022-05-3127.108127.10809.4e-5
2022-06-0128.476428.47650.00012
2022-06-0229.427629.42765.4e-5
2022-06-0329.114529.11456.6e-5
2022-06-0427.683327.68327.4e-5
2022-06-0526.161926.16198.7e-5
2022-06-0625.606925.60689.3e-5
2022-06-0726.310326.31028.6e-5
2022-06-0827.680727.68080.00013
2022-06-0928.634128.63426.2e-5
2022-06-1028.323428.32335.8e-5
2022-06-1126.894526.89446.6e-5
2022-06-1225.375625.37557.9e-5
2022-06-1324.823124.82308.5e-5
2022-06-1425.529025.52897.8e-5
2022-06-1526.902026.90210.00014
2022-06-1627.858027.85817.0e-5
2022-06-1727.550027.54995.0e-5
2022-06-1826.123826.12385.8e-5
2022-06-1924.607724.60767.2e-5
2022-06-2024.057924.05787.8e-5
2022-06-2124.766724.76667.0e-5
2022-06-2226.142526.14260.00015
2022-06-2327.101427.10157.8e-5
2022-06-2426.796326.79624.3e-5
2022-06-2525.373025.37305.0e-5
2022-06-2623.859823.85976.4e-5
2022-06-2723.313023.31307.0e-5
2022-06-2824.024824.02476.3e-5

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows237 µs924 µs3.9× faster
Simulate uncertainty18.1 ms277 msNot compared: different work
First simulation in a new process239 ms1.80 sNot compared: different work

Some steps aren't compared, because the two libraries' public calls produce different outputs. Their times show what each call costs, not which library is faster.

  • Simulate uncertainty, First simulation in a new process: Python's predict(vectorized=False) also builds the point forecast and every component, while Effect Prophet's predictUncertainty returns only the ranges.

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "flat-map-additive-v1"
  },
  "configuration": {
    "growth": "flat",
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [
      {
        "name": "yearly-custom",
        "periodDays": 365.25,
        "fourierOrder": 10,
        "priorScale": 10
      },
      {
        "name": "weekly-custom",
        "periodDays": 7,
        "fourierOrder": 2,
        "priorScale": 10
      }
    ],
    "events": [],
    "regressors": [
      {
        "name": "temperature",
        "priorScale": 10,
        "standardization": "auto",
        "predictor": true
      },
      {
        "name": "baseline",
        "priorScale": 10,
        "standardization": "never"
      }
    ]
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  },
  "uncertainty": {
    "seed": 19,
    "samples": 1000,
    "intervalWidth": 0.8,
    "output": "intervals",
    "algorithm": "scalar-continuous-time",
    "evidence": "docs/validation/uncertainty.md#evidence-classes",
    "samplerMemoryLimitBytes": 67108864
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.