The UNIVARIATE Procedure

Distributions for Probability and Q-Q Plots

You can use the PROBPLOT and QQPLOT statements to request probability and Q-Q plots that are based on the theoretical distributions summarized in Table 33.

Table 33: Distributions and Parameters

Parameters
Distribution Density Function p left-parenthesis x right-parenthesis Range Location Scale Shape
Beta StartFraction left-parenthesis x minus theta right-parenthesis Superscript alpha minus 1 Baseline left-parenthesis theta plus sigma minus x right-parenthesis Superscript beta minus 1 Baseline Over upper B left-parenthesis alpha comma beta right-parenthesis sigma Superscript left-parenthesis alpha plus beta minus 1 right-parenthesis Baseline EndFraction theta less-than x less-than theta plus sigma theta sigma alpha, beta
Exponential StartFraction 1 Over sigma EndFraction exp left-parenthesis minus StartFraction x minus theta Over sigma EndFraction right-parenthesis x greater-than-or-equal-to theta theta sigma
Gamma StartFraction 1 Over sigma normal upper Gamma left-parenthesis alpha right-parenthesis EndFraction left-parenthesis StartFraction x minus theta Over sigma EndFraction right-parenthesis Superscript alpha minus 1 Baseline exp left-parenthesis minus StartFraction x minus theta Over sigma EndFraction right-parenthesis x greater-than theta theta sigma alpha
Gumbel StartFraction e Superscript minus left-parenthesis x minus mu right-parenthesis slash sigma Baseline Over sigma EndFraction exp left-parenthesis minus e Superscript minus left-parenthesis x minus mu right-parenthesis slash sigma Baseline right-parenthesis all x mu sigma
Lognormal StartFraction 1 Over sigma StartRoot 2 pi EndRoot left-parenthesis x minus theta right-parenthesis EndFraction exp left-parenthesis minus StartFraction left-parenthesis log left-parenthesis x minus theta right-parenthesis minus zeta right-parenthesis squared Over 2 sigma squared EndFraction right-parenthesis x greater-than theta theta zeta sigma
(3-parameter)
Normal StartFraction 1 Over sigma StartRoot 2 pi EndRoot EndFraction exp left-parenthesis minus StartFraction left-parenthesis x minus mu right-parenthesis squared Over 2 sigma squared EndFraction right-parenthesis all x mu sigma
Generalized alpha not-equals 0 StartFraction 1 Over sigma EndFraction left-parenthesis 1 minus alpha left-parenthesis x minus theta right-parenthesis slash sigma right-parenthesis Superscript 1 slash alpha minus 1 x greater-than theta theta sigma alpha
Pareto alpha equals 0 StartFraction 1 Over sigma EndFraction exp left-parenthesis minus left-parenthesis x minus theta right-parenthesis slash sigma right-parenthesis
Power Function StartFraction alpha Over sigma EndFraction left-parenthesis StartFraction x minus theta Over sigma EndFraction right-parenthesis Superscript alpha minus 1 x greater-than theta theta sigma alpha
Rayleigh StartFraction x minus theta Over sigma squared EndFraction exp left-parenthesis minus left-parenthesis x minus theta right-parenthesis squared slash left-parenthesis 2 sigma squared right-parenthesis right-parenthesis x greater-than-or-equal-to theta theta sigma
Weibull StartFraction c Over sigma EndFraction left-parenthesis StartFraction x minus theta Over sigma EndFraction right-parenthesis Superscript c minus 1 Baseline exp left-parenthesis minus left-parenthesis StartFraction x minus theta Over sigma EndFraction right-parenthesis Superscript c Baseline right-parenthesis x greater-than theta theta sigma c
(3-parameter)
Weibull StartFraction c Over sigma EndFraction left-parenthesis StartFraction x minus theta 0 Over sigma EndFraction right-parenthesis Superscript c minus 1 Baseline exp left-parenthesis minus left-parenthesis StartFraction x minus theta 0 Over sigma EndFraction right-parenthesis Superscript c Baseline right-parenthesis x greater-than theta 0 theta 0 sigma c
(2-parameter) (known)


