Discrete Distributions

Hypergeometric Distribution Table: P(X = x)

Probabilities for the number of successes in a sample drawn without replacement from a finite population.

  • N = 10 and 20
  • Every K and n
  • Calculator for any N

Hypergeometric Table

Jump to a population and sample size below. Rows: successes in the sample x · Columns: successes in the population K · Cells: P(X = x)

N = 10, n = 2

N = 10, n = 2
Successes in the population (K) →
x ↓
123456789
00.80000.62220.46670.33330.22220.13330.06670.02220
10.20000.35560.46670.53330.55560.53330.46670.35560.2000
200.02220.06670.13330.22220.33330.46670.62220.8000

N = 10, n = 3

N = 10, n = 3
Successes in the population (K) →
x ↓
123456789
00.70000.46670.29170.16670.08330.03330.008300
10.30000.46670.52500.50000.41670.30000.17500.06670
200.06670.17500.30000.41670.50000.52500.46670.3000
3000.00830.03330.08330.16670.29170.46670.7000

N = 10, n = 4

N = 10, n = 4
Successes in the population (K) →
x ↓
123456789
00.60000.33330.16670.07140.02380.0048000
10.40000.53330.50000.38100.23810.11430.033300
200.13330.30000.42860.47620.42860.30000.13330
3000.03330.11430.23810.38100.50000.53330.4000
40000.00480.02380.07140.16670.33330.6000

N = 10, n = 5

N = 10, n = 5
Successes in the population (K) →
x ↓
123456789
00.50000.22220.08330.02380.00400000
10.50000.55560.41670.23810.09920.0238000
200.22220.41670.47620.39680.23810.083300
3000.08330.23810.39680.47620.41670.22220
40000.02380.09920.23810.41670.55560.5000
500000.00400.02380.08330.22220.5000

N = 20, n = 2

N = 20, n = 2
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.90000.80530.71580.63160.55260.47890.41050.34740.28950.23680.18950.14740.11050.07890.05260.03160.01580.00530
10.10000.18950.26840.33680.39470.44210.47890.50530.52110.52630.52110.50530.47890.44210.39470.33680.26840.18950.1000
200.00530.01580.03160.05260.07890.11050.14740.18950.23680.28950.34740.41050.47890.55260.63160.71580.80530.9000

N = 20, n = 3

N = 20, n = 3
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.85000.71580.59650.49120.39910.31930.25090.19300.14470.10530.07370.04910.03070.01750.00880.00350.000900
10.15000.26840.35790.42110.46050.47890.47890.46320.43420.39470.34740.29470.23950.18420.13160.08420.04470.01580
200.01580.04470.08420.13160.18420.23950.29470.34740.39470.43420.46320.47890.47890.46050.42110.35790.26840.1500
3000.00090.00350.00880.01750.03070.04910.07370.10530.14470.19300.25090.31930.39910.49120.59650.71580.8500

N = 20, n = 4

N = 20, n = 4
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.80000.63160.49120.37560.28170.20660.14760.10220.06810.04330.02600.01440.00720.00310.00100.0002000
10.20000.33680.42110.46230.46960.45080.41320.36330.30650.24770.19070.13870.09390.05780.03100.01320.003500
200.03160.08420.14860.21670.28170.33810.38140.40870.41800.40870.38140.33810.28170.21670.14860.08420.03160
3000.00350.01320.03100.05780.09390.13870.19070.24770.30650.36330.41320.45080.46960.46230.42110.33680.2000
40000.00020.00100.00310.00720.01440.02600.04330.06810.10220.14760.20660.28170.37560.49120.63160.8000

N = 20, n = 5

N = 20, n = 5
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.75000.55260.39910.28170.19370.12910.08300.05110.02980.01630.00810.00360.00140.00040.00010000
10.25000.39470.46050.46960.44020.38740.32280.25540.19160.13540.08940.05420.02930.01350.00480.0010000
200.05260.13160.21670.29350.35220.38740.39730.38310.34830.29800.23840.17610.11740.06770.03100.008800
3000.00880.03100.06770.11740.17610.23840.29800.34830.38310.39730.38740.35220.29350.21670.13160.05260
40000.00100.00480.01350.02930.05420.08940.13540.19160.25540.32280.38740.44020.46960.46050.39470.2500
500000.00010.00040.00140.00360.00810.01630.02980.05110.08300.12910.19370.28170.39910.55260.7500

N = 20, n = 6

N = 20, n = 6
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.70000.47890.31930.20660.12910.07750.04430.02380.01190.00540.00220.00070.00020+00000
10.30000.44210.47890.45080.38740.30990.23240.16350.10730.06500.03580.01730.00700.00220.00040000
200.07890.18420.28170.35220.38740.38740.35760.30650.24380.17880.11920.07040.03520.01350.0031000
3000.01750.05780.11740.18780.25830.31790.35760.37150.35760.31790.25830.18780.11740.05780.017500
40000.00310.01350.03520.07040.11920.17880.24380.30650.35760.38740.38740.35220.28170.18420.07890
500000.00040.00220.00700.01730.03580.06500.10730.16350.23240.30990.38740.45080.47890.44210.3000
6000000+0.00020.00070.00220.00540.01190.02380.04430.07750.12910.20660.31930.47890.7000

N = 20, n = 7

