Weeks
Statistics 1Week 6 · Permutations and Combinations
Week 6 Notes

Statistics for
Data Science 1

Counting with order (permutations) and without order (combinations): the formulas, repeated letters, circular seating, solving for n and r, and how to choose the right one.

7 chapters~19 min read
PermutationsCombinationsRepeated objectsCircular

Chapters

  1. 01Permutations of Distinct ObjectsLecture 5.3
  2. 02Objects That Are Not DistinctLecture 5.4
  3. 03Circular PermutationsLecture 5.4
  4. 04Solving for n and rLecture 5.4
  5. 05CombinationsLecture 5.5
  6. 06Permutation or Combination?Lecture 5.6
  7. 07Week 6 Summary SheetAll lectures

Based on lectures by Usha Mohan, IIT Madras

01
Lecture 5.3

Permutations of Distinct Objects

Ordered arrangements: the nPr formula, its special cases, repetition, and three lecture examples.

In simple words

A permutation is an arrangement where order matters. AB and BA are two different permutations.

Definition: permutation

A permutation is an ordered arrangement of all or some of nn objects.

1.1Listing the arrangements

ObjectsTakingArrangementsCount
A, B, Call 3 at a timeABC, ACB, BAC, BCA, CAB, CBA6
A, B, C2 at a timeAB, AC, BA, BC, CA, CB6
A, B, C, Dall 4 at a timeABCD, ABDC, ..., DCBA24
A, B, C, D2 at a timeAB, AC, AD, BA, BC, BD, CA, CB, CD, DA, DB, DC12
nplace 1n − 1place 2n − 2place 3…n − r + 1place r
Figure 1. Filling r places from n distinct objects

Each box is a place and the number inside is how many objects can still go there: n choices for the first place, one fewer for the next, down to n−r+1n - r + 1 for the r-th place. This is Week 5's multiplication rule.

1.2The permutation formula (repetition not allowed)

Formula

The number of permutations of rr objects chosen from nn distinct objects is n×(n−1)×⋯×(n−r+1)n \times (n-1) \times \cdots \times (n-r+1), written nPr^nP_r:

nPr=n!(n−r)!^nP_r = \frac{n!}{(n-r)!}
Special caseValueMeaning
nP0^nP_0n!n!=1\dfrac{n!}{n!} = 1only one ordered arrangement of 0 objects
nP1^nP_1n!(n−1)!=n\dfrac{n!}{(n-1)!} = nn ways of choosing one object from n
nPn^nP_nn!0!=n!\dfrac{n!}{0!} = n!n distinct objects can be arranged in n! ways
nrCalculationResult
333P3=3!/0!^3P_3 = 3!/0!6
323P2=3!/1!^3P_2 = 3!/1!6
444P4=4!/0!^4P_4 = 4!/0!24
424P2=4!/2!^4P_2 = 4!/2!12
Link to Week 5. This is the multiplication rule at work: n choices × (n − 1) choices × ... The factorial is the full product (r = n), and n!/(n−r)!n!/(n-r)! is the "top r factors" trick of Week 5.

1.3Permutations when repetition is allowed

Now an object can be used again, for example AA, AB, AC, BA, ... from A, B, C. Each of the r places has n choices, so the count is n×n×⋯×nn \times n \times \cdots \times n (r times):

nrn^r
Taking from A, B, Cnrnrn^r
all 3 at a time (AAA, AAB, ..., CCC)3327
2 at a time (AA, AB, ..., CC)329

1.4Lecture examples

Example 1: chairman and vice chairman

From a committee of 8 persons, in how many ways can we choose a chairman and a vice chairman, if one person cannot hold more than one position?

  1. Order matters (chairman is not vice chairman) and there is no repetition.
  2. Chairman: 8 ways. Vice chairman: 7 ways.
  3. Total = 8 × 7 = 56 = 8P2^8P_2.
  4. Answer: 56.

Example 2: 4-digit numbers from 1, 2, 3, 4, 5

