I have some time series data and am using some Deep Learning techniques to get its prediction. Now, I would like to construct confidence bounds for it.

I calculated the residuals, their mean and standard deviation. Then I plotted prediction vs residuals and calculated mean + 3$\sigma$ and mean - 3$\sigma$, and plotted them on my graph. So, I have something like this

enter image description here

Now, I would like to use a similar technique so that I can have confidence bounds on time series plots.

  • 1
    $\begingroup$ Related 10814. See confidence interval plot for time series prediction near end of that answer. $\endgroup$
    – Edmund
    Commented May 29, 2019 at 1:02

1 Answer 1


There is a technique called "Quantile Regression" which allows you to calculate a percentile of your $Y$ variable, the way a quantile regression works is by giving more penalty to the data far to the desired percentile.

Quantile Regression

As you used deep learning (I don't know in which software), maybe you could tailor a penalty function which does the same as quantile regression does or maybe the code you are using has it implemented.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.