AMA1104Topic1 Lecture Notes
AMA1104Topic1 Lecture Notes
Probability
Definitions:
1
Section 2 – Simple and Joint Events
Definitions:
Example:
2
Section 3 – Probability
Definitions:
Let A be an event.
The probability that event A will occur is denoted by P ( A) .
Section 3 – Probability
0 ≤ P( A) ≤ 1
P( S ) = 1
3
Section 4 – Three Conceptual Approaches to Probability
( 1 ) Classical Probability
Solution:
6 outcomes: 1, 2, 3, 4, 5, 6 (equally likely)
3
P ( A) = = 0.50
6
4
Section 4 – Three Conceptual Approaches to Probability
f
P ( A) =
n
5
Section 4 – Three Conceptual Approaches to Probability
Example:
f 10
P (next car is a defective) = = = 0.02
n 500
6
Section 4 – Three Conceptual Approaches to Probability
Note:
The relative frequencies are not probabilities but
approximate probabilities. However, if the experiment is
repeated again and again, this approximate probability of
an outcome obtained from the relative frequency will
approach the actual probability of that outcome. This is
called the Law of Large Numbers.
( 3 ) Subjective Probability
7
Section 4 – Three Conceptual Approaches to Probability
8
Section 5 – Counting Rule
Section 5.1 Multiplicative Rule
n1 × n2 × ⋯× nk
Solution:
Set 1: The candidates available to fill position E1 ⇒ n1 = 20
Set 2: The candidates remaining (after filling E1) that are
available to fill E2 ⇒ n2 = 19
Set 3: The candidates remaining (after filling E1 and E2)
that are available to fill E3 ⇒ n3 = 18
The number of different ways to fill
the three positions is 20 × 19 × 18 = 6840
9
Section 5 – Counting Rule
Section 5.2 Permutations Rule
Example:
S = { a , b, c }
n! = n( n − 1)( n − 2)⋯(3)(2)(1)
and by definition, 0! = 1
10
Section 5 – Counting Rule
Section 5.2 Permutations Rule
n!
P = n(n − 1)(n − 2)⋯(n − r + 1) =
(n − r )!
n r
Example:
11
Section 5 – Counting Rule
Section 5.2 Permutations Rule
Solution:
( a ) How many permutations are possible?
4!
4 P2 = = 12
(4 − 2)!
( b ) What is the probability that the selection will
contain letter “A”?
3! Required probability:
A P= =3
3 1
(3 − 1)!
6
3! = 0.5
A 3 P1 = =3 12
(3 − 1)!
12
Section 5 – Counting Rule
Section 5.3 Combinations Rule
n n!
Cr or =
r r !(n − r )!
n
Example:
Solution:
15!
C5 = = 3003
5! (15 − 5)!
15
13
Section 5 – Counting Rule
Section 5.4 Venn Diagram
A: Simple event A
A
S S: Sample space
14
Section 5 – Counting Rule
Section 5.5 Basic Probability Laws
Example:
Then,
A ∪ B = {1, 2, 4, 6}
A ∩ B = {2}
Example:
15
Section 5 – Counting Rule
Section 5.5 Basic Probability Laws
It is written as P ( A and B ) or P ( A ∩ B ) .
Addition Rule
Example:
16
Section 5 – Counting Rule
Section 5.5 Basic Probability Laws
Solution:
Let A be the event “Customer orders french fries” and
B be the event “Customer orders soft drink”.
Required probability:
P ( A ∪ B ) = P ( A) + P( B ) − P ( A ∩ B )
= 0.65 + 0.78 − 0.55 = 0.88
P ( A ∪ B ) = P ( A) + P ( B )
17
Section 5 – Counting Rule
Section 5.5 Basic Probability Laws
Example:
A box contains two white balls, four yellow balls and five
red balls. A ball is selected from the box, what is the
probability that the selected ball is red or yellow?
Solution:
Let W be the event “the selected ball is white”, R be
the event “the selected ball is red” and Y be the event
“the selected ball is yellow”.
Required probability:
5 4 9
P ( R ∪ Y ) = P ( R ) + P (Y ) = + =
11 11 11
P ( A) = 1 − P ( A)
18
Section 5 – Counting Rule
Section 5.5 Basic Probability Laws
Example:
If event A is getting a number 3 or 4 on a die toss, then the
complement of event A is A = {1, 2, 5, 6} .
Example:
A university is hiring candidates for four lecturer
positions. The candidates are five men and three women.
Assuming that every combination of men and women is
equally likely to be chosen, what is the probability that
at least one woman will be selected?
Solution:
5 3 5 3 5 3
3 × 1 2 × 2 1 × 3 13
+ + =
8 8 8 14
4 4 4
19
Section 5 – Counting Rule
Section 5.5 Basic Probability Laws
Alternatively,
5 3
4×0 1
P ( A) = =
8 14
4
13
⇒ P( A) = 1 − P ( A) =
14
20
Section 5 – Counting Rule
Section 5.5 Basic Probability Laws
Solution:
P ( A ∪ B ) = P ( A) + P( B ) − P ( A ∩ B )
21
Section 5 – Counting Rule
Section 5.5 Basic Probability Laws
P( A ∩ B) = 1 − P( A ∩ B)
= 1 − 0.02 = 0.98
P( A ∪ B) − P( A ∩ B)
22
Section 5 – Counting Rule
Section 5.6 Marginal Probability
23
Section 5 – Counting Rule
Section 5.6 Marginal Probability
If one employee is selected at random from this company,
find the probability that this employee is
( a ) a university graduate;
( b ) a non-smoker;
( a ) a university graduate
35 + 130 165
P (University graduate) = = = 0.3929
420 420
( b ) a non-smoker
24
Section 5 – Counting Rule
Section 5.6 Marginal Probability
(c) a university graduate and a smoker
35
P (University graduate and smoker) = = 0.8333
420
(d) a university graduate or a non-smoker
B B
A
given B
A∩ B A∩ B
25
Section 5 – Counting Rule
Section 5.7 Conditional Probability and Independent
P( A ∩ B) P( A ∩ B)
P( A B) = and P ( B A) =
P( B) P ( A)
P ( A ∩ B ) = P ( A) ⋅ P ( B A) and P( A ∩ B) = P( B) ⋅ P( A B)
26
Section 5 – Counting Rule
Section 5.7 Conditional Probability and Independent
Solution:
27
Section 5 – Counting Rule
Section 5.7 Conditional Probability and Independent
Example:
8 7
We have P ( R1 ) = and P ( R2 | R1 ) =
12 11
The desired probability is
P ( R1 ∩ R2 ) = P( R1 ) ⋅ P ( R2 | R1 )
8 7 14
= ⋅ = = 0.4242
12 11 33
28
Section 5 – Counting Rule
Section 5.7 Conditional Probability and Independent
P ( A B ) = P ( A) and P ( B A) = P ( B )
P( A ∩ B) = P( A) ⋅ P( B)
29
Section 5 – Counting Rule
Section 5.7 Conditional Probability and Independent
Solution:
15 9
P ( D) = = 0.15 and P ( D | A) = = 0.15
100 60
⇒ P( D ) = P ( D | A)
P ( A) = P ( B1 ) P( A | B1 ) + P ( B2 ) P ( A | B2 ) + ⋯ + P( Bn ) P( A | Bn )
30
Section 5 – Counting Rule
Section 5.8 Law of Total Probability
B1 B2 B3 B1 B2 B3
A B1 ∩ A B2 ∩ A B3 ∩ A
P ( A) = P ( B1 ∩ A) + P ( B2 ∩ A) + P ( B3 ∩ A)
= P ( B1 ) P ( A | B1 ) + P ( B2 ) P ( A | B2 ) + P( B3 ) P( A | B3 )
31
Section 5 – Counting Rule
Section 5.8 Law of Total Probability
Solution:
Let
A denotes the event that the selected student is a senior;
B denotes the event that the selected student is a junior;
C denotes the event that the selected student is a computer
science student.
P (C | A) = 0.20 P (C | B ) = 0.30
1 5
P ( A) = P( B) =
6 6
1
P ( A ∩ C ) = P ( A) ⋅ P (C | A) = × 0.20 = 0.3333
6 =0.0333
32
Section 5 – Counting Rule
Section 5.8 Law of Total Probability
P(C ) = P( A ∩ C ) + P( B ∩ C )
= P ( A) ⋅ P (C | A) + P ( B ) ⋅ P (C | B )
1 5
= × 0.20 + × 0.30 = 0.2833
6 6
P ( B ∩ C ) P ( B ) ⋅ P (C | B )
P( B | C ) = = = 0.8825
P (C ) P (C )
33
Section 5 – Counting Rule
Section 5.9 Bayes’ Theorem
Bayes’ Theorem
Suppose that B1 , B2 , …, Bn are n mutually exclusive and
exhaustive events, then
P ( Bk ∩ A)
P ( Bk | A) =
P ( A)
P ( Bk ) P ( A | Bk )
=
P ( B1 ) P ( A | B1 ) + P ( B2 ) P( A | B2 ) + ⋯ + P( Bn ) P( A | Bn )
34
Section 5 – Counting Rule
Section 5.9 Bayes’ Theorem
Example:
In a certain assembly plant, three machines, B1, B2, and B3,
makes 30%, 45% and 25%, respectively, of the products.
35
Section 5 – Counting Rule
Section 5.9 Bayes’ Theorem
P ( A) = P ( A ∩ B1 ) + P ( A ∩ B2 ) + P ( A ∩ B3 )
= P ( B1 ) ⋅ P ( A | B1 ) + P( B2 ) ⋅ P( A | B2 ) + P( B3 ) ⋅ P( A | B3 )
P ( B1 | A)
P ( B1 ) ⋅ P ( A | B1 )
=
P( B1 ) ⋅ P ( A | B1 ) + P ( B2 ) ⋅ P ( A | B2 ) + P ( B3 ) ⋅ P ( A | B3 )
(0.30)(0.02)
= = 0.3871
(0.30)(0.02) + (0.45)(0.01) + (0.25)(0.02)
36
Section 5 – Counting Rule
Section 5.9 Bayes’ Theorem
Similarly,
(0.45)(0.01)
P ( B2 | A) = = 0.2903
(0.30)(0.02) + (0.45)(0.01) + (0.25)(0.02)
(0.25)(0.02)
P ( B3 | A) = = 0.3226
(0.30)(0.02) + (0.45)(0.01) + (0.25)(0.02)
37