Counting Principles
Having established the importance of counting to evaluate the cardinality of finite sets (see Empirical and Equiprobable MeasuresProbability theory does not say how to choose P; two common choices are the empirical measure built from repeated trials and, on a finite sample space, the equiprobable measure P(E) = favourable cases over all cases.Empirical and Equiprobable Measures →), a brief introduction to elementary combinatorics follows (the branch of mathematics dealing with counting problems).
1. The addition principle
If there are distinct objects in the set , distinct objects in , ..., distinct objects in , and if the sets are disjoint, then there is a total of distinct ways of choosing one object from .
Example. 50 students are enrolled in Signals and Systems and 30 in Probability Theory. How many students in total? The answer is , but only if no student is enrolled in both courses (the sets must be disjoint).
2. The multiplication principle
Example (dressing procedure). The wardrobe contains 4 t-shirts, 3 pairs of pants and 2 pairs of shoes. In how many different ways can you dress? The page gives the simple answer as and explains it with a tree: for each choice of shirt there are 2 pants to choose from, and for each choice of t-shirt and pants there are 2 shoes to choose from. Therefore ways of dressing.
Inconsistency in the source (flagged). The text says "3 pairs of pants" but the product written, and the explanation "2 pants to choose from", use 2 pants; with 3 pants the same argument would give . The structure of the argument (product of the number of choices at each stage) is unaffected.
Second case (a woman's wardrobe). Suppose the lady again has 4 t-shirts, 2 pairs of pants and 2 pairs of shoes, but not every shirt matches well with both pants: in the tree some branches are missing. Actually shirt 4 does not match with anything. In this case it is impossible to give a general formula to compute the number of choices.
The multiplication principle (statement)
Suppose a procedure can be broken into successive (ordered) stages (in the dressing example : stage 1 = t-shirt, stage 2 = pants, stage 3 = shoes). Suppose also that the stages satisfy two constraints:
- (A) has outcomes; has outcomes irrespective of the outcome of ; has outcomes irrespective of the outcomes of ; and so on until , which has outcomes irrespective of the outcomes of .
- (B) the composite outcomes are all distinct.
Then the procedure has a total of possible (distinct) outcomes.
Critical examples
Critical example 1. The dressing procedure for the woman does not satisfy constraint (A) but satisfies (B): the multiplication principle does not apply.
Critical example 2. From the group (one man and two women) choose two people for a committee. Clearly there are 3 possible committees: , , . Try the multiplication principle with two stages: = choose one of the two women, = choose one of the two remaining persons. The tree (branches , , , ) satisfies (A), and one might be tempted to say that the number of committees is . But this is wrong: constraint (B) is not satisfied, because and are not distinct as required by (B).
Examples where both constraints hold
Example 1 (car plates). An Italian plate has the form with English alphabet and decimal digits. Each takes values and each takes values; by the multiplication principle the total number of plates is Checking (A) and (B) is trivial here.
Example 2 (cross-country race). 10 runners, 3 prizes (gold, silver, bronze). How many different podiums? For each of the 10 choices of gold winner there are 9 choices of silver winner, and for each choice of gold and silver winners there are 8 choices of bronze winner. (A) and (B) are satisfied, so the number of podiums is .
These counts are systematised in Sampling and Allocation ProblemsCounting problems are modelled either as drawing balls from an urn (sampling) or as placing tokens into cells (allocation), leading to dispositions with and without repetition, permutations and combinations without repetition.Sampling and Allocation Problems →.
Versione ripasso
Addition principle: disjoint sets with objects: ways to choose one object from the union. (50 + 30 = 80 students only if no student is in both courses.)
Multiplication principle: a procedure in ordered stages with
- (A) stage has outcomes irrespective of the previous outcomes,
- (B) the composite outcomes are all distinct,
has outcomes.
Fails if (A) fails (woman's wardrobe: shirt 4 matches nothing) or if (B) fails (committee of 2 from : is wrong, true value , because ).
Applications: plates ; podiums .
Typical mistake: multiplying without checking (A) and (B).