N = 20, n = 7
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.65000.41050.25090.14760.08300.04430.02210.01020.00430.00150.00050.00010+000000
10.35000.47890.47890.41320.32280.23240.15500.09540.05360.02710.01190.00430.00120.000200000
200.11050.23950.33810.38740.38740.34860.28610.21460.14630.08940.04770.02110.00700.00140000
3000.03070.09390.17610.25830.32280.35760.35760.32510.26820.19870.12910.07040.02930.0072000
40000.00720.02930.07040.12910.19870.26820.32510.35760.35760.32280.25830.17610.09390.030700
500000.00140.00700.02110.04770.08940.14630.21460.28610.34860.38740.38740.33810.23950.11050
6000000.00020.00120.00430.01190.02710.05360.09540.15500.23240.32280.41320.47890.47890.3500
70000000+0.00010.00050.00150.00430.01020.02210.04430.08300.14760.25090.41050.6500

N = 20, n = 8

N = 20, n = 8
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.60000.34740.19300.10220.05110.02380.01020.00390.00130.00040.00010+0000000
10.40000.50530.46320.36330.25540.16350.09540.05030.02360.00950.00310.00080.0001000000
200.14740.29470.38140.39730.35760.28610.20540.13200.07500.03670.01470.00430.000700000
3000.04910.13870.23840.31790.35760.35210.30810.24010.16500.09780.04770.01730.00360000
40000.01440.05420.11920.19870.27510.33010.35010.33010.27510.19870.11920.05420.0144000
500000.00360.01730.04770.09780.16500.24010.30810.35210.35760.31790.23840.13870.049100
6000000.00070.00430.01470.03670.07500.13200.20540.28610.35760.39730.38140.29470.14740
70000000.00010.00080.00310.00950.02360.05030.09540.16350.25540.36330.46320.50530.4000
800000000+0.00010.00040.00130.00390.01020.02380.05110.10220.19300.34740.6000

N = 20, n = 9

N = 20, n = 9
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.55000.28950.14470.06810.02980.01190.00430.00130.00030.00010+00000000
10.45000.52110.43420.30650.19160.10730.05360.02360.00880.00270.00060.00010000000
200.18950.34740.40870.38310.30650.21460.13200.07070.03220.01180.00310.0005000000
3000.07370.19070.29800.35760.35760.30810.23110.15000.08250.03670.01190.002200000
40000.02600.08940.17880.26820.33010.34660.31510.24760.16500.08940.03580.00810000
500000.00810.03580.08940.16500.24760.31510.34660.33010.26820.17880.08940.0260000
6000000.00220.01190.03670.08250.15000.23110.30810.35760.35760.29800.19070.073700
70000000.00050.00310.01180.03220.07070.13200.21460.30650.38310.40870.34740.18950
800000000.00010.00060.00270.00880.02360.05360.10730.19160.30650.43420.52110.4500
9000000000+0.00010.00030.00130.00430.01190.02980.06810.14470.28950.5500

N = 20, n = 10

N = 20, n = 10
Successes in the population (K) →
x ↓
12345678910111213141516171819
00.50000.23680.10530.04330.01630.00540.00150.00040.00010+000000000
10.50000.52630.39470.24770.13540.06500.02710.00950.00270.00050.000100000000
200.23680.39470.41800.34830.24380.14630.07500.03220.01100.00270.00040000000
3000.10530.24770.34830.37150.32510.24010.15000.07790.03220.00950.0015000000
40000.04330.13540.24380.32510.35010.31510.23870.15000.07500.02710.005400000
500000.01630.06500.14630.24010.31510.34370.31510.24010.14630.06500.01630000
6000000.00540.02710.07500.15000.23870.31510.35010.32510.24380.13540.0433000
70000000.00150.00950.03220.07790.15000.24010.32510.37150.34830.24770.105300
800000000.00040.00270.01100.03220.07500.14630.24380.34830.41800.39470.23680
9000000000.00010.00050.00270.00950.02710.06500.13540.24770.39470.52630.5000
100000000000+0.00010.00040.00150.00540.01630.04330.10530.23680.5000

Tip: click any value to highlight its row and column.

How to read this table

  1. Identify N (population size), K (successes in the population) and n (sample size).
  2. Find the block for N and n, then the row for x and the column for K.
  3. Add cells to get probabilities of ranges, or use the calculator for cumulative probabilities.

Worked example

A tray of 20 vials contains 4 defective ones, and an inspector samples 5 at random. The chance the sample contains no defective vials is row x = 0, column K = 4 of the N = 20, n = 5 block: 0.2817. So a 5-vial inspection misses the problem about 28% of the time.

Click the underlined links to highlight the value in the table.

Calculator

For values between the rows and columns of the table. Results update as you type.

Formula and how the values were computed

P(X = x) = C(K, x) C(N − K, n − x) / C(N, n)

Each cell is computed exactly from the hypergeometric formula and rounded to four decimals.

Frequently asked questions

Hypergeometric or binomial?

Use the hypergeometric when sampling without replacement from a small population. When the sample is under about 10% of the population, the binomial with p = K/N is a good approximation.

How does this relate to Fisher's exact test?

Fisher's exact test uses the hypergeometric distribution of one cell of a 2 × 2 table given its margins.

Related calculators and tutorials