1. University MCA (AI/ML) Semester 1
  2. PEA515
  3. Unit 5

PEA515 · Unit 5: Permutation, combination and probability

Probability: classification of events, coins, dice and cards

30 practice questions · in the ETE syllabus

Key points

  • Probability = favourable / total outcomes
  • Complement rule: 1 - P(not happening)
  • A or B = P(A) + P(B) - P(A and B)
  • Without replacement, use combinations or reduce the pack
  • Two dice: ways to get sum s = 6 - |s - 7|
  • Cards: 12 face cards, 16 honours, C(52, 2) = 1326 pairs

Probability = (number of favourable outcomes) / (total number of equally likely outcomes), a number from 0 to 1. The probability of an event not happening is 1 - P(event) (the complement rule), which is the quickest route for "at least one" questions.

ExperimentUseful facts
Two dice36 outcomes; a sum of 7 has 6 ways, so 1/6
Standard pack52 cards: 13 of each suit, 4 kings, 12 face cards, 26 red
n coin tosses2^n outcomes; at least one head = 1 - 1/2^n
Balls without replacementCount selections with combinations: C(r, 2) / C(n, 2)
A or BP(A) + P(B) - P(A and B)

Example: the probability that a card is a face card or a heart is (12 + 13 - 3) / 52 = 22/52 = 11/26, because the three face cards of hearts were counted twice. For two throws of a die, P(at least one six) = 1 - (5/6)^2 = 11/36.

Exam trap: when two events overlap, adding their probabilities counts the overlap twice, so subtract it once.

Coins and dice

Coins. n coins (or one coin tossed n times) give 2^n equally likely outcomes. Exactly k heads: C(n, k) / 2^n, so exactly two heads with 3 coins is 3/8. At most one head with 4 coins is (1 + 4) / 16 = 5/16.

Dice. One die has 6 outcomes, two dice 36 and three dice 216. With two dice the number of ways to get a sum s is 6 - |s - 7|:

Sum23456789101112
Ways12345654321

A doublet (both dice the same) has probability 6/36 = 1/6. A sum that is a multiple of 3 (3, 6, 9, 12) has 2 + 5 + 4 + 1 = 12 ways, so 1/3. An even product is easiest by complement: both odd is 9/36, so 1 - 9/36 = 3/4.

Cards

A pack has 52 cards in 4 suits of 13: spades and clubs are black, hearts and diamonds red. Each suit has ace, 2 to 10, jack, queen and king. Face cards (jack, queen, king) number 12; honours (ace, king, queen, jack) number 16.

Two cards drawn together give C(52, 2) = 1326 equally likely pairs. Both kings: C(4, 2) / 1326 = 6/1326 = 1/221. One red and one black: 26 x 26 / 1326 = 26/51. With replacement the draws are independent, so two aces in a row is (1/13) x (1/13) = 1/169.

Exam trap: aces are not face cards, so there are 12 face cards, not 16.

Try two questions

Question 1 · Tier 4, Analyse

A bag contains 4 red, 3 blue and 1 green balls. Two balls are drawn at random without replacement. What is the probability that both are red?

  1. 1/4
  2. 3/14
  3. 1/2
  4. 3/16
Show the answer

B. Worked answer: C(4, 2) / C(8, 2) = 3/14.

Why not A: Treats the draws as with replacement.

Why not C: Gives the probability for a single draw.

Why not D: Uses n for both denominators.

Question 2 · Tier 2, Understand

One card is drawn at random from a standard pack of 52 cards. What is the probability that it is a king or a spade?

  1. 17/52
  2. 1/52
  3. 4/13
  4. 16/51
Show the answer

C. 4 + 13 - 1 = 16 favourable cards out of 52: 4/13.

Why not A: Adds the two counts without removing the cards counted twice.

Why not B: Multiplies the probabilities as if the events were independent and both required.

Why not D: Divides by 51 instead of 52 cards.