Skip to content

Predicting from a known straight line ​

match ← All linear growth benchmarks

No fitting: both libraries evaluate the same stored line on 64 dates. Checks the prediction math on its own.

Input ​

benchmark/inputs/v1/linear-medium.json: 256 history rows and 64 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-09-1336.121636.12167.1e-15
2020-09-1436.243136.24317.1e-15
2020-09-1536.364736.36470
2020-09-1636.486336.48630
2020-09-1736.607836.60781.4e-14
2020-09-1836.729436.72947.1e-15
2020-09-1936.851036.85100
2020-09-2036.972536.97250
2020-09-2137.094137.09417.1e-15
2020-09-2237.215737.21577.1e-15
2020-09-2337.337337.33730
2020-09-2437.458837.45887.1e-15
2020-09-2537.580437.58040
2020-09-2637.702037.70207.1e-15
2020-09-2737.823537.82357.1e-15
2020-09-2837.945137.94517.1e-15
2020-09-2938.066738.06670
2020-09-3038.188238.18827.1e-15
2020-10-0138.309838.30980
2020-10-0238.431438.43147.1e-15
2020-10-0338.552938.55290
2020-10-0438.674538.67457.1e-15
2020-10-0538.796138.79610
2020-10-0638.917638.91767.1e-15
2020-10-0739.039239.03927.1e-15
2020-10-0839.160839.16087.1e-15
2020-10-0939.282439.28240
2020-10-1039.403939.40397.1e-15
2020-10-1139.525539.52550
2020-10-1239.647139.64717.1e-15
2020-10-1339.768639.76860
2020-10-1439.890239.89027.1e-15
2020-10-1540.011840.01180
2020-10-1640.133340.13330
2020-10-1740.254940.25497.1e-15
2020-10-1840.376540.37657.1e-15
2020-10-1940.498040.49800
2020-10-2040.619640.61967.1e-15
2020-10-2140.741240.74120
2020-10-2240.862740.86277.1e-15
2020-10-2340.984340.98430
2020-10-2441.105941.10597.1e-15
2020-10-2541.227541.22750
2020-10-2641.349041.34907.1e-15
2020-10-2741.470641.47067.1e-15
2020-10-2841.592241.59227.1e-15
2020-10-2941.713741.71370
2020-10-3041.835341.83537.1e-15
2020-10-3141.956941.95690
2020-11-0142.078442.07847.1e-15
2020-11-0242.200042.20007.1e-15
2020-11-0342.321642.32167.1e-15
2020-11-0442.443142.44310
2020-11-0542.564742.56477.1e-15
2020-11-0642.686342.68630
2020-11-0742.807842.80787.1e-15
2020-11-0842.929442.92940
2020-11-0943.051043.05107.1e-15
2020-11-1043.172543.17250
2020-11-1143.294143.29417.1e-15
2020-11-1243.415743.41577.1e-15
2020-11-1343.537343.53737.1e-15
2020-11-1443.658843.65880
2020-11-1543.780443.78047.1e-15

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows39 µs562 µs14× faster
Predict304 µs2.67 ms8.8× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "fixed-linear-prediction",
  "comparison": {
    "kind": "equivalent-equation",
    "evidenceId": "fixed-linear-equation-v1"
  },
  "parameters": {
    "intercept": 5,
    "slope": 31,
    "timeOrigin": 1577836800000,
    "timeScale": 22032000000
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.