Find the number of 4-digit numbers that can be formed using the digits 1, 2, 3, 4, 5 if no digit is repeated. How many of these are even?

  1. Four places from five digits: 5 × 4 × 3 × 2 = 120 = 5P4^5P_4.
  2. For an even number the last digit must be 2 or 4: 2 ways. Fill the restricted place first.
  3. The other three places come from the remaining 4 digits: 4 × 3 × 2 = 24.
  4. Even numbers = 2 × 24 = 48.
  5. Answer: 120 numbers; 48 of them are even.

Example 3: six people in a cinema row

Six people sit in a row of ten seats. Find the number of ways if (i) they can sit anywhere, (ii) all the empty seats are next to each other.

  1. (i) Choose and order 6 seats from 10: 10P6=10×9×8×7×6×5=151,200^{10}P_6 = 10 \times 9 \times 8 \times 7 \times 6 \times 5 = 151{,}200 (1,51,200 in Indian notation).
  2. (ii) The 4 empty seats must stay together, so treat them as one block. Now there are 7 units: 6 people and 1 block.
  3. Arrange the 6 people into 7 positions in order: 7P6=5,040^7P_6 = 5{,}040.
  4. Answer: (i) 151,200 (ii) 5,040.
P1P2P3P4P5P64 empty seats: one block6 people7 units: arrange the 6 people among them
Figure 2. Cinema row (ii): the empty seats as one block
Check by listing (extra remark). A computer listing of every way to seat 6 different people in 10 seats finds 151,200 arrangements, and exactly 5,040 of them leave the 4 empty seats side by side, matching both answers.

1.5Going deeper

  1. The block trick. "Must be together" conditions are handled by gluing the group into one unit, counting, and (if the people inside can swap) multiplying by their internal arrangements. Empty seats are identical, so they have no internal order here.
  2. Restricted places first. In Example 2 the units digit is fixed first (2 ways); filling the free places first and then hoping for an even last digit leads to case work.
  3. nPr^nP_r only makes sense for 0≤r≤n0 \le r \le n (extra remark): you cannot fill more places than you have objects without repetition.
Exam tips
  • Decide first: is repetition allowed? Then nrn^r or nPr^nP_r.
  • Write nPr^nP_r as the product of the top r numbers instead of computing big factorials.
Common mistakes
  • Using nrn^r when repetition is not allowed.
  • Forgetting to fill a restricted place first.
  • Writing 10P6^{10}P_6 as 10!/6! instead of 10!/4!.
Next · Lecture 5.4Objects That Are Not Distinct
02
Lecture 5.4

Objects That Are Not Distinct

Repeated letters: divide by the factorial of each repeat count.

In simple words

If some objects are identical, swapping them gives nothing new. So we divide the full count by the arrangements of the identical ones.

2.1Rearranging the letters of DATA

There are 4 letters but only three distinct ones: D, A, T (A appears twice). The 12 arrangements are:

ADTAADATATDAATAD
AADTAATDDATADAAT
DTAATADATAADTDAA

Idea. Treat the two A's as different, A1A_1 and A2A_2. Then there would be 4! arrangements. But A1A_1 and A2A_2 can be swapped among themselves in 2! ways and these look the same. So the number of ways is

4!2!=242=12\frac{4!}{2!} = \frac{24}{2} = 12
label the two A’sDA₁TA₂DA₂TA₁swap themDATAsame word4! = 24 labelled orders, 2! of each look alike: 24 / 2 = 12
Figure 3. Swapping the two A’s gives the same word, so every word is counted 2! times
Formula: objects that are not distinct

The number of permutations of nn objects, when pp of them are of one kind and the rest are distinct, is n!p!\dfrac{n!}{p!}. In general, if p1p_1 are of one kind, p2p_2 of a second kind, ..., and pkp_k of a k-th kind:

n!p1! p2!⋯pk!\frac{n!}{p_1!\, p_2! \cdots p_k!}

Example 4: the letters of STATISTICS

