Chapter 1 Introduction to Probability
Chapter 1 Introduction to Probability
E-mail: [email protected]
January 9, 2025
Complement: A (or Ac , A0 )
A = Ω\A
A = {x|x ∈ Ω và x ∈
/ A}
A=A
Example example
If Ω = {1, 2, 3, 4, 5, 6}, A = {1, 3, 5}⇒ Ac = {2, 4, 6}.
If Ω = R, A = [2, 4]⇒ Ac = (−∞, 2) ∪ (4, ∞).
Union: A + B or A ∪ B
A + B = {x|x ∈ A or x ∈ B}
Intersection: AB or A ∩ B
AB = {x|x ∈ A and x ∈ B}
Example
1 {1, 3, 4, 7} ∩ {2, 3, 5}= {3}. 3 {1, 3, 4, 7} ∪ {2, 3, 5}= {1, 2, 3, 4, 5, 7}.
2 [1, 4) ∩ [2, 7]= [2, 4). 4 [1, 4) ∪ [2, 7]= [1, 7].
Difference: B\A
B\A = {x|x ∈ B và x ∈
/ A}
Symmetric difference: A M B
A M B = {x|x ∈ A\B or x ∈ B\A}
Example
1 {1, 3, 4, 7}\{2, 3, 5}= {1, 4, 7}. 3 {1, 3, 4, 7} M {2, 3, 5}= {1, 2, 4, 5, 7}.
2 [1, 4)\[2, 7]= [1, 2). 4 [1, 4) M [2, 7]= [1, 2) ∪ [4, 7].
Distribution Law
1 A(B + C ) = AB + AC
2 A + (BC ) = (A + B)(A + C )
De Morgan’s Rule
1 A + B = A B.
2 AB = A + B
Difference laws
1 A\(B + C ) = (A\B)(A\C )
2 A\(BC ) = (A\B) + (A\C )
Counting rules
1 Addition rule: A and B are 2 disjoint sets. Choose 1 element from A and B:
|A| + |B| ways to choose.
2 Multiplication rule: Choose 1 element from A, and 1 element from B: |A|.|B| ways
to choose.
3 Shepherd’s rule: ] sheep = ] legs /4:When the counting is repeated by the same
factor, we must divide by this factor.
4 Mississippi Rule: ] different permutations of a string of characters = ]
permutations if all characters are different /] permutations obtained by reversing the
positions of identical characters.
Example
1 Form a word of 4 letters from 24 letters. Number of different words: 244 .
2 A printed circuit board has 8 different locations in which 1 component can be
placed. If 4 different components are to be placed on the board, how many designs
are possible? A48 = (8−4)!
8!
.
3 In a hospital, the operating room needs to schedule 3 knee surgeries (k) and 2 hip
surgeries (h) in a day. How many sequences are there? C52 = 2!3!
5!
.
4 A bin of 50 parts contains 3 defectives and 47 non-defective parts. A sample of 6
parts is selected without replacement. How many samples of size 6 contain 2
defective parts? C32 C47
4
.
Random Experiment
An experiment is a process of observing a certain phenomenon. An trial is a single
execution of an experiment. An experiment that yields many different results when
performed under the same conditions is a random experiment.
Sample Space Ω
The set of all possible outcomes is called the sample space. Notation Ω.
Each element of Ω is called an elementary event.
Event
A subset of the sample space is called an event.
certain event: Ω.
impossible event: ∅.
random event: An event that may or may not occur: A ⊂ Ω, A 6= Ω, A 6= ∅.
Example
Roll a die.
Ω = {1, 2, 3, 4, 5, 6}.
P(1) = P(2) = ... = P(6) = 16 . P(Ω) = 1, P(∅) = 0.
A = {1}, P(A) = 16 .
B = {1, 3, 5}: The number of dots is odd, P(B) = 36 = 21 .
C = {3, 6}: The number of dots is divisible by 3, P(C ) = 31 .
C + B = {1, 3, 5, 6}, BC = {3}.
A = {2, 3, 4, 5, 6}, P(A) = 1 − P(A)= 56 .
Example
Toss 3 fair coins. Find the probability that at least 2 faces are different.
Properties
1 0 ≤ P(A) ≤ 1 5 With the set of pairwise mutually
2 P(Ω) = 1 and P(∅) = 0. exclusive events A1 , · · · , An :
3 P(A) = 1 − P(A) P(A1 + A2 + · · · + An )
4 If A ⊂ B then P(A) ≤ P(B) = P(A1 ) + · · · + P(An )
Addition formula
Given 2 event
P(A + B) = P(A) + P(B) − P(AB)
Given 3 event
In general,
P P P P
P Ai = P(Ai ) − P(Ai Aj ) + P(Ai Aj Ak ) − · · ·
i i i,j i,j,k
A: the event that the patient has a bacterial infection, P(A) = 0.7.
B: the event that the patient has a viral infection, P(B) = 0.4.
Because the patient has at least one infection: P(A + B) = 1.
The probability that the patient has both infections:
P(AB) = P(A) + P(B) − P(A + B)= 0.7 + 0.4 − 1 = 0.1.
Properties
0 ≤ P(B|A) ≤ 1.
P(B|B) = 1.
If AC = ∅, then P(A + C |B) = P(A|B) + P(C |B).
P(Ā|B) = 1 − P(A|B).
Example
Roll the dice A = {2, 3, 4, 6}, B = {2, 5, 6}. Calculate P(A|B).
|AB| 2
AB = {2, 6}, P(A|B) = = .
|B| 3
Ω = {TT , TG , GT , GG }
A = {GG }: Both are girls. B: At least 1 child is a girl, B = {TG , GT , GG }.
|AB| 1
P(A|B) = = .
|B| 3
Example
Knowing that of the two children, the older one is a girl. Calculate the probability that
both are girls.
Ω = {TT , TG , GT , GG }.
A: Both are girls
B = {GG , GT }: The elder child is a girl
|AB| 1
P(A|B) = = .
|B| 2
Example
The probability that a part produced in stage 1 of a machining operation meets
specifications is 0.9. The probability that it meets specifications in the second stage,
given that it meets specifications in the first stage, is 0.95. What is the probability that
both stages meet specifications?
4 1
a)A: the card is A, P(A) = = .
52 13
2 1
b) B: the card is red. P(A|B) = = = P(A). A and B are 2 independent events.
26 13
Independent Events
A is independent of B (B occurring does not affect whether A occurs) if one of the
following equivalent statements holds
1 P(A|B) = P(A)
2 P(B|A) = P(B)
3 P(AB) = P(A)P(B)
The events A1 , · · · , Ak are said to be pairwise independent if for every subset Ai1 , · · · , Aij
in j subsets of these events (j = 2, 3, · · · , k), we have
P(Ai1 Ai2 · · · Aij ) = P(Ai1 ) · · · P(Aij )
|A| 86
P(A) = |Ω
= 100
,
|B| 79
P(B) = |Ω = 100
,
P(AB) = |AB|
|Ω
= 70
100
6= P(A) ∗ P(B).
So A and B are not independent.
A circuit is connected as shown. The circuit operates when current flows from left to
right. The probability that the components operate is given in the figure and it is known
that the components operate independently of each other. Calculate the probability that
the circuit operates.
Let Ai , i = 1, 2..., 6 be the events that the ith component operates, respectively. O is the
event that the circuit operates.
P(A1 ) = 0.9, P(A1 ) = 0.95, P(A3 ) = 0.9, P(A4 ) = 0.95, P(A5 ) = 0.8, P(A6 ) = 0.9.
P(O) = P ((A1 + A2 )(A3 + A4 )(A5 + A6 ))
= P(A1 + A2 )P(A3 + A4 )P(A5 + A6 ) (since the dead links operate independently)
= [1 − P(A1 .A2 )][1 − P(A3 .A4 )][1 − P(A5 .A6 )]
= (1 − 0.1 ∗ 0.05)(1 − 0.1 ∗ 0.05)(1 − 0.2 ∗ 0.1) = 0.9702.
From the table we have P(F |H) = 0.1, P(H) = 0.2, P(F |H̄) = 0.005, P(H̄) = 0.8.
Using the total probability formula, we obtain
P(F ) = P(F |H).P(H) + P(F |H̄).P(H̄) = 0.02 + 0.004 = 0.024
5
a. P(A) = = 0.01.
500
4 5
P(B) = P(B|A) ∗ P(A) + P(B|Ā) ∗ P(Ā) = 499
∗ 0.01 + 499
∗ 0.99 = 0.01 6= P(B|A).
So A and B are not independent.
b. If the sample were done with replacement:
P(B) = 0.01 = P(B|A): A and B are independent.
k
S
with Ei ∩ Ej = ∅ (mutually exclusive) for all i 6= j and Ω = Ei (collectively exhaustive).
i=1
B1 : The candy is taken from the first bottle, B1 : The candy is taken from the second
1
bottle. We have: P(B1 ) = P(B1 ) = .
2
A: The candy is blue.
Probability that the candy is blue, knowing that it is taken from the first and second
2
bottles P(A|B1 ) = , P(A|B1 ) = 12
3
Probability that the candy is taken from the first bottle:
2 1 1 1 7
P(A) = P(A|B1 ).P(B1 ) + P(A|B1 ).P(B1 ) = . + . = .
3 2 2 2 12
P(A|B1 )P(B1 ) 2/3.1/2 4
Using Bayes’s formula: P(B1 |A) = = = .
P(A) 7/12 7
A, B, C , T : the event that the product is highly successful, moderately successful, poorly
successful, and well-reviewed.
We have: P(T |A) = 0.95, P(T |B) = 0.6,P(T |C ) = 0.1,
P(A) = 0.4, P(B) = 0.35, P(C ) = 0.25. a)
P(T ) = P(T |A).P(A) + P(T |B).P(B) + P(T |C ).P(C ) = 0.615. b)
P(T |A).P(A) 0.95 ∗ 0.4
P(A|T ) = = = 0.6179.
P(T ) 0.615
P(T̄ |A).P(A) 0.05 ∗ 0.4
c) P(A|T̄ ) = = = 0.0519.
P(T̄ ) 1 − 0.615
(Phan Thi Khanh Van) Chapter 1: Introduction to probability January 9, 2025 32 / 33
Thank you for your attention!