40 Questions on Probability for data science Flashcards
1) Let A and B be events on the same sample space, with P (A) = 0.6 and P (B) = 0.7. Can these two events be disjoint? A) Yes B) No
Solution: (B) These two events cannot be disjoint because P(A)+P(B) >1. P(AꓴB) = P(A)+P(B)-P(AꓵB). An event is disjoint if P(AꓵB) = 0. If A and B are disjoint P(AꓴB) = 0.6+0.7 = 1.3 And Since probability cannot be greater than 1, these two mentioned events cannot be disjoint.
2) Alice has 2 kids and one of them is a girl. What is the probability that the other child is also a girl? You can assume that there are an equal number of males and females in the world. A) 0.5 B) 0.25 C) 0.333 D) 0.75
Solution: (C) The outcomes for two kids can be {BB, BG, GB, GG} Since it is mentioned that one of them is a girl, we can remove the BB option from the sample space. Therefore the sample space has 3 options while only one fits the second condition. Therefore the probability the second child will be a girl too is 1/3.
3) A fair six-sided die is rolled twice. What is the probability of getting 2 on the first roll and not getting 4 on the second roll? A) 1/36 B) 1/18 C) 5/36 D) 1/6 E) 1/3
Solution: (C) The two events mentioned are independent. The first roll of the die is independent of the second roll. Therefore the probabilities can be directly multiplied. P(getting first 2) = 1/6 P(no second 4) = 5/6 Therefore P(getting first 2 and no second 4) = 1/6* 5/6 = 5/36
Solution: (A)
P(AꓵCc) will be only P(A). P(only A)+P(C) will make it P(AꓴC). P(BꓵAcꓵCc) is P(only B) Therefore P(AꓴC) and P(only B) will make P(AꓴBꓴC)
5) Consider a tetrahedral die and roll it twice. What is the probability that the number on the first roll is strictly higher than the number on the second roll?
Note: A tetrahedral die has only four sides (1, 2, 3 and 4).
A) 1/2
B) 3/8
C) 7/16
D) 9/16
Solution: (B)
(1,1)(2,1)(3,1)(4,1)
(1,2)(2,2)(3,2)(4,2)
(1,3)(2,3)(3,3)(4,3)
(1,4)(2,4)(3,4)(4,4)
There are 6 out of 16 possibilities where the first roll is strictly higher than the second roll.
6) Which of the following options cannot be the probability of any event?
A) -0.00001
B) 0.5
C) 1.001
A) Only A
B) Only B
C) Only C
D) A and B
E) B and C
F) A and C
Solution: (F)
Probability always lie within 0 to 1.
7) Anita randomly picks 4 cards from a deck of 52-cards and places them back into the deck ( Any set of 4 cards is equally likely ). Then, Babita randomly chooses 8 cards out of the same deck ( Any set of 8 cards is equally likely). Assume that the choice of 4 cards by Anita and the choice of 8 cards by Babita are independent. What is the probability that all 4 cards chosen by Anita are in the set of 8 cards chosen by Babita?
A)48C4 x 52C4
B)48C4 x 52C8
C)48C8 x 52C8
D) None of the above
Solution: (A)
The total number of possible combination would be 52C4 (For selecting 4 cards by Anita) * 52C8 (For selecting 8 cards by Babita).
Since, the 4 cards that Anita chooses is among the 8 cards which Babita has chosen, thus the number of combinations possible is 52C4 (For selecting the 4 cards selected by Anita) * 48C4 (For selecting any other 4 cards by Babita, since the 4 cards selected by Anita are common)
Question Context 8:
A player is randomly dealt a sequence of 13 cards from a deck of 52-cards. All sequences of 13 cards are equally likely. In an equivalent model, the cards are chosen and dealt one at a time. When choosing a card, the dealer is equally likely to pick any of the cards that remain in the deck.
8) If you dealt 13 cards, what is the probability that the 13th card is a King?
A) 1/52
B) 1/13
C) 1/26
D) 1/12
Solution: (B)
Since we are not told anything about the first 12 cards that are dealt, the probability that the 13th card dealt is a King, is the same as the probability that the first card dealt, or in fact any particular card dealt is a King, and this equals: 4/52
9) A fair six-sided die is rolled 6 times. What is the probability of getting all outcomes as unique?
A) 0.01543
B) 0.01993
C) 0.23148
D) 0.03333
Solution: (A)
For all the outcomes to be unique, we have 6 choices for the first turn, 5 for the second turn, 4 for the third turn and so on
Therefore the probability if getting all unique outcomes will be equal to 0.01543
10) A group of 60 students is randomly split into 3 classes of equal size. All partitions are equally likely. Jack and Jill are two students belonging to that group. What is the probability that Jack and Jill will end up in the same class?
A) 1/3
B) 19/59
C) 18/58
D) 1/2
Solution: (B)
Assign a different number to each student from 1 to 60. Numbers 1 to 20 go in group 1, 21 to 40 go to group 2, 41 to 60 go to group 3.
All possible partitions are obtained with equal probability by a random assignment if these numbers, it doesn’t matter with which students we start, so we are free to start by assigning a random number to Jack and then we assign a random number to Jill. After Jack has been assigned a random number there are 59 random numbers available for Jill and 19 of these will put her in the same group as Jack. Therefore the probability is 19/59
11) We have two coins, A and B. For each toss of coin A, the probability of getting head is 1/2 and for each toss of coin B, the probability of getting Heads is 1/3. All tosses of the same coin are independent. We select a coin at random and toss it till we get a head. The probability of selecting coin A is ¼ and coin B is 3/4. What is the expected number of tosses to get the first heads?
A) 2.75
B) 3.35
C) 4.13
D) 5.33
Solution: (A)
If coin A is selected then the number of times the coin would be tossed for a guaranteed Heads is 2, similarly, for coin B it is 3. Thus the number of times would be
Tosses = 2 * (1/4)[probability of selecting coin A] + 3*(3/4)[probability of selecting coin B]
= 2.75
12) Suppose a life insurance company sells a $240,000 one year term life insurance policy to a 25-year old female for $210. The probability that the female survives the year is .999592. Find the expected value of this policy for the insurance company.
A) $131
B) $140
C) $112
D) $125
Solution: (C)
P(company loses the money ) = 0.99592
P(company does not lose the money ) = 0.000408
The amount of money company loses if it loses = 240,000 – 210 = 239790
While the money it gains is $210
Expected money the company will have to give = 239790*0.000408 = 97.8
Expect money company gets = 210.
Therefore the value = 210 – 98 = $112
Solution: (A)
The above statement is true. You would need to know that
P(A/B) = P(AꓵB)/P(B)
P(CcꓵA|A) = P(CcꓵAꓵA)/P(A) = P(CcꓵA)/P(A)
P(B|A ꓵ Cc) = P(AꓵBꓵCc)/P(A ꓵ Cc)
Multiplying the three we would get – P(AꓵBꓵCc), hence the equations holds true
14) When an event A independent of itself?
A) Always
B) If and only if P(A)=0
C) If and only if P(A)=1
D) If and only if P(A)=0 or 1
Solution: (D)
The event can only be independent of itself when either there is no chance of it happening or when it is certain to happen. Event A and B is independent when P(AꓵB) = P(A)*P(B). Now if B=A, P(AꓵA) = P(A) when P(A) = 0 or 1.
15) Suppose you’re in the final round of “Let’s make a deal” game show and you are supposed to choose from three doors – 1, 2 & 3. One of the three doors has a car behind it and other two doors have goats. Let’s say you choose Door 1 and the host opens Door 3 which has a goat behind it. To assure the probability of your win, which of the following options would you choose.
A) Switch your choice
B) Retain your choice
C) It doesn’t matter probability of winning or losing is the same with or without revealing one door
Solution: (A)
I would recommend reading this article for a detailed discussion of the Monty Hall’s Problem.
16) Cross-fertilizing a red and a white flower produces red flowers 25% of the time. Now we cross-fertilize five pairs of red and white flowers and produce five offspring. What is the probability that there are no red flower plants in the five offspring?
A) 23.7%
B) 37.2%
C) 22.5%
D) 27.3%
Solution: (A)
The probability of offspring being Red is 0.25, thus the probability of the offspring not being red is 0.75. Since all the pairs are independent of each other, the probability that all the offsprings are not red would be (0.75)5 = 0.237. You can think of this as a binomial with all failures.