In how many ways can the letters of the word "STATISTICS" be rearranged?

  1. There are 10 letters. The distinct letters are S, T, A, I, C.
  2. S appears 3 times, T 3 times, A once, I twice and C once: n=10n = 10, p1=3,p2=3,p3=1,p4=2,p5=1p_1 = 3, p_2 = 3, p_3 = 1, p_4 = 2, p_5 = 1.
  3. Ways =10!3! 3! 1! 2! 1!=3,628,80072=50,400= \dfrac{10!}{3!\,3!\,1!\,2!\,1!} = \dfrac{3{,}628{,}800}{72} = 50{,}400
  4. Answer: 50,400.

2.2Going deeper

  1. The 1! factors change nothing. Letters that appear once contribute 1!=11! = 1, so they can be left out of the denominator.
  2. Check: the counts add up to n. 3 + 3 + 1 + 2 + 1 = 10 letters in STATISTICS. If they do not, a letter was missed.
  3. A small check (extra remark). LEVEL has L twice and E twice: 5!/(2! 2!)=305!/(2!\,2!) = 30; listing all orders by computer also gives 30, and DATA gives exactly the 12 words above.
Exam tips
  • Make a tally of each letter before writing the formula.
  • Simplify before multiplying: cancel parts of n! against the denominator.
Common mistakes
  • Dividing by the number of repeated letters instead of its factorial.
  • Counting a letter twice or missing one.
Next · Lecture 5.4Circular Permutations
03
Lecture 5.4

Circular Permutations

Round-table seating: (n − 1)!, and (n − 1)!/2 when mirror images are the same.

In simple words

In a row, ABCD and BCDA are different. Around a round table, if everyone just shifts one seat, the arrangement is the same: nobody has a new neighbour. So we fix one person and arrange the rest.

Example: in how many ways can four people sit at a round table? We consider two cases: clockwise and anticlockwise different, or the same.

ABCDABCDBCDABCDACDABCDABDABCDABCone seating around a table
Figure 4. ABCD, BCDA, CDAB and DABC around a table: one seating

Read each circle clockwise from the top. In a row these four are different arrangements, but around a table each person has the same neighbours in the same order, so they count as one arrangement. Each seating appears n times among the n! row orders, so the count is n!/n=(n−1)!n!/n = (n-1)!.

3.1Clockwise and anticlockwise are different

Formula

Fix one person; arrange the other n−1n - 1:

(n−1)!(n-1)!

3.2Clockwise and anticlockwise are the same

Formula

A seating and its mirror image are counted as one, so divide by 2:

(n−1)!2\frac{(n-1)!}{2}
ABCDADCBclockwise A, B, C, Danticlockwise A, B, C, Dmirror images: one seating if direction is ignored
Figure 5. A seating and its mirror image: the same neighbours, read in the other direction

Example 5: four people at a round table

In how many ways can four people sit at a round table?

  1. Clockwise and anticlockwise different: (4−1)!=3!=6(4-1)! = 3! = 6.
  2. Clockwise and anticlockwise the same: 3!/2=33!/2 = 3.
  3. Answer: 6 (different), 3 (the same).
Note on the source. The slides set up this example and give the two formulas but no numbers; 6 and 3 come from applying the formulas. The slide text also repeats the line "combination of 3 different objects taken 2 at a time", which looks like a copy-paste slip and is not used.

3.3Going deeper

  1. Checked by listing (extra remark). Grouping all orders of n people into seatings by computer gives 2, 6, 24, 120 for n = 3 to 6 when direction matters, and 1, 3, 12, 60 when it does not: exactly (n−1)!(n-1)! and (n−1)!/2(n-1)!/2.
  2. When to divide by 2. Divide only when a seating and its mirror image really are the same thing: beads on a necklace or flowers on a garland (you can flip them over). People at a table usually are not: clockwise neighbours differ from anticlockwise ones.
  3. Small n (extra remark). (n−1)!/2(n-1)!/2 needs n≥3n \ge 3. For 2 people it gives 0.5, but there is clearly 1 seating: with two people a seating is its own mirror image, so nothing is double counted.
Exam tips
  • Round table: fix one person first, then arrange the others in a row.
  • Read the question for "clockwise and anticlockwise are the same" (necklace, garland).
