why does fitlm not provide prediction intervals?

fitlm provides 95% confidence intervals but not prediction intervals. Why? Is there an easy way to get prediction intervals?

Answers (1)

Using [ypred,yci] = predict(mdl,Xnew) gives the confidence interval.
With Name = 'Prediction', and value = 'observation' it should give the prediction interval

Asked:

on 31 Jan 2015

Answered:

on 3 Aug 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!