CalcWorldHub
Free online calculator · no signup

Multivariate hypergeometric category selection calculator

Find the probability of a specified category composition when drawing a fixed number of items without replacement.

4,000 tools
Multivariate hypergeometric category selection calculator — Population counts by category, Selected counts by category and calculation method
Multivariate hypergeometric category selection calculator: inputs and calculation method.

How to use this calculator

Find the probability of a specified category composition when drawing a fixed number of items without replacement.

  1. Enter Population counts by category, Selected counts by category. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Multivariate hypergeometric category selection explained

Find the probability of a specified category composition when drawing without replacement from a finite population.

Multivariate hypergeometric selection probability0.127
Multivariate hypergeometric selection probability: 0.1270468662 in the worked scenario.

How the calculation works

P(K1=k1,…,Kg=kg)=ΠC(Nj,kj)/C(ΣNj,Σkj).

The selected-count vector determines total draw size. Count all unordered subsets matching each category quota and divide by all subsets of that size. Category counts must refer to disjoint portions of the same finite population.

Inputs and units

N — Population counts by category
Whole population counts for disjoint categories in one finite population. Use comma-separated values in the stated order.
k — Selected counts by category
Requested selected count for each matching category. Their sum defines draw size and each count must not exceed its category population. Use comma-separated values in the stated order.

Limits of this model

2–50 categories, nonnegative integer counts, feasible selections, and a population total up to 100 million. Every subset of the draw size must be equally likely. Ordered draw sequences and unequal selection odds use different models.

Check this example

Population counts by category = 10,8,6; Selected counts by category = 2,1,2.

  • Multivariate hypergeometric selection probability: 0.1270468662
  • Draw size: 5 items
  • Expected selected counts by category: 2.08333333, 1.66666667, 1.25 items

A population of twenty-four items contains categories of sizes ten, eight, and six. Selecting counts 2,1,2 is a five-item composition; item order is irrelevant.

Reading the outputs

The first result is the probability of the whole composition. The expectation vector gives typical category counts across repeated five-item samples, not additional conditions imposed on this event.

Frequently asked questions

Do the selected counts have to sum to an extra draw input?

No. Their sum already defines the draw size.

What if sampling is with replacement?

Use a multinomial model instead.

Can category sizes be zero?

Yes, but that category’s selected count must also be zero.

How do I use the Multivariate hypergeometric category selection calculator?

Enter Population counts by category, Selected counts by category. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Multivariate hypergeometric category selection?

Population counts by category = 10,8,6; Selected counts by category = 2,1,2. Multivariate hypergeometric selection probability: 0.1270468662 Draw size: 5 items Expected selected counts by category: 2.08333333, 1.66666667, 1.25 items A population of twenty-four items contains categories of sizes ten, eight, and six. Selecting counts 2,1,2 is a five-item composition; item order is irrelevant.