The UNIVARIATE Procedure

Example 3.31 Estimating Three Parameters from Lognormal Quantile Plots

This example, which is a continuation of Example 3.30, demonstrates techniques for estimating the shape, location, and scale parameters, and the theoretical percentiles for a three-parameter lognormal distribution.

The three-parameter lognormal distribution depends on a threshold parameter theta, a scale parameter zeta, and a shape parameter sigma. You can estimate sigma from a series of lognormal Q-Q plots which use the SIGMA= secondary option to specify different values of sigma; the estimate of sigma is the value that linearizes the point pattern. You can then estimate the threshold and scale parameters from the intercept and slope of the point pattern. The following statements create the series of plots in Output 3.31.1, Output 3.31.2, and Output 3.31.3 for sigma values of 0.2, 0.5, and 0.8, respectively:

title 'Lognormal Q-Q Plot for Diameters';
proc univariate data=Measures noprint;
   qqplot Diameter / lognormal(sigma=0.2 0.5 0.8)
                     square
                     odstitle = title;
run;

Note: You must specify a value for the shape parameter sigma for a lognormal Q-Q plot with the SIGMA= option or its alias, the SHAPE= option.

Output 3.31.1: Lognormal Quantile-Quantile Plot (sigma =0.2)

Lognormal Quantile-Quantile Plot (σ =0.2)


Output 3.31.2: Lognormal Quantile-Quantile Plot (sigma =0.5)

Lognormal Quantile-Quantile Plot (σ =0.5)


Output 3.31.3: Lognormal Quantile-Quantile Plot (sigma =0.8)

Lognormal Quantile-Quantile Plot (σ =0.8)


The plot in Output 3.31.2 displays the most linear point pattern, indicating that the lognormal distribution with sigma equals 0.5 provides a reasonable fit for the data distribution.

Data with this particular lognormal distribution have the following density function:

p left-parenthesis x right-parenthesis equals StartLayout Enlarged left-brace 1st Row 1st Column StartFraction StartRoot 2 EndRoot Over StartRoot pi EndRoot left-parenthesis x minus theta right-parenthesis EndFraction exp left-parenthesis minus 2 left-parenthesis log left-parenthesis x minus theta right-parenthesis minus zeta right-parenthesis squared 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

The points in the plot fall on or near the line with intercept theta and slope exp left-parenthesis zeta right-parenthesis. Based on Output 3.31.2, theta almost-equals 5 and exp left-parenthesis zeta right-parenthesis almost-equals StartFraction 1.2 Over 3 EndFraction equals 0.4, giving zeta almost-equals log left-parenthesis 0.4 right-parenthesis almost-equals negative 0.92.

You can also request a reference line by using the SIGMA=, THETA=, and ZETA= options together. The following statements produce the lognormal Q-Q plot in Output 3.31.4:

title 'Lognormal Q-Q Plot for Diameters';
proc univariate data=Measures noprint;
   qqplot Diameter / lognormal(theta=5 zeta=est sigma=est)
                     square
                     odstitle = title;
run;

Output 3.31.1 through Output 3.31.3 show that the threshold parameter theta is not equal to zero. Specifying THETA=5 overrides the default value of zero. The SIGMA=EST and ZETA=EST secondary options request estimates for sigma and exp left-parenthesis zeta right-parenthesis that use the sample mean and standard deviation.

Output 3.31.4: Lognormal Quantile-Quantile Plot (sigma =est, zeta =est, theta =5)

Lognormal Quantile-Quantile Plot (σ =est, ζ =est, θ =5)


From the plot in Output 3.31.2, sigma can be estimated as 0.51, which is consistent with the estimate of 0.5 derived from the plot in Output 3.31.2. Example 3.32 illustrates how to estimate percentiles by using lognormal Q-Q plots.

A sample program for this example, uniex18.sas, is available in the SAS Sample Library for Base SAS software.

Last updated: November 06, 2022