Simple regression prediction interval half-width calculator
Compute the half-width of a two-sided prediction interval for one new response in simple linear regression.
Related calculators
Use these tools when your question extends to a neighboring part of the same calculation.
How to use this calculator
Compute the half-width of a two-sided prediction interval for one new response in simple linear regression.
- Enter Residual standard error s, t critical value, Sample size n, Leverage term (x₀−mean x)²/Sxx. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Simple regression prediction interval half-width calculator
Compute the half-width of a two-sided prediction interval for one new response in simple linear regression.
What it measures
This is the distance from the fitted line to either endpoint of a prediction interval for one future observation; the full interval is fitted value ± this amount.
Inputs and units
- Residual standard error s: Enter a nonnegative spread estimate in the response or coefficient units used by the fitted model.
- t critical value: Enter the value represented by this label; keep its domain, sign, and units consistent with the formula and assumptions below.
- Sample size n: Use a count from the same population, table, or experiment described by this calculator; counts are not measurements in physical units.
- Leverage term (x₀−mean x)²/Sxx: This predictor-distance term widens the future-observation interval away from the center of the fitted x data.
Formula and method
t·s√[1+1/n+(x₀−x̄)²/Sxx]
Worked example
With s=2, t=2.06, n=25 and leverage 0.04: 2.06×2√(1+1/25+0.04)≈4.2816.
Interpreting the result
The half-width includes the fitted-mean uncertainty plus residual variation for a new measurement. It grows with residual spread and with leverage, so it is usually wider than a confidence interval for the mean.
Assumptions and limits
Residual standard error and t critical value must be nonnegative; n>0 and leverage nonnegative. Use the t critical value for the chosen confidence level and residual degrees of freedom.
Sources and method
- Distinguishes predicting one new response from estimating the mean response. NIST: Prediction limits for a new response
- Explains uncertainty for fitted mean predictions and the role of the t coverage factor. NIST: Regression confidence limits
Frequently asked questions
Is this a confidence interval for the mean?
No. It predicts an individual future response and includes residual noise.
Where does the t value come from?
Choose it from the desired two-sided confidence level and regression degrees of freedom.
How do I use the Simple regression prediction interval half-width calculator?
Enter Residual standard error s, t critical value, Sample size n, Leverage term (x₀−mean x)²/Sxx. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Simple regression prediction interval half-width?
With s=2, t=2.06, n=25 and leverage 0.04: 2.06×2√(1+1/25+0.04)≈4.2816.
What does the Simple regression prediction interval half-width calculator calculate?
Compute the half-width of a two-sided prediction interval for one new response in simple linear regression.
See the calculation methodology.