Maths4UBETA

Maths4U · Learning together

Sampling without replacement and stopping positions

← Distributions from finite experimentsConditional models and finite-stage experiments →

Notes

Objective

Construct distributions from physical subsets and finite stopping rules without continuing a stopped path.

Before you start

Use exact fractions, mutually exclusive outcomes and conditional probabilities. Selection models also use combinations from the preceding chapter. This chapter covers finite discrete distributions; named binomial and geometric models follow in the next chapter.

Key ideas

Sampling changes the available objects

Without replacement, a later draw depends on what has already been removed. For a uniformly selected unordered subset, every physical subset of the stated size has equal probability. Equal labels do not merge the underlying objects before probabilities are counted.

Count every feasible composition

If a population contains R marked and B unmarked objects and n are selected, the probability of r marked objects is obtained by choosing r of the marked objects and n−r of the others, then dividing by all n-subsets. Include only feasible integer values of r.

P(X=r)=(Rr)(Bn−r)(R+Bn).\mathrm P(X=r)=\frac{\binom Rr\binom B{n-r}}{\binom{R+B}n}.

This is a counting construction; no new named-distribution formula is required. A sequential tree gives the same result if all orders producing a composition are included.

A stopping variable records a position

If X is the draw on which the first marked object appears, X counts draws, not preceding failures. If X is the position of the last marked object, all marked objects must have appeared by that position. Find the minimum and maximum possible positions before calculating.

The first marked draw has positions one to four and a decreasing probability table

Do not continue a terminal path

Multiply probabilities along a path only until its stopping condition is met. Add all terminal paths with the same draw count. In a finite bag the process must stop by a definite final draw; check that the terminal probabilities sum to one.

Conditioning changes the support

Given that the stopping position lies in a range, discard positions outside it and divide the retained probabilities by their sum. The conditional mean and variance use this new normalised table.

Method

  1. Define the numerical random variable and list its possible values.
  2. Choose elementary outcomes and justify their probabilities.
  3. Combine every route giving the same value; check non-negative probabilities summing to one.
  4. Find the weighted first and second moments, then subtract the square of the mean.
  5. For a condition, restrict and renormalise the table before recalculating its moments.
  6. Interpret the result in its units and check any parameter against the original model.

Common mistakes

  • A uniform physical subset is not a uniform visible pattern.
  • A stopping position includes the successful draw.
  • Do not replace changing denominators by independent trial probabilities.
  • Only the original possible positions can remain after conditioning.

Worked examples

The full table counts marked subsets

A bag contains 2 marked and 3 unmarked counters. Select two physical counters uniformly without replacement. X is the number marked. Find P(X=0)\mathrm P(X=0), P(X=1)\mathrm P(X=1), P(X=2)\mathrm P(X=2), E(X)\mathrm E(X) and Var⁡(X)\operatorname{Var}(X).

Follow the solution

List unordered subsets of physical counters, each with probability 110\frac{1}{10}. Equal labels retain their physical multiplicities. Group subsets by their numerical result, then calculate the moments.

xxP(X=x)\mathrm P(X=x)
00310\frac{3}{10}
1135\frac{3}{5}
22110\frac{1}{10}
xxxp(x)xp(x)x2p(x)x^2p(x)
000000
1135\frac{3}{5}35\frac{3}{5}
2215\frac{1}{5}25\frac{2}{5}
E(X)=45,E(X2)=1,Var⁡(X)=1−(45)2=925.\begin{aligned}\mathrm E(X)&=\frac{4}{5},\\\mathrm E(X^2)&=1,\\\operatorname{Var}(X)&=1-(\frac{4}{5})^2\\&=\frac{9}{25}.\end{aligned}

Complete answers

Probability of 0 marked: 310\frac{3}{10}.

Probability of 1 marked: 35\frac{3}{5}.

Probability of 2 marked: 110\frac{1}{10}.

Expected value: 45\frac{4}{5}.

Variance: 925\frac{9}{25}.

Equal labels still belong to different physical counters

