Professional Documents
Culture Documents
STAT 253
Probability & Statistics
1
UNIT I: Introduction to Probability Theory
Course Objective
2
UNIT I: Introduction to Probability Theory
Course Syllabus
3
UNIT I: Introduction to Probability Theory
References/Reading List
The following materials will be used as references and reading list
for this course;
1 F.M. Dekking, C. Kraaikamp H.P. Lopuhaä and L.E. Meester
(2005). A Modern Introduction to Probability and Statistics:
Understanding How and Why, Springer-Verlag, Berlin.
2 Ghahramani, S. (2018). Fundamentals of Probability: With
Stochastic Processes, Chapman and Hall/CRC, New York.
2 Ross, S. M. (2014). A first course in probability, Pearson,
New York.
3 Grimmett, G., & Stirzaker, D. (2020). Probability and
Random Processes, Oxford University Press, England.
4 Sheldon M Ross(2004), Introduction to Probability &
Statistics, for Engineers & Scientists, 5th Edition, Academic
Press, New York. 4
UNIT I: Introduction to Probability Theory
Intended Outcome
5
UNIT I: Introduction to Probability Theory
Set Theory
A ∩ B = {x ∈ Ω | x ∈ A and x ∈ B}
NB:
A ∩ B = B ∩ A Also; A ∩ (B ∩ C ) = (A ∩ B) ∩ C
A∪∅=A A∩∅=∅
A∪Ω=Ω A∩Ω=A
Set Theory
Ā = {x ∈ Ω | x ̸∈ A}
Remark:
¯
∅ = Ω, X̄ = ∅ (X c = ∅)
A ∩ Ac = ∅, (Ac )c = (Ā) = A
Ω = {T }c ∪ {H}c = {H}c ∪ {T }c
10
UNIT I: Introduction to Probability Theory
Illustration Continued
But
{H} ∩ {T } = ∅
Therefore
Ω = ∅c ⇔ Ωc = ∅ (3)
11
UNIT I: Introduction to Probability Theory
Revise/Exercise
Ω = {H, T } (4)
14
UNIT I: Introduction to Probability Theory
Definition (Equality)
Events A and B are said to be equal if the occurrence of A implies
the occurrence of B and vice versa, i.e
(
A⊆B
A = B ⇐⇒
B⊆A
16
UNIT I: Introduction to Probability Theory
I-3-1: Continued
Definition (Intersection)
An event is called the intersection of two events A and B if it
occurs only whenever A and B occur simultaneously. It is denoted
by A ∩ B
17
UNIT I: Introduction to Probability Theory
I-3-1 Continued
Definition (Union)
An event is called the union of two events A and B if it occurs
whenever at least one of them occurs. It is denoted by A ∪ B
Definition (Compliment)
An event is called the complement of the event A if it only occurs
whenever A does not occur. The complement of A is denoted by
Ac .
Definition (Difference)
An event is called the difference of two events A and B if it occurs
whenever A occurs but B does not. The difference of the events A
and B is denoted by
A − B = A ∩ Bc
18
UNIT I: Introduction to Probability Theory
I-3-1 Continued
19
UNIT I: Introduction to Probability Theory
Exercise
following events:
A: ”we throw tails exactly two times”
B: ”we throw tails at least two times”
C: ”tails did not appear before a head appeared”
D: ”the first throw results in tails”
2 Write down the set of outcomes corresponding to each of the
following events:
Ac , A ∪ (C ∩ D), and A ∩ D c
Try it!
20
UNIT I: Introduction to Probability Theory
I-4-1:Probability Continued
Definition (Probability)
Probability measures the likelihood of an event occurring.
This is based on the assumption that all the possible outcomes of the
experiment are equally likely. E.g Toss of a fair coin
21
UNIT I: Introduction to Probability Theory
Example
Probability Continued
n(A)
P(A) = lim (6)
n→∞ n
However, in practise, we can make a moderate number of trial E.g
260 bolts are examined as they are produced. Five of them are
found to be defective. On the basis of this information, estimate
5
the probability that a bolt will be defective. Ans = 260
23
UNIT I: Introduction to Probability Theory
Example
Subjective Definition
0 ≤ P(A) ≤ 1 (7)
I-4: Continued
27
UNIT I: Introduction to Probability Theory
Example 1
Ω = {1, 2, 3, 4, 5, 6}
1
P(1) = P(2) = P(3) = P(4) = P(5) = P(6) = >0
6
The event A of rolling an even number is A = {2, 4, 6}. From
Axiom 3, it would thus follow that the probability of rolling an
even number would equal
1
P(A) = P({2, 4, 6}) = P(2) + P(4) + P(6) =
2
28
UNIT I: Introduction to Probability Theory
Example 2
A bowl contains 3 balls, one red, one blue and one green. A child
selects two balls at random. What is the probability that at least
one is red.
Theorem
Suppose that P is a probability measure. Then it satisfies the
following properties.
1 The probability of the empty set is 0 i.e P(∅) = 0
30
UNIT I: Introduction to Probability Theory
I-4-2 Continued
For three events A1 , A2 and A3 we have
Theorem
P(A) = P(A ∩ B) + P(A ∩ B c ) Proof:
A = A ∩ Ω = A ∩ (B ∪ B c ) = (A ∩ B) ∪ (A ∩ B c )
Example 1
Suppose that we toss two coins, and we assume that each of the
four outcomes in the sample space
Ω = {HH, HT , TH, TT }
Then the probability that either the first or the second coin falls
heads, is given by
32
UNIT I: Introduction to Probability Theory
33
UNIT I: Introduction to Probability Theory
Example 2
34
UNIT I: Introduction to Probability Theory
Example 3
A random experiment can result in one of the outcomes
{a, b, c, d} with probabilities 0.1, 0.3, 0.5, and 0.1, respectively.
Let A denote the event {a, b}, B the event {b, c, d}, and C the
event {d}. Find P(A), P(B), P(C ) and their complements
Solution
P(A) = 0.1 + 0.3 = 0.4, P(B) = 0.3 + 0.5 + 0.1 = 0.9, P(C ) = 0.1
P(Ac ) = 0.6, P(B c ) = 0.1, P(C c ) = 0.9
35
UNIT I: Introduction to Probability Theory
Example 4
36
UNIT I: Introduction to Probability Theory
Example 5
37
UNIT I: Introduction to Probability Theory
Solution to Example 5
Solution
Let E , F , and G be the events that the person reads A, B, and C,
respectively. The event that the person reads at least one of the
newspapers A, B, or C is E ∪ F ∪ G . Therefore, 1 − P(E ∪ F ∪ G )
is the probability that he or she reads none of them. Since
38
UNIT I: Introduction to Probability Theory
Exercise
39
UNIT I: Introduction to Probability Theory
40
UNIT I: Introduction to Probability Theory
I-4-3: Continued
If A and B are independent, then Ac and B c are independent as
well.
P(A ∩ B) = P(A)P(B),
P(A ∩ C ) = P(A)P(C ),
P(B ∩ C ) = P(B)P(C ),
P(A ∩ B ∩ C ) = P(A)P(B)P(C ).
Example 1
42
UNIT I: Introduction to Probability Theory
Example 2
The circuit of Figure (1) operates only if there is a path of
functional devices from left to right. The probability that each
device functions is shown . Assume that devices fail independently.
What is the probability that the circuit operates?
Solution
Let L and R denote the events that the left and right devices
operate, respectively. There is only a path if both operate.
From the independence assumption
P(L ∩ R) = P(L) × P(R) = 0.8 × 0.9 = 0.72
43
UNIT I: Introduction to Probability Theory
Example 3
Let an experiment consist of throwing a die twice. Let A be the
event that in the second throw the die lands 1, 2, or 5; B the event
that in the second throw it lands 4, 5 or 6; and C the event that
the sum of the two outcomes is 9. Then
P(A) = P(B) = 1/2, P(C ) = 1/9 and
1 1
P(A ∩ B) = ̸= = P(A)P(B)
6 4
1 1
P(A ∩ C ) = ̸= = P(A)P(C )
36 18
1 1
P(B ∩ C ) = ̸= = P(B)P(C )
12 18
1
But P(A ∩ B ∩ C ) = P(A)P(B)P(C ) = 36 , though
P(A ∩ B ∩ C ) = P(A)P(B)P(C ), this is not sufficient for the
independence of A,B,C
44
UNIT I: Introduction to Probability Theory
Exercise
45
UNIT I: Introduction to Probability Theory
P(A ∩ B)
P(A | B) = (15)
P(B)
P(A ∩ B) P(A)P(B)
P(A | B) = = = P(A)
P(B) P(B)
and
P(B | A) = P(B)
46
UNIT I: Introduction to Probability Theory
Example
A family has two children. What is the conditional probability that
both are boys given that at least one of them is a boy? Assume
that the sample space S is given by
47
UNIT I: Introduction to Probability Theory
Example
48
UNIT I: Introduction to Probability Theory
Example
49
P(B | A) =
849
If 3 parts are selected at random, what is the probability that the
first two are defective and the third one is not. Ans = 0.0032
49
UNIT I: Introduction to Probability Theory
Example
1 1
P(A | B) = = P(A) and P(B | A) = = P(B)
2 3
Therefore A and B are independent. If one holds the other will hold
50
UNIT I: Introduction to Probability Theory
51
UNIT I: Introduction to Probability Theory
I-4-4: Continued
The Law of Multiplication
Question: Suppose that five good fuses and two defective ones
have been mixed up. To find the defective fuses, we test them
one-by-one, at random and without replacement. What is the
probability that we are lucky and find both of the defective fuses in
the first two tests?
Solution
Let A1 and A2 be the events of finding a defective fuse in the first
and second tests, respectively. We are interested in P(A1 ∩ A2 ).
From equation (16) we have
2 1 1
P(A1 ∩ A2 ) = P(A1 ) × P(A2 | A1 ) = × = (17)
7 6 21
52
UNIT I: Introduction to Probability Theory
Example
53
UNIT I: Introduction to Probability Theory
Example
54
UNIT I: Introduction to Probability Theory
Solution to Example
55
UNIT I: Introduction to Probability Theory
Exercise
1 Let A and B be events such that P(A) = 0.6 and P(B) = 0.5
and P(A ∪ B) = 0.8. Find P(A | B). Are A and B
independent?
56
UNIT I: Introduction to Probability Theory
57
UNIT I: Introduction to Probability Theory
58
UNIT I: Introduction to Probability Theory
Example
59
UNIT I: Introduction to Probability Theory
Tree Representation
60
UNIT I: Introduction to Probability Theory
61
UNIT I: Introduction to Probability Theory
Example
In a certain assembly plants, three machines A, B and C make
60%; 25% and 15%, respectively, of the products. It is known from
past experience that 6% of the products made by machine A, 4%
of the products made by machine B and 2% of the products made
by machine C are defective. If a finished product is selected at
random, what is the probability that it is defective.
Solution
Let A1 , A2 , A3 denote the events that the finished product was
made by machine A, B and C respectively. Let D denote the event
that the finished product is defective. Our task is to find P[D]. We
have
Example Continued
63
UNIT I: Introduction to Probability Theory
Example Continued
64
UNIT I: Introduction to Probability Theory
Tree Diagram
Exercises
66
UNIT I: Introduction to Probability Theory
Bayes’ Theorem
Let {B1 , B2 , · · · Bn } be a partition of the sample space, Ω of an
experiment. If for i = {1, 2, · · · , n}, P(Bi ) > 0, then for any
arbitrary event A of Ω with P(A) > 0 the conditional probability of
Bi , given A is
P(A ∩ Bk )
P(Bk | A) =
P(A)
P(A | Bk )P(Bk )
=
P(A | B1 )P(B1 ) + P(A | B2 )P(B2 ) + · · · + P(A | Bn )P(Bn )
(18)
Bayes’ Theorem
Note that for any event B of Ω, B and B c both nonempty, the set
{B, B c } is a partition of Ω. Thus by the Bayes’ theorem. If
P(B) > 0 and P(B c ) > 0 then for any event A of Ω with P(A) > 0
P(A | B)P(B)
P(B | A) = (19)
P(A | B)P(B) + P(A | B c )P(B c )
Similarly,
P(A | B c )P(B c )
P(B c | A) = (20)
P(A | B)P(B) + P(A | B c )P(B c )
Equations (19) and (20) are the simplest forms of the Bayes’
formula.
68
UNIT I: Introduction to Probability Theory
Example
Reconsider Question α with values given in Table (1). The
conditional probability that a high level of contamination was
present when a failure occurred is to be determined.
Table 1: Contamination
69
UNIT I: Introduction to Probability Theory
Example
In a certain assembly plant, three machines A, B,C make 30%,
45%, 25% respectively of the products. It is known from past
experience that 2% of the product made by machine A, 3% of
machine B and 2% of machine C are defective. Given that a
product is defective, what is the probability that it is produced by
machine A?
Solution: We want to find P(A | D)
Example Continued
71
UNIT I: Introduction to Probability Theory
Example Continued
Let G denote the event that the suspect is guilty and C the event
that he possesses the characteristic of the criminal, we have
P(G ∩ C )
P(G | C ) =
P(C )
P(C | G )P(G )
=
P(C | G )P(G ) + P(C | G c )P(G c )
(1)(0.60)
= = 0.882
(1)(0.60) + 0.2(0.4)
72
UNIT I: Introduction to Probability Theory
Exercise:Bayes’ Network
73
UNIT I: Introduction to Probability Theory
Thank you
For the second part of this course we will look at Random Variables
and Probability Distributions. All the Best and Keep Reading.
THANK YOU
74