Prediction Interval Calculator for a Regression Prediction


Instructions: Use this prediction interval calculator for the mean response of a regression prediction. Please input the data for the independent variable \((X)\) and the dependent variable (\(Y\)), the confidence level and the X-value for the prediction, in the form below:

Independent variable \(X\) sample data (comma or space separated) =
Dependent variable \(Y\) sample data (comma or space separated) =
Confidence Level (Ex: 0.95, 95, 99, 99%) =
X value for prediction \(X_0\) =
Independent variable Name (optional) =
Dependent variable Name (optional) =

Prediction Interval for the Mean Response

The Prediction Interval for an individual predictions corresponds to the calculated confidence interval for the individual predicted response \(\hat{Y}_0\) for a given value \(X = X_0\). First, we need to know the mean squared error:

\[\hat{\sigma}^2 = \displaystyle \frac{SSE}{n-2}\]

Then, the \(1-\alpha)\times 100 \)% confidence interval for the the individual prediction \(\hat{Y}_0\) is

\[CI = \displaystyle \left( \hat{Y}_0 - t_{\alpha/2; n-2} \sqrt{ \hat{\sigma}^2 \left(1 + \frac{1}{n} + \frac{\left(X_0 - \bar X\right)^2}{SS_{XX}}\right) },\hat{Y}_0 + t_{\alpha/2; n-2} \sqrt{ \hat{\sigma}^2 \left(1+ \frac{1}{n} + \frac{\left(X_0 - \bar X\right)^2}{SS_{XX}}\right) } \right)\]

If you are interested rather in a confidence interval for the mean response, please use instead this confidence interval calculator for regression predictions .

log in to your account

Don't have a membership account?
REGISTER

reset password

Back to
log in

sign up

Back to
log in