piecewise_linear_fit_py icon indicating copy to clipboard operation
piecewise_linear_fit_py copied to clipboard

How to calculate prediction intervals?

Open aaronnkang opened this issue 3 years ago • 1 comments

I can see how to generate confidence intervals using prediction_variance? Do you know of a way to generate prediction intervals?

Thanks

aaronnkang avatar May 02 '22 18:05 aaronnkang

Is this what you want? https://github.com/cjekel/piecewise_linear_fit_py/blob/master/examples/prediction_variance.py

That plot should give the prediction with +- error bars.

What do you want a confidence interval of?

cjekel avatar May 04 '22 22:05 cjekel