You can request these distributions with the BETA, EXPONENTIAL, GAMMA, PARETO, GUMBEL, LOGNORMAL, NORMAL, POWER, RAYLEIGH, WEIBULL, and WEIBULL2 options, respectively. If you do not specify a distribution option, a normal probability plot or a normal Q-Q plot is created.

The following sections provide details for constructing Q-Q plots that are based on these distributions. Probability plots are constructed similarly except that the horizontal axis is scaled in percentile units.

Beta Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile upper B Subscript alpha beta Superscript negative 1 Baseline left-parenthesis StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis, where upper B Subscript alpha beta Superscript negative 1 Baseline left-parenthesis dot right-parenthesis is the inverse normalized incomplete beta function, n is the number of nonmissing observations, and alpha and beta are the shape parameters of the beta distribution. In a probability plot, the horizontal axis is scaled in percentile units.

The pattern on the plot for ALPHA=alpha and BETA=beta tends to be linear with intercept theta and slope sigma if the data are beta distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction left-parenthesis x minus theta right-parenthesis Superscript alpha minus 1 Baseline left-parenthesis theta plus sigma minus x right-parenthesis Superscript beta minus 1 Baseline Over upper B left-parenthesis alpha comma beta right-parenthesis sigma Superscript left-parenthesis alpha plus beta minus 1 right-parenthesis Baseline EndFraction 2nd Column for theta less-than x less-than theta plus sigma 2nd Row 1st Column 0 2nd Column for x less-than-or-equal-to theta or x greater-than-or-equal-to theta plus sigma EndLayout

where upper B left-parenthesis alpha comma beta right-parenthesis equals StartFraction normal upper Gamma left-parenthesis alpha right-parenthesis normal upper Gamma left-parenthesis beta right-parenthesis Over normal upper Gamma left-parenthesis alpha plus beta right-parenthesis EndFraction and

  • theta equals lower threshold parameter

  • sigma equals scale parameter left-parenthesis sigma greater-than 0 right-parenthesis

  • alpha equals first shape parameter left-parenthesis alpha greater-than 0 right-parenthesis

  • beta equals second shape parameter left-parenthesis beta greater-than 0 right-parenthesis

Exponential Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile minus log left-parenthesis 1 minus StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis, where n is the number of nonmissing observations. In a probability plot, the horizontal axis is scaled in percentile units.

The pattern on the plot tends to be linear with intercept theta and slope sigma if the data are exponentially distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction 1 Over sigma EndFraction exp left-parenthesis minus StartFraction x minus theta Over sigma EndFraction right-parenthesis 2nd Column for x greater-than-or-equal-to theta 2nd Row 1st Column 0 2nd Column for x less-than theta EndLayout

where theta is a threshold parameter, and sigma is a positive scale parameter.

Gamma Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile upper G Subscript alpha Superscript negative 1 Baseline left-parenthesis StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis, where upper G Subscript alpha Superscript negative 1 Baseline left-parenthesis dot right-parenthesis is the inverse normalized incomplete gamma function, n is the number of nonmissing observations, and alpha is the shape parameter of the gamma distribution. In a probability plot, the horizontal axis is scaled in percentile units.

The pattern on the plot for ALPHA=alpha tends to be linear with intercept theta and slope sigma if the data are gamma distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction 1 Over sigma normal upper Gamma left-parenthesis alpha right-parenthesis EndFraction left-parenthesis StartFraction x minus theta Over sigma EndFraction right-parenthesis Superscript alpha minus 1 Baseline exp left-parenthesis minus StartFraction x minus theta Over sigma EndFraction right-parenthesis 2nd Column for x greater-than theta 2nd Row 1st Column 0 2nd Column for x less-than-or-equal-to theta EndLayout

where

  • theta equals threshold parameter

  • sigma equals scale parameter left-parenthesis sigma greater-than 0 right-parenthesis

  • alpha equals shape parameter left-parenthesis alpha greater-than 0 right-parenthesis

Gumbel Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile minus log left-parenthesis minus log left-parenthesis StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis right-parenthesis, where n is the number of nonmissing observations. In a probability plot, the horizontal axis is scaled in percentile units.