Common mistakes
  • Using n! for a round table.
  • Dividing by 2 for people at a table when the question does not say so.
Next · Lecture 5.4Solving for n and r
04
Lecture 5.4

Solving for n and r

Three equations solved with the permutation formula, each checked.

In simple words

Write each permutation as a factorial fraction and cancel the common factorial. You get an ordinary equation in n or r. Reject any answer that does not make sense (negative, or r bigger than n).

Example 6: find n if nP4=20×nP2^nP_4 = 20 \times {}^nP_2

Find the value of n if nP4=20×nP2^nP_4 = 20 \times {}^nP_2.

  1. n!(n−4)!=20×n!(n−2)!\dfrac{n!}{(n-4)!} = 20 \times \dfrac{n!}{(n-2)!}
  2. Cancel n!n! and write (n−2)!=(n−2)(n−3)(n−4)!(n-2)! = (n-2)(n-3)(n-4)!: this gives (n−2)(n−3)=20(n-2)(n-3) = 20.
  3. So n2−5n−14=0n^2 - 5n - 14 = 0, that is (n−7)(n+2)=0(n-7)(n+2) = 0: n=7n = 7 or n=−2n = -2.
  4. n=−2n = -2 is rejected.
  5. Answer: n = 7.
Check: 7P4=840,20×7P2=20×42=840\text{Check: } {}^7P_4 = 840, \quad 20 \times {}^7P_2 = 20 \times 42 = 840

Example 7: find n from a ratio

Find n if nP4n−1P4=53\dfrac{^nP_4}{^{n-1}P_4} = \dfrac{5}{3}.

  1. n!(n−4)!×(n−5)!(n−1)!=53\dfrac{n!}{(n-4)!} \times \dfrac{(n-5)!}{(n-1)!} = \dfrac{5}{3}
  2. Cancel: n!(n−1)!=n\dfrac{n!}{(n-1)!} = n and (n−5)!(n−4)!=1n−4\dfrac{(n-5)!}{(n-4)!} = \dfrac{1}{n-4}, so nn−4=53\dfrac{n}{n-4} = \dfrac{5}{3}.
  3. 3n=5(n−4)3n = 5(n-4), so 2n=202n = 20.
  4. Answer: n = 10.
Check: 10P49P4=50403024=53\text{Check: } \frac{^{10}P_4}{^9P_4} = \frac{5040}{3024} = \frac{5}{3}

Example 8: find r

Find r if 5Pr=2×6Pr−1^5P_r = 2 \times {}^6P_{r-1}.

  1. 5!(5−r)!=2×6!(7−r)!\dfrac{5!}{(5-r)!} = 2 \times \dfrac{6!}{(7-r)!}
  2. Write (7−r)!=(7−r)(6−r)(5−r)!(7-r)! = (7-r)(6-r)(5-r)! and cancel: (7−r)(6−r)=2×6!5!=12(7-r)(6-r) = 2 \times \dfrac{6!}{5!} = 12.
  3. So r2−13r+30=0r^2 - 13r + 30 = 0, that is (r−3)(r−10)=0(r-3)(r-10) = 0: r=3r = 3 or r=10r = 10.
  4. Since r≤n=5r \le n = 5, reject r=10r = 10.
  5. Answer: r = 3.
Check: 5P3=60,2×6P2=2×30=60\text{Check: } {}^5P_3 = 60, \quad 2 \times {}^6P_2 = 2 \times 30 = 60
Reading the source. The source prints this as "5Pr = 2 × 6Pr − 1"; the subscript is r − 1, that is 6Pr−1^6P_{r-1}, not 6Pr^6P_r minus 1.

4.1Going deeper

  1. Always check. Put the answer back into the original equation, as above; it catches algebra slips.
  2. Why reject. n counts objects, so it is a whole number at least r; r is at most n. A negative root or r = 10 with n = 5 has no meaning.
  3. The cancelling step is Week 5's trick: expand the bigger factorial down to the smaller one.
