Professional Documents
Culture Documents
A Revision
Keywords: Sample space. Experiment. Probability. Permutation. Combination. Venn
Diagram. Union. Intersection. Collectively exhaustive. Addition Rule. Mutually exclu-
sive. Complement. Marginal probability. Conditional probability. Independent. Multi-
plicative Rule. Law of total probability. Bayes’ Theorem
Definition A.1 The sample space is defined as the set of all possible experimental
outcomes. Any one particular experimental outcome is referred to as a sample point and
is an element of the sample space.
Definition A.3 (Factorial) The symbol n! represents the product of all integers from
n to 1. In other words,
n! = n(n − 1)(n − 2)(n − 3) · . . . · 3 · 2 · 1
and by definition, 0! = 1.
That is, sampling is equivalent to partitioning a set of n elements into 2 groups: elements
that appear in the sample and those that do not. Let r be the number of elements in the
sample, and n − r be the number of elements remaining. Then the number of different
samples of r elements that can be selected from n is
n n n!
n Cr = Cr = = . (A.2)
r r!(n − r)!
Theorem A.5 Consider two events A and B, the probability of the union of A and B is
P (A ∪ B) = P (A) + P (B) − P (A ∩ B) (A.3)
Theorem A.6 If the events A and B are mutually exclusive, i.e. P (A ∩ B) = 0, the
probability of the union of A and B is
P (A ∪ B) = P (A) + P (B) (A.4)
1
AMA1110 2019/20 Semester 1 Exercise 6
Theorem A.8 If A and B are two events with P (A) 6= 0 and P (B) 6= 0, then
P (A ∩ B) P (A ∩ B)
P (A|B) = and P (B|A) = (A.5)
P (B) P (A)
Definition A.9 Two events A and B are said to be independent if the occurrence of
one does not affect the probability of the occurrence of the other. In other words, A and
B are independent events if
P (Bk )P (A|Bk )
P (Bk |A) = (A.9)
P (B1 )P (A|B1 ) + P (B2 )P (A|B2 ) + · · · + P (Bn )P (A|Bn )
2
AMA1110 2019/20 Semester 1 Exercise 6
B Exercise
1. For each of the following 9 given letters, suppose that they are randomly shuffled. What
is the probability that, after the shuffle, A or B or both appear in the same positions as
before? Assume that each distinct permutation is equally probable.
2. In the experiment of shuffling 8 letters ABCDEF GH, are the events “A stays in its
original position” and “B stays in its original position” independent?
3. For two events A and B, it is given that P (A|B) = 0.2 and P (A|B̄) = 0.5.
(a) If P (B) = 0.7, what is P (B|A)?
(b) If P (A) = 0.3, what is P (B|A)?
(c) If P (B|A) = 0.6, what is P (B|Ā)?
4. It is known from past experience that for students who studied for at least 20 hours, their
chance of passing the exam is 0.95, while for those who studied for less than 20 hours,
their chance of passing the exam is 0.1. It is also know that the passing rate is 90%. If a
student is randomly chosen and is found to have passed, what is the probability that he
has studied for less than 20 hours?
5. (a) Find the smallest number of times a fair die has to be rolled so that the probability
of getting at least one “6” is at least 0.9.
(b) Find the smallest number of times a fair coin has to be tossed so that the probability
of seeing at least one head and one tail in the process is at least 0.99.
6. The probability that a person is getting no reward, at most 1 reward, at most 2 rewards
and at most 3 rewards are respectively 0.52, 0.64, 0.73 and 0.81. Find the probability
that the person gets
(a) exactly 1 reward;
(b) exactly 3 rewards;
(c) exactly 2 rewards, given that he is known to have received at most 3 rewards.
Answer:
5 1
1a. 24 4. 153
7
1b. 180 5a. The smallest number of roll is 13.
14
3a. 29 6a. 0.12
4
3b. 9 6b. 0.08
6 1
3c. 7 6c. 9
3
AMA1110 2019/20 Semester 1 Exercise 6
1. Let A be the event that A appears in the same position. Let B be the event that B appears in the
same position.
8! 8! 7! 5
1a. P (A ∪ B) = P (A) + P (B) − P (A ∩ B) = 9! + 9! − 9! = 24 .
9!
1b. With 3 ”A”s and 2 ”B”s, distinct permutation: 2!3! . ”A” fixed, then 6!
2! permutations for the letters
7!
CDEFBB. ”B” fixed, then 3! permutations for the letters AAACDEF. ”AB” fixed, then 4! permutations
6! 7!
4! 7
for the letters CDEF. P (A ∪ B) = P (A) + P (B) − P (A ∩ B) = 2!
9! + 3!
9! − 9! = 180 .
2!3! 2!3! 2!3!
2. Let A be the event that A appears in the same position. Let B be the event that B appears in the
6!
7!
same position. P (A) = 8! = 18 . P (A|B) = P P(A∩B) 8! 1 1
(A) = 7! = 7 6= 8 . Hence, A and B are not independent.
8!
3a.
P (B)P (A|B) P (B)P (A|B) 14
P (B|A) = = =
P (A) P (B)P (A|B) + P (B̄)P (A|B̄) 29
.
3b. Since P (A) = P (B)P (A|B)+P (B̄)P (A|B̄), we have 0.3 = 0.2P (B)+0.5(1−P (B)), hence P (B) = 32 .
P (B)P (A|B) P (B)P (A|B) 0.2( 23 )
Therefore, we have P (B|A) = P (A) = P (B)P (A|B)+P (B̄)P (A|B̄)
= 0.3 = 49 .
3c. Let P (A) = p, P (B) = q. Since P (A) = P (B)P (A|B) + P (B̄)P (A|B̄), we have
p = qP (A|B) + (1 − q)P (A|B̄) ⇒, p = 0.2q + 0.5(1 − q), hence
p + 0.3q = 0.5.
Also, 0.6 = P (B|A) = P (B)P (A|B)
P (A) = qP (A|B)
p = 0.2 pq , hence
q = 3p.
5 15
On solving, we have p = 19 and q = 19 .
P (B)P (Ā|B) [1−P (A|B)]P (B) 6
P (B|Ā) = P (Ā)
= 1−P (A) = 7
4. Let “pass” be the event that the student chosen passed the exam.
Let “≥ 20” be the event that the student studied at least 20 hours.
Let “< 20” be the complement of “≥ 20”.
Then we have
P (pass| ≥ 20) = 0.95, P (pass| < 20) = 0.1 and P (pass) = 0.9. We want to find P (< 20|pass).
Since by Law of total probability (A.11), we have
P (pass) = P (≥ 20)P (pass| ≥ 20) + P (< 20)P (pass| < 20)
= (1 − P (< 20))P (pass| ≥ 20) + P (< 20)P (pass| < 20)
0.9 = 0.95(1 − P (< 20)) + 0.1P (< 20)
1
⇒ P (< 20) =
17
5a.
5b.
6a. P (X = 1) = P (X ≤ 1) − P (X = 0) = 0.12
6b. P (X = 3) = P (X ≤ 3) − P (X ≤ 2) = 0.08
P (X=2∩X≤3) P (X=2) P (X≤2)−P (X≤1) 1
6c. P (X = 2|X ≤ 3) = P (X≤3) = P (X≤3) = P (X≤3) = 9