Arrangements and selections
Counting arrangements 5.01
- Permutation: an ordered arrangement. The number of ordered selections of objects from distinct objects is .
- Combination: an unordered selection. The number of ways to choose objects from distinct objects is .
- distinct objects can be arranged in a line in ways, and around a circle in ways (rotations count as the same).
- objects of which are identical of one kind, of another, … can be arranged in ways.
- Objects that must be together: treat them as one block, arrange the blocks, then multiply by the arrangements within the block.
- Objects that must be separated: arrange the others first, then place the separated objects in the gaps between them; or subtract the 'together' count from the total.
- Decide first whether order matters. If it does, count arrangements; if not, count selections.
- Break a restricted problem into cases or stages and multiply the numbers of choices at each stage; add the counts for mutually exclusive cases.
- Dividing by removes the orderings of identical objects that would otherwise be counted as different.
- A sanity check: the number of arrangements must be a whole number, and smaller when restrictions are added.
Probability from counting 5.01
- When all outcomes are equally likely, .
- Selecting items from a group of of one type and of another: .
- Count numerator and denominator in the same way: both ordered or both unordered.
- For 'at least one', use .
- A random arrangement makes every arrangement equally likely, so probabilities about arrangements are ratios of counts.
- Probability calculations of this kind underlie the binomial coefficients in and the exact tests used later in the course.
Worked examples
Worked example
(a) How many different arrangements are there of the letters of STATISTICS?
(b) One arrangement is chosen at random.
Find the probability that the three S's are together.
Show worked solution
(a) 10 letters with S three times, T three times and I twice:
(b) Treat SSS as one block: 8 items with T three times and I twice give:
arrangements.
Worked example
A committee of 4 is chosen at random from 6 men and 5 women.
Find the probability that it contains exactly 2 women.
Show worked solution
Discrete random variables
Probability distributions, expectation and variance 5.02
- Discrete random variable: a variable taking values from a countable set, each with a probability, with .
- Expectation (mean): , the long-run average value.
- Variance: .
- for any function ; in particular .
- Discrete uniform on : and .
- The standard deviation is , in the same units as .
- If the distribution contains an unknown constant, find it first from .
- Tabulate , , and ; sum the last two columns for and .
- in general. Their difference is exactly the variance, which is never negative.
- need not be a value can take: on the sheet it is 2.7 for a variable taking whole-number values.
Worked example
Worked example
for .
Find , , , and the mean and variance of .
Show worked solution
so:
so:
Then:
and:
The geometric distribution
The geometric distribution 5.02
- Geometric distribution : the number of the trial on which the first success occurs, in independent trials each with success probability .
- for
- and .
- and .
- For tail probabilities use rather than summing terms: the first trials must all fail.
- To find the least with , solve with logarithms, remembering that reverses the inequality.
- The conditions are those of the binomial except that the number of trials is not fixed: independence and a constant .
- Read the definition carefully. Here counts the trial of the first success, including it, so .
Worked example
Worked example
A fair die is rolled until a six appears.
Find the probability that the first six is on the fourth roll, and the probability that more than 10 rolls are needed.
Show worked solution
.
The Poisson distribution
The Poisson distribution 5.02
- Poisson distribution : the number of events in a fixed interval of time or space, when events occur singly, independently and at a constant average rate.
- for
- .
- If the rate is per unit, the number in an interval of length is .
- If and are independent, .
- Scale to the interval in the question before calculating.
- Use the calculator's Poisson cumulative function: and .
- To test , find the probability of the observed value or one more extreme under and compare it with the significance level.
- A sample mean and variance that are close is evidence that a Poisson model is suitable; a variance much larger than the mean suggests clustering, so the events are not independent.
- In context, justify each condition: 'singly' (no two at the same instant), 'independently', and 'at a constant rate'.
The Poisson approximation to the binomial 5.02
- If with large and small, then .
- The approximation works because the binomial variance is close to its mean when is small.
- There is no continuity correction: both distributions are discrete.
- With modern calculators the exact binomial is usually available. Use the approximation when the question asks for it or when is too large for the calculator.
Worked examples
Worked example
Calls reach a help desk at an average rate of 4 per hour.
Find the probability of exactly 6 calls in an hour, and of at least 2 calls in half an hour.
Show worked solution
For one hour, :
For half an hour, :
Worked example
A machine has averaged 5 faults a week.
In one week after a service there are 10 faults.
Test at the 5% level whether the rate has increased.
Show worked solution
, , with under .
Reject : there is evidence at the 5% level that the fault rate has increased. (The critical region is , since:
)
Worked example
1.5% of components are faulty.
Use a suitable approximation to find the probability that a batch of 200 contains at most 2 faulty components.
Show worked solution
with large and small, so .
(The exact binomial value is 0.421.)
Linear combinations of random variables
Linear functions and combinations 5.04
- and .
- always.
- If and are independent, .
- For independent observations of : , but .
- Decide first whether the question describes separate observations added together () or one observation multiplied ().
- For a difference, : variances add even when the variables are subtracted.
- The variance results need independence; the expectation results do not.
- A sum of independent normal variables is normal, and a sum of independent Poisson variables is Poisson. Other families do not, in general, keep their shape.
Worked example
Worked example
and are independent with , , , .
Find and .
Then, for independent and , find .
Show worked solution
the variances add even though is subtracted.
, so:
Per disputationem veritatem quaerimus