Exam tips
  • Turn every nPr^nP_r into n!/(n−r)!n!/(n-r)! before cancelling.
  • Expand the larger factorial only down to the smaller.
Common mistakes
  • Keeping the rejected root.
  • Reading 6Pr−1^6P_{r-1} as 6Pr−1^6P_r - 1.
Next · Lecture 5.5Combinations
05
Lecture 5.5

Combinations

Selections without order: nCr, its identities and Pascal’s rule, and four lecture examples.

In simple words

A combination is a selection where order does not matter. Choosing students A and B is the same as choosing B and A.

5.1From permutations to combinations

How many ways can we select two students from three (A, B, C)? We can choose AB, AC or BC: only 3. Each selection is a combination of 3 different objects taken 2 at a time. The concern is only which 2 are chosen, not the order.

3 combinationseach in 2! orders{A, B}ABBA{A, C}ACCA{B, C}BCCB3 × 2! = 6 permutations = 3P2
Figure 6. Each combination gives 2! arrangements
Key relation

Number of combinations × 2! = number of permutations. In general each combination of r objects gives r! arrangements.

5.2Notation and formula

Formula

The number of combinations of rr objects from nn distinct objects is written nCr^nC_r (also the binomial coefficient (nr)\binom{n}{r}):

nCr=n!r! (n−r)!=nPrr!^nC_r = \frac{n!}{r!\,(n-r)!} = \frac{^nP_r}{r!}

5.3Useful results

ResultIn words
nCr=nCn−r^nC_r = {}^nC_{n-r}selecting r objects is the same as rejecting the other n − r
nCn=1^nC_n = 1 and nC0=1^nC_0 = 1, for all nchoose everything or nothing: one way
nCr=n−1Cr−1+n−1Cr^nC_r = {}^{n-1}C_{r-1} + {}^{n-1}C_r, for 1≤r≤n1 \le r \le npick one special object: either it is in (choose r − 1 more) or it is out (choose r)
1111211331146411510105116152015616C2 = 5C1 + 5C2: 15 = 5 + 10
Figure 7. Pascal’s rule: each entry is the sum of the two above it

The triangle lists nCr^nC_r row by row (row n, position r from 0). For example 10C4=9C3+9C4=84+126=210^{10}C_4 = {}^9C_3 + {}^9C_4 = 84 + 126 = 210.

5.4Lecture examples

Example 9: choosing questions in an exam

A question paper has 12 questions in two parts: Part I has 7 questions and Part II has 5. A student must attempt 8 questions, selecting at least 3 from each part. In how many ways can the student select the questions?

  1. Possible splits (Part I, Part II) with 8 in total and at least 3 from each part: (3, 5), (4, 4), (5, 3).
  2. (3, 5): 7C3×5C5=35×1=35^7C_3 \times {}^5C_5 = 35 \times 1 = 35.
  3. (4, 4): 7C4×5C4=35×5=175^7C_4 \times {}^5C_4 = 35 \times 5 = 175.
  4. (5, 3): 7C5×5C3=21×10=210^7C_5 \times {}^5C_3 = 21 \times 10 = 210.
  5. The cases cannot happen together, so add: 35 + 175 + 210 = 420.
  6. Answer: 420.

Choose 4 cards from a deck of 52 cards (4 suits with 13 cards each; 2 colours with 26 cards each).

Example 10: choosing four cards

Find (1) the total number of ways to choose four cards, (2) the number of ways when all four are of the same suit, (3) when all four are of the same colour.

  1. (1) 52C4=52!4! 48!=52×51×50×4924=270,725^{52}C_4 = \dfrac{52!}{4!\,48!} = \dfrac{52 \times 51 \times 50 \times 49}{24} = 270{,}725
  2. (2) Choose the suit (4C1^4C_1 ways), then 4 cards of it (13C4=715^{13}C_4 = 715): 4 × 715 = 2,860.
  3. (3) Choose the colour (2C1^2C_1 ways), then 4 cards of it (26C4=14,950^{26}C_4 = 14{,}950): 2 × 14,950 = 29,900.
  4. Answer: (1) 270,725 (2) 2,860 (3) 29,900.
