Programming the statistical procedures from SAS

Question Related to Tolerance Intervals

Reply
New Contributor
Posts: 2

Question Related to Tolerance Intervals

I am trying to compute the percentage of a normal population with unknown mean and unknown variance which lies outside of specified limits at a specified level of confidence. The SAS software computes the tolerance interval which gives the limits of a speficied percentage of the population at a specified level of confidence but does not seem to do the reverse as best as I can tell. Also in my case, the limits are an input and the percentage of the population is an output. Can anyone provide guidance on making this computation correctly. 

SAS Super FREQ
Posts: 3,310

Re: Question Related to Tolerance Intervals

I haven't computerd tolerance intervals myself, but it looks like if you have SAS/QC software, you can use the INTERVALS statement in PROC CAPABILITY to obtain tolerance intervals. Looks like METHOD=3 is what you want?

 

If you don't have SAS/QC, the documentation gives the formula in terms of the sample mean (xbar), sample standard deviation (s), sample size (n), the proportion (p), and the significance level (alpha).You can use the DATA step to implement the formula by using the QUANTILE function, which computes percentiles (=quantiles) of standard distribution.  For example, the quantity

z = quantile("normal", (1+p)/2);

gives the quantile for the standard normal distribution with parameter (1+p)/2.  Similarly,

chi2 = quantile("chisq", alpha, n-1);

gives the quantile for the chi-square distribution with df=n-1.

 

Thus if you know the sample statistics, then I think the following DATA step gives you what you want, or at least will point you in the right direction:

 

data limits;
/* input sample statistics and parameters */
xbar = 0;
s = 1;
n = 50;
p = 0.95;
alpha = 0.05;
/* compute Lower & Upper tolerance limits using QC formula */
z = quantile("normal", (1+p)/2);
chi2 = quantile("chisq", alpha, n-1);
delta = s*z*(1 + 1/(2*n))*sqrt( (n-1)/chi2 ); 
Lower = xbar - delta;
Upper = xbar + delta;
run;

proc print;run;

New Contributor
Posts: 2

Re: Question Related to Tolerance Intervals

Many thanks for your reply. However I am not interested in computing a tolerance interval but rather the percentage of the population that exceeds a specified limit to a specified level of confidence.
SAS Super FREQ
Posts: 3,310

Re: Question Related to Tolerance Intervals

Please provide data and expected output. Also a reference or example would be nice.

Ask a Question
Discussion stats
  • 3 replies
  • 261 views
  • 0 likes
  • 2 in conversation