STATS THEORY PROBABILITY
STATS THEORY PROBABILITY
HO Sheng Chao
COR-STAT 1203
Term II 2024-2025
Note: One and only one of the possible outcomes will occur on any
given trial of the experiment.
• In Example 2.1,
• let A be the event that at least one head is obtained in a toss of two
coins, then A = {HT, TH, HH}.
• let B be the event that at least one tail is obtained in a toss of two
coins, then B = {HT, TH, TT}.
• An event A is always practically meaningful. It occurs if any of its
outcomes occurs. So, intuitively the ‘chance’ for event A to occur depends
on the ‘size’ of A.
• Unlike outcomes, events do not need to be mutually exclusive: both events
A and B can occur at the same time.
S S
A B A
Union: the union of two sets A and B, denoted by AB, is a new set
consisting of all elements that are either in A or in B or in both A and
B, i.e.,
AB = {a | a A or a B}
Intersection: the intersection of A and B, denote by AB, is a new
set containing all elements both in A and in B, i.e.,
AB = {a | a A and a B}
S
S
AB AB
A
A B
A C
ABC: all shaded areas
S S
A B A B
In Example 2.5, let A be the event that the sum of the two dice equals to
7, and B be the event that the first die shows a 5. Then,
A = {(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)}
B = {(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6)}
Now,
AB = {(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1),
(5, 1), (5, 3), (5, 4), (5, 5), (5, 6)}
AB = {(5, 2)}
A\B = {(1, 6), (2, 5), (3, 4), (4, 3), (6, 1)}
A2 A3 A2 A3
BA2 BA3
A1 A4 A1 BA1
BA6
B BA5
BA4 A4
A6 A5 A6 A5
If there are N equally likely possibilities, of which one must occur and
n(A) of them are contained in event A, then the probability of A is
given by P(A) = n(A)/N.
Using Venn S
diagram, the
Area of A A
geometric P ( A) =
interpretation: Area of S
• Multiplicative Rule: Let E1, E2, ..., Ek be sets with n1, n2, ..., nk
elements, respectively. Then there are n1 n2 … nk ways in which
we can first choose an element of E1, then an element of E2, ..., and
finally an element of Ek .
Example 2.20. If five boys and five girls sit in a row in a random
order, what is the probability that no two children of the same sex sit
together?
Solution: First, there are 10! possible seating patterns in total for the
10 children. In order that no two children of the same sex sit together,
boys must occupy positions 1, 3, 5, 7 and 9 and girls 2, 4, 6, 8 and 10.
There are 5! different ways for the five boys to occupy positions 1, 3,
5, 7, 9, and 5! different ways for the five girls to occupy positions 2,
4, 6, 8 and 10.
Hence the total number of different ways for this to happen is 5!5!
Boys and girls can switch positions, i.e., boys occupy positions 2, 4,
6, 8 and 10 and girls 1, 3, 5, 7 and 9,
Hence the total number of seating patterns such that no two children
of the same sex sit together is 25!5!
Therefore, the desired probability is
2 × 5! × 5!
≈ 0.08
10!
Example 2.21. In how many different ways can a committee of three people
be formed from a total of 20?
Solution: Since the order is immaterial, the answer is 20C3= 1140, i.e., there
are 1140 different ways (less than the number in Example 1.18).
P2 4 C2 4 C3 13 12 4 3 4 2
P(Full House) = 13
= = 0.00144
52 C5 52! (47!5!)
Addition Rule: For any two events A and B, the following is true:
P(AB) = P(A) + P(B) – P(AB)
P( A B) S
P( A | B) =
P( B) A AB B
Area of ( A B )
=
Area of B
Recall:
− the magnitude of P(A) depends on
Area of A
P ( A) = the relative sizes of the event A and
Area of S the sample space S.
COR-STAT1203, Term II 2024-25 33 Courtesy of & adapted from Zhenlin Yang.
All errors are my own.
Venn Diagram Illustration Session 2
S S
A B A AB B
S S
A AB B A B
AB = B
0 < P(A|B) < 1 P(A|B) = 1
COR-STAT1203, Term II 2024-25 34 Courtesy of & adapted from Zhenlin Yang.
All errors are my own.
Conditional Versions of the Probability Rules Session 2
𝑐 𝑃(𝐴∩𝐵 𝑐 ) 15/100 3
𝑃 𝐴𝐵 = = = .
𝑃(𝐵 𝑐 ) 20/100 4
Solution: Define
A = {getting an ace on the first draw}
B = {getting a king on the 2nd draw}
C = {getting an ace on the 3rd draw}
D = {getting a queen on the 4th draw}
BA6
B BA5
BA4 A4
Example 2.14. In a certain assembly plant, three machines, A1, A2, and
A3, make 30%, 45%, and 25%, respectively, of the products. It is known
from the past experience that 2%, 3%, and 2% of the products made by
each machine, respectively, are defective. Now, suppose that a product
is randomly selected. What is the probability that it is defective?
Solution: Consider the following events:
B: the product is defective,
A1: the product is made by machine A1,
A2: the product is made by machine A2,
A3: the product is made by machine A3.
Then, P(A1) = 0.3, P(A2) = 0.45, and P(A3) = 0.25;
P(B|A1) = 0.02, P(B|A2) = 0.03, and P(B|A3) = 0.02.
The desired probability is P(B), and by the Law of Total Probability:
P(B) = P(B|A1) P(A1) + P(B|A2) P(A2) + P(B|A3) P(A3)
= (0.02)(0.3) + (0.03)(0.45) + (0.02)(0.25) = 0.0245.
COR-STAT1203, Term II 2024-25 44 Courtesy of & adapted from Zhenlin Yang.
All errors are my own.
Chapter Contents Session 2
The next result will help answer the question: Given that event B has
occurred, was it due to (caused by) A1, or A2, …, or Ak?
Bayes' Theorem:
𝑷 𝑩 𝑨𝒊 )𝑷(𝑨𝒊 )
𝑷 𝑨𝒊 𝑩) = 𝑷(𝑩)
In view of the fact that a defective product was selected, this result
suggests that it probably was not produced by machine A3.
Important concepts:
sample space, event, union, intersection, complement, probability,
conditional probability, independence, mutual exclusiveness.
Important probability rules:
complement rule, addition rule, multiplication rule, law of total
probability, Bayes rule.
Important counting rules:
multiplicative rule, permutation, combination.