Note on the source. The slides print the results as "2, 70, 725" and "2, 99, 00"; these are 270,725 and 29,900 (the calculation gives these values).

Example 11: choosing a cricket team

Select a team of eleven from 17 players, of whom only 5 can bowl. The team must include exactly 4 bowlers. In how many ways can the selection be done?

  1. Choose the 4 bowlers from the 5 bowlers: 5C4=5^5C_4 = 5.
  2. The other 7 players come from the 12 non-bowlers: 12C7=792^{12}C_7 = 792.
  3. Both choices are made together, so multiply: 5 × 792 = 3,960.
  4. Answer: 3,960.

Example 12: drawing lines in a circle

Given n points on a circle, how many lines can be drawn connecting them?

  1. n = 2 points: 1 line (AB). n = 3 points: 3 lines (AB, AC, BC).
  2. A line is fixed by choosing 2 of the n points, and order does not matter, so the number of lines is nC2=n(n−1)2^nC_2 = \dfrac{n(n-1)}{2}
  3. Answer: nC2^nC_2.

5.5Going deeper

  1. Cases add, choices inside a case multiply. Example 9 uses both rules of Week 5: "and" inside a split, "or" across splits.
  2. Use symmetry to save work. 12C7=12C5=12⋅11⋅10⋅9⋅85!=792^{12}C_7 = {}^{12}C_5 = \dfrac{12 \cdot 11 \cdot 10 \cdot 9 \cdot 8}{5!} = 792: compute with the smaller of r and n − r.
  3. Week 4 again (extra remark). The number of pairs among N items, ½ × N × (N − 1) from CT Week 4, is exactly NC2^NC_2.
  4. All selections (extra remark). nC0+nC1+⋯+nCn=2n^nC_0 + {}^nC_1 + \cdots + {}^nC_n = 2^n: every object is either in or out. For n = 5 that is 32.
Exam tips
  • For "at least / exactly" questions, list the cases first, then count each.
  • Compute nCr^nC_r as the top r factors divided by r!.
Common mistakes
  • Adding inside a case or multiplying across cases.
  • Using nPr^nP_r for a selection.
  • Forgetting the "same suit" choice of the suit (the factor 4).
Next · Lecture 5.6Permutation or Combination?
06
Lecture 5.6

Permutation or Combination?

One question decides it: does order matter? Three lecture examples on the same pools.

In simple words

Ask one question: does order matter? If yes, use a permutation. If no, use a combination.

Does order matter?yesnoPERMUTATIONn! / (n − r)!COMBINATIONn! / (r! (n − r)!)medals, captain and vice captaina group, a team, a committee
Figure 8. Choosing between permutation and combination
Order matters → permutationOrder does not matter → combination
Gold, silver, bronze medalsTop 3 who advance
Captain and vice captainTwo leaders
Directed line segment: AB ≠ BAUndirected line segment AB

Example 13: finishing a race

Eight athletes run a 100 m race in a competition with several rounds. (1) In how many ways can the gold, silver and bronze medals be awarded? (2) In how many ways can the top three athletes be chosen to proceed to the next round?

  1. (1) Order is important, so use a permutation: 8P3=8×7×6=336^8P_3 = 8 \times 7 \times 6 = 336.
  2. (2) Order is not important, so use a combination: 8C3=56^8C_3 = 56.
  3. Answer: (1) 336 (2) 56.

Example 14: selecting a team

A class has forty students. (1) In how many ways can we choose two leaders? (2) In how many ways can we choose a captain and a vice captain?

  1. (1) Order does not matter: 40C2=780^{40}C_2 = 780.
  2. (2) Order matters (the captain is different from the vice captain): 40P2=40×39=1,560^{40}P_2 = 40 \times 39 = 1{,}560.
  3. Answer: (1) 780 (2) 1,560.

Example 15: drawing lines in a circle, with direction

