Notes
All notes

Permutations, Combinations and Probability (Aptitude #10)

Counting is the engine behind probability. The two questions are always: does order matter (permutation) or not (combination), and is the selection with or without replacement. This post covers the formulas and every standard variation.

Fundamental principle of counting

If one event can happen in \(m\) ways and a following event in \(n\) ways, together they happen in \(m \times n\) ways.

Q. A menu has 3 starters and 4 mains. How many two-course meals? Solution. \(3 \times 4 = 12\).

Permutations (order matters)

\[ {}^nP_r = \frac{n!}{(n-r)!} \]

Q. In how many ways can 3 posts be filled from 7 candidates? Solution. \({}^7P_3 = \frac{7!}{4!} = 7 \times 6 \times 5 = 210\).

Permutations with repetition: arranging \(n\) items where one type repeats \(p\) times, another \(q\) times:

\[ \text{Ways} = \frac{n!}{p!\,q!\,\cdots} \]

Q. Number of distinct arrangements of “BANANA”. Solution. 6 letters, A appears 3 times, N twice: \(\frac{6!}{3!\,2!} = 60\).

Circular permutations: \(n\) people around a table in \((n-1)!\) ways (clockwise/counter-clockwise the same: \(\frac{(n-1)!}{2}\)).

Q. In how many ways can 5 people sit around a round table? Solution. \((5-1)! = 24\).

Combinations (order does not matter)

\[ {}^nC_r = \frac{n!}{r!\,(n-r)!}, \qquad {}^nC_r = {}^nC_{n-r}, \qquad {}^nC_0 = {}^nC_n = 1 \]

Q. In how many ways can a committee of 3 be chosen from 10? Solution. \({}^{10}C_3 = \frac{10 \times 9 \times 8}{3 \times 2 \times 1} = 120\).

Q. Choose 2 boys from 5 and 1 girl from 4. Solution. \({}^5C_2 \times {}^4C_1 = 10 \times 4 = 40\).

Standard counting variations

Variation 1 — at least / at most

Q. From 5 men and 4 women, form a committee of 4 with at least 2 women. How many ways? Solution. Cases: 2W+2M, 3W+1M, 4W. \(\binom42\binom52 + \binom43\binom51 + \binom44 = 6 \times 10 + 4 \times 5 + 1 = 60 + 20 + 1 = 81\).

Variation 2 — arranged in a row with a restriction

Q. In how many ways can 5 people be arranged so two particular people are always together? Solution. Treat the pair as one block: \(4! \times 2! = 24 \times 2 = 48\).

Variation 3 — vowels together / apart

Q. Arrange “TRIANGLE” so the vowels are always together. Solution. Vowels I, A, E as one block. Blocks: T, R, N, G, L + block = 6 units; \(\frac{6!}{}\) arrangements \(= 720\); vowel block internal \(= 3! = 6\). Total \(= 720 \times 6 = 4320\).

Probability basics

\[ P(E) = \frac{\text{favourable outcomes}}{\text{total outcomes}}, \qquad 0 \le P(E) \le 1, \qquad P(\bar E) = 1 - P(E) \]

Variation 4 — single draw

Q. A card is drawn from 52. P(a king or a heart)? Solution. \(P(K) = \frac4{52}\), \(P(\heartsuit) = \frac{13}{52}\), \(P(K \cap \heartsuit) = \frac1{52}\). So \(\frac4{52} + \frac{13}{52} - \frac1{52} = \frac{16}{52} = \frac4{13}\).

Variation 5 — two draws without replacement

Q. Two balls are drawn from 5 red and 3 blue without replacement. P(both red)? Solution. \(\frac{5}{8} \times \frac{4}{7} = \frac{20}{56} = \frac{5}{14}\).

Variation 6 — independent events

Q. A hits a target with probability 0.7, B with 0.6. P(at least one hits)? Solution. \(1 - (0.3 \times 0.4) = 1 - 0.12 = 0.88\).

Variation 7 — at least one from a set

Q. A box has 4 defective and 6 good bulbs. Two are drawn. P(at least one defective)? Solution. \(1 - P(\text{both good}) = 1 - \frac{6}{10} \times \frac{5}{9} = 1 - \frac{30}{90} = \frac23\).

Variation 8 — dice and coins

Q. Two dice are rolled. P(sum \(= 8\))? Solution. Favorable pairs: (2,6),(3,5),(4,4),(5,3),(6,2) = 5 of 36. \(P = \frac{5}{36}\).

\begin{tikzpicture}[font=\rmfamily, >=stealth,
  g/.style={draw, thick, minimum size=0.5cm, font=\scriptsize}]
  \foreach \i in {0,...,5} \foreach \j in {0,...,5} { \node[g, fill=blue!6] at (\i*0.55,\j*0.55) {}; }
  \foreach \a/\b in {1/5,2/4,3/3,4/2,5/1} { \node[g, fill=orange!45] at (\a*0.55,\b*0.55) {}; }
  \node[font=\rmfamily\small, text=black!60, anchor=north] at (1.4,-0.3) {36 outcomes; 5 give sum 8};
\end{tikzpicture}

Shortcuts worth memorising

Practice

QQuestionIn how many ways can the letters of “LEVEL” be arranged?

[!solution] L twice, E twice, V once: \(\frac{5!}{2!\,2!} = **30\)**.

QQuestionA committee of 4 is chosen from 6 men and 4 women with no restriction. How many ways? With exactly 2 women?

[!solution] Total \({}^{10}C_4 = 210\). Exactly 2 women: \(\binom42\binom62 = 6 \times 15 = **90\)**.

QQuestionA bag has 3 red and 5 black balls. Two are drawn. P(one of each colour)?

[!solution] \(\frac{\binom31\binom51}{\binom82} = \frac{15}{28}\).

QQuestionTwo cards are drawn from 52 without replacement. P(both aces)?

[!solution] \(\frac{4}{52} \times \frac{3}{51} = \frac{12}{2652} = \frac{1}{221}\).

Pitfalls

QQuestionSelf-check

When do you use \({}^nC_r\) instead of \({}^nP_r\)? How do you compute “at least one” probabilities?

ASolution

Use combinations when the selection order does not matter and permutations when it does. “At least one” is easiest as \(1 - P(\text{none})\), which avoids summing many cases.

Next: Mensuration and Geometry (Aptitude #11) — areas, volumes, and triangle theorems.