CalcWorldHub
Probability · CalcWorldHub

At Least One Marked Item: Sample Without Replacement

For a finite population, the chance of drawing at least one marked item without replacement is one minus the chance of drawing none. From 10 items with 3 marked, a random sample of 2 has probability 1 − C(7,2)/C(10,2) = 8/15, or about 53.33%.

Open calculator
A finite collection has a small set of marked items, with a sample drawn without replacement.

Share this article

At least one marked item is one minus the combinations of unmarked samples divided by all samples.
Count all samples, subtract the samples containing no marked items.

Define the population and sample

The calculator asks for Population size N, Marked items K, and Sample size n. N is the total number of distinct items, K is how many meet the marked condition, and n is the number selected uniformly without replacement. The valid integer ranges are N≥1, 0≤K≤N, and 0≤n≤N.

Decide what counts as marked before sampling and make sure the population is well defined. Examples include defective units in a lot, winning tickets in a finite draw, or records with a specified flag. The calculation assumes every sample of size n is equally likely; biased selection or clustering requires a different probability model.

Use the complement of no marked items

It is often easier to calculate the complement. There are C(N,n) possible samples and C(N−K,n) samples containing no marked item, so P(at least one) = 1 − C(N−K,n)/C(N,n). If n>N−K, drawing no marked items is impossible and the probability is one.

Combinations count unordered groups, so the order of drawing does not matter. The fraction remains the correct without-replacement probability even though individual draws are dependent: after an item is selected, it is no longer available. Multiplying the first-draw miss chance repeatedly would incorrectly treat the population as replenished.

Worked examples

Three marked items among ten

Inputs: N = 10; K = 3; sample n = 2; without replacement

Calculation: 1 − C(10−3,2)/C(10,2) = 1 − 21/45 = 24/45

P(at least one marked) = 8/15 ≈ 0.533333, or 53.33%.

Five marked items among twenty

Inputs: N = 20; K = 5; sample n = 4; without replacement

Calculation: 1 − C(15,4)/C(20,4) = 1 − 1365/4845 = 3480/4845

P(at least one marked) = 232/323 ≈ 0.718266, or 71.83%.

The sample space divides into groups with no marked items and groups with at least one marked item.
The two complementary outcomes cover every sample.

Check how sample size changes the result

Holding N and K fixed, increasing n cannot reduce the chance of finding at least one marked item. At n=0 the chance is zero. If K=0 it is zero for every sample; if K>0 and n=N, the full population is examined and the chance is one. These boundary checks are useful for detecting a swapped count.

The probability is not simply nK/N or n times the marked fraction; that approximation can exceed one and ignores finite sampling. For a small sample relative to a large population, a with-replacement approximation may be close, but the calculator uses the exact finite-population complement. Do not substitute a binomial formula when depletion is meaningful.

For very large counts, the calculator uses log-gamma identities rather than constructing enormous factorials. The probability still follows the same ratio. For an audit sample, specify whether every unit has the same selection chance; convenience samples do not satisfy the simple random sampling assumption merely because the headcount is correct.

Enter valid integer counts

The calculator requires safe integer counts. Enter counts, not percentages or decimal estimates. It rejects N below one, K outside 0…N, and n outside 0…N. For extremely large populations, floating-point log-combination arithmetic may introduce small numerical error even when the conceptual probability is well defined.

If the marked count is unknown, this calculator cannot infer it from a defect rate; use a justified estimate for K or choose a model that directly accepts a probability. For a stratified or nonuniform sample, split the problem by strata or simulate the sampling design. The displayed result is conditional on the inputs and the equal-likelihood sample assumption.

Use the estimate in a sampling decision

A useful spot check is to calculate the probability of zero marked selections separately for small counts and subtract it from one. For N=10, K=3, n=2, there are 45 possible pairs and 21 all-unmarked pairs, leaving 24/45 with at least one marked item. This exact count is easy to inspect and confirms the complement direction.

Report the population definition, the source of K, sample size, and whether selection was random and without replacement. Probability is not a prediction that any particular sample must contain a marked item. If the result informs a quality or safety decision, apply the governing sampling plan and acceptance rules rather than treating this single probability as a complete inspection standard.

Sources and further reading

Share this article

Browse all articles · Calculator: At least one marked item probability calculator