2. Methodical guidelines / Методичні вказівки
This section is self-contained: it collects the counting principles and the basic probability rules needed for the theme, together with the techniques used to solve the tasks in 3classroom.md. For fuller treatment see Lecture 13.
2.1 The two counting principles
- Product rule (multiplication). If a procedure is a sequence of independent steps with choices, the whole procedure has outcomes. (“And / in stages” multiply.)
- Sum rule (addition). If an object comes from one of several disjoint cases with options, the total is . (“Or / separate cases” add.)
Everything below is the product rule applied to a selection of objects from , sorted by two yes/no questions: does order matter? and is repetition allowed?
2.2 Order matters — arrangements and tuples
- With repetition (a tuple / “word”). Each of the positions is filled independently from symbols, so there are outcomes. (A -letter, -symbol code has possibilities.)
- Without repetition (an arrangement, a -permutation). The first position has choices, the next , and so on for factors:
A full arrangement () is a permutation: .
2.3 Order ignored — combinations and multisets
- Without repetition (a combination, a subset). A -element subset of objects; since the orders of one subset are now the same, divide the arrangement count by :
- With repetition (a multiset). Choosing objects from types with repetition allowed — equivalently, distributing identical balls into distinct boxes — is counted by stars and bars: line up stars and bars, so
(Stars and bars, one of the counting tools from L13; the picture is stars split into groups by bars, e.g. puts balls in three boxes.)
The four cases together:

2.4 Classical (Laplace) probability
When a random experiment has a finite set of equally likely outcomes, the probability of an event is
So a probability is a counting problem: count the favourable outcomes (numerator) and all outcomes (denominator), each with the combinatorics of §2.2–2.3. The complement rule is often the shortcut for “at least one”:
2.5 Combining events — independence and conditioning
- Independent events (one does not affect the other, e.g. draws from different boxes): . This extends the product rule to probabilities.
- Conditional probability — the probability of given that happened — is , which rearranges to the multiplication rule . Use it when the population is described in stages (“ are good; of the good, are first grade”).
- Drawing several without replacement is handled either by combinations — — or by the multiplication rule with shrinking counts: for two whites in a row.
2.6 Working checklist
- Counting. Ask order? and repetition? and read the formula off §2.3’s chart: , , , or . Independent stages (colours, ranks) multiply.
- Probability. For equally-likely outcomes, count favourable over total. Draws from different sources multiply (); several from the same source without replacement use combinations or shrinking fractions.
- “At least one”. Take the complement: .
- Staged populations. Multiply along the branch: .