The pattern on the plot tends to be linear with intercept mu and slope sigma if the data are Gumbel distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartFraction e Superscript minus left-parenthesis x minus mu right-parenthesis slash sigma Baseline Over sigma EndFraction exp left-parenthesis minus e Superscript minus left-parenthesis x minus mu right-parenthesis slash sigma Baseline right-parenthesis
  • mu equals location parameter

  • sigma equals scale parameter left-parenthesis sigma greater-than 0 right-parenthesis

Lognormal Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile exp left-parenthesis sigma normal upper Phi Superscript negative 1 Baseline left-parenthesis StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis right-parenthesis, where normal upper Phi Superscript negative 1 Baseline left-parenthesis dot right-parenthesis is the inverse cumulative standard normal distribution, n is the number of nonmissing observations, and sigma is the shape parameter of the lognormal distribution. In a probability plot, the horizontal axis is scaled in percentile units.

The pattern on the plot for SIGMA=sigma tends to be linear with intercept theta and slope exp left-parenthesis zeta right-parenthesis if the data are lognormally distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction 1 Over sigma StartRoot 2 pi EndRoot left-parenthesis x minus theta right-parenthesis EndFraction exp left-parenthesis minus StartFraction left-parenthesis log left-parenthesis x minus theta right-parenthesis minus zeta right-parenthesis squared Over 2 sigma squared EndFraction right-parenthesis 2nd Column for x greater-than theta 2nd Row 1st Column 0 2nd Column for x less-than-or-equal-to theta EndLayout

where

  • theta equals threshold parameter

  • zeta equals scale parameter

  • sigma equals shape parameter left-parenthesis sigma greater-than 0 right-parenthesis

See Example 3.26 and Example 3.33.

Normal Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile normal upper Phi Superscript negative 1 Baseline left-parenthesis StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis, where normal upper Phi Superscript negative 1 Baseline left-parenthesis dot right-parenthesis is the inverse cumulative standard normal distribution and n is the number of nonmissing observations. In a probability plot, the horizontal axis is scaled in percentile units.

The point pattern on the plot tends to be linear with intercept mu and slope sigma if the data are normally distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout 1st Row 1st Column StartFraction 1 Over sigma StartRoot 2 pi EndRoot EndFraction exp left-parenthesis minus StartFraction left-parenthesis x minus mu right-parenthesis squared Over 2 sigma squared EndFraction right-parenthesis 2nd Column for all x EndLayout

where mu is the mean and sigma is the standard deviation (sigma greater-than 0).

Generalized Pareto Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile left-parenthesis 1 minus left-parenthesis 1 minus StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis Superscript alpha Baseline right-parenthesis slash alpha (alpha not-equals 0) or minus log left-parenthesis 1 minus StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis (alpha equals 0), where n is the number of nonmissing observations and alpha is the shape parameter of the generalized Pareto distribution. The horizontal axis is scaled in percentile units.

The point pattern on the plot for ALPHA=alpha tends to be linear with intercept theta and slope sigma if the data are generalized Pareto distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction 1 Over sigma EndFraction left-parenthesis 1 minus alpha left-parenthesis x minus theta right-parenthesis slash sigma right-parenthesis Superscript 1 slash alpha minus 1 Baseline 2nd Column if alpha not-equals 0 2nd Row 1st Column StartFraction 1 Over sigma EndFraction exp left-parenthesis minus left-parenthesis x minus theta right-parenthesis slash sigma right-parenthesis 2nd Column if alpha equals 0 EndLayout

where theta equals threshold parameter sigma equals scale parameter left-parenthesis sigma greater-than 0 right-parenthesis alpha equals shape parameter left-parenthesis alpha greater-than 0 right-parenthesis

Power Function Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile upper B Subscript alpha left-parenthesis 1 right-parenthesis Superscript negative 1 Baseline left-parenthesis StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis, where upper B Subscript alpha left-parenthesis 1 right-parenthesis Superscript negative 1 Baseline left-parenthesis dot right-parenthesis is the inverse normalized incomplete beta function, n is the number of nonmissing observations, alpha is one shape parameter of the beta distribution, and the second shape parameter, beta equals 1. The horizontal axis is scaled in percentile units.

