Match Chapter 1 - Slides
Match Chapter 1 - Slides
(i) If the problem of interest is “the number that shows on the top
face", then
• Sample space:
S = {(1, 1), (1, 2), . . . , (1, 5), (1, 6), (2, 1), (2, 2), . . . , (6, 5), (6, 6)}.
A = {(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)}.
(ii) If the dice are not labelled, S contains 21 elements:
• Sample space:
S = {{1, 1}, {1, 2}, . . . , {1, 5}, {1, 6}, {2, 2}, {2, 3}, . . . , {5, 6}, {6, 6}}.
Step 1. Flip a coin and observe whether the head (H) or the tail (T )
faces up.
S = {(H, H), (H, T ), (T, 1), (T, 2), (T, 3), (T, 4), (T, 5), (T, 6)}.
S = {(B,W ), (B, R), (W, B), (W, R), (R, B), (R,W )}.
• Event operations:
(i) Union; (ii) Intersection; (iii) Complement.
• Event relationships:
(i) Contained; (ii) Equivalent; (iii) Mutually exclusive.
Union
The union of events A and B, denoted by A ∪ B, is the event containing
all elements that belong to A or B or both. That is
A ∪ B = {x : x ∈ A or x ∈ B}.
A A∩B B
Intersection
The intersection of events A and B, denoted by A ∩ B or simply AB, is
the event containing elements that belong to both A and B. That is
A ∩ B = {x : x ∈ A and x ∈ B}.
A A∩B B
We can also consider the union and intersection of n events: A1, A2, . . . , An.
• Union:
n
[
Ai = A1 ∪ A2 . . . ∪ An = {x : x ∈ A1 or x ∈ A2 or . . . or x ∈ An},
i=1
A′ = {x : x ∈ S but x ∈
/ A}.
A A′
Mutually Exclusive
Events A and B are said to be mutually exclusive or disjoint, if A ∩ B =
/ That is, A and B have no element in common.
0.
A B
Contained and Equivalent
If all elements in A are also elements in B, then we say A is contained
in B, denoted by A ⊂ B, or equivalently B ⊃ A.
B A
Then
(iii) A ∪ B ∪C = S; A ∩ B ∩C = 0.
/
(g) A ∪ B = A ∪ (B ∩ A′)
(h) A = (A ∩ B) ∪ (A ∩ B′)
D E M ORGAN ’ S L AW
For any n events A1, A2, . . . , An,
We have
A′ = {4, 5, 6}, B′ = {2, 4, 6}, C′ = {1, 3, 5}.
We check that
Step 1. Flip a coin and observe whether the head (H) or the tail (T )
faces up.
A ∪ B = {(T, 1), (T, 2), (T, 3), (T, 4), (T, 6)}
B ∪C = {(T, 2), (T, 4), (T, 6), (H, H), (H, T )}
A ∩ B = {(T, 2)}
B ∩C = 0/
A ∪ B ∪C = {(H, H), (H, T ), (T, 1), (T, 2), (T, 3), (T, 4), (T, 6)}
A ∩ B ∩C = 0/
(A ∪ B) ∩C = 0/
A′ ∩ B′ = {(H, H), (H, T ), (T, 5)} = (A ∪ B)′
A′ ∪ B′ = {(H, H), (H, T ), (T, 1), (T, 3), (T, 4), (T, 5), (T, 6)} = (A ∩ B)′
3 C OUNTING M ETHODS
Multiplication principle
Addition principle
S = {(x, y) : x = 1, . . . , 6; y = H or T }.
L-E XAMPLE 1.5
A small community consists of 10 men, each of whom has 3 sons. If
one man and one of his sons are to be chosen as “father and son" of
the year, how many different choices are possible?
Solution:
We can think of the problem as
• experiment 2: choose the son; for each of the father, there are 3
sons to choose from.
• experiment 2: choose the number for tens place; from digits left
from experiment 1 — 4 possibilities.
• experiment 2: choose the number for tens place; from all digits
provided — 5 possibilities.
G B G B G B G B G
n1 + n2 + . . . + nk .
E XAMPLE 1.5 (O RCHARD ROAD )
We can take the MRT or bus from home to Orchard road. Suppose
there are three bus routes and two MRT routes. How many ways can
we go from home to Orchard road?
Solution:
Consider the trip from home to Orchard road as an experiment. Two
procedures can used to complete the experiment:
(ii) If 3 persons insist on following one other, how many ways can
these 6 persons line up?
(iii) If 2 persons refuse to follow each other, how many ways of lining
up are possible?
Solution:
On the other hand, for each permutation above, such as (G, d, f , e),
we can arrange a, b, c within G differently. The number of ways
of ordering them within G is P33 = 3! = 6.
From Part (i), the total number of ways for lining up 6 persons is
720. Therefore, we have
ways of lining up 6 persons such that the two given persons are
not following each other.
C OMBINATION
A combination is a selection of r objects out of n, without regard to the order.
n
Crn
The number of combinations of choosing r objects out of n, denoted by or r, is
given by as
n n!
= .
r r!(n − r)!
n n
Note that this formula immediately implies r = n−r .
The derivation is as follows.
(B) On the other hand, the same permutation task can be achieved by
conducting the following two experiments sequentially:
n
(1) Select r objects out of n without regard to the order: r ways.
(2) For each such combination, permute its r objects: Prr ways.
(C) Therefore, by the multiplication rule, the number of ways to choose
and arrange r objects out of n is nr × Prr .
n
(D) As a consequence, r × Prr = Prn, and so we obtain
(ii) when we need 2 men and 1 woman, and a certain man must be
on the committee?
(iii) when we need 2 men and 1 woman, and 2 of the men are feuding
and refuse to serve on the committee together?
Solution:
(i) How many ways are there to select a sample of 5 buses from the
20 for a thorough inspection?
(ii) In how many ways can we obtain a sample of 5 buses where ex-
actly 4 buses have visible cracks?
Solution:
20
(i) The number of ways to select 5 buses out of 20 is 5 = 15504.
(ii) Now,
Clearly, fA may not equal to P(A) exactly. However when n grows large, we expect
fA to be close to P(A); in the sense that fA ≈ P(A). Or mathematically,
fA → P(A), as n → ∞.
Thus fA “mimics" P(A), and has the following properties:
(a) 0 ≤ fA ≤ 1.
Axiom 3. For any two mutually exclusive events A and B, that is, A ∩ B = 0,
/
(ii) the coin is biased and a head is twice as likely to appear as a tail.
Solution:
The sample space is S = {H, T }.
B = {1 or 3 turns up};
/ = P(0/ ∪ 0)
P(0) / = P(0)
/ + P(0)
/ = 2P(0).
/
P(A′) = 1 − P(A).
Proof Since S = A ∪ A′ and A ∩ A′ = 0,
/ based on Axioms 2 and 3, we
have
1 = P(S) = P(A ∪ A′) = P(A) + P(A′).
The result follows. ✠
P ROPOSITION 5
For any two events A and B,
we have
P(A) = P(A ∩ B) + P(A ∩ B′).
✠
P ROPOSITION 6
For any two events A and B,
we have
✠
P ROPOSITION 7
If A ⊂ B, then P(A) ≤ P(B).
Proof Since A ⊂ B, we have A ∪ B = B. Also, we have
Thus we obtain
✠
E XAMPLE 1.9
A retail establishment accepts either the American Express or the VISA
credit card.
A total of 24% of its customers carry an American Express card, 61%
carry a VISA card, and 11% carry both.
What is the probability that a customer carries a credit card that the
establishment will accept?
Solution:
Let
A = {the customer carries an American Express Card}
and
V = {the customer carries an VISA Card}.
Then
P(A) = 0.24, P(V ) = 0.61, P(A ∩V ) = 0.11.
(i) What is the probability that she wins at least one of two?
(ii) What is the probability that she wins only one of two?
Solution:
Let A = {win the crown} and B = {win Miss Photogenic}.
(i) The probability that she wins at least one of the two titles
(ii) The event that she wins the crown but not Miss Photogenic is
A ∩ B′. Proposition 5 gives
A ∩ B′ A∩B A′ ∩ B
Similarly, the probability that she wins Miss Photogenic but not
the crown is
P(B ∩ A′) = P(B) − P(A ∩ B) = 0.3 − 0.11 = 0.19.
As (A ∩ B′) ∩ (A′ ∩ B) = 0,
/ the required probability is
P((A ∩ B′) ∪ (A′ ∩ B)) = 0.03 + 0.19 = 0.22.
F INITE S AMPLE S PACE WITH E QUALLY L IKELY O UTCOMES
Consider a sample space S = {a1, a2, . . . , ak }.
Assume that all outcomes in the sample space are equally likely to occur, i.e.,
• A ∩ B consists of 25 elements.
These give
There are n people in a room, what is the probability that there are at
least two persons with the same birthday?
• Let
then
A′ = {all people have different birthdays}.
• We count the number of points in S and A′:
• When there are 100 people, it is almost sure that you can find two
people sharing the same birthday!
L-E XAMPLE 1.17 (I NVERSE B IRTHDAY P ROBLEM )
How large does a group of (randomly selected) people have to be such
that the probability that someone shares his or her birthday with you
is larger that 0.5?
Solution:
The probability
n that n persons all have different birthdays from you is
364
.
365
So we need a n such that
1 − (364/365)n ≥ 0.5.
log(0.5)
n≥ = 252.7.
log(364/365)
So we need at least 253 people (excluding yourself).
R EMARK (B IRTHDAY P ROBLEMS )
Why is there a big difference in the answers between the two birthday problems?
• The inverse birthday problem requires the sharing of a particular day as the
common birthday;
• The birthday problem allows that any day is the shared birthday.
5 C ONDITIONAL P ROBABILITY
P(A ∩ B)
P(B|A) = .
P(A)
E XAMPLE 1.11
A fair die is rolled twice.
(i) What is the probability that the sum of the 2 rolls is even?
(ii) Given that the first roll is a 5, what is the (conditional) probability
that the sum of the 2 rolls is even?
Solution:
2nd roll
1 2 3 4 5 6
1 (1, 1) (1, 2) (1, 3) (1, 4) (1, 5) (1, 6)
2 (2, 1) (2, 2) (2, 3) (2, 4) (2, 5) (2, 6)
1st roll 3 (3, 1) (3, 2) (3, 3) (3, 4) (3, 5) (3, 6)
4 (4, 1) (4, 2) (4, 3) (4, 4) (4, 5) (4, 6)
5 (5, 1) (5, 2) (5, 3) (5, 4) (5, 5) (5, 6)
6 (6, 1) (6, 2) (6, 3) (6, 4) (6, 5) (6, 6)
2nd roll
1 2 3 4 5 6
1st roll 5 (5, 1) (5, 2) (5, 3) (5, 4) (5, 5) (5, 6)
We are interested to look for instances along this row that gives
an even sum. So P(B|A) = 3/6.
Alternatively, we can use the formula:
3
P(AB) 36
P(B|A) = = 6
.
P(A) 36
R EMARK (R EDUCED S AMPLE S PACE )
P(B|A) is read as:
Since we know that A has occurred, regard A as our new, or reduced sample space.
The conditional probability that the event B given A will equal the probability of
A ∩ B relative to the probability of A.
L-E XAMPLE 1.18
Suppose we roll two fair dice.
Given that the first die is less than 3, what is the probability that the
sum of the 2 dice is more than 7?
Solution:
Define the events:
Consider the reduced sample space, i.e., event A, with the following
12 equally likely sample points:
{(1, 1), (1, 2), . . . , (1, 6), (2, 1), (2, 2), . . . , (2, 6)}
The required probability is P(B|A) = 1/12 since there is only one point
(2, 6) in the reduced sample space that gives a sum more than 7.
M ULTIPLICATION R ULE
Starting from the definition of conditional probability, and rearranging the terms,
we have
(i) What is the probability that both shirts picked are white?
(ii) What is the probability that only one white shirt is picked?
Solution:
Define the events:
A1 = {the first shirt is white};
A2 = {the second shirt is white}.
(i) We have P(A1) = 3/12. Given that the first shirt is white, then
there are 2 white shirts among the remaining 11 shirts, therefore
P(A2|A1) = 2/11.
Consequently,
P((A1 ∩ A′2) ∪ (A′1 ∩ A2)) = (3/12) · (9/11) + (9/12) · (3/11) = 9/22.
6 I NDEPENDENCE
P(A ∩ B) = P(A)P(B).
We denote this by A ⊥ B.
If A and B are not independent, they are said to be dependent, denoted by
A ̸⊥ B.
R EMARK
If P(A) ̸= 0, A ⊥ B if and only if P(B|A) = P(B).
This follows from the definition of conditional probability –
P(A ∩ B) P(A)P(B)
A ⊥ B ⇔ P(B|A) = = = P(B).
P(A) P(A)
Intuitively, this is the same as saying that A and B are independent if the knowledge
of A does not change the probability of B.
(i) Let
A6 = {the sum of two dice is 6}, B = {the first die equals 4}.
Thus
Then
S
A B
L-E XAMPLE 1.20 (S OME PROPERTIES OF INDEPENDENCE )
Determine if the following statements are TRUE or FALSE.
(a) Suppose P(A) > 0, P(B) > 0. If A ⊥ B, then A and B are not mutually
exclusive.
(b) Suppose P(A) > 0, P(B) > 0. If A and B are mutually exclusive, then
A ̸⊥ B.
(a) TRUE
Using independence, P(A ∩ B) = P(A)P(B) > 0.
(b) TRUE
Using mutual exclusivity, P(A ∩ B) = 0 ̸= P(A)P(B).
(c) TRUE
For any event A,
P(A ∩ S) = P(A) = P(A)P(S),
and
P(A ∩ 0)
/ = P(0)
/ = 0 = P(A)P(0).
/
(d) TRUE
We shall derive only one. Note that A = (A ∩ B) ∪ (A ∩ B′). So we
have
P(A ∩ B′) = P(A) − P(A ∩ B) = P(A) − P(A)P(B)
= P(A)(1 − P(B)) = P(A)P(B′).
L-E XAMPLE 1.21
The probability that Tom will be alive in 20 years is 0.7. The probability
that Jack will be alive in 20 years is 0.9.
What is the probability that neither will be alive in 20 years?
Solution:
Define
We now discuss Bayes’ Theorem (or Bayes’ Rule), which will allow us
to relate P(A|B) to P(B|A) and compute conditional probabilities in a
wide range of problems.
T HEOREM 12 (B AYES ’ T HEOREM )
Let A1, A2, . . . , An be a partition of S, then for any event B and k = 1, 2, . . . , n,
P(Ak )P(B|Ak )
P(Ak |B) = n .
∑i=1 P(Ai)P(B|Ak )
Proof Bayes’ Theorem can be derived based on the definition of con-
ditional probability, the Multiplication Rule, and the Law of Total Prob-
ability.
In particular,
P(A)P(B|A)
P(A|B) = .
P(A)P(B|A) + P(A′)P(B|A′)
E XAMPLE 1.15
The previous formula is practically meaningful.
For example, consider the events
Then
Let
We then have
The question asked for P(B|A). We will compute it using Bayes’ Theo-
rem.
The denominator can be computed using the Law of Total Probability:
The numerator is
As a consequence,
P(A|B)P(B)
P(B|A) = = 0.9870.
P(A)
L-E XAMPLE 1.23
An insurance company believes that people can be divided into two
classes: accident-prone and not accident-prone.
Historically, they observe that the probability that an accident-prone
person will have an accident within a fixed 1-year period is 0.04. For a
not accident-prone person, that probability is 0.02.
Assume that 30% of the population is accident prone.
(i) What is the probability that a new policyholder will have an ac-
cident within a year of purchasing a policy?