BCD1002 Week 2 - Student
BCD1002 Week 2 - Student
BCD1002 QA
Lecture 2:
Probability Theory
(Understanding Uncertainties in Life)
w
SIT Internal
What is Probability?
Probabilities of Events
4
Experiment
Definition
An experiment is any activity or process whose
outcome is subject to uncertainty. Examples:
▪ selecting a card or cards from a deck
▪ tossing a coin once or several times
▪ surveying
▪ sampling guests/passengers of particular hotel/flight
Simple Event
Definition
A simple event is the outcome that is observed on a
single repetition of the experiment.
▪ One and only one simple event can occur when the
experiment is performed.
Definition
The sample space of an experiment, denoted by S, is the set of all
possible simple events (all possible outcomes) of that experiment.
9
Probabilities of Events
Classical Probability
If each of the n outcomes is equally likely, then the probability of
a random outcome E is 1
P( E ) =
n
where n : total number of possible outcomes.
What is probability of throwing an E?
E 1 2 3 4 5 6
P(E) 1/6 1/6 1/6 1/6 1/6 1/6
12
SIT Internal
Probabilities of Events
4 5 6
14
Characteristics of Probability for any event (A)
▪ 𝑃(𝐴) must be between 0 and 1
0 ≤𝑃 𝐴 ≤ 1
▪ 𝑃(𝐴) = 0 if the event A never occurs (A is an empty set)
▪ The closer 𝑃(𝐴) is to 1, the more likely that event A will occur
Venn
A B diagram
Rules of Addition
▪ For any two events, A and B, the probability of their
union, P(AB), is
P( A B) = P( A) + P( B) − P( A B)
Mutually Exclusive Events
▪ If two events A and B are mutually exclusive (i.e.,
no simple events in common), then A B = (null set)
and P(A B) = 0.
Then P(A B) = P(A) + P(B)
A B Venn
diagram
SIT Internal
B
A
P( Ac ) = 1 − P( A) S
Ac
The probability of a complementary event is the
A
probability that the event does not happen.
Example:
• Tossing a die, sample space
S = 1, 2, 3, 4, 5, 6
• Event A getting an odd number A = 1, 3, 5
Conditional Probability
P( A B)
P( A | B) =
P( B)
S
“Given that B has already
A occurred” = “Given that B is
B now the new (updated) Sample
space”
27
SIT Internal
Conditional Probability
Example: given an even number, what is the probability of getting a 6?
• Tossing a die, sample space
S = 1, 2, 3, 4, 5, 6 S
B
A = 6
A6
• Event A is getting a ‘6’ 2, 4
• Event B is getting an even number
B = 2, 4, 6
1
Intuitively, from the diagram, P( A | B) =
3
Or we can use conditional probability:
P( A B)
P( A | B) = = (1/6)/(1/2) = 1/3
P( B)
28
SIT Internal
Conditional Probability
Example: Note that the P(A|B)
• Tossing a die, sample space and P(B|A) represent
S = 1, 2, 3, 4, 5, 6 different probabilities
• Event A is getting a number larger than 4: A={5,6} and are NOT the same!
• Event B is getting an even number: B={2,4,6}
P( A B) S
P( A | B) =
P( B)
A B
P( B A) 1
P( B | A) = = 6
=1
P( A) 1 5
6 66 2
P( A | B) 4
P( A B) = P( A | B) P( B)
P( A B) = P( B | A) P( A)
29
SIT Internal
Conditional Probability
Example: Note that the P(A|B)
• Tossing a die, sample space and P(B|A) represent
S = 1, 2, 3, 4, 5, 6 different probabilities
• Event A is getting a number larger than 4: A={5,6} and are NOT the same!
• Event B is getting an even number: B={2,4,6}
P( A B) S
P( A | B) = = (1/6)/(1/2) = 1/3
P( B)
A B
P( B A) 16
P( B | A) = = (1/6)/(1/3)
=1 = 1/2
P( A) 1 5
6 66 2
P( A | B) 4
P( A B) = P( A | B) P( B) = (1/3)*(1/2) = 1/6
P( A B) = P( B | A) P( A) = (1/2)*(1/3) = 1/6 30
SIT Internal
Conditional Probability
Since
P( A B) P( A B)
P( A | B) = and P( B | A) =
P( B) P( A)
We have:
Rules of Multiplication
P( A B) = P( A | B) P( B)
P( A B) = P( B | A) P( A)
Dependent Events
= The occurrence of one event has an effect on the probability of the occurrence
of another event.
33
Independent Events
Definition
▪ Two events, A and B, are said to be independent if and only if the
probability of event A is not influenced or changed by the occurrence
of event B, or vice versa.
▪ Example: toss a single die two times. Define two events:
A: observe a 2 on the first toss
B: observe a 2 on the second toss
INDEPENDENCE The occurrence of one event has no effect on the probability of
the occurrence of another event.
Independent Events
P( A | B) = P( A) and P( B | A) = P( B)
35
SIT Internal
Independent Events
P( A | B) = P( A) and P( B | A) = P( B)
Independent Events
P( A B) = P( B | A) P( A) = P( B) P( A)
P( A1 A2 ... An ) = P( A1 ) P( A2 )...P( An )
37
SIT Internal
Independent Events
Example: Consider tossing two fair coins. What is the probability that
both will be heads? Define A: first coin is Head. B: second coin is Head.
Tree diagram:
Independent Events
Example: Consider tossing two fair coins. What is the probability of getting
at least one head? Define A: first coin is Head. B: second coin is Head.
Tree diagram:
Independent Events
Example: Consider tossing two fair coins. What is the probability of getting
at least one head? Define A: first coin is Head. B: second coin is Head.
Tree diagram:
41
Exercise
If 60 % of Singaporeans consumes health supplements regularly, find
the probability that for a sample of 5 Singaporeans, all 5 consume
health supplements regularly. Find the probability that none consumes
of the 5 health supplements regularly.
SIT Internal
Summary
Probabilities of events: P( A)
Tutorial Q1
45
SIT Internal
Tutorial Q2
In a University comprising 1000 students, 500 use MRT to come to class and 300 use bus
to come to class. Given that 100 come to class by both MRT and bus, how many come to
class by means that do not involve MRT or bus?
46
SIT Internal
Tutorial Q3
3 yellow and 4 green marbles are in a bag. A child is asked to randomly pick 2 marbles
without replacement.
a) What is the probability that the child picks a yellow marble on the second pick
(event B), given that she has already picked a green marble (event A)?
b) What is the probability that the child picks a green marble on the second pick
(event B’), given that she has already picked a green marble (event A)?
c) What is the probability that the child picks a green marble first and a yellow
marble on the second pick?
d) What is the probability that the child picks two green marbles?
47
SIT Internal
Tutorial Q4
City residents were surveyed recently to determine readership of newspapers. 50% of the
residents read the morning paper, 60% read the evening paper and 20% read both
newspapers.
(a) Find the probability that a resident selected at random reads the morning or evening
paper.
(b) What is the probability of reading the evening paper given that the morning paper has
been read?
48
SIT Internal
Tutorial Q5
Jane is in a class of 20 students (including her) that meets daily. Each day for a week
(Monday to Friday), a student in Jane’s class is randomly selected to answer a homework
problem. Once a student has been selected, he or she is not selected again for that week.
a) Given that Jane was not one of the four students selected earlier in the week, what is
the probability that she will be picked on Friday?
b) What is the probability that Jane is not picked up for the week?
49
SIT Internal
Tutorial Q6
In a survey of 1929 students, the following data were obtained on “students’ first reason for
application to the university in which they matriculated.”
Reason for Application
Enrollment University University Cost Other Total
status Quality
or Convenience
Full-time 421 393 76 890
Part-time 400 593 46 1039
Total 821 986 122 1929
(a) What is the probability that university quality (event B) is the first reason for a student to
choose a university?
(b) For a full-time student (event A), what is the probability that university quality is the first
reason for choosing a university?
(c) Let A denote the event that a student is full-time, and let B denote the event that the
student lists university quality as the first reason for applying. Are events A and B
independent? Justify your answer.
50
SIT Internal
Tutorial Q7
An investor holds two stocks, each of which can rise (R), remain unchanged (U), or decline
(D) on any day. Suppose that on a particular day, the first stock has the probabilities P(R) =
0.4, P(U) = 0.2, P(D) = 0.4, and the second stock has the probabilities P(R) = 0.8, P(U) = 0.1,
P(D) = 0.1. Assume that these stocks move independently.
a) Find the probability that both stocks decline.
b) Find the probability that exactly one stock rises.
51