Probability
Probability = favourable / total, but only when every outcome is equally likely. List the sample space when in doubt; it is small more often than you think.
Why this topic matters
If I toss a coin, will it be heads? Nobody knows. But everyone in this room would bet it is heads about half the time. Probability is simply that 'about half', written as a number.
Placement tests (TCS, Infosys, Wipro, Accenture, AMCAT, CoCubes) ask 1 to 3 probability questions in almost every paper: coins, dice, cards, balls in a bag, and 'A and B try to solve a problem'. They look different but use the same four ideas: count the outcomes, use 'not' for 'at least one', add for OR, multiply for AND. Learn those four and this topic becomes free marks.
What probability means
Probability is a number between 0 and 1 that says how likely something is. 0 means it cannot happen. 1 means it is certain. 1/2 means it happens half the time.
To find it, count. Probability of an event = (number of ways the event can happen) / (total number of possible outcomes). This only works when every outcome is equally likely: a fair coin, a fair die, a well-shuffled deck, a ball drawn without looking.
Four words you will see in every question. Experiment: the action (toss a coin, draw a card). Outcome: one possible result (heads). Sample space: the list of ALL possible outcomes ({H, T}). Event: the outcomes we care about (getting heads).
Probabilities of all the outcomes add up to 1. That is why P(not E) = 1 - P(E): if there is a 1/6 chance of a six, there is a 5/6 chance of no six.
- Total outcomes = 3 + 4 + 5 = 12 balls.Each ball is equally likely to be picked, so each ball is one outcome.
- Favourable outcomes = 4 green balls.These are the outcomes that make our event (green) happen.
- P(green) = 4/12 = 1/3.
- Multiples of 3: 3, 6, 9, 12, 15, 18 (6 numbers). Multiples of 5: 5, 10, 15, 20 (4 numbers).List them; the list is short.
- 15 is in both lists, so count it once: 6 + 4 - 1 = 9.Counting 15 twice is the most common mistake in 'or' questions.
- P = 9/20.
Coins
One coin has 2 outcomes: H and T. Two coins have 2 × 2 = 4: HH, HT, TH, TT. Three coins have 2 × 2 × 2 = 8. In general n coins give 2n outcomes.
HT and TH are DIFFERENT outcomes. Think of the coins as a 1-rupee and a 2-rupee coin: 'first heads, second tails' is not the same as 'first tails, second heads'. If you merge them you get 3 outcomes that are not equally likely, and every answer comes out wrong.
For 'exactly k heads', you do not need to list anything: the number of ways is nCk (choose which k coins show heads). So P(exactly k heads) = nCk / 2n.
- Total = 23 = 8 outcomes.Each coin doubles the number of outcomes.
- Exactly two heads: HHT, HTH, THH = 3 outcomes (or 3C2 = 3).Choosing which 2 of the 3 coins are heads gives the count without listing.
- P = 3/8.
- Total = 24 = 16.Four coins.
- The opposite of 'at least one tail' is 'no tails', which is HHHH: only 1 outcome.Counting the opposite is quicker than counting 1, 2, 3 and 4 tails separately.
- P = 1 - 1/16 = 15/16.
Dice
A die has 6 faces, so one die gives 6 outcomes. Two dice give 6 × 6 = 36 outcomes, written as pairs: (1,1), (1,2) ... (6,6). Draw the 6 × 6 grid below once in your notebook. Every two-dice question is just shading the right boxes and counting them.
Sums follow a pattern. Sum 2 has 1 way, sum 3 has 2 ways, and so on up to sum 7, which has 6 ways. Then it falls: sum 8 has 5 ways, sum 12 has 1. So the number of ways for a sum s is (s - 1) when s is 7 or less, and (13 - s) when s is more than 7.
Doublets (both dice the same) are the diagonal of the grid: 6 of them.
| Sum | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Ways out of 36 | 1 | 2 | 3 | 4 | 5 | 6 | 5 | 4 | 3 | 2 | 1 |
- Total = 36.Two dice.
- Sum 8: (2,6), (3,5), (4,4), (5,3), (6,2) = 5 ways.Rule: for sums above 7, ways = 13 - sum = 13 - 8 = 5.
- P = 5/36.
- Doublets: (1,1) ... (6,6) = 6 outcomes.The diagonal of the grid.
- Total 4: (1,3), (2,2), (3,1) = 3 outcomes.Sum 4 has 4 - 1 = 3 ways.
- (2,2) is in both lists, so the union is 6 + 3 - 1 = 8.OR means 'either', and the overlap must only be counted once.
- P = 8/36 = 2/9.
- Total = 63 = 216.Each die multiplies the outcomes by 6.
- All the same: (1,1,1), (2,2,2) ... (6,6,6) = 6 outcomes.One outcome per number.
- P = 6/216 = 1/36.
Cards
A pack has 52 cards in 4 suits: spades and clubs (black), hearts and diamonds (red). Each suit has 13 cards: A, 2, 3 ... 10, J, Q, K.
So there are 4 of every rank (4 aces, 4 kings), 13 of every suit, and 26 of each colour. Face cards (also called court cards) are J, Q and K: 3 per suit, 12 in total.
When several cards are drawn together, count with combinations: the number of ways to draw 2 cards from 52 is 52C2 = 1326.
- Kings: 4. Hearts: 13.Count each group.
- The king of hearts is in both groups, so kings or hearts = 4 + 13 - 1 = 16.OR: add, then subtract the overlap.
- P = 16/52 = 4/13.
- Ways to draw any 2 cards: 52C2 = 52 × 51 / 2 = 1326.'Drawn together' means order does not matter, so use combinations.
- Ways to draw 2 red cards: 26C2 = 26 × 25 / 2 = 325.Choose both from the 26 red cards.
- P = 325/1326 = 25/102.
- Face cards: J, Q, K in each of 4 suits = 12.3 per suit.
- Not red means black: spades or clubs, so 2 suits × 3 = 6.Half of the face cards.
- P = 6/52 = 3/26.
Balls in a bag: with and without replacement
'With replacement' means the ball goes back before the next draw, so every draw looks exactly like the first. 'Without replacement' means it stays out, so the second draw has one ball fewer, and one fewer of whatever colour came out.
If balls are drawn 'together' or 'at the same time', that is the same as without replacement, and combinations are the fastest way to count.
Two ways to solve a without-replacement question, and both give the same answer: multiply step by step (5/8 × 4/7), or count with combinations (5C2 / 8C2). Use whichever you find easier.
- First draw red: 5/8.5 red out of 8 balls.
- Second draw red, given the first was red: 4/7.One red ball is already out, so 4 red remain out of 7.
- Both: 5/8 × 4/7 = 20/56 = 5/14.AND means multiply.
- Check with combinations: 5C2 / 8C2 = 10/28 = 5/14. Same.
- First red: 5/8. Second red: 5/8 again.The ball went back, so the bag is unchanged.
- P = 5/8 × 5/8 = 25/64.
- Total ways: 8C2 = 28.Drawn together, so combinations.
- One red AND one black: 3C1 × 5C1 = 3 × 5 = 15.Choose the red one (3 ways) and the black one (5 ways); multiply.
- P = 15/28.
At least one: use the complement
'At least one' means one, or two, or three, or more. Counting all of those cases separately is slow and easy to get wrong.
The opposite of 'at least one' is 'none'. And 'none' is usually one simple case. So P(at least one) = 1 - P(none).
This is exactly how to solve 'A and B try to solve a problem' questions. The problem gets solved if at least one of them solves it. So find the probability that NEITHER solves it, and subtract from 1.
- 'The problem gets solved' means at least one of A and B solves it.Rewrite the question in these words first; it tells you which rule to use.
- P(A fails) = 1 - 1/2 = 1/2. P(B fails) = 1 - 1/3 = 2/3.Failure is the complement of success for each person.
- P(both fail) = 1/2 × 2/3 = 1/3.They work independently, so multiply.
- P(solved) = 1 - 1/3 = 2/3.Solved is the opposite of 'both fail'.
- Check: 1/2 + 1/3 would be 5/6, which counts the case where both solve it twice. That is why 5/6 is the trap option.
- P(no six on one throw) = 5/6.5 of the 6 faces are not a six.
- P(no six in 3 throws) = (5/6)3 = 125/216.The throws are independent, so multiply.
- P(at least one six) = 1 - 125/216 = 91/216.
- Failure chances: 1/2, 2/3, 3/4.1 minus each success chance.
- All three fail: 1/2 × 2/3 × 3/4 = 6/24 = 1/4.Independent, so multiply.
- P(solved) = 1 - 1/4 = 3/4.
OR: the addition rule
P(A or B) means the chance that A happens, or B happens, or both. If you just add P(A) + P(B), the outcomes where both happen get counted twice. So subtract them once: P(A or B) = P(A) + P(B) - P(A and B).
If A and B can never happen together (mutually exclusive), the overlap is empty and you simply add. Example: one die shows 2 or shows 5. It cannot show both, so 1/6 + 1/6 = 1/3.
- Divisible by 2: 15 numbers. By 3: 10 numbers.30/2 and 30/3.
- Divisible by both means divisible by 6: 5 numbers.The overlap of multiples of 2 and 3 is multiples of 6.
- 15 + 10 - 5 = 20. P = 20/30 = 2/3.
AND: the multiplication rule
P(A and B) is the chance that both happen. If the two events do not affect each other (independent), multiply: P(A) × P(B). Coins, dice and draws WITH replacement are independent.
If the first event changes the second (dependent), multiply by the second probability AFTER the first has happened. Draws WITHOUT replacement are dependent.
A probability tree shows this: multiply along a branch to get AND, add different branches to get OR.
- P(heads) = 1/2. P(even) = 3/6 = 1/2.Three even faces: 2, 4, 6.
- Independent, so P = 1/2 × 1/2 = 1/4.The coin does not affect the die.
- First ace: 4/52.4 aces in 52 cards.
- Second ace: 3/51.One ace and one card are gone.
- P = 4/52 × 3/51 = 12/2652 = 1/221.
- They contradict when exactly one of them tells the truth.If both tell the truth or both lie, they agree.
- A true and B lies: 3/4 × 1/5 = 3/20.AND, independent: multiply.
- A lies and B true: 1/4 × 4/5 = 4/20.The other way round.
- Add the two cases: 3/20 + 4/20 = 7/20.The two cases cannot happen together, so plain addition.
Conditional probability: 'given that'
Sometimes the question tells you something has already happened: 'given that the sum is even', 'if it is known that one child is a boy'. That information shrinks the sample space. Throw away every outcome that does not fit, and count only among the ones left.
As a formula: P(A given B) = P(A and B) / P(B). But the shrink-and-count method is easier to understand and gives the same answer.
- Outcomes with an even sum: 18 of the 36.Half the grid; this is our new, smaller sample space.
- Among those, sum 8: (2,6), (3,5), (4,4), (5,3), (6,2) = 5.All of them have an even sum, so they are all inside the new space.
- P = 5/18.
- All families: BB, BG, GB, GG.Older child first; BG and GB are different families.
- 'At least one boy' removes GG. Left: BB, BG, GB.The given information shrinks the sample space to 3.
- Both boys = BB, 1 of 3. P = 1/3.
Odds, and how questions are worded
Odds are another way of saying probability. 'Odds in favour of E are 3 : 5' means for every 3 ways E happens there are 5 ways it does not. So there are 8 equally likely ways in total and P(E) = 3/8. 'Odds against E are 3 : 5' means P(E) = 5/8.
The table below turns the usual phrases into the rule you need.
| The question says | It means | Use |
|---|---|---|
| at least one | one or more | 1 - P(none) |
| at most one | zero or one | P(0) + P(1) |
| exactly one | one and only one | add the cases (first only, second only...) |
| neither | none of them | multiply the failure chances |
| either ... or | OR | addition rule |
| both / and | AND | multiplication rule |
| given that / if it is known | conditional | shrink the sample space |
| drawn together / at random at once | no order | combinations nC r |
| odds in favour a : b | P = a/(a + b) |
- Odds against 7 : 2 means 7 ways it fails for every 2 ways it happens.Against puts failure first.
- Total 9 ways. P(event) = 2/9.
Formula summary
Shortcuts and tricks
At least one = 1 minus none
Use it when: 'At least one six', 'the problem is solved', 'the target is hit'.
- Find the chance that it fails every time.
- Subtract from 1.
- P(no six) in one throw = 5/6, so in three throws (5/6)3 = 125/216.Independent throws multiply.
- 1 - 125/216 = 91/216.
Sum of two dice without listing
Use it when: Any 'sum is s' question with two dice.
- Ways = 6 - |7 - s|.
- Divide by 36.
- 6 - |7 - 10| = 6 - 3 = 3 ways: (4,6), (5,5), (6,4).Sums are symmetric around 7.
- 3/36 = 1/12.
Exactly k heads
Use it when: Any coin question asking for an exact count.
- Ways = nCk. Total = 2n.
- 5C3 = 10 ways.Choose which 3 tosses are heads.
- Total 25 = 32. P = 10/32 = 5/16.
Common mistakes
Before you move on, you should be able to...
- say what total to use for coins (2n), dice (6n) and cards (52), before calculating
- turn 'at least one' into 1 - P(none) and solve the 'A and B solve a problem' question
- add for OR (and subtract the overlap), multiply for AND
- tell with replacement from without, and adjust the second fraction
- shrink the sample space for 'given that' questions
Practice questions (24)
Try each one before opening the solution. Or practise them one by one so your score is saved.
easy A die is thrown once. What is the probability of getting a prime number?
- Primes on a die: 2, 3, 5.1 is not prime.
- 3/6 = 1/2.
Answer: 1/2
easy Three coins are tossed. What is the probability of getting at least two heads?
- Total 8.23.
- Two heads: 3 ways (3C2). Three heads: 1 way.'At least two' = two or three.
- 4/8 = 1/2.
Answer: 1/2
easy Two dice are thrown. What is the probability that the sum is at least 10?
- Sum 10: 3 ways, 11: 2 ways, 12: 1 way.Ways = 13 - sum above 7.
- 6/36 = 1/6.
Answer: 1/6
easy One card is drawn from a pack of 52. What is the probability that it is a king or a heart?
- Kings 4, hearts 13, king of hearts counted in both.Overlap of 1.
- 4 + 13 - 1 = 16. 16/52 = 4/13.
Answer: 4/13
easy A bag has 4 white and 6 black balls. One is drawn. What is the probability it is not white?
- Not white = black: 6 of 10.Or 1 - P(white) = 1 - 4/10.
- 6/10 = 3/5.
Answer: 3/5
easy A number is chosen from 1 to 50. What is the probability that it is a perfect square?
- Squares up to 50: 1, 4, 9, 16, 25, 36, 49.72 = 49 is the last one below 50.
- 7/50.
Answer: 7/50
easy Two dice are thrown. What is the probability of a doublet?
- Doublets: (1,1) to (6,6), 6 outcomes.The diagonal of the 6 × 6 grid.
- 6/36 = 1/6.
Answer: 1/6
medium A bag has 5 red and 4 blue balls. Two are drawn together. What is the probability both are red?
- Total: 9C2 = 36.Drawn together, so combinations.
- Both red: 5C2 = 10.Choose 2 of the 5 red.
- 10/36 = 5/18.
Answer: 5/18
medium A family has two children and at least one is a boy. What is the probability both are boys?
- Families: BB, BG, GB, GG. 'At least one boy' removes GG.The given fact shrinks the sample space to 3.
- BB is 1 of 3.
Answer: 1/3
medium Three dice are thrown. What is the probability that all three show different numbers?
- Total 216.63.
- All different: 6 × 5 × 4 = 120.First die any, second avoids one number, third avoids two.
- 120/216 = 5/9.
Answer: 5/9
medium Two cards are drawn together from a pack of 52. What is the probability that one is a spade and one is a heart?
- Total: 52C2 = 1326.Drawn together.
- One spade and one heart: 13 × 13 = 169.Choose one from each suit and multiply.
- 169/1326 = 13/102.
Answer: 13/102
medium Two dice are thrown. What is the probability that the product of the numbers is even?
- The product is odd only when both numbers are odd: 3 × 3 = 9 outcomes.One even number makes the whole product even.
- P(even) = 1 - 9/36 = 3/4.
Answer: 3/4
medium A bag has 3 red and 5 black balls. Two are drawn together. What is the probability of one of each colour?
- Total 8C2 = 28.Combinations.
- One red AND one black: 3 × 5 = 15.Multiply the choices.
- 15/28.
Answer: 15/28
medium The odds in favour of an event are 3 : 5. What is the probability that it does NOT happen?
- 3 ways for, 5 ways against, 8 in total.Odds in favour a : b means P = a/(a + b).
- P(not) = 5/8.
Answer: 5/8
medium A die is thrown twice. What is the probability that the second number is greater than the first?
- Equal numbers: 6 outcomes. The other 30 split evenly between 'first bigger' and 'second bigger'.By symmetry, the two cases are equally likely.
- 15/36 = 5/12.
Answer: 5/12
hard A and B solve a problem independently with probabilities 1/2 and 1/3. What is the probability that the problem gets solved?
- P(both fail) = 1/2 × 2/3 = 1/3.Solved = at least one solves it = 1 - P(both fail).
- 1 - 1/3 = 2/3.
Answer: 2/3
hard Three students solve a problem independently with probabilities 1/2, 1/3 and 1/4. What is the probability that the problem gets solved?
- P(all fail) = 1/2 × 2/3 × 3/4 = 1/4.Multiply the failure chances.
- 1 - 1/4 = 3/4.
Answer: 3/4
hard Two cards are drawn one after another without replacement. What is the probability both are aces?
- 4/52 for the first ace, 3/51 for the second.One ace and one card are gone after the first draw.
- 12/2652 = 1/221.
Answer: 1/221
hard A speaks the truth 3/4 of the time and B 4/5 of the time. What is the probability they contradict each other on a statement?
- Contradict = exactly one tells the truth.Both true or both false means they agree.
- 3/4 × 1/5 + 1/4 × 4/5 = 3/20 + 4/20.Two separate cases, so add.
- 7/20.
Answer: 7/20
hard The letters of ASSASSIN are arranged at random. What is the probability that all four S come together?
- Total arrangements: 8!/(4! 2!) = 840.4 S alike and 2 A alike.
- Glue the four S into one block. Now arrange 5 items (SSSS, A, A, I, N): 5!/2! = 60.The block counts as one item; the two A are alike.
- 60/840 = 1/14.
Answer: 1/14
hard Two dice are thrown. Given that the sum is even, what is the probability that it is 8?
- Even sums: 18 outcomes. Sum 8: 5 of them.Shrink the sample space to the given fact.
- 5/18.
Answer: 5/18
hard A box has 6 good and 4 defective bulbs. 3 are picked at random. What is the probability that at least one is defective?
- P(none defective) = 6C3 / 10C3 = 20/120 = 1/6.'At least one' → complement.
- 1 - 1/6 = 5/6.
Answer: 5/6
hard A coin is tossed 6 times. What is the probability of getting exactly 4 heads?
- Ways: 6C4 = 15. Total: 26 = 64.Choose which 4 tosses are heads.
- 15/64.
Answer: 15/64
hard Four people are chosen from 5 men and 4 women. What is the probability that exactly 2 are women?
- Total: 9C4 = 126.Choose any 4 of 9.
- 2 women and 2 men: 4C2 × 5C2 = 6 × 10 = 60.Choose each group separately and multiply.
- 60/126 = 10/21.
Answer: 10/21
Class plan (2 hours, for trainers)
A tested order for teaching this topic in one 2-hour session. Present mode follows the same order.
| 10 min | Speed maths warm-up: five 2-digit criss-cross multiplications on the board, students race. (Keeps the daily habit.) |
| 10 min | Hook: the coin question. Build the 0-to-1 line together; students place 'rain tomorrow', 'sun rises', 'a six' on it. Define outcome, sample space, event. |
| 15 min | Coins and dice. Draw the 6 × 6 dice grid on the board; students shade sum 7, sum 8, doublets and count. Show HT and TH are different. |
| 10 min | Cards: 52 = 4 × 13. Students fill the deck breakdown from memory, then the king-or-heart example. |
| 15 min | At least one = 1 - none. Do the A and B problem (the one students got wrong in the test) with the tree, then the three-students version. |
| 15 min | OR and AND. Venn diagram for the addition rule, tree for the multiplication rule. With vs without replacement with the bag example. |
| 10 min | Conditional: shrink the sample space. Dice given even sum; the two-children puzzle (let the class argue 1/2 vs 1/3 first). |
| 20 min | Individual practice: the easy and medium questions on the practice page, timed. Walk the room. |
| 10 min | Go through the three hard questions together on the projector (present mode). |
| 5 min | Recap: each student says one rule in their own words. Exit ticket: at least one six in two throws (answer 11/36). |