1 The Hypergeometric distribution
Suppose we are sampling without replacement from a batch of items containing a variable number of defectives. We are essentially assuming that we know the probability that a given item is defective but not the actual number of defective items contained in the batch. The number of defective items in the batch is a random variable in this case.
When we sample from the batch, we are left with:
- a smaller batch;
- a (possibly) smaller (but still variable ) number of defective items. The number of defective items is still a random variable.
While the probability of finding a given number of defectives in a sample drawn from the second batch will (in general) be different from the probability of finding a given number of defectives in a sample drawn from the first batch, sampling from both batches may be described by the binomial distribution for which:
Sampling in this case varies the values of and in general but not the underlying distribution describing the sampling process.
Example 18
A batch of 100 piston rings is known to contain 10 defective rings. If two piston rings are drawn from the batch, write down the probabilities that:
- the first ring is defective;
- the second ring is defective given that the first one is defective.
Solution
- The probability that the first ring is defective is clearly .
- Assuming that the first ring selected is defective and we do not replace it, the probability that the second ring is defective is equally clearly .
The hypergeometric distribution may be thought of as arising from sampling from a batch of items where the number of defective items contained in the batch is known.
Essentially the number of defectives contained in the batch is not a random variable, it is fixed. The calculations involved when using the hypergeometric distribution are usually more complex than their binomial counterparts.
If we sample without replacement we may proceed in general as follows:
- we may select items from a population of items in ways;
- we may select defective items from defective items in ways;
- we may select non-defective items from non-defective items in ways;
- hence we may select items containing defectives in ways.
-
hence the probability that we select a sample of size
containing
defective items from a
population of items known to contain defective items is
Key Point 10
Hypergeometric Distribution
The distribution given by
which describes the probability of obtaining a sample of size containing defective items from a population of size known to contain defective items is known as the hypergeometric distribution .
Example 19
A batch of 10 rocker cover gaskets contains 4 defective gaskets. If we draw samples of size 3 without replacement, from the batch of 10, find the probability that a sample contains 2 defective gaskets.
Solution
Using we know that and .
Hence
It is possible to derive formulae for the mean and variance of the hypergeometric distribution. However, the calculations are more difficult than their binomial counterparts, so we will simple state the results.
Key Point 11
Expectation and Variance of the Hypergeometric Distribution
The expectation (mean) and variance of the hypergeometric random variable
are given by
Example 20
For the previous Example, concerning rocker cover gaskets, find the expectation and variance of samples containing 2 defective gaskets.
Solution
Using we know that and .
Hence
and
Task!
In the manufacture of car tyres, a particular production process is know to yield 10 tyres with defective walls in every batch of 100 tyres produced. From a production batch of 100 tyres, a sample of 4 is selected for testing to destruction. Find:
- the probability that the sample contains 1 defective tyre
- the expectation of the number of defectives in samples of size 4
- the variance of the number of defectives in samples of size 4.
Sampling is clearly without replacement and we use the hypergeometric distribution with
and . Hence:
-
gives
- The expectation is
- The variance is
Task!
A company (the producer) supplies microprocessors to a manufacturer (the consumer) of electronic equipment. The microprocessors are supplied in batches of 50. The consumer regards a batch as acceptable provided that there are not more than 5 defective microprocessors in the batch. Rather than test all of the microprocessors in the batch, 10 are selected at random and tested.
- Find the probability that out of a sample of 10, are defective when there are actually 5 defective microprocessors in the batch.
-
Suppose that the consumer will accept the batch provided that not more than
defectives are found in the sample of 10.
- Find the probability that the batch is accepted when there are 5 defectives in the batch.
- Find the probability that the batch is rejected when there are 3 defectives in the batch.
-
Let
= the numbers of defectives in a sample. Then
Hence
-
-
Case
= 5
P(Accept batch with 5 defectives) is
-
Case
= 3
P(Reject batch with 3 defectives) is
-
Case
= 5
Exercise
A company buys batches of components. Before a batch is accepted, of the components are selected at random from the batch and tested. The batch is rejected if more than components in the sample are found to be below standard.
- Find the probability that a batch which actually contains six below-standard components is rejected when and
- Find the probability that a batch which actually contains nine below-standard components is rejected when and
-
Let the number of below-standard components in the sample be
The probability of acceptance is
Hence the probability of rejection is
-
Let the number of below-standard components in the sample be
The probability of acceptance is
Now
So the probability of acceptance is
Hence the probability of rejection is