I am using GluonTs for monthly forecasts and need to calculate upper and lower confidence intervals. GluonTs has plot() function which enables us to plot it using forecast class but i want to use my own plot function for which confidence intervals are required.
Using GluonTs Forecast class gives us a confidence interval but it's a single value. How do we use this to get yhat_upper and yhat_lower ?
np.percentile(forecasts_multivariate[0].samples.sum(axis = 1), 90)
Using basic t test. But this is not giving correct results!. It returns upper and lower confidence intervals
import scipy.stats as st
st.t.interval(alpha=0.95, df=len(pred) - 1, loc=np.mean(pred), scale=st.sem(pred))
How do we get upper and lower CI with GluonTs?