|  | 
|  | 
| Functions | 
| AOQ2 Function | 
computes average outgoing quality for a double-sampling plan.
AOQ2(replacement, )
) 
where
| replacement | has the value 'REP' or 'NOREP', respectively, depending on whether nonconforming items are replaced with conforming items. | 
| 
 |  is the lot size, where  | 
| 
 |  is the acceptance number for the first sample, where  | 
| 
 |  is the rejection number for the first sample, where  | 
| 
 |  is the acceptance number for the second sample, where  | 
| 
 |  is the size of the first sample, where  | 
| 
 |  is the size of the second sample, where  | 
| 
 |  is the proportion of nonconforming items produced by the process, where  | 
The AOQ2 function returns the average outgoing quality for a Type B double-sampling plan in which nonconforming items are replaced with conforming items (replacement is 'REP') or not replaced (replacement is 'NOREP'). For details on Type B double-sampling plans, see Types of Sampling Plans.
For replacement, the average outgoing quality is
|  | 
and for no replacement, the average outgoing quality is
|  | 
where, in both situations,
|  |  |  | |||
|  |  |  | |||
|  |  |  | |||
|  |  |  | 
and
|  |  |  | |||
|  |  |  | |||
|  |  |  | |||
|  |  |  | |||
|  |  |  | |||
|  |  |  | 
|  | 
|  | 
Copyright © SAS Institute, Inc. All Rights Reserved.