Neural Sync Active
Week 6: Permutations & Combinations
Registry Synced
Week 6: Permutations & Combinations
2849 words
14 min read
2026-09-12
Reading compass
Now · TL;DR
Statistics for Data Science I — Week 6: Permutations & Combinations
IITM’s Week 6 continues counting with permutations and combinations.
TL;DR
The central question is:
Does order matter?
If yes:
If no:
The core formulas are:
and
1. Permutation
A permutation is an ordered arrangement.
Example: choose 2 people from A, B, C for:
- president
- vice-president
Then:
because the roles differ.
So order matters.
2. Permutation formula
Selecting and arranging r objects from n distinct objects:
3. Why the formula works
First position:
choices.
Second:
Continue for r positions:
That equals:
4. Example
Arrange 3 people from 8 people in three distinct roles.
5. Permuting all objects
If:
then:
Since:
we get:
6. Combination
A combination is a selection where order does not matter.
Suppose we choose 2 people from:
For a committee:
So these should count as one outcome.
7. Combination formula
Choosing r objects from n distinct objects:
8. Why divide by r!?
Start with permutations:
Each unordered group of r selected objects has been counted:
times because those objects can be arranged internally in r! orders.
Therefore:
So:
9. Example
Choose 3 students from 8 for a committee.
Cancel:
Thus:
10. Same people, different problem
This distinction is critical.
Committee of 3 from 8
Order doesn't matter:
President, VP, secretary from 8
Order/role matters:
Same people. Different structure.
11. Fast decision test
Ask:
If I swap two selected objects, does the outcome change?
If yes:
If no:
12. Combination symmetry
A useful identity:
Why?
Choosing r objects to include is equivalent to choosing:
objects to exclude.
Example:
13. Extreme combination values
(0n)=1There is exactly one way to choose nothing.
Also:
There is exactly one way to choose everything.
And:
14. Example: choose 2
(2n)=2!(n−2)!n!so:
This is the same formula that appeared for the number of edges in a complete undirected graph.
Nice connection to Maths 1.
15. Pascal identity
An important identity:
Intuition: distinguish one special object.
Either:
- it is not chosen
- it is chosen
Those cases are disjoint and exhaustive.
16. Example of Pascal identity
(35)=(34)+(24).Numerically:
Correct.
17. Pascal triangle
Combination numbers form Pascal's triangle:
text1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Each interior number equals the sum of the two directly above it.
18. Sum of one row
For row corresponding to n:
Why?
Every element of an n-element set is either:
- selected
- not selected
So total subsets:
This reconnects to the power-set result from Maths 1.
19. Binomial theorem connection
The coefficients in:
are combinations:
Example:
Coefficients:
20. Repetition allowed: ordered selections
Suppose you choose r items, each time from n possibilities, and repetition is allowed.
If order matters:
Example: 4-digit PIN:
21. Repetition forbidden: ordered selections
If repetition is not allowed and order matters:
Example: 4 distinct digits chosen from 10:
22. Repetition forbidden: unordered selections
If repetition is forbidden and order does not matter:
Example: choose 4 students from 10:
23. Core counting grid
| Order matters? | Repetition? | Count |
|---|---|---|
| yes | yes | nr |
| yes | no | nPr |
| no | no | nCr |
The "no order + repetition allowed" case exists too, but it uses a different formula and may be beyond the immediate core depending on course coverage.
24. Combinations with repetition
If you choose r items from n categories, order does not matter, and repetition is allowed, the count is:
This is often called stars and bars.
Treat it as supplementary unless emphasized in your lectures.
25. Stars and bars intuition
Suppose we need nonnegative integer solutions to:
Represent 5 identical objects as:
text*****
Use 2 separators:
text**|*|**
meaning:
There are:
positions containing:
- 5 stars
- 2 bars
So number of solutions:
26. Arrangements with repeated identical objects
Suppose there are:
objects with repetitions:
where:
Distinct permutations:
27. Example: BANANA
BANANA has:
letters.
Counts:
- A: 3
- N: 2
- B: 1
Distinct arrangements:
28. Why divide by repeated factorials
If identical copies were artificially labeled, swapping them would produce fake "new" permutations.
We divide by all such internal rearrangements:
29. Circular permutations
For n distinct objects arranged around a circle, rotationally equivalent arrangements are usually treated as the same.
Then:
30. Why circular arrangements use (n−1)!
For linear arrangements:
But each circular arrangement can be rotated into:
linear descriptions.
Therefore:
31. Example
6 people around a round table:
32. Selection with mandatory members
Suppose a committee of 4 is chosen from 10 people, and Alice must be included.
Alice is fixed.
Choose the remaining:
members from:
So:
33. Selection excluding someone
Committee of 4 from 10, but Alice cannot be selected.
Then effectively choose:
from remaining:
So:
34. At least one special member
Suppose 4 people are chosen from 10, including 3 women and 7 men.
How many committees contain at least one woman?
Direct counting has several cases:
- 1 woman
- 2 women
- 3 women
Complement is easier.
Total committees:
No women:
So:
35. Exactly k special members
Suppose choose 5 people from:
- 6 women
- 8 men
with exactly 2 women.
Choose women:
Choose men:
Multiply:
Because both choices must happen.
36. Why multiply combinations here?
The choices are sequential independent stages:
- choose women
- choose men
Each resulting pair of selections creates one committee.
So use the multiplication principle.
37. At most / at least language
These phrases matter.
Exactly 2
Only:
At least 2
2,3,4,…At most 2
0,1,2.A major source of mistakes is reading these casually.
38. Example: at most 2 women
Committee of 4 from 5 women and 6 men.
At most 2 women means:
- 0 women
- 1 woman
- 2 women
Count:
39. Block method for arrangements
Suppose 6 people line up and A/B must stand together.
Treat A/B as one block.
Then we have:
- block AB
- 4 other people
So:
block arrangements.
A and B can internally swap:
Thus:
40. Multiple blocks
Suppose:
- A and B must be together
- C and D must be together
among 6 people.
Treat:
as 4 objects.
Arrange blocks:
Internal orders:
Total:
41. "Not together"
Often:
For 6 people, A and B not together:
Total:
Together:
Thus:
42. Fixed positions
Suppose 7 people line up and A must stand at one end.
A has:
possible ends.
Remaining 6 people:
arrangements.
Total:
43. A and B at the ends
If A and B must occupy the two ends:
Arrange A and B at ends:
ways.
Arrange remaining:
ways.
Total:
44. No two special objects adjacent
A useful gap method.
Suppose:
- 4 men
- 3 women
- no two women adjacent
First arrange men:
This creates gaps:
text_ M _ M _ M _ M _
Number of gaps:
Choose 3 gaps for women:
Arrange 3 women:
Total:
45. Why gap method works
Placing at most one special object in each gap guarantees no two are adjacent.
This is a general restriction technique worth remembering.
46. Probability bridge
Suppose 5 cards are chosen from 52, with order irrelevant.
Total possible hands:
This is why combinations are central to probability.
If every hand is equally likely:
47. Example: exactly 2 special objects
Suppose a set has:
- 4 special items
- 6 ordinary items
Choose 3.
How many selections contain exactly 2 special items?
Choose:
from the 4 special:
Choose:
from the 6 ordinary:
Thus:
48. Complement with combinations
Suppose we choose 3 people from 10 and want at least one of A or B.
Total:
Committees containing neither A nor B:
So desired:
49. Exactly one of A and B
Two disjoint cases:
- A included, B excluded
- B included, A excluded
For committee size 3 from 10:
Choose which one of A/B:
ways.
Then choose remaining 2 members from the other 8 people:
So:
50. Both A and B included
For committee size 4 from 10:
Fix A and B.
Choose remaining:
from other:
Count:
51. Neither A nor B
Choose all 4 from remaining 8:
These "both / exactly one / neither" patterns are common.
52. Permutation with restrictions example
How many 5-digit numbers can be formed using digits:
exactly once?
All digits are distinct and order matters:
53. Same problem with first digit restriction
How many start with an even digit?
Even first digit:
so:
choices.
Remaining:
orders.
Total:
54. Same problem ending in odd digit
Odd choices:
so:
choices for final digit.
Remaining:
arrangements.
Thus:
Common mistake: using permutation for a committee
Committee members have no roles unless stated.
So:
not:
Common mistake: using combination for ranks
Gold, silver, bronze are ordered positions.
So:
not:
Common mistake: dividing by
r! twice
Combination already includes the:
division.
Do not compute:
again unless a separate symmetry genuinely requires it.
Common mistake: forgetting internal block arrangements
If A and B must be together, treating them as one block gives positions of the block but not internal order.
Usually multiply by:
for:
or:
Common mistake: cases overlap
If solving by cases, cases must ideally be mutually exclusive.
For example:
- exactly 1 woman
- exactly 2 women
do not overlap.
So counts can be added safely.
But:
- at least 1 woman
- at least 2 women
overlap heavily.
Adding them directly double-counts.
Common mistake: forgetting impossible cases
Suppose choose 5 people with exactly 4 women when only 3 women exist.
That case contributes:
Always check feasibility before applying formulas.
61. Simplifying combinations efficiently
Example:
Do not expand 100!.
Use:
So:
62. Another simplification
(1820)Use symmetry:
Thus:
Much easier.
63. Master decision tree
textWhat am I counting? │ ├── Sequence / roles / ranks? │ │ │ ├── repetition allowed → n^r │ └── repetition forbidden → nPr │ └── Group / committee / subset? │ ├── repetition forbidden → nCr └── repetition allowed → stars-and-bars style
Then separately ask:
- restrictions?
- must include/exclude?
- together/apart?
- exactly/at least/at most?
64. Core formula sheet
Factorial
n!=n(n−1)⋯1Permutation
nPr=(n−r)!n!Combination
nCr=(rn)=r!(n−r)!n!Relation
nPr=nCrr!Symmetry
(rn)=(n−rn)Repeated arrangements
n1!n2!⋯nk!n!Circular permutation
(n−1)!65. Week 5 → Week 6 connection
Week 5 gave the fundamental counting principles:
Week 6 packages recurring counting patterns into reusable formulas:
These become essential once probability begins.
66. What you should actually master
By the end of Stats 1 Week 6, you should be able to:
- Decide whether order matters.
- Compute permutations.
- Compute combinations.
- Explain why combinations divide by r!.
- Use: nPr=nCrr!.
- Use symmetry: (rn)=(n−rn).
- Solve committee and ranking problems.
- Handle required/excluded members.
- Handle exactly / at least / at most restrictions.
- Use complement counting.
- Count arrangements with repeated identical objects.
- Solve basic together/not-together arrangements.
- Use block and gap methods when appropriate.
- Avoid overcounting.
If those are comfortable, Stats 1 Week 6 is under control.
Quick Recall & Flashcards
Test your active recall before proceeding to practice problems. Format:
Question :: Answer.- Week 6 Diagnostic: In how many ways can a committee of 3 members be selected from a group of 7 candidates? :: Answer: 35 — C(7, 3) = 7! / (3! * 4!) = (7 * 6 * 5) / (3 * 2 * 1) = 35.
- Week 6 Diagnostic: In how many ways can 5 distinct books be arranged on a single shelf? :: Answer: 120 — P(5, 5) = 5! = 120.
Practice & Self-Check
Attempt these diagnostic questions to verify your operational understanding.
1
Question 1
In how many ways can a committee of 3 members be selected from a group of 7 candidates?
NAT
3 Unit Assessment
2
Question 2
In how many ways can 5 distinct books be arranged on a single shelf?
NAT
3 Unit Assessment