▲Probability→ next · ← back · F full screen · T themeExit
Quantitative aptitude
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.
Start with this
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.
Every probability sits somewhere between 0 and 1
What probability means: the rules
P(E) = favourable outcomes / total outcomes
Count what you want, count everything, divide.
0 ≤ P(E) ≤ 1
If you get more than 1 or a negative number, you have made a counting mistake.
P(not E) = 1 - P(E)
Something either happens or it does not.
Worked example
A bag has 3 red, 4 green and 5 blue balls. One ball is taken out without looking. What is the probability it is green?
Total outcomes = 3 + 4 + 5 = 12 balls. Why: Each ball is equally likely to be picked, so each ball is one outcome.
Favourable outcomes = 4 green balls. Why: These are the outcomes that make our event (green) happen.
P(green) = 4/12 = 1/3.
Answer: 1/3
Worked example
A number is chosen at random from 1 to 20. What is the probability it is a multiple of 3 or 5?
Multiples of 3: 3, 6, 9, 12, 15, 18 (6 numbers). Multiples of 5: 5, 10, 15, 20 (4 numbers). Why: List them; the list is short.
15 is in both lists, so count it once: 6 + 4 - 1 = 9. Why: Counting 15 twice is the most common mistake in 'or' questions.
P = 9/20.
Answer: 9/20
Exam tip
TipBefore calculating, say the total out loud: '36 for two dice', '52 for cards', '8 for three coins'. Half of all wrong answers come from the wrong total.
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.
Three coins: 3 of the 8 outcomes have exactly two heads
Coins: the rules
n coins: 2n outcomes
1 coin 2, 2 coins 4, 3 coins 8, 4 coins 16.
P(exactly k heads) = nCk / 2n
Choose which k coins are heads.
P(at least one head) = 1 - 1/2n
The only way to fail is all tails.
Worked example
Three coins are tossed. What is the probability of getting exactly two heads?
Total = 23 = 8 outcomes. Why: Each coin doubles the number of outcomes.
Exactly two heads: HHT, HTH, THH = 3 outcomes (or 3C2 = 3). Why: Choosing which 2 of the 3 coins are heads gives the count without listing.
P = 3/8.
Answer: 3/8
Worked example
Four coins are tossed. What is the probability of getting at least one tail?
Total = 24 = 16. Why: Four coins.
The opposite of 'at least one tail' is 'no tails', which is HHHH: only 1 outcome. Why: Counting the opposite is quicker than counting 1, 2, 3 and 4 tails separately.
P = 1 - 1/16 = 15/16.
Answer: 15/16
Exam tip
Tip'At least one' with coins is always 1 - 1/2n. Four coins: 15/16. Five coins: 31/32.
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 7: the 6 shaded boxes out of 36. P = 6/36 = 1/6Sum at least 10: 6 boxes. P = 6/36 = 1/6
Dice: reference
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
Worked example
Two dice are thrown. What is the probability that the sum is 8?
Total = 36. Why: Two dice.
Sum 8: (2,6), (3,5), (4,4), (5,3), (6,2) = 5 ways. Why: Rule: for sums above 7, ways = 13 - sum = 13 - 8 = 5.
P = 5/36.
Answer: 5/36
Worked example
Two dice are thrown. What is the probability of getting a doublet or a total of 4?
Doublets: (1,1) ... (6,6) = 6 outcomes. Why: The diagonal of the grid.
Total 4: (1,3), (2,2), (3,1) = 3 outcomes. Why: Sum 4 has 4 - 1 = 3 ways.
(2,2) is in both lists, so the union is 6 + 3 - 1 = 8. Why: OR means 'either', and the overlap must only be counted once.
P = 8/36 = 2/9.
Answer: 2/9
Worked example
Three dice are thrown. What is the probability that all three show the same number?
Total = 63 = 216. Why: Each die multiplies the outcomes by 6.
All the same: (1,1,1), (2,2,2) ... (6,6,6) = 6 outcomes. Why: One outcome per number.
P = 6/216 = 1/36.
Answer: 1/36
Exam tip
TipTwo dice, sum s: ways = 6 - |7 - s|. Sum 10 → 6 - 3 = 3 ways. You never need to list them.
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.
A deck: 52 cards = 4 suits × 13 ranks. 26 red, 26 black. 12 face cards (J, Q, K), 4 aces
Worked example
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. Why: Count each group.
The king of hearts is in both groups, so kings or hearts = 4 + 13 - 1 = 16. Why: OR: add, then subtract the overlap.
P = 16/52 = 4/13.
Answer: 4/13
Worked example
Two cards are drawn together from a pack of 52. What is the probability that both are red?
Ways to draw any 2 cards: 52C2 = 52 × 51 / 2 = 1326. Why: 'Drawn together' means order does not matter, so use combinations.
Ways to draw 2 red cards: 26C2 = 26 × 25 / 2 = 325. Why: Choose both from the 26 red cards.
P = 325/1326 = 25/102.
Answer: 25/102
Worked example
One card is drawn. What is the probability that it is a face card that is not red?
Face cards: J, Q, K in each of 4 suits = 12. Why: 3 per suit.
Not red means black: spades or clubs, so 2 suits × 3 = 6. Why: Half of the face cards.
P = 6/52 = 3/26.
Answer: 3/26
Exam tip
TipWrite '52 = 4 × 13, 26 red, 12 face, 4 of each' at the top of your rough sheet before a card question.
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.
Without replacement: the second branch depends on the first draw
Worked example
A bag has 5 red and 3 blue balls. Two balls are drawn without replacement. What is the probability both are red?
First draw red: 5/8. Why: 5 red out of 8 balls.
Second draw red, given the first was red: 4/7. Why: One red ball is already out, so 4 red remain out of 7.
Both: 5/8 × 4/7 = 20/56 = 5/14. Why: AND means multiply.
Same bag, but the first ball is put back before the second draw. Probability both are red?
First red: 5/8. Second red: 5/8 again. Why: The ball went back, so the bag is unchanged.
P = 5/8 × 5/8 = 25/64.
Answer: 25/64
Worked example
A bag has 3 red and 5 black balls. Two are drawn together. What is the probability of getting one of each colour?
Total ways: 8C2 = 28. Why: Drawn together, so combinations.
One red AND one black: 3C1 × 5C1 = 3 × 5 = 15. Why: Choose the red one (3 ways) and the black one (5 ways); multiply.
P = 15/28.
Answer: 15/28
Exam tip
Tip'Together' = combinations. 'One after another without replacement' = multiply fractions that shrink by one.
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.
Only the A✗ B✗ path leaves the problem unsolved: 1/2 × 2/3 = 1/3
At least one: use the complement: the rules
P(at least one) = 1 - P(none)
Works for coins, dice, people, machines, shots at a target.
Each person fails independently, so multiply the failure chances.
Worked example
A and B solve a problem independently with probabilities 1/2 and 1/3. What is the probability that the problem gets solved?
'The problem gets solved' means at least one of A and B solves it. Why: 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. Why: Failure is the complement of success for each person.
P(both fail) = 1/2 × 2/3 = 1/3. Why: They work independently, so multiply.
P(solved) = 1 - 1/3 = 2/3. Why: 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.
Answer: 2/3
Worked example
A die is thrown 3 times. What is the probability of getting at least one six?
P(no six on one throw) = 5/6. Why: 5 of the 6 faces are not a six.
P(no six in 3 throws) = (5/6)3 = 125/216. Why: The throws are independent, so multiply.
P(at least one six) = 1 - 125/216 = 91/216.
Answer: 91/216
Worked example
Three students solve a problem with probabilities 1/2, 1/3 and 1/4, independently. What is the probability that it is solved?
Failure chances: 1/2, 2/3, 3/4. Why: 1 minus each success chance.
All three fail: 1/2 × 2/3 × 3/4 = 6/24 = 1/4. Why: Independent, so multiply.
P(solved) = 1 - 1/4 = 3/4.
Answer: 3/4
Exam tip
TipRead 'at least', 'not all', 'the problem is solved', 'the target is hit' as: 1 minus P(nobody).
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.
King or heart: 4 + 13 - 1 = 16 cards
OR: the addition rule: the rules
P(A or B) = P(A) + P(B) - P(A and B)
Add, then remove the double-counted overlap.
Mutually exclusive: P(A or B) = P(A) + P(B)
No overlap, nothing to remove.
Worked example
From the numbers 1 to 30, one is picked at random. What is the probability it is divisible by 2 or 3?
Divisible by 2: 15 numbers. By 3: 10 numbers. Why: 30/2 and 30/3.
Divisible by both means divisible by 6: 5 numbers. Why: The overlap of multiples of 2 and 3 is multiples of 6.
15 + 10 - 5 = 20. P = 20/30 = 2/3.
Answer: 2/3
Exam tip
TipSee the word OR? Add, then ask 'can both happen at once?' If yes, subtract the overlap.
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.
Coin then die: heads AND six = 1/2 × 1/6 = 1/12
Worked example
A coin is tossed and a die is thrown. What is the probability of heads and an even number?
P(heads) = 1/2. P(even) = 3/6 = 1/2. Why: Three even faces: 2, 4, 6.
Independent, so P = 1/2 × 1/2 = 1/4. Why: The coin does not affect the die.
Answer: 1/4
Worked example
Two cards are drawn one after the other without replacement. What is the probability that both are aces?
First ace: 4/52. Why: 4 aces in 52 cards.
Second ace: 3/51. Why: One ace and one card are gone.
P = 4/52 × 3/51 = 12/2652 = 1/221.
Answer: 1/221
Worked example
A speaks the truth 3/4 of the time and B 4/5 of the time. What is the probability that they contradict each other on the same statement?
They contradict when exactly one of them tells the truth. Why: If both tell the truth or both lie, they agree.
A true and B lies: 3/4 × 1/5 = 3/20. Why: AND, independent: multiply.
A lies and B true: 1/4 × 4/5 = 4/20. Why: The other way round.
Add the two cases: 3/20 + 4/20 = 7/20. Why: The two cases cannot happen together, so plain addition.
Answer: 7/20
Exam tip
TipSay it in words: 'this AND that' → multiply. 'this case OR that case' → add the cases.
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.
Given the sum is even (18 boxes), sum 8 is 5 of them: 5/18
Conditional probability: 'given that': the rules
P(A given B) = P(A and B) / P(B)
Among the outcomes where B happened, what fraction also have A?
Worked example
Two dice are thrown. Given that the sum is even, what is the probability that the sum is 8?
Outcomes with an even sum: 18 of the 36. Why: 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. Why: All of them have an even sum, so they are all inside the new space.
P = 5/18.
Answer: 5/18
Worked example
A family has two children. Given that at least one is a boy, what is the probability that both are boys?
All families: BB, BG, GB, GG. Why: Older child first; BG and GB are different families.
'At least one boy' removes GG. Left: BB, BG, GB. Why: The given information shrinks the sample space to 3.
Both boys = BB, 1 of 3. P = 1/3.
Answer: 1/3
Exam tip
Tip'Given that' → cross out every outcome that breaks the given fact, then count again.
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.
Odds, and how questions are worded: reference
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)
Worked example
The odds against an event are 7 : 2. What is its probability?
Odds against 7 : 2 means 7 ways it fails for every 2 ways it happens. Why: Against puts failure first.
Total 9 ways. P(event) = 2/9.
Answer: 2/9
Shortcut: 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.
At least one = 1 minus none: try it
At least one six in three throws of a die?
P(no six) in one throw = 5/6, so in three throws (5/6)3 = 125/216. Why: Independent throws multiply.
1 - 125/216 = 91/216.
Answer: 91/216
Shortcut: Sum of two dice without listing
Use it when: Any 'sum is s' question with two dice.