
COMPUTER SCIENCE 20, SPRING 2014
Homework Problems
Conditional Probability, Bayes Theorem, Expectations
Due Wednesday April 23, 2014. CS 20 students should bring a hard
copy to class. CSCI E-120 students should submit an electronic copy.
1. Consider the strange dice from the last homework, which are 10-sided and
have the property that the probability of rolling nis proportional to n.
Imagine a situation in which you roll one of these dice, and then flip m
coins, where mis the die roll. What is the probability of flipping at least 8
heads? Express your answer as a fraction; please do not compute a decimal.
2. (Adopted from Meyer) Outside of their hum-drum duties as CS-20 Teaching
Assistants, Nick is trying to learn to levitate using only intense concentra-
tion and Keenan is trying to become the world champion flaming torch
juggler. Suppose that Nicks probability of success is 1/6, Keenans chance
of success is 1/4, and these two events are independent.
(a) If at least one of them succeeds, what is the probability that Nick
learns to levitate?
(b) If at most one of them succeeds, what is the probability that Keenan
becomes the world flaming torch juggler champion?
(c) If exactly one of them succeeds, what is the probability that it is Nick?
3. A student in Monty Hall’s probability course misses his exam and must
take a makeup. Before the test, Prof. Hall invites him to choose one of five
envelopes, two containing easy makeup exams, three containing hard ones,
and the student takes an envelope.
“Before you start, you might enjoy looking at one of my hard makeup exams
– just full of nasty probability problems,” says the professor. From among
the four remaining envelopes, he selects one at random that he knows to
contain a hard exam and opens it.
“Excuse me,” says the student, “but the envelope I picked looks a bit
smudged. Could I swap it for one of the others?” And he does.
What is the probability that the student has an easy exam after making
the swap?
4. (Adopted from Meyer) A 52-card deck is thoroughly shuffled and you are
dealt a hand of 13 cards.
1