🎲 Permutations, Combinations & Probability
Day 3 | ⏱️ Part of 3-Hour Advanced Quant Block | TCS Interview Prep
📌 Subtopics
Permutations
- Arrangements of objects (order matters)
- Permutations with repetition
- Circular permutations
Combinations
- Selections of objects (order doesn’t matter)
- Combinations with restrictions
Probability
- Basic probability (favorable/total outcomes)
- Addition and multiplication rules
- Independent & dependent events
- Conditional probability basics
📖 Comprehensive Notes
1. Permutations (Arrangements)
Permutation is an arrangement of a set of objects in a specific order. Order matters.
- Without Repetition: Number of ways to arrange objects from a set of distinct objects:
- Arrangement of distinct objects in a row: .
- With Repetition: Number of arrangements of objects where are of one kind, of another, and of another:
- Circular Permutations: Number of ways to arrange distinct objects in a circle:
- If the direction (clockwise vs. counter-clockwise) does not matter (e.g., beads in a necklace):
Example: In how many ways can the letters of the word “APPLE” be arranged? Total letters . ‘P’ is repeated times (). ways.
2. Combinations (Selections)
Combination is a selection of items from a group. Order does not matter.
- Formula: Number of ways to select items from distinct items:
- Properties:
Example: In how many ways can a committee of members be chosen from a group of people? , . ways.
3. Probability Basics & Rules
Probability is the measure of the likelihood that an event will occur.
- Range: .
- Complement: (where is the event that does not occur).
- Addition Rule: For any two events and :
- For mutually exclusive events (): .
- Multiplication Rule: For independent events and :
Example: A card is drawn at random from a pack of cards. Find the probability that it is a King or a Heart. Total cards . , . (the King of Hearts). .
4. Conditional Probability
Conditional probability is the probability of event occurring, given that event has already occurred.
Example: A die is rolled. If the number shown is odd (event B), what is the probability that it is a prime number (event A)? Out of outcomes:
- Odd numbers .
- Prime numbers .
- Odd and Prime .
- .
🌐 Learning Resources
| Resource | Link |
|---|---|
| IndiaBIX — Permutation & Combination | indiabix.com |
| IndiaBIX — Probability | indiabix.com |
| GFG — Permutations & Combinations | geeksforgeeks.org |
| GFG — Probability | geeksforgeeks.org |
| PrepInsta — TCS P&C and Probability | prepinsta.com |
| Khan Academy — Probability | khanacademy.org |
| Khan Academy — Counting & Combinatorics | khanacademy.org |
✅ Practice Links
| Platform | Link |
|---|---|
| PrepInsta — P&C Questions | prepinsta.com |
| IndiaBIX — P&C Problems | indiabix.com |
| IndiaBIX — Probability Problems | indiabix.com |
📝 Key Formulas
PERMUTATIONS:
nPr = n! / (n-r)!
Circular = (n-1)!
With repetition: n! / (p! × q! × r!)
COMBINATIONS:
nCr = n! / (r! × (n-r)!)
nCr = nC(n-r)
nC0 = nCn = 1
PROBABILITY:
P(E) = Favorable outcomes / Total outcomes
0 ≤ P(E) ≤ 1
P(E) + P(E') = 1
P(A ∪ B) = P(A) + P(B) - P(A ∩ B)
P(A ∩ B) = P(A) × P(B) [if independent]
🔗 Related Topics
- Logical Venn Diagrams — Union and intersection sets map directly to probability addition rules
- Statistics — Standard deviation and expected values of distributions are built on probability
- Dynamic Programming — Combinatorial counting problems (e.g., unique paths) are solved using DP
- Arrays and Hashing — Algorithms for generating permutations and subsets of arrays
- Greedy Number Theory and Bit Manipulation — Binary counting and combinatorics concepts