Docsity

CS 20 Spring 2014 Homework Problems, Assignments of Probability and Statistics

Toggle sidebar
bg1
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
pf2

Partial preview of the text

Download CS 20 Spring 2014 Homework Problems and more Assignments Probability and Statistics in PDF only on Docsity!

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 n is proportional to n. Imagine a situation in which you roll one of these dice, and then flip m coins, where m is 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?

  1. 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?
  2. (Adopted from Meyer) A 52-card deck is thoroughly shuffled and you are dealt a hand of 13 cards.

(a) If you have one ace, what is the probability that you have a second ace? (b) If you have the ace of spades, what is the probability that you have a second ace? Remarkably, the answer is different from part (a).

  1. (a) Random variable X can have the value -1, 1, 2, or 12. Suppose that P (X = 2) = P (X = 12 ) = 13. Find values a = P (X = 1) and b = P (x = −1) such that E(X) = 1. (b) Random variable Y can have only the value 2 or the value 12 , and for each of those values the probability is greater than zero. Show that E(Y ) 6 = (^) E(^1 Y )^

Hint: Find a quadratic equation that must be satisfied by the probability a = P (Y = 2).