Chapter Contents Previous Next
 Functions

## PROBACC2 Function

computes the acceptance probability for a double-sampling plan.

### Syntax

PROBACC2(a1,r1,a2,n1,n2,D,N)

PROBACC2(a1,r1,a2,n1,n2,p)

where

 a1 is the acceptance number for the first sample, where . r1 is the rejection number for the first sample, where r1>a1+1. a2 is the acceptance number for the second sample, where a2 > a1. n1 is the size of the first sample, where and . n2 is the size of the second sample, where and . D is the number of nonconforming items in the lot, where . N is the lot size, where . p is the proportion of nonconforming items produced by the process, where 0

### Description

The PROBACC2 function returns the acceptance probability for a double-sampling plan of Type A if you specify the parameters D and N, and it returns the acceptance probability for a double-sampling plan of Type B if you specify the parameter p. For details on Type A and Type B double-sampling plans, see "Types of Sampling Plans".

For either type of sampling plan, the acceptance probability is calculated as

Pa1 + Pa2

where

and

These probabilities are determined from either the hypergeometric distribution (Type A sampling) or the binomial distribution (Type B sampling).

### Examples

The first set of statements results in a value of 0.2396723824. The second set of statements results in a value of 0.0921738126.

data;
prob=probacc2(1,4,3,50,100,10,200);
put prob;
run;

data;
prob=probacc2(0,2,1,13,13,0.18);
put prob;
run;

 Chapter Contents Previous Next Top