Chapter 4. Introduction to Probability
Chapter 4. Introduction to Probability
Introduction
to Probability
Introduction to probability
2
Review of counting rules
Permutation
Combination
Addition Rule
Multiplication rule
When to apply them?
2
Permutation – nPk -1
Definition:
Given that a set has n different elements or items.
An ordered arrangement of k ( elements into k
different positions is called a permutation of k elements
from n elements.
The number of permutations of k elements from n elements
is determined by
n!
nPk
( n k )!
Where
Convention: 0! = 1
4
Permutation – nPk -2
Special case:
n!
nPn n!
( n n )!
5
Combination – nCk -1
Definition: Given that a set has n different elements or items.
n!
nCk
k!( n k )!
6
Examples -Review of counting rules -2
Way #1:
Way #2: ?
7
Examples -Review of counting rules -2
8
Addition Rule -1
9
The Extended Addition Rule -2
11
Addition Rule -4
12
Multiplication Rule (The m n Rule) -1
13
Multiplication Rule (The m n Rule) -2
Definition: Suppose that a task is divided into k possible stages.
14
Examples - Multiplication Rule
Example 1: A box contains 10 marbles with 3 red
marbles, 5 yellow marbles, and 2 green marbles.
15
Examples - Multiplication Rule
Example 3:
16
Examples - Multiplication Rule
Solution:
: Number of routes from A to
18
Experiment - Sample space – Event -2
Event: A That
means a subset of the sample space is called an
event.
19
.
20
Experiment - Sample space, and Event -4
21
Types of Events
Certain event (Biến cố chắc chắn) and impossible
event (Biến cố không thể).
22
.
23
Classification of events
• There are some basic events that can be used to compute
the probability of an event.
Complement of an Event
24
Union event – Biến cố hội
The union of two events A and B, denoted
by A B that occurs when either of the two events
(or both of them simultaneously) do occur. That
means
Let C = A B then C occurs if and only if at least
one of the two occurs.
25
Union event – Biến cố hội
26
Intersection events (Biến cố giao)
The intersection of two events A and B, denoted by A∩B
occurs when both of them do simultaneously occur. It is
represented by the grammatical expression A and B.
That means
Let C = A B then C occurs if and only if both A and B do
occur.
27
Intersection events (Biến cố giao)
28
.
29
.
30
.
31
.
Example 3:
Let A =” Jack student gets 8 score on the test”
Let B = “ Rose student gets 8 score on the test”
Are A and B are mutually exclusive?
32
..
33
..
Example 1:
Let A = “ Rose student will pass the test”
Then the complement of A is “ Rose student will fail the
test”
Example 2:
Look at this sample space, S= {1,2,3,4,5,6} and the event
A = {1,2},
then the complement of the event A is . . . ?
34
..
c
A
35
.
PROBABILITY -1
P(A) = n(A)/n(S).
n(A) represents the number of outcomes favorable to
event A,
n(S) represents the total number of possible outcomes in
the sample space.
36
.
Assigning PROBABILITY -2
Example 1:
Tossing a fair die. Then the sample space is S ={1,2,3,4,5,6}
Let A =” the die shows the face of even”.
That means A= {2,4,6}. Then P(A) = 3/6.
37
.
Assigning PROBABILITY -3
Question:
a/ What is the probability of the event that two
students are female?
38
.
Assigning PROBABILITY -4
Example 3: A student who takes the exam can only
do 18 questions out of a total of 30 questions. The
test has 5 questions taken from 30 of the questions.
If a student can do at least 4 questions, then the
student will pass. Otherwise, he/she fails.
39
.
Assigning PROBABILITY -5
40
.
Assigning PROBABILITY -6
Discussion:
Six outcomes are not equally likely to occur.
The classical approach to computing probability does not
allow us to apply it.
41
.
Assigning PROBABILITY -7
42
.
Assigning PROBABILITY -8
n ( A)
P ( A) , N
N
43
.
Assigning PROBABILITY -9
44
Properties of probability of event
45
.
46
.
47
.
Sol:
a/ A king or queen or a jack. ANS: 3/13.
Let K be: “ king card”
Let Q be “ queen card”
Let J be “ jack card”
48
.
49
.
50
.
51
.
CONDITIONAL PROBABILITY
(XÁC SUẤT CÓ ĐIỀU KIỆN)
52
.
CONDITIONAL PROBABILITY
(XÁC SUẤT CÓ ĐIỀU KIỆN) -1
CONDITIONAL PROBABILITY
(XÁC SUẤT CÓ ĐIỀU KIỆN) -2
54
.
CONDITIONAL PROBABILITY
(XÁC SUẤT CÓ ĐIỀU KIỆN) -3
55
.
CONDITIONAL PROBABILITY
(XÁC SUẤT CÓ ĐIỀU KIỆN) -4
Example 2: Use the table below to caculate the
following probabilities. Label each event.
Men, M Women, W Total
Left – handed, L 15 25 40
Total 75 80 155
57
.
Independent Events
Example:
58
.
CONDITIONAL PROBABILITY
(XÁC SUẤT CÓ ĐIỀU KIỆN)
59
.
Multiplication rules
60
.
Multiplication rules
Example 2: Assume you have applied to two different
universities (let's refer to them as Universities A and B)
for your graduate work. In the past, 25% of students (with
similar credentials as yours) who applied to University A
were accepted, while University B accepted 35% of the
applicants. Assume events are independent of each other.
61
The Law of total probability -1
62
The Law of total probability -2
63
.
S1 S2 S k S
Si S j
64
.
65
.
Examples
Example: A machine is used in a production process.
From past data, it is known that 97% of the time the
machine is set up correctly. Furthermore, it is known that if
the machine is set up correctly, it produces 95% acceptable
(non-defective) items. However, when it is set up
incorrectly, it produces only 40% acceptable items.
63
Bayes’ Theorem
• Often we begin probability analysis with initial or prior
probabilities.
• Then, from a sample, special report, or a product test we
obtain some additional information.
• Given this information, we calculate revised or posterior
probabilities.
• Bayes’ theorem provides the means for revising the prior
probabilities.
Application
Prior N ew Posterior
of Bayes’
Probabilities Information Probabilities
Theorem
67
Bayes’Theorem (cont)
68
End of Chapter 4
65