Actuarial Notes

Hypergeometric Distribution

Study guide: Exam P-1

A Hypergeometric Distribution is the distribution of the number of successes in a sample of n items drawn without replacement from N items, K of which are successes. The probability of k successes is

P(X = k) = \frac{\dbinom{K}{k}\dbinom{N-K}{n-k}}{\dbinom{N}{n}}

  • k runs from \max(0,\, n + K - N) to \min(n, K).

The numerator chooses k of the K successes and n - k of the N - K failures. The denominator counts every sample of n.

The idea Every set of n items is equally likely to be drawn, so the probability is a count of sets.

A file holds 10 policies, 4 with errors. An auditor selects 3 at random without replacement. What is the probability that exactly 2 have errors?

  • There are \binom{10}{3} = 120 equally likely samples.
  • Choosing 2 of the 4 with errors and 1 of the 6 without gives 6 \times 6 = 36 samples.
  • The probability is 36/120 = 0.3.

Mean and variance of the hypergeometric distribution

Each item drawn is a success with probability K/N, so by linearity the mean is

E[X] = \frac{nK}{N}

The draws are not independent, which shows in the variance:

\text{Var}(X) = n\,\frac{K}{N}\left(1 - \frac{K}{N}\right)\frac{N-n}{N-1}

The last factor is the finite population correction. It is below 1 whenever n \ge 2, so a hypergeometric count varies less than a binomial one.

A file holds 10 policies, 4 with errors, and an auditor selects 3 without replacement. What are the mean and variance of the number with errors?

  • The mean is 3 \times 4/10 = 1.2.
  • The binomial part is 3 \times 0.4 \times 0.6 = 0.72.
  • The variance is 0.72 \times 7/9 = 0.56.

Compared with the binomial distribution

When the population is large relative to the sample, each draw barely changes what is left. The hypergeometric is then close to the binomial with p = K/N:

P(X = k) \approx \binom{n}{k}\left(\frac{K}{N}\right)^k\left(1 - \frac{K}{N}\right)^{n-k}

A file holds 10 policies, 4 with errors. If the auditor replaced each policy before the next draw, what would be the probability that exactly 2 of 3 have errors?

  • With replacement, the count is \text{Bin}(3, 0.4).
  • The probability is 3 \times 0.4^2 \times 0.6 = 0.288.
  • Without replacement it was 0.300. On a pool of 10, the difference shows.

Binomial on a small pool Draws from a few dozen items without replacement are not independent trials. Use the binomial only when the question allows replacement or the pool is very large.

More than two types

When the population splits into types of sizes K_1, \ldots, K_m that add to N, the counts of each type in the sample follow the multivariate hypergeometric distribution:

P(k_1, \ldots, k_m) = \frac{\dbinom{K_1}{k_1}\cdots\dbinom{K_m}{k_m}}{\dbinom{N}{n}}

  • k_1 + \cdots + k_m = n.

When only one type matters, combine all the others into one group of N - K items, and the count of that type is the ordinary hypergeometric.

Given that k_1 of the n draws fell in type 1, the other n - k_1 draws are a sample without replacement from the N - K_1 items outside type 1. The count of another type j is then hypergeometric with N - K_1 items, K_j successes and n - k_1 draws.

A file holds 3 policies with premium errors, 1 with a coverage error and 6 clean. An auditor selects 3 without replacement. What is the probability of one of each?

  • Choose 1 of 3, 1 of 1 and 1 of 6: 3 \times 1 \times 6 = 18 samples.
  • There are 120 samples in all.
  • The probability is 18/120 = 0.15.

Independent events given how many occurred

When N independent events each have the same probability and exactly n occurred, every set of n that could have occurred is equally likely. The events that occurred are then a sample of n drawn without replacement, and the count among any K of them is hypergeometric. In the same way, the first n items brought in random order are a sample of n drawn without replacement.

Eight claim files are each corrupted with probability 0.1, independently. Exactly 3 are corrupted. What is the probability that exactly 1 of the first 4 files is corrupted?

  • The 3 corrupted files are a sample of 3 from the 8.
  • The count among the first 4 is hypergeometric with N = 8, K = 4 and n = 3.
  • The probability is \binom{4}{1}\binom{4}{2}/\binom{8}{3}, which is 24/56 = 0.4286.

Practice questions

Actuarial Notes