2 Probability
2 Probability
Key: Make one seated object in the circle fixed, and permute the
(n-1) objects around this fixed reference point.
Ex: 5 people sat around a circular table. In how many ways can they
be seated?
= 4x3x2x1
= 24 ways.
Contrasting Example:
If the Last Supper happened to be on a round table, and John sat to
Jesus’ right and Judas Iscariot to his left. In how many ways could the
12 Apostles and Jesus have seated around the table?
n !
Formula:
n1! n2 !....nk !
Example: In how many ways can you arrarrange the letters in the word
“ENGINEER”?
8 !
3! 2! 1! 1! 1!
= 3360 ways.
Example: In how many ways can you arrange 5 boys, 5 girls and 4
dogs in a line with no restrictions on order?
n !
Formula:
n1! n2 !....nk !
Definitions :
Union = The union of two events A and B (denoted by AB and read
“A or B”) is the event consisting of all outcomes that are either
in A or in B or in both events.
1st die 1 2 3 4 5 6
2nd die
Event A
Event B
1 2 3 4 5 6 1 2 3 4 5 6
1 A 1 B
2 A 2 B
3 A 3 B
4 A 4 B
5 A 5 B
Probability of A = Probability of B =
1 2 3 4 5 6 1 2 3 4 5 6
1 AB AB 1
2 AB AB 2
3 AB AB 3
4 AB 4 AB
5 AB AB 5
6 AB AB 6
Probability of (A or B) Probability of (A
and B)
=P(AB) = 11/36 =P(AB)= 1/36
1 2 3 4 5 6
1 A’ A’ A’ A’ A’
2 A’ A’ A’ A’ A’
3 A’ A’ A’ A’ A’
4 A’ A’ A’ A’ A’
5 A’ A’ A’ A’ A’
6 A’ A’ A’ A’ A’
Event A’= not A
= A total of 7 does not occur.
= 30/36
= 1-P(court card)
= 1-(3 court cards per suit)x(4 suits) /52
= 1-12/52
= 40/52
= 0.7692
1 2 3 4 5 6 1 2 3 4 5 6
1 C 1
2 C 2
3 C 3
4 C 4
5 5 D D
6 6 D D
Event C= Total of 5 Event D= total of
10 or more.
One can see that for all slots taken by “O” in the left-hand table do
not share any slots taken by “F” in the right-hand table. Since no
element is shared by both events, they are mutually exclusive.
(Ex) Recall the experiment on two die on pages 13-14. Let A=a
sum of 7 occurs, and B=the first die is a 3. Find P(AB) using the
formula.
P(AB)=1/36 = 11/36
(Ex) From a survey, 450 people said they use Brand X, while 300
people use Brand Y. Further inspection shows that 120 people use
both X and Y. It is also known that a total of 780 people were
surveyed.
But since P(A)xP(B) is also 0.25¼ we can say that events A and B
are independent.
You will win your bet if the player misses both his freethrows. If
he makes at least one, then you lose. We can simply compute
for the P(miss both freethrows), which is the same as P(win bet)
and find its complement to get P(lose bet). I.e. P(lose bet) = 1-
P(win bet)
(Ex) A man has two kidneys. He only needs one functioning kidney
to live. It has been estimated that during his lifetime, his left
kidney can be reliable with a 95% probability, his right kidney
is slightly stronger with a 98% probability. What is the
probability that the man dies of kidney failure?
P(they meet) = P(union of man time in bar and woman time in bar)
= 1/6 + 1/6 –1/36 = 11/36.
A x B y C
2% 5% 2% 5% 2%
The components are arranged in a series such that if any member fails,
the whole system fails.
Events A A’ Probability
Row totals and column totals are the probabilities of each event.
All probabilities must sum to unity.
(Ex)
40% of DLSU Engineering students are ECE majors. 70% of all
Engineering majors are Male. Male ECE majors comprise 25% of all
engineering students. Set up the contingency table for the events
(ECE/Non-ECE), and (male/female).
Given :
Events ECE Non-ECE Probability
Male 0.25 Not given 0.70
Female Not given Not given Not given
Probability 0.40 Not given 1.00
If the total probability of men is 0.70, of which 0.25 are ECE, then
the difference of 0.70-0.25=0.45 must be the male non-ECE
proportion.
Conditional Probabilities :
B
Odd
P(AB)=P(A)xP(B|A)
=3/10
P(B|A)=2/4
A
Odd
P(A)=3/5 P(B'|A)=2/4
B' P(AB')=P(A)xP(B'|A)
Even
=3/10
B
Odd P(A'B)=P(A)xP(B'|A)
P(A')=2/5
P(B|A')=3/4 =3/10
A'
Even
P(B'|A')=1/4
B'
Even
P(A'B')=P(A)xP(B'|A)
=1/10
P(A) = P(odd for the first try) = Initially there are 5 possible slips to
choose from, of which 3 of them are odd: #1, #3 and #5. = 3/5
P(A’)= P(not odd) = P(Even) = From the 5 initial slips, there are 2
which are even: #2 and #4. = 2/5
P(B|A’) = read as “the probability of B given (not A)”= When the first
event is A’ (even), then there will still be 3 even numbers for the
2nd slip. There will be a total of only 4 slips left. Therefore
getting an even number on the second try should now be 3/4.
We may relate the event tree for this illustrative example and
show how it could be represented by a contingency table:
Events A A’ Probability
B P(AB) P(A’B) P(B)
B’ P(AB’) P(A’B’) P(B’)
Probability P(A) P(A’) 1.00
P(A)=3/5 P(B'|A)=2/4
B' P(AB')=P(A)xP(B'|A)
Even
=3/10
B
Odd P(A'B)=P(A)xP(B'|A)
P(A')=2/5
P(B|A')=3/4 =3/10
A'
Even
P(B'|A')=1/4
B'
Even
P(A'B')=P(A)xP(B'|A)
=1/10
Fill out the entries at the branch ends at the right
Events A A’ Probability
B 3/10 3/10 ??
B’ 3/10 1/10 ??
Probability ?? ?? 1.00
Events A A’ Probability
B 3/10 3/10 6/10
B’ 3/10 1/10 4/10
Probability 6/10 4/10 1.00
We know that P(AB)=3/10 (from the event tree) and is not the
same as the product 6/10 x 6/10 = 36/100 3/10. This means that
events A and B are not independent.
This example has also shown that a 2-stage binary Event tree
can be related to one and exactly one Contingency table.
P( A B )
P ( B | A)
P ( A)
This formula suggests that to get the conditional probability of B given
that event A is known to have occurred is simply the ratio of the
probabilities of event (AB) over the probability of event A.
Events A A’ Probability
B 3/10 3/10 6/10
B’ 3/10 1/10 4/10
Probability 6/10 4/10 1.00
3 / 10
P(B|A)= 0.5
6 / 10
Which should be the same probability as in the event tree (see branch
A (odd) then B (odd again) at the right-hand topmost branch of
the event tree).
P( A B)
Since P ( B | A) then P ( A B ) P( A) P( B | A)
P ( A)
= 0.75 x 0.60
=0.45
P ( A B) P( A B)
and since P ( A | B ) then P( B)
P( B ) P( A | B)
0.45
0.80
=0.5625
Events A A’ Probability
B 0.45 0.1125 0.5625
B’ 0.30 0.1375 0.4375
Probability 0.75 0.25 1.00
Bayes’ Theorem:
A box contains slips of papers where each slip has been labelled 1,
2, 3 ,4 and 5. An experiment is done such that a first slip is picked
from the box, its label number is recorded and then a second slip is
picked and recorded. Let us define event A that an odd number was
P(AB)=P(A)xP(B|A)
B
Odd
chosen in
=3/10 the first
P(B|A)=2/4
pick, and
A
Odd define
P(B'|A)=2/4 event B
P(A)=3/5
B' P(AB')=P(A)xP(B'|A) that an odd
Even
=3/10 number
B
P(A'B)=P(A)xP(B'|A)
was chosen
Odd
P(A')=2/5
P(B|A')=3/4 =3/10 on the
A'
Even
Probability and Counting
P(B'|A')=1/4 Theorypage 32
B'
Even
P(A'B')=P(A)xP(B'|A)
=1/10
second pick. We can create the following event tree and its
corresponding probabilities.
On the event tree, there are two final right-side branches where
B
Odd
A
Odd
B'
Even
B
Odd
A'
Even
B'
Even
P( A B' )
P ( A | B' )
P( B' )
B
Odd
A
Odd
B'
Even
B
Odd
A'
Even
B'
Even
P( A) P ( B | A)
P( A | B) Bayes’ Formula
P ( A) P ( B | A) P ( A) P ( B | A)
It can also be said that to get the results of Baye’s formula, a simple
cursory look at the contingency table would have yielded an easier
result: to wit:
P ( A B ' ) 0. 3
P( A | B' ) 0.75 This does not mean, however, that
P ( B' ) 0. 4
the contingency table is a tool to be used for all probability problems.
The contingency table is limited to only two binary-result events at a
time. It cannot be used if the true probability of each event (A and B)
is not known or derivable.
Illustration:
Let’s take 10,000 women as a sample. Exactly 200 out of
them should be pregnant (2% of 10,000), while 9,800 of them
should not. If the 200 pregnant women would take the
pregnancy test, 190 of the tests should come out “positive”
(95% of 200). Of the 9,800 non-pregnant women who take
the pregnancy test, about 9,702 of them would have a
“negative” result. (99% of 9800), which also means that the
other 98 non-pregnant women (1% of 9800) would have a
“positive” result.
10,000
women
98 "Positive" (False Alarm)
98% 1%
Positive=
95% "Pregnant"
Pregnant
2% 5% Negative=
"Not"
98% 1% Positive
Not "Pregnant"
Pregnant
99% Negative=
"Not"
(0.98)(0.01)
= 34.03%
(0.02)(0.95) (0.98)(0.01)
3. There are 5 candidates for the EVP position and 6 candidates for
the VP-Academics position in a certain student organization. 5
candidates are listed in the VP-Activities, but closer inspection
shows that there are 2 individuals listed as candidates in all three
positions. Three individuals are running for both VP Activities
but not for EVP. Two candidates are vying for the EVP position
alone. What is the total number of individuals are running for
the officerships?
4. Suppose that the probability that Seven is happy is 0.53, the
probability that Seven is tense is 0.72, and the probability that
she is both happy and tense is 0.48. Calculate :
a. the conditional probability that Seven is happy given that
she is tense
b. the conditional probability that Seven is tense, given that
she is happy.
5. If P(A)=0.75 and P(B=0.8) and P(A’B’)=0.05, are events A and B
independent?
6. Given P(A)=0.25, P(B’)=0.85 and P(A|B)=2/3. Find
a. P(AB) d. P(B|A)
b. P(AB) e. P(B|A’)
c. P(A’B’) f. P(AB’)
7. Two letters, not necessarily distinct, are typed at random. What
is the probability that they are both vowels, given
a. No information at all
b. That they are different
c. That at least one is a vowel.