Four different physical counters are labelled 1, 2, 2, 5. Select two uniformly without replacement. X is the sum of their labels. Find the number of physical subsets, P(X=4)\mathrm P(X=4), E(X)\mathrm E(X) and Var⁡(X)\operatorname{Var}(X).

Follow the solution

List unordered subsets of physical counters, each with probability 16\frac{1}{6}. Equal labels retain their physical multiplicities. Group subsets by their numerical result, then calculate the moments.

xxP(X=x)\mathrm P(X=x)
3313\frac{1}{3}
4416\frac{1}{6}
6616\frac{1}{6}
7713\frac{1}{3}
xxxp(x)xp(x)x2p(x)x^2p(x)
331133
4423\frac{2}{3}83\frac{8}{3}
661166
7773\frac{7}{3}493\frac{49}{3}
E(X)=5,E(X2)=28,Var⁡(X)=28−(5)2=3.\begin{aligned}\mathrm E(X)&=5,\\\mathrm E(X^2)&=28,\\\operatorname{Var}(X)&=28-(5)^2\\&=3.\end{aligned}

Complete answers

Physical two-counter subsets: 66.

Probability of the stated sum: 16\frac{1}{6}.

Expected value: 55.

Variance: 33.

The first marked draw includes the success

A bag contains 2 marked and 4 unmarked counters. Draw without replacement until the first marked counter appears. X is its draw position.

Find the largest possible X, P(X=3)\mathrm P(X=3), E(X)\mathrm E(X) and Var⁡(X)\operatorname{Var}(X).

Follow the solution

In a random ordering, every subset of marked positions is equally likely. Take its minimum for the first marked draw or its maximum for the last. This gives the terminal distribution without continuing a stopped path.

xxP(X=x)\mathrm P(X=x)
1113\frac{1}{3}
22415\frac{4}{15}
3315\frac{1}{5}
44215\frac{2}{15}
55115\frac{1}{15}
xxxp(x)xp(x)x2p(x)x^2p(x)
1113\frac{1}{3}13\frac{1}{3}
22815\frac{8}{15}1615\frac{16}{15}
3335\frac{3}{5}95\frac{9}{5}
44815\frac{8}{15}3215\frac{32}{15}
5513\frac{1}{3}53\frac{5}{3}
E(X)=73,E(X2)=7,Var⁡(X)=7−(73)2=149.\begin{aligned}\mathrm E(X)&=\frac{7}{3},\\\mathrm E(X^2)&=7,\\\operatorname{Var}(X)&=7-(\frac{7}{3})^2\\&=\frac{14}{9}.\end{aligned}

Complete answers

Largest possible position: 55.

Probability of position three: 15\frac{1}{5}.

Expected value: 73\frac{7}{3}.

Variance: 149\frac{14}{9}.

The final marked position has a finite bound

A bag contains 2 marked and 3 unmarked counters. Draw without replacement until the last marked counter appears. X is its draw position.

Find P(X=5)\mathrm P(X=5), E(X)\mathrm E(X), Var⁡(X)\operatorname{Var}(X), and P(X=5∣X≥4)\mathrm P(X=5 \mid X\ge 4).

Follow the solution

In a random ordering, every subset of marked positions is equally likely. Take its minimum for the first marked draw or its maximum for the last. This gives the terminal distribution without continuing a stopped path.

xxP(X=x)\mathrm P(X=x)
22110\frac{1}{10}
3315\frac{1}{5}
44310\frac{3}{10}
5525\frac{2}{5}
xxxp(x)xp(x)x2p(x)x^2p(x)
2215\frac{1}{5}25\frac{2}{5}
3335\frac{3}{5}95\frac{9}{5}
4465\frac{6}{5}245\frac{24}{5}
55221010
E(X)=4,E(X2)=17,Var⁡(X)=17−(4)2=1.\begin{aligned}\mathrm E(X)&=4,\\\mathrm E(X^2)&=17,\\\operatorname{Var}(X)&=17-(4)^2\\&=1.\end{aligned}

Complete answers

Probability of the final possible position: 25\frac{2}{5}.

Expected value: 44.

Variance: 11.

Final position given the last two positions: 47\frac{4}{7}.

Practise this topic