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).

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 File > Options > General. Under Macro location browse to the location where you save macro files.

Important

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

OSIDE K
Use to get only a lower (OSIDE 1) or upper (OSIDE 2) prediction bound.
CONF K
Use to specify a confidence level for the interval or bound other than the default of 0.95.
OBS K
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 View > Command Line/History and type:

%PREDINT C1

Click Run.

More Information

Reference

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