Given n points on a circle, how many lines can be drawn?

  1. If the segment has a direction, AB is different from BA, so order is important: nP2^nP_2 ways.
  2. If it has no direction, AB is the same as BA: nC2^nC_2 ways.
  3. Answer: nP2^nP_2 (directed), nC2^nC_2 (undirected).
Link

Look at Example 14: 40P2=40C2×2!^{40}P_2 = {}^{40}C_2 \times 2! (1,560 = 780 × 2). The permutation count is always the combination count times r!r!. Example 13: 336 = 56 × 3!.

6.1Going deeper

  1. Same pool, different question. 8 athletes give 336 medal orders but only 56 groups of three: every group can be ordered in 3! = 6 ways.
  2. Mixed questions (extra remark). "Choose a team of 3 and then a captain from it" can be done as nC3×3^nC_3 \times 3: a selection followed by an ordered choice.
  3. Words that signal order: first/second, ranks, positions, titles, passwords, arrangements. Words that signal no order: group, team, committee, selection, hand of cards.
Exam tips
  • Ask: if I swap two chosen items, do I get a different answer? Yes: order matters.
  • Check with nPr=nCr×r!^nP_r = {}^nC_r \times r!.
Common mistakes
  • Using a permutation for a committee.
  • Using a combination for posts with different titles.
Next · All lecturesWeek 6 Summary Sheet
07
All lectures

Week 6 Summary Sheet

Everything in Week 6 on one sheet.

Lectures 5.3 to 5.6 on one sheet, for a last-minute revision.

All formulas in one table

SituationFormulaExample value
Permutation, distinct, no repetitionnPr=n!/(n−r)!^nP_r = n!/(n-r)!8P3=336^8P_3 = 336
Arrange all nn!n!4! = 24
Repetition allowednrn^r3² = 9, 3³ = 27
Some objects identicaln!/(p1! p2!⋯pk!)n!/(p_1!\,p_2! \cdots p_k!)STATISTICS: 50,400
Circular, direction matters(n−1)!(n-1)!4 people: 6
Circular, direction ignored(n−1)!/2(n-1)!/24 people: 3
CombinationnCr=n!/(r! (n−r)!)^nC_r = n!/(r!\,(n-r)!)8C3=56^8C_3 = 56
RelationnPr=nCr×r!^nP_r = {}^nC_r \times r!3P2=3×2=6^3P_2 = 3 \times 2 = 6
Symmetry, extremesnCr=nCn−r^nC_r = {}^nC_{n-r}; nC0=nCn=1^nC_0 = {}^nC_n = 18C3=8C5^8C_3 = {}^8C_5
Pascal rulenCr=n−1Cr−1+n−1Cr^nC_r = {}^{n-1}C_{r-1} + {}^{n-1}C_r10C4=84+126=210^{10}C_4 = 84 + 126 = 210

Formula sheet at a glance

Permutations
No repetitionnPr=n!(n−r)!^nP_r = \frac{n!}{(n-r)!}
Repetition allowednrn^r
Identical objectsn!p1! p2!⋯pk!\frac{n!}{p_1!\, p_2! \cdots p_k!}
Circular
Direction matters(n−1)!(n-1)!
Mirror images the same(n−1)!2\frac{(n-1)!}{2}
Combinations
FormulanCr=n!r! (n−r)!^nC_r = \frac{n!}{r!\,(n-r)!}
Link with permutationsnPr=nCr×r!^nP_r = {}^nC_r \times r!
SymmetrynCr=nCn−r^nC_r = {}^nC_{n-r}
PascalnCr=n−1Cr−1+n−1Cr^nC_r = {}^{n-1}C_{r-1} + {}^{n-1}C_r

Formulas

Permutation
No repetitionnPr=n!(n−r)!^nP_r = \frac{n!}{(n-r)!}
Repetition allowednrn^r

Use whenOrder matters: arrangements, ranks, posts, codes.

  1. Check whether repetition is allowed.
  2. No repetition: multiply the top r numbers from n.
  3. Repetition: nn multiplied r times.