The point pattern on the plot for ALPHA=alpha tends to be linear with intercept theta and slope sigma if the data are power function distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction alpha Over sigma EndFraction left-parenthesis StartFraction x minus theta Over sigma EndFraction right-parenthesis Superscript alpha minus 1 Baseline 2nd Column for theta less-than x less-than theta plus sigma 2nd Row 1st Column 0 2nd Column for x less-than-or-equal-to theta or x greater-than-or-equal-to theta plus sigma EndLayout

where

  • theta equals threshold parameter

  • sigma equals shape parameter left-parenthesis sigma greater-than 0 right-parenthesis

  • alpha equals shape parameter left-parenthesis alpha greater-than 0 right-parenthesis

Rayleigh Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile StartRoot minus 2 log left-parenthesis 1 minus StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis EndRoot, where n is the number of nonmissing observations. The horizontal axis is scaled in percentile units.

The point pattern on the plot tends to be linear with intercept theta and slope sigma if the data are Rayleigh distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction x minus theta Over sigma squared EndFraction exp left-parenthesis minus left-parenthesis x minus theta right-parenthesis squared slash left-parenthesis 2 sigma squared right-parenthesis right-parenthesis 2nd Column for x greater-than-or-equal-to theta 2nd Row 1st Column 0 2nd Column for x less-than theta EndLayout

where theta is a threshold parameter, and sigma is a positive scale parameter.

Three-Parameter Weibull Distribution

To create the plot, the observations are ordered from smallest to largest, and the ith ordered observation is plotted against the quantile left-parenthesis minus log left-parenthesis 1 minus StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis right-parenthesis Superscript StartFraction 1 Over c EndFraction, where n is the number of nonmissing observations, and c is the Weibull distribution shape parameter. In a probability plot, the horizontal axis is scaled in percentile units.

The pattern on the plot for C=c tends to be linear with intercept theta and slope sigma if the data are Weibull distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction c Over sigma EndFraction left-parenthesis StartFraction x minus theta Over sigma EndFraction right-parenthesis Superscript c minus 1 Baseline exp left-parenthesis minus left-parenthesis StartFraction x minus theta Over sigma EndFraction right-parenthesis Superscript c Baseline right-parenthesis 2nd Column for x greater-than theta 2nd Row 1st Column 0 2nd Column for x less-than-or-equal-to theta EndLayout

where

  • theta equals threshold parameter

  • sigma equals scale parameter left-parenthesis sigma greater-than 0 right-parenthesis

  • c equals shape parameter left-parenthesis c greater-than 0 right-parenthesis

See Example 3.34.

Two-Parameter Weibull Distribution

To create the plot, the observations are ordered from smallest to largest, and the log of the shifted ith ordered observation x Subscript left-parenthesis i right-parenthesis, denoted by log left-parenthesis x Subscript left-parenthesis i right-parenthesis Baseline minus theta 0 right-parenthesis, is plotted against the quantile log left-parenthesis minus log left-parenthesis 1 minus StartFraction i minus 0.375 Over n plus 0.25 EndFraction right-parenthesis right-parenthesis, where n is the number of nonmissing observations. In a probability plot, the horizontal axis is scaled in percentile units.

Unlike the three-parameter Weibull quantile, the preceding expression is free of distribution parameters. Consequently, the C= shape parameter is not mandatory with the WEIBULL2 distribution option.

The pattern on the plot for THETA=theta 0 tends to be linear with intercept log left-parenthesis sigma right-parenthesis and slope StartFraction 1 Over c EndFraction if the data are Weibull distributed with the specific density function

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction c Over sigma EndFraction left-parenthesis StartFraction x minus theta 0 Over sigma EndFraction right-parenthesis Superscript c minus 1 Baseline exp left-parenthesis minus left-parenthesis StartFraction x minus theta 0 Over sigma EndFraction right-parenthesis Superscript c Baseline right-parenthesis 2nd Column for x greater-than theta 0 2nd Row 1st Column 0 2nd Column for x less-than-or-equal-to theta 0 EndLayout

where

  • theta 0 equals known lower threshold

  • sigma equals scale parameter left-parenthesis sigma greater-than 0 right-parenthesis

  • c equals shape parameter left-parenthesis c greater-than 0 right-parenthesis

See Example 3.34.

Last updated: April 10, 2023