PROBABILITY MODEL CHECKS

Checking probabilities of grouped selection outcomes

When you draw items without replacement, the equally likely things are the individual subsets. A composition label such as "one marked item" usually covers several subsets, so its probability depends on how many.

Two kinds of outcome in one draw

Picture four distinct tokens, two marked and two plain, and a draw of two tokens chosen so that every pair is equally likely. The sample space of pairs has a definite size, and each pair has the same probability. Yet people tend to summarize the draw by composition: no marked token, one marked token, or two marked tokens. Those three labels are descriptions of pairs, and several pairs can share a description. Treating the three labels as equally likely quietly switches the model from "choose a pair uniformly" to "choose a composition uniformly and then find a matching pair". Both are legitimate mechanisms, but they give different probabilities, and the problem must say which one is in force.

Counting the six pairs

The combination calculator confirms that choosing 2 items from 4 gives C(4, 2) = 6 subsets. List the tokens as M1, M2, P1 and P2. The pair M1 and M2 has two marked tokens. The pair P1 and P2 has none. The remaining four pairs, M1P1, M1P2, M2P1 and M2P2, each have exactly one marked token. So the composition counts are 1, 4 and 1, which total 6. Dividing by 6 gives probabilities of 1/6 for no marked token, 4/6 for one marked token and 1/6 for two. The labels are far from equally likely: the middle composition is four times as probable as either end.

Reading the hypergeometric outputs

The hypergeometric calculator does this counting through the formula C(K, k) × C(N − K, n − k) / C(N, n). With N = 4 items, K = 2 marked, a draw of n = 2 and k = 1 marked item in the draw, the numerator is C(2, 1) × C(2, 1) = 4 and the denominator is 6, so the probability is 0.6667. For k = 0 the numerator is C(2, 0) × C(2, 2) = 1 and the result is 0.1667. The numerator is the number of subsets sharing the label, which is the whole point of this page. The denominator is the number of equally likely subsets. Every hypergeometric probability is a ratio of those two counts.

A larger selection with N = 10

Increase the population to 10 items with 4 marked, and draw 3. There are C(10, 3) = 120 equally likely subsets. Zero marked items can occur in C(6, 3) = 20 of them, which gives 1/6. One marked item occurs in 4 × C(6, 2) = 60 subsets, giving 0.5. Two marked items occur in C(4, 2) × 6 = 36 subsets, giving 0.3. Three marked items occur in 4 subsets, giving about 0.0333. The counts 20, 60, 36 and 4 add to 120, so the probabilities total 1. A uniform choice among four composition labels would assign 0.25 to each, which is far from what the subset count says.

Why order and identity matter

The subset argument requires that the items be treated as distinct objects, even if they look alike when you ignore the mark. Two marked tokens that cannot be told apart are still two separate tokens in the physical draw, and each can be selected independently of the other. Collapsing them into one "marked" category before counting is what produces the incorrect uniform-label answer. The combination calculator counts unordered subsets, which fits a draw where only the group matters. If the order of selection mattered, the sample space would be larger and each ordered outcome would be equally likely instead, but the composition probabilities would come out the same.

Choosing the mechanism deliberately

Some real procedures do pick a category first. A survey designer might decide to sample one person from each of several groups, or a lottery might select a prize tier before choosing a winner within it. In those designs the category probabilities are set by the design and are not derived from subset counts. Ask how the selection is actually made: are the objects drawn uniformly from the whole pool, or does a prior step choose the label? The probability model should be written down in words before any calculator is opened. This page covers the first mechanism, and uses it to show why the second cannot be assumed by default.

Checking your work

Three habits help. First, count the subsets and confirm they add up to C(N, n). Second, check that the composition probabilities sum to 1; in the four-token case, 1/6 + 4/6 + 1/6 does. Third, test the label count against a direct listing for small cases, since four tokens are easy to enumerate by hand. If a hypergeometric result disagrees with a hand count, the usual cause is a swapped role between K and N − K, or a k that counts the unmarked items instead of the marked ones. The calculator reports the probability of exactly k marked items in the draw, so decide which kind is "marked" before entering anything.

Why unequal composition probabilities are the norm

Equal composition probabilities are the exception, and they arise only when the subset counts happen to match. In a pool of N items with K marked, the number of subsets with k marked items is C(K, k) × C(N − K, n − k), and this product is almost never the same for different k. It tends to be largest near the composition that mirrors the pool, so with 4 of 10 items marked and 3 drawn, one marked item (60 subsets) is more common than none (20) or three (4). This is why a draw that looks balanced at the level of labels can hide very uneven subset counts. Quoting only label frequencies from a few trials can also mislead, since a rare composition may not appear at all in a short run.

Limits of the finite-selection model

The examples assume a fixed finite pool, selection without replacement, and equal chances for every subset. If items have unequal selection weights, the subset counts no longer translate into probabilities. If items are returned between draws, the binomial model replaces the hypergeometric one. The figures here describe abstract tokens and do not stand for any survey, quality inspection or game. They illustrate counting under a stated rule, and the rule is a modeling choice that has to be justified separately from the arithmetic. State the rule beside every probability you record, so a later reader can tell whether subsets or labels were treated as equally likely.

Reproduce the checks

All two-item subsets

Open the Combination calculator and enter:

Total items n
4
Items selected r
2

Expected output:

Combinations

6

The six underlying subsets are equally likely under this model.

One marked item

Open the Hypergeometric Calculator and enter:

Population size
4
Successes in population
2
Number of trials
2
Successes / event count
1

Expected output:

Pmf

0.6666666666666666

Four subsets share this label.

No marked item

Open the Hypergeometric Calculator and enter:

Population size
4
Successes in population
2
Number of trials
2
Successes / event count
0

Expected output:

Pmf

0.16666666666666666

Only one subset has this composition.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Sources

Related tasks