Previous Page  Next Page 
Distribution Analyses

Quantiles

It is often convenient to subdivide the area under a density curve so that the area to the left of the dividing value is some specified fraction of the total unit area. For a given value of p between 0 and 1, the pth quantile (or 100 pth percentile) is the value such that the area to the left of it is p.

The pth quantile is computed from the empirical distribution function with averaging:

y = \{ \frac{1}2 ( y_{(i)} + y_{(i+1)}) & {if f = 0} \ y_{(i+1)} & {if f \gt 0} \ .

where i is the integer part and f is the fractional part of np=i+f.

If you specify a Weight variable, the pth quantile is computed as

y = \{ \frac{1}2 ( y_{(i)} + y_{(i+1)}) & {if \sum_{j=1}^i w_{(j)} = p \sum_{j=... ...um_{j=1}^i w_{(j)} \lt p \sum_{j=1}^n w_{(j)} \lt \sum_{j=1}^{i+1}w_{(j)}} \ .

When each observation has an identical weight, the weighted quantiles are identical to the unweighted quantiles.

The Quantiles table, as shown in Figure 38.9, includes the following statistics:

Previous Page  Next Page  Top of Page

Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.