This documentation is for a version of the software that is not covered by Standard Support. Select a different version from the version selector in the banner, or access the latest documentation.
The PPPLOT statement creates a probability-probability plot (also called a P-P plot or percent plot), which compares the empirical cumulative distribution function (ECDF) of a variable with a specified theoretical cumulative distribution function such as the normal. If the two distributions match, the points on the plot form a linear pattern that passes through the origin and has unit slope. Thus, you can use a P-P plot to determine how well a theoretical distribution models a set of measurements.
You can specify one of the following theoretical distributions with the PPPLOT statement:
beta
exponential
gamma
Gumbel
generalized Pareto
inverse Gaussian
lognormal
normal
power function
Rayleigh
Weibull
Note: Probability-probability plots should not be confused with probability plots, which compare a set of ordered measurements with percentiles from a specified distribution. You can create probability plots with the PROBPLOT statement.
You can use any number of PPPLOT statements in the UNIVARIATE procedure. The components of the PPPLOT statement are as follows.
variables
are the process variables for which P-P plots are created. If you specify a VAR statement, the variables must also be listed in the VAR statement. Otherwise, the variables can be any numeric variables in the input data set. If you do not specify a list of variables, then by default, the procedure creates a P-P plot for each variable listed in the VAR statement or for each numeric variable in the input data set if you do not specify a VAR statement. For example, if data set measures contains two numeric variables, length and width, the following two PPPLOT statements each produce a P-P plot for each of those variables:
specify the theoretical distribution for the plot or add features to the plot. If you specify more than one variable, the options apply equally to each variable. Specify all options after the slash (/) in the PPPLOT statement. You can specify only one option that names a distribution, but you can specify any number of other options. By default, the procedure produces a P-P plot that is based on the normal distribution.
In the following example, the NORMAL, MU=, and SIGMA= options request a P-P plot that is based on the normal distribution with mean 10 and standard deviation 0.3. The SQUARE option displays the plot in a square frame.
Table 16 summarizes options that specify distribution parameters and control the display of the diagonal distribution reference line. Specify these options in parentheses after the distribution option. For example, the following statements use the NORMAL option to request a normal P-P plot:
Specifies table of contents entry for P-P plot grouping
Dictionary of Options
The following entries provide detailed descriptions of options for the PPPLOT statement. For detailed descriptions of options common to all plot statements, see the section Dictionary of Common Options.
ALPHA=value
specifies the shape parameter ( > 0) for P-P plots that are requested by the BETA, GAMMA, PARETO, and POWER options.
BETA<(beta-options)>
creates a beta P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:
The y-coordinate of the ith point is the empirical CDF value . The x-coordinate is the theoretical beta CDF value
where is the normalized incomplete beta function, , and
is the lower threshold parameter
is the scale parameter
is the first shape parameter
is the second shape parameter
You can specify , , , and in the ALPHA=, BETA=, SIGMA=, and THETA=beta-options, as illustrated in the following example:
If you do not specify values for these parameters, then by default, , , and maximum likelihood estimates are calculated for and .
IMPORTANT: If the default unit interval (0,1) does not adequately describe the range of your data, then you should specify THETA= and SIGMA= so that your data fall in the interval .
If the data are beta-distributed with parameters , , , and , then the points on the plot for ALPHA=, BETA=, SIGMA=, and THETA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified beta distribution is a good fit. You can specify the SCALE= option as an alias for the SIGMA= option and the THRESHOLD= option as an alias for the THETA= option.
BETA=value
specifies the shape parameter ( > 0) for P-P plots that are requested by the BETA distribution option. For an example, see the preceding entry for the BETA distribution option.
C=value
specifies the shape parameter c for P-P plots that are requested by the WEIBULL option. For examples, see the entry for the WEIBULL option.
If you do not specify values for these parameters, then by default, and a maximum likelihood estimate is calculated for .
IMPORTANT: Your data must be greater than or equal to the lower threshold . If the default is not an adequate lower bound for your data, specify in the THETA= option.
If the data are exponentially distributed with parameters and , the points on the plot for SIGMA= and THETA= tend to fall on or near the diagonal line , which is displayed by default.
Agreement between the diagonal line and the point pattern is evidence that the specified exponential distribution is a good fit. You can specify the SCALE= option as an alias for the SIGMA= option and the THRESHOLD= option as an alias for the THETA= option.
GAMMA<(gamma-options)>
creates a gamma P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:
The y-coordinate of the ith point is the empirical CDF value . The x-coordinate is the theoretical gamma CDF value
where is the normalized incomplete gamma function and
is the threshold parameter
is the scale parameter
is the shape parameter
You can specify , , and in the ALPHA=, SIGMA=, and THETA=gamma-options, as illustrated in the following example:
If you do not specify values for these parameters, then by default, and maximum likelihood estimates are calculated for and .
IMPORTANT: Your data must be greater than or equal to the lower threshold . If the default is not an adequate lower bound for your data, specify in the THETA= option.
If the data are gamma distributed with parameters , , and , the points on the plot for ALPHA=, SIGMA=, and THETA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified gamma distribution is a good fit. You can specify the SHAPE= option as an alias for the ALPHA= option, the SCALE= option as an alias for the SIGMA= option, and the THRESHOLD= option as an alias for the THETA= option.
GUMBEL<(Gumbel-options)>
creates a Gumbel P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:
The y-coordinate of the ith point is the empirical CDF value . The x-coordinate is the theoretical Gumbel CDF value
where
location parameter
scale parameter
You can specify and in the MU= and SIGMA=Gumbel-options, as illustrated in the following example:
If you do not specify values for these parameters, then by default, the maximum likelihood estimates are calculated for and .
If the data are Gumbel distributed with parameters and , the points on the plot for MU= and SIGMA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified Gumbel distribution is a good fit.
IGAUSS<(iGauss-options)>
creates an inverse Gaussian P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:
The y-coordinate of the ith point is the empirical CDF value . The x-coordinate is the theoretical inverse Gaussian CDF value
where is the standard normal distribution function and
is the mean parameter
is the shape parameter
You can specify and in the LAMBDA= and MU=IGauss-options, as illustrated in the following example:
If you do not specify values for these parameters, then by default, the maximum likelihood estimates are calculated for and .
If the data have an inverse Gaussian distribution with parameters and , the points on the plot for LAMBDA= and MU= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified inverse Gaussian distribution is a good fit.
LAMBDA=value
specifies the shape parameter for fitted curves that are requested by the IGAUSS option. Enclose the LAMBDA= option in parentheses after the IGAUSS distribution keyword. If you do not specify this option, the procedure calculates a maximum likelihood estimate for .
If you do not specify values for these parameters, then by default, and estimates of and are computed as described in the section Lognormal Distribution.
IMPORTANT: Your data must be greater than the lower threshold . If the default is not an adequate lower bound for your data, specify in the THETA= option.
If the data are lognormally distributed with parameters , , and , the points on the plot for SIGMA=, THETA=, and ZETA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified lognormal distribution is a good fit. You can specify the SHAPE= option as an alias for the SIGMA=option, the SCALE= option as an alias for the ZETA= option, and the THRESHOLD= option as an alias for the THETA= option.
MU=value
specifies the parameter for P-P plots that are requested by the GUMBEL, IGAUSS, and NORMAL options. By default, the sample mean is used for with inverse Gaussian and normal distributions. A maximum likelihood estimate is computed by default with the Gumbel distribution. See Example 3.36.
NOLINE
suppresses the diagonal reference line.
NORMAL<(normal-options )>
NORM<(normal-options )>
creates a normal P-P plot. By default, if you do not specify a distribution option, the procedure displays a normal P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:
The y-coordinate of the ith point is the empirical CDF value . The x-coordinate is the theoretical normal CDF value
where is the cumulative standard normal distribution function and
location parameter or mean
scale parameter or standard deviation
You can specify and in the MU= and SIGMA=normal-options, as illustrated in the following example:
By default, the sample mean and sample standard deviation are used for and .
If the data are normally distributed with parameters and , the points on the plot for MU= and SIGMA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified normal distribution is a good fit. See Example 3.36.
PARETO<(Pareto-options)>
creates a generalized Pareto P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:
The y-coordinate of the ith point is the empirical CDF value . The x-coordinate is the theoretical generalized Pareto CDF value
where is the threshold parameter is the scale parameter is the shape parameter
The parameter for the generalized Pareto distribution must be less than the minimum data value. You can specify in the THETA=Pareto-option. The default value for is 0. In addition, the generalized Pareto distribution has a shape parameter and a scale parameter . You can specify these parameters in the ALPHA= and SIGMA=Pareto-options. By default, maximum likelihood estimates are computed for and .
If the data have a generalized Pareto distribution with parameters , , and , the points on the plot for THETA=, SIGMA=, and ALPHA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified generalized Pareto distribution is a good fit.
POWER<(power-options)>
creates a power function P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:
The y-coordinate of the ith point is the empirical CDF value . The x-coordinate is the theoretical power function CDF value
where is the lower threshold parameter (lower endpoint) is the scale parameter is the shape parameter
The power function distribution is bounded below by the parameter and above by the value . You can specify and by using the THETA= and SIGMA=power-options. The default values for and are 0 and 1, respectively.
You can specify a value for the shape parameter, , with the ALPHA=power-option. If you do not specify a value for , the procedure calculates a maximum likelihood estimate.
The power function distribution is a special case of the beta distribution with its second shape parameter, .
If the data have a power function distribution with parameters , , and , the points on the plot for THETA=, SIGMA=, and ALPHA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified power function distribution is a good fit.
RAYLEIGH<(Rayleigh-options)>
creates a Rayleigh P-P plot. To create the plot, the n nonmissing observations are ordered from smallest to largest:
The y-coordinate of the ith point is the empirical CDF value . The x-coordinate is the theoretical Rayleigh CDF value
where is the threshold parameter is the scale parameter
The parameter for the Rayleigh distribution must be less than the minimum data value. You can specify in the THETA=Rayleigh-option. The default value for is 0. You can specify in the SIGMA=Rayleigh-option. By default, a maximum likelihood estimate is computed for .
If the data have a Rayleigh distribution with parameters and , the points on the plot for THETA= and SIGMA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified Rayleigh distribution is a good fit.
If you do not specify values for these parameters, then by default and maximum likelihood estimates are calculated for and c.
IMPORTANT: Your data must be greater than or equal to the lower threshold . If the default is not an adequate lower bound for your data, you should specify with the THETA= option.
If the data have a Weibull distribution with parameters c, , and , the points on the plot for C=c, SIGMA=, and THETA= tend to fall on or near the diagonal line , which is displayed by default. Agreement between the diagonal line and the point pattern is evidence that the specified Weibull distribution is a good fit. You can specify the SHAPE= option as an alias for the C= option, the SCALE= option as an alias for the SIGMA= option, and the THRESHOLD= option as an alias for the THETA= option.
ZETA=value
specifies a value for the scale parameter for lognormal P-P plots that are requested by the LOGNORMAL option.