ExampleChairman and vice chairman from 8.
8P2=8×7=56^8P_2 = 8 \times 7 = 56
Identical objects
Divide by each repeatn!p1! p2!⋯pk!\frac{n!}{p_1!\, p_2! \cdots p_k!}

Use whenArranging letters of a word with repeated letters.

  1. Tally each letter.
  2. n! on top, factorial of each tally below.
  3. Cancel and multiply.
ExampleSTATISTICS.
10!3! 3! 2!=50,400\frac{10!}{3!\,3!\,2!} = 50{,}400
Circular arrangement
Direction matters(n−1)!(n-1)!
Mirror images the same(n−1)!2\frac{(n-1)!}{2}

Use whenPeople around a table; beads on a necklace.

  1. Fix one person.
  2. Arrange the remaining n − 1 in a row.
  3. Divide by 2 only if a seating and its mirror image are the same.
ExampleFour people.
3!=6,3!/2=33! = 6, \quad 3!/2 = 3
Combination
FormulanCr=n!r! (n−r)!^nC_r = \frac{n!}{r!\,(n-r)!}
SymmetrynCr=nCn−r^nC_r = {}^nC_{n-r}

Use whenOrder does not matter: groups, teams, committees, hands of cards.

  1. Use the smaller of r and n − r.
  2. Top r numbers from n, divided by r!.
  3. For conditions, split into cases: multiply inside, add across.
ExampleCricket team with exactly 4 of 5 bowlers.
5C4×12C7=5×792=3,960^5C_4 \times {}^{12}C_7 = 5 \times 792 = 3{,}960
Solving for n or r
Write as factorialsnPr=n!(n−r)!^nP_r = \frac{n!}{(n-r)!}

Use whenAn equation involves nPr or nCr.

  1. Write every term as a factorial fraction.
  2. Expand the bigger factorial and cancel.
  3. Solve; reject negative n and r > n; check.
ExampleExample 6.
(n−2)(n−3)=20⇒n=7(n-2)(n-3) = 20 \Rightarrow n = 7

Values worked in the lectures

QuestionAnswer
4-digit numbers from 1–5 (even)120 (48)
6 people, 10 seats: anywhere / empty seats together151,200 / 5,040
DATA / STATISTICS12 / 50,400
4 people at a round table: direction matters / ignored6 / 3
nP4 = 20 nP2; ratio 5/3; 5Pr = 2 × 6P(r−1)n = 7; n = 10; r = 3
Exam question selection420
4 cards from 52: any / same suit / same colour270,725 / 2,860 / 29,900
Cricket team with exactly 4 bowlers3,960
8 athletes: medals / top three336 / 56
40 students: two leaders / captain and vice captain780 / 1,560

How to decide

  1. Does order matter? Yes: permutation. No: combination.
  2. Identical objects: divide by p!p! for each repeated kind.
  3. Round table: fix one person, (n−1)!(n-1)!.
  4. "At least" / "exactly": split into cases; multiply inside a case, add across cases.
Source notes
  • The title says Week 6; the lectures are numbered 5.3 to 5.6, continuing Week 5's lectures 5.1 and 5.2.
  • The printed results "2, 70, 725" and "2, 99, 00" are 270,725 and 29,900.
  • The round-table example gives no numbers on the slides; 6 and 3 come from its formulas.
  • The source's extra practice questions are not reproduced, as the Statistics 1 notes carry worked examples only.
Revision overview
PermutationsOrder matters
nPr = n!/(n − r)!
Repetition: n^r
Identical objectsn!/(p1! p2! … pk!)
DATA 12, STATISTICS 50,400
Circular(n − 1)!
Mirror same: (n − 1)!/2
4 people: 6 or 3
Permutations and combinationsStatistics for Data Science 1
SolvingFactorial fractions, cancel
Reject negative n, r > n
n = 7, n = 10, r = 3
CombinationsnCr = n!/(r!(n − r)!)
Symmetry and Pascal
Cases: multiply, then add
Which one?Does order matter?
Medals 336, top three 56
nPr = nCr × r!
Revision: the whole of Week 6 on one map
Back to top