Previous Page | Next Page

Functions

PROBBNML Function

computes the probability that an observation from a binomial distribution will be less than or equal to .

Syntax

PROBBNML

where

is the probability of success for the binomial distribution, where . In terms of acceptance sampling, is the probability of selecting a nonconforming item.

is the number of independent Bernoulli trials in the binomial distribution, where . In terms of acceptance sampling, is the number of items in the sample.

is the number of successes, where . In terms of acceptance sampling, is the number of nonconforming items.

Description

The PROBBNML function returns the probability that an observation from a binomial distribution (with parameters and ) is less than or equal to . To compute the probability that an observation is equal to a given value , compute the difference of two values for the cumulative binomial distribution.

In terms of acceptance sampling, the function returns the probability of finding or fewer nonconforming items in a sample of items, where the probability of a nonconforming item is . To find the probability that the sample contains exactly nonconforming items, compute the difference between PROBBNML and PROBBNML.

In addition to using the PROBBNML function to return the probability of acceptance, the function can be used in calculations for average sample number, average outgoing quality, and average total inspection in Type B single-sampling. See Evaluating Single-Sampling Plans for details.

The PROBBNML function computes

     

where , , and are defined in the preceding list.

Examples

The following statements compute the probability that an observation from a binomial distribution with and is less than or equal to 4:

data;
   prob=probbnml(0.05,10,4);
   put prob;
run;

These statements result in the value 0.9999363102. In terms of acceptance sampling, for a sample of size 10 where the probability of a nonconforming item is 0.05, the probability of finding 4 or fewer nonconforming items is 0.9999363102.

The following statements compute the probability that an observation from a binomial distribution with and is exactly 4:

data;
   p=probbnml(0.05,10,4) - probbnml(0.05,10,3);
   put p;
run;

These statements result in the value 0.0009648081.

For additional information on probability functions, refer to SAS Language Reference: Dictionary.

Previous Page | Next Page | Top of Page