Chapter 4
Chapter 4
Chapter 4:
Introduction to Probability
Amiruddin Ab Aziz
Learning Outcomes
By the end of this topic, students will be able to
1.Define the basic concepts in probability
2.Apply the probability rules in some example
3.Explain and apply the Bayes theorem
CONTENTS
Introduction
Counting Rules
Multiplication Rule
Representation of Sample
Space
Bayes Theorem
Introduction
• Experiment – well defined, repeatable process where outcomes are determined by chance.
• Outcome – the result of a trial of a probability experiment.
• Sample Space, S – the set of all possible outcomes of a probability experiment.
Example Experiment : Rolling a dice once
Sample Space : S = {1, 2, 3, 4, 5, 6}
• Event – subset of sample space, or any single outcome
• Elementary or Simple event – single outcome in sample space
• Compund event – more than one outcome.
• Sampling with replacement – Each time a sample is selected, it will be returned into the
population before the next selection is made.
• Sampling without replacement – each selected unit will not be returned to the populatio
Example 4.1, Page 100
Experiment: A medical researcher lists the possible sex, M or F,
of each of the
first three babies born in an animal laboratory, by order of birth.
S={MMM, MMF, MFM, FMM, MFF, FFM, FMF,
a) List the sample space of the experiment
FFF}
A={FFF}
b) List ⟹Simple
the event A if A beevent
the event of obtaining three females.
B={MMF,
c) List MFM,
the event B if BFMM, MMM}the event
represents ⟹Compound
of obtaining at least
event
two male.
VENN DIAGRAM
A A’ A B
A B A B
R
Basic concepts of probability
Let A be any event defined over sample space, S; then the probability of event A is
A A’ A B A B
𝑃 ( 𝐴 ) + 𝑃 ( 𝐴 ′ ) =1 𝑛 ( 𝐴 ∩ 𝐵) 𝑃 ( 𝐴∩ 𝐵 ) =0
𝑃 ( 𝐴∩ 𝐵 ) =
𝑛 ( 𝑆)
• If , events A and B are independent events. The occurrence of one of
Basic concepts of probability
b)
A B
Counting Rules
The M-N rule – In a sequence of events in which the first one has
probabilities, and the second event has and the third has , and so forth,
the total number of possibilities of the sequence will be
1
Number of outcomes = 2
3
head 4
5
Event 2: 6
Event 1:
Coin tossed Die rolled 1
2
tail 3
4
5
6
Note: When determining the number of different possibilities of a sequence
of events, one must know whether repetitions are permissible.
ID CARD
5 5 5 5
Example: The digits 0, 1, 2, 3, and 4 are to be used in a four-digit ID card.
How many different cards are possible if repetitions are not permitted.
ID CARD
5 4 3 2
Permutation Rule
– The number of arrangements of different objects in a specific order
(order is important) using objects at a time without repetition. The
Example 4.14, Page 141: How many ways can the alphabets in the word
MISSISSIPPI be arranged?
Example 4.15, Page 141: How many ways can the alphabet in the word
STATISTICS can be arranged if
a) The first letter must be A
The word ‘STATISTICS’ has 10 letters, excluded A, it has 9 letters
Cr =
n
Example 4.16, Page 111
There are 12 students who are eligible to attend a meeting. Find the
number of ways a delegation of 4 students can be selected from the 12
eligible students.
12 ❑
number of delegations= 𝐶 =495
❑ 4
Example 4.17, Page 111
A committee of eight be formed from 12 men and eight ladies if
a) No restrictions
20 ❑
¿ ❑𝐶 8 =125970
b) five men and three ladies are chosen
12 ❑ 8 ❑
• When two events A and B are dependent events, the probability both occurring
is
or .
• If events A and B are mutually exclusive events, .
• If events A and B are independent events, or .
Example 4.19, Page 113
A
11 5
41212 B
Example
b)
Example
ii.
M
¿ 0.3
0.20.40.1
N
Representation of Sample Space
• Tree diagram is a simple way of representing a sequence of events.
• It is a pictorial representation used to determine all possible outcomes
of probability experiment.
Example 4.20, Page 114
A bag contains of five red balls and three blue balls. Three balls are drawn
one by one
1st
a) with replacement. 2nd 3rd
What is the outcome of at least two blue balls will be
R RRR Outcomes for at least two blue
selected.
R B RRB balls
R B R RBR = {RBB, BRB, BBR, BBB}
B RBB
R BRR
R B BRB
B B R BBR
B BBB
Example 4.20, Page 114
A bag contains of five red balls and three blue balls. Three balls are drawn
one by one
b) without replacement. What is the outcome of getting the first ball blue
and the third ball red will be selected.
1st 2nd 3rd
R RRR Outcomes for the first ball
R B RRB blue and the third ball red
R B R RBR
B RBB = {BRR, BBR}
R BRR
R B BRB
B B R BBR
B BBB
Example 4.22, Page 116
65% of the students go to college by their own transport, 20% by bus and the
remaining students walk to college. 2% of the students with own transport
will be late for college and 4% of those who take busses to college will be
late. Only 1% of those walking to college will be late. Draw a suitable Tree
Diagram.
Late (0.02)
Own On time (0.98)
0.65 Transport
Late (0.04)
0.2 Bus On time (0.96)
What is the probability of students will
be late for college
Late (0.01)
0.15 Walk On time (0.99)
Contingency or Cross-Tabulation Table
Pentium
II 30 150 180
P A | Bi P Bi
P Bi | A , i 1, 2,..., k
P A | Bi
P A B P B | A P A
P A | B
P B P B
Example 4.25, Page 118
Test used to diagnose medical conditions are often imperfect, and give false positive
or false negative results. A fairly cheap blood test for Human Immunodeficiency
Virus (HIV) that caused AIDS has the following characteristics: the false negative
rate is 2% and the false positive rate is 0.5%. It is assumed that around 0.04% of
Canadian males are infected with HIV. Find the probability that if a male tests
positive for HIV, he actually has HIV
B (0.005)𝑃 ( 𝐵| 𝐴′ )
0.9996 A’ B’ (0.995)𝑃 ( 𝐵′| 𝐴 ′ )
Example 4.26, Page 119
An English class consists of 10 male and 20 female students. Five of the male
students and two of the female are non-bumiputera. A student is randomly selected.
Find the probability of selecting
a) a non-bumiputera
7 student
𝑃 ( 𝑁𝐵 )=
30
b) a male
𝑃 ( 𝑀|student,
𝑁𝐵 )= given that
𝑃 ( 𝑀 ∩ 𝑁𝐵 ) 5the
=
/30 student
=
5 is non-bumiputera. Race
Non- Tota
Sex
𝑃 (𝑁𝐵) 7 /30 7
Bumipute bumipute l
c) either a male or a non-bumiputera student. ra ra
M 5 5 10
F 18 2 20
Tota
l 23 7 30
2
Example 4.28, Page 121
To improve the quality of its parts output from rate of 2% defective, a client firm has
invested in a testing machine. This testing machine is only able to reject some of the
defective output and allows some defective to pass up to standard. The probability
of the output being rejected when it is not defective is 0.01 and the probability of
not being rejected when it is defective is 0.003
A = {defective output}
B={Output is rejected}
) Draw a tree diagram that represents the b) What is the probability of a part being
situation defective and not being rejected
B (0.997)
c) What is the probability that a randomly
𝑃 ( 𝐴∩ 𝐵 ′ )=0.02× 0.003=0.00006
0.02 A B’ (0.003)
P(B)=0.0297
chosen part is rejected or defective
B (0.01)
A’ B’ (0.99)
0.98 = 0.02 + 0.0297 0.01994 =
d) What is the probability that a part is
0.02976
defective given it is rejected
𝑃 ( 𝐴∩ 𝐵) 0.01994
𝑃 ( 𝐴| 𝐵 )= = =0.0 67
Example 4.29, Page 122
50 students were asked to whom they would go for help if they have problems with
their studies.
Male Female
Ask lecturer 8 10
Ask friends 13 15
Ask no one 4 0