Raw

Practical Work 6 — Combinatorics and Probability

Sixth practical class of Computer Discrete Mathematics. Working by hand, you count the outcomes of a choice (arrangements, combinations, multisets) and use those counts to find probabilities — of independent draws, of conditional events, and of “at least one” via the complement.

At a glance

Topic The two counting principles; arrangements P(n,k)P(n,k) and tuples nkn^k; combinations C(n,k)C(n,k) and multisets; classical (Laplace) probability; independence, conditional probability, and the complement rule
Prerequisite lectures L13 — Probabilities (counting and combinatorics, classical probability, conditional probability, independence)
Mode In-class problem solving — pen and paper, no computer
Deliverable Worked solutions to the tasks in 3classroom.md

Contents

# Part File
1 Objective 1purpose.md
2 Methodical guidelines (self-contained theory) 2method.md
3 Classroom tasks with solutions 3classroom.md
6 Control questions 6questions.md

Conventions

  • Language — all work is written in English.
  • By hand. Set up each count or probability from a formula, show the substitution, and give the number; leave very large results as a product and its value.
  • Notation is fixed and self-contained. n!n! is the factorial; P(n,k)=n!/(nk)!P(n,k)=n!/(n-k)! is the number of arrangements (kk-permutations); C(n,k)=(nk)C(n,k)=\binom{n}{k} is the number of combinations; P(A)P(A) (upright, with an event inside) is a probability. All are defined in 2method.md.
  • Probabilities are given as an exact fraction and a decimal (e.g. 190.111\tfrac{1}{9}\approx0.111).
  • Every task has a full solution. 3classroom.md gives each task together with a complete worked answer.

Summary

Combinatorics answers how many? and probability answers how likely? — and the second is built on the first. Every count reduces to two ideas: multiply choices made in sequence (the product rule) and decide whether order matters and whether repetition is allowed, which selects one of four formulas — arrangements P(n,k)P(n,k), tuples nkn^k, combinations C(n,k)C(n,k), or multisets C(n+k1,k)C(n{+}k{-}1,k). For equally-likely outcomes, probability is just counting: favourable over total. Layer on three rules — the product rule for independent trials, conditional probability when one event informs another, and the complement (P(A)=1P(A)P(A)=1-P(\overline A)) for “at least one” — and the nine tasks of this class are all within reach.

Practical/Practical6/main.md · 2.8 KB · updated 2026-08-01 20:19