Prediction Intervals
Learn how to use the level parameter to generate prediction intervals that quantify forecast uncertainty.
What are Prediction Intervals?
Prediction intervals measure the uncertainty around forecasted values. By specifying a confidence level, you can visualize the range in which future observations are expected to fall.
Key Parameter: level
The level parameter accepts values between 0 and 100 (including decimals). For example, [80]
represents an 80% confidence interval.
Overview
Use the forecast
method’s level parameter to generate prediction intervals. This helps quantify the uncertainty around your forecasts.
Step 1: Import Dependencies
Step 2: Initialize NixtlaClient
(Optional) Use an Azure AI Endpoint
Step 3: Load Dataset
Step 4: Generate Forecast with an 80% Interval
Step 5: Plot Predictions and Intervals
Logs indicate the validation and preprocessing steps, along with the inferred data frequency:
Forecast with an 80% Prediction Interval
For more information on uncertainty estimation, refer to the tutorials about quantile forecasts and prediction intervals.