Counting
Determine the number of possible outcomes without listing every outcome.
Notes for UPSC Principal & Vice-Principal examinations only.
Separate arrangement from selection, define the sample space, and preserve restrictions from the first step.
Determine the number of possible outcomes without listing every outcome.
An arrangement where order or position matters.
A selection where the chosen group matters but internal order does not.
A number from \(0\) to \(1\) measuring the chance of an event.
If a process has successive stages with \(m_1,m_2,\ldots,m_k\) choices:
Use when every complete outcome requires one choice from each stage.
If mutually exclusive alternatives have \(m_1,m_2,\ldots,m_k\) outcomes:
If alternatives overlap, subtract the overlap.
Adding without subtracting intersection double-counts shared outcomes.
| Situation | Formula | Interpretation |
|---|---|---|
| Arrange all \(n\) distinct objects | \(n!\) | \(n\) choices, then \(n-1\), continuing to \(1\). |
| Arrange \(r\) from \(n\) distinct objects | \({}^{n}P_r=\frac{n!}{(n-r)!}\) | Selection and order occur together. |
| Repetition allowed, \(r\) positions | \(n^r\) | Each position has \(n\) independent choices. |
| Identical objects: groups \(p,q,\ldots\) | \(\frac{n!}{p!q!\cdots}\) | Divide arrangements indistinguishable within each identical group. |
| Circular arrangement, rotations identical | \((n-1)!\) | Fix one object to remove rotational duplication. |
| Necklace, reflection also identical | \(\frac{(n-1)!}{2}\) | Valid for distinct beads with \(n\gt2\). |
Arrange \(5\) different files on a shelf.
There are \(120\) orders.
Select a president, secretary and treasurer from \(8\) people.
Posts are distinct, so order matters.
Distinct arrangements of LEVEL:
L and E each repeat twice.
Selecting \(r\) included objects is equivalent to selecting \(n-r\) excluded objects.
First select the \(r\) objects, then arrange them.
Number of all subsets of an \(n\)-element set.
Remove the empty set.
| Wording | Counting translation | Preferred strategy |
|---|---|---|
| Exactly \(k\) from a group | Choose \(k\) from that group and the remainder from others. | Multiply combination factors. |
| At least \(k\) | Sum cases \(k,k+1,\ldots\) | Or use complement when excluded cases are fewer. |
| At most \(k\) | Sum cases \(0,1,\ldots,k\) | Check whether zero is allowed. |
| Particular person must be included | Fix that person; select remaining members. | \(\binom{n-1}{r-1}\) |
| Particular person excluded | Remove that person from the pool. | \(\binom{n-1}{r}\) |
| Two persons not together in a committee | Total committees minus committees containing both. | \(\binom nr-\binom{n-2}{r-2}\) |
Requires finite, mutually exclusive and equally likely elementary outcomes.
Most useful for “at least one.”
If events are mutually exclusive, \(P(A\cap B)=0\).
If independent, \(P(B\mid A)=P(B)\), so \(P(A\cap B)=P(A)P(B)\).
Mutually exclusive non-impossible events cannot occur together and are therefore dependent. Independent events may occur together, but one does not change the probability of the other.
| Experiment | Total equally likely outcomes | Key structure |
|---|---|---|
| One fair coin | \(2\) | Head, tail. |
| \(n\) fair coin tosses | \(2^n\) | Exactly \(r\) heads occur in \(\binom nr\) sequences. |
| One fair die | \(6\) | Faces \(1\) through \(6\). |
| Two distinguishable dice | \(36\) | Ordered pairs; sum frequencies are \(1,2,3,4,5,6,5,4,3,2,1\). |
| Standard card deck | \(52\) | \(4\) suits, \(13\) ranks, \(26\) red, \(26\) black. |
| Face cards | \(12\) | Jack, queen, king in each suit. |
| Aces / kings / queens | \(4\) of each rank | One in each suit. |
Control adjacency, repetition, circular order, case splits, dependent draws and reverse probability.
Treat \(k\) specified objects as one super-object, then arrange internally.
For \(n\) distinct objects in a line.
Complement is usually faster than direct casework.
Arrange the larger/separating group first. If it creates \(g\) gaps, choose and fill gaps with the other group.
Arrange \(7\) people in a row if A and B stay together.
The pair is one block with \(2\) internal orders.
Arrange \(7\) people if A and B are not adjacent.
Subtract the together cases.
Arrange \(5\) distinct consonants and \(3\) distinct vowels with no adjacent vowels.
Consonants form \(6\) gaps.
Zero cannot occupy the first position of a numeral. Choose the first digit separately, then fill remaining places.
Choose the units digit first from allowed even or odd digits, then complete other positions.
Fix one person; clockwise and anticlockwise orders remain distinct.
Treat the pair as a block among \(n-1\) circular entities, then arrange the pair.
Fix and arrange one group around the circle, then place the second group in the gaps.
For \(m\) distinct members in each group.
Number of solutions to \(x_1+x_2+\cdots+x_n=r\), where every \(x_i\ge0\):
Equivalent to selecting \(r\) objects from \(n\) types with unlimited repetition.
If every \(x_i\ge1\), allocate one to each variable first:
Valid when \(r\ge n\).
A permutation in which no object remains in its original position.
Nearest integer to \(\frac{n!}{e}\). Small values: \(!1=0,!2=1,!3=2,!4=9,!5=44\).
Each unordered pair contributes one handshake.
Valid if no three selected points are collinear; subtract collinear triples otherwise.
All vertex pairs minus \(n\) sides.
Internal order within each pair and order of pairs do not matter.
Divide \(mn\) distinct objects into \(m\) unlabeled groups of size \(n\):
Useful when a question separates selection and assignment.
Once B is known, B becomes the reduced sample space.
Equivalently, \(P(A\mid B)=P(A)\) when defined.
Population composition resets after every draw. Draws are independent when selection probabilities remain unchanged.
Population size and composition change; draws are dependent.
A bag contains \(5\) red and \(3\) blue objects. Probability that two drawn are red:
Sequential and combination methods agree.
If \(B_1,\ldots,B_n\) partition the sample space:
Posterior probability is proportional to prior probability times likelihood.
For \(n\) independent identical trials, success probability \(p\), failure probability \(q=1-p\):
Complement avoids a long case sum.
Standard deviation \(=\sqrt{npq}\).
If odds in favour are \(a:b\):
If odds against are \(a:b\):
A long-run average, not a guaranteed single-trial outcome.
Prevent overcounting, wrong denominators and confusion between independence and exclusivity.
If posts are not distinct, internal order does not matter; use combinations.
President and secretary are different roles, so assignments are ordered.
Check whether an object or digit can be reused.
A multi-digit numeral cannot begin with zero.
Divide by factorials of repeated groups.
Rotations are identical at a round table; use \((n-1)!\).
In a necklace, reflections are also identical; divide by \(2\) when applicable.
After forming a block, multiply by arrangements inside the block.
\(m\) arranged separators create \(m+1\) linear gaps but only \(m\) circular gaps.
Sum all allowed higher cases or use the complement.
Use inclusion–exclusion when OR cases overlap.
Do not apply favourable/total counting unless elementary outcomes have equal probability.
Sums \(2\) through \(12\) do not have equal frequencies.
Non-impossible disjoint events are dependent.
Without replacement changes the next denominator and numerator.
In \(P(A\mid B)\), the conditioning event B is the denominator.
Use \(1-P(\text{none})\) unless direct cases are genuinely shorter.
Divide prior × likelihood by total evidence probability.
Swap two selected objects mentally. If the outcome changes, use permutation.
Replace \(\binom nr\) by \(\binom n{n-r}\) when the lower number becomes smaller.
Expand only the factors needed; never calculate large factorials in full.
Use complement: \(1-P(0)\).
Total minus together is usually the shortest route.
Arrange separators first, mark gaps, then choose gaps for restricted objects.
Handshakes, lines and unordered pairs suggest \(\binom n2\).
Without-replacement draws can often be solved either by multiplying fractions or counting subsets.
Conditioning on favourable information should move probability sensibly; every result must stay between \(0\) and \(1\).
Define one complete outcome, decide whether order and repetition matter, encode every restriction before counting, and use the same outcome model in both numerator and denominator.
Compact relationships for rapid revision.
Permutation orders a selection; combination ignores that order; probability compares valid favourable outcomes with the same valid universe.