Salta al contenuto
Note per Studenti Counting Principles Report

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 r1r_1 distinct objects in the set S1\mathcal S_1, r2r_2 distinct objects in S2\mathcal S_2, ..., rmr_m distinct objects in Sm\mathcal S_m, and if the sets S1,S2,…,Sm\mathcal S_1,\mathcal S_2,\dots,\mathcal S_m are disjoint, then there is a total of r1+r2+⋯+rmr_1+r_2+\dots+r_m distinct ways of choosing one object from S1∪S2∪⋯∪Sm\mathcal S_1\cup\mathcal S_2\cup\dots\cup\mathcal S_m.

Example. 50 students are enrolled in Signals and Systems and 30 in Probability Theory. How many students in total? The answer is 8080, 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 4×2×2=164\times2\times2=16 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 4×2×24\times2\times2 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 4×3×2=244\times3\times2=24. 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 E\mathcal E can be broken into mm successive (ordered) stages E1,E2,…,Em\mathcal E_1,\mathcal E_2,\dots,\mathcal E_m (in the dressing example m=3m=3: stage 1 = t-shirt, stage 2 = pants, stage 3 = shoes). Suppose also that the mm stages satisfy two constraints:

  • (A) E1\mathcal E_1 has n1n_1 outcomes; E2\mathcal E_2 has n2n_2 outcomes irrespective of the outcome of E1\mathcal E_1; E3\mathcal E_3 has n3n_3 outcomes irrespective of the outcomes of E1,E2\mathcal E_1,\mathcal E_2; and so on until Em\mathcal E_m, which has nmn_m outcomes irrespective of the outcomes of E1,…,Em−1\mathcal E_1,\dots,\mathcal E_{m-1}.
  • (B) the composite outcomes (E1,E2,…,Em)(\mathcal E_1,\mathcal E_2,\dots,\mathcal E_m) are all distinct.

Then the procedure E\mathcal E has a total of n1×n2×⋯×nmn_1\times n_2\times\dots\times n_m 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 {M,W1,W2}\{M,W_1,W_2\} (one man and two women) choose two people for a committee. Clearly there are 3 possible committees: {M,W1}\{M,W_1\}, {M,W2}\{M,W_2\}, {W1,W2}\{W_1,W_2\}. Try the multiplication principle with two stages: E1\mathcal E_1 = choose one of the two women, E2\mathcal E_2 = choose one of the two remaining persons. The tree (branches W1→MW_1\to M, W1→W2W_1\to W_2, W2→MW_2\to M, W2→W1W_2\to W_1) satisfies (A), and one might be tempted to say that the number of committees is 2×2=42\times2=4. But this is wrong: constraint (B) is not satisfied, because {W1,W2}\{W_1,W_2\} and {W2,W1}\{W_2,W_1\} are not distinct as required by (B).

Examples where both constraints hold

Example 1 (car plates). An Italian plate has the form αα nnn αα\alpha\alpha\, nnn\, \alpha\alpha with α∈{\alpha\in\{English alphabet}\} and n∈{n\in\{decimal digits}\}. Each α\alpha takes 2626 values and each nn takes 1010 values; by the multiplication principle the total number of plates is 264⋅103.26^4\cdot10^3. 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 10⋅9⋅810\cdot9\cdot8.

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 S1,…,Sm\mathcal S_1,\dots,\mathcal S_m with r1,…,rmr_1,\dots,r_m objects: r1+⋯+rmr_1+\dots+r_m 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 mm ordered stages with

    • (A) stage ii has nin_i outcomes irrespective of the previous outcomes,
    • (B) the composite outcomes (E1,…,Em)(\mathcal E_1,\dots,\mathcal E_m) are all distinct,

    has n1×n2×⋯×nmn_1\times n_2\times\dots\times n_m outcomes.

  • Fails if (A) fails (woman's wardrobe: shirt 4 matches nothing) or if (B) fails (committee of 2 from {M,W1,W2}\{M,W_1,W_2\}: 2×2=42\times2=4 is wrong, true value 33, because {W1,W2}={W2,W1}\{W_1,W_2\}=\{W_2,W_1\}).

  • Applications: plates 264⋅10326^4\cdot10^3; podiums 10⋅9⋅810\cdot9\cdot8.

  • Typical mistake: multiplying without checking (A) and (B).

Teoria collegata