Get a prediction interval for a single series.
Returns the lower and upper bounds of the prediction interval at the given confidence level. Only 80% CI is available from TimesFM's 10-quantile output, which maps to Q10–Q90.
Forecast output from model.forecast().
model.forecast()
Index of the series (0-based).
Confidence level — only 0.8 is supported.
const { lower, upper } = getPredictionInterval(output, 0, 0.8); Copy
const { lower, upper } = getPredictionInterval(output, 0, 0.8);
Get a prediction interval for a single series.
Returns the lower and upper bounds of the prediction interval at the given confidence level. Only 80% CI is available from TimesFM's 10-quantile output, which maps to Q10–Q90.