Prediction interval for a future observation or for a future sample

Using a specified random sample from a population, this macro calculates a prediction bound or interval for either a single future observation from the population (if the future sample size is 1) or for the mean and standard deviation of a future sample from the population (if the future sample size is > 1).

Download the Macro

Be sure that Minitab knows where to find your downloaded macro. Choose Tools > Options > General. Under Macro location browse to the location where you save macro files.


If you use an older web browser, when you click the Download button, the file may open in Quicktime, which shares the .mac file extension with Minitab macros. To save the macro, right-click the Download button and choose Save target as.

Required Inputs

  • A column of numeric values

Optional Inputs

Use to get only a lower (OSIDE 1) or upper (OSIDE 2) prediction bound.
Use to specify a confidence level for the interval or bound other than the default of 0.95.
Use to change the future sample size (default is 1). For a future sample size greater than 1, a prediction interval or bound will be calculated for both the mean and standard deviation of the future sample.

Running the Macro

Suppose your data are in C1. To run the macro, choose Edit > Command Line Editor and type:


Click Submit Commands.

More Information


Hahn and Meeker (1991), pp 61-64.

By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy