Unformatted text preview:

CS 70 Discrete Mathematics and Probability TheoryFall 2011 Rao HW 11Due Monday, November 14, 5:00pmYou must write up the solution set entirely on your own. You must never look at any other students’ solutions(not even a draft), nor share your own solutions (not even a draft).Please put your answer to each problem on its own sheet of paper, and paper-clip (don’t staple!) the sheetsof paper together. Label each sheet of paper with your name, your discussion section number (101–108),your login, and “CS70–Fall 2011”. Turn in your homework and problem x into the box labeled “CS70 –Fall 2011, Problem x” whereon the 2nd floor of Soda Hall. Failure to follow these instructions will likelycause you to receive no credit at all.1. (14 pts.) Basics: joint distributionsConsider Figure 1 in Lecture 17 of the Reader.(a) What are the distributions of X and Y ?(b) What is Pr[X = 1 ∧Y = 1]?(c) What is Pr[X = 1|Y = 1]?(d) What is the distribution of the random variable Y conditioned on Y = 1?(e) What is the distribution of the random variable X conditioned on Y = 1?(f) Say X represents one of three variants of a gene, and Y = 0 represents the event that an individual ishealthy, Y = 1 has a type 1 variant of a disease, and Y = 2 has a type 2 variant of the disease.What is the probability that an individual is sick? Given that X is not 1, what is the probability that theindividual is sick?2. (16 pts.) Who’s betterI am playing in a tennis tournament, and I am up against a player I have watched but never played before.Based on what I have seen, I consider three possible models for our relative strengths:• Model A: We are evenly matched, so that each of us is equally likely to win each game.• Model B: I am slightly better, so that I win each game independently with probability 0.6.• Model C: My opponent is slightly better and wins each game independently with probability 0.6.Before we play, I consider each of these possibilities to be equally likely.In our match, we play until one player wins three games. I win the second game, but my opponent wins thefirst, third and fourth games. After the match, with what probability should I believe in model C (i.e., thatmy opponent is slightly better than me)?[Hint: The unknown r.v. here is X , which takes values A, B, C. My prior knowledge about X is a uniformdistribution over these three values. The observed r.v.’s are the outcomes Y1, Y2, Y3, Y4of the four games,which take values 1 (denoting a win for me) and 0 (denoting a win for my opponent). As usual we know theconditional probabilities, e.g., Pr[Y1= 1 | X = A] = 0.5,Pr[Y1= 1|X = B] = 0.6 etc.]CS 70, Fall 2011, HW 11 13. (20 pts.) Communication over noisy channelsRecall the communication problem we considered in the lecture (see also Lecture 17 of the Reader).(a) Suppose the noise probability of the channel is p = 0.25. Using the summation formula at the begin-ning of the last section of Lecture 17 of the Reader, compute the exact error probability numericallyfor n = 5, 10,15 repetitions. Compare this to the bound obtained from Chebyshev’s Inequality near theend of the same section. How good is the bound? Also, using the same exact formula, find the smallestnumber of repetitions n∗such that the error probability is less than 0.01. How does this compare to thebound of 300 given by Chebyshev?(b) In class, we considered the case when X is equally likely to be 1 and 0. Now suppose Pr[X = 1] = q.Re-derive the maximum a posterior (MAP) decision rule in this more general case. Make your rule asexplicit as possible. Is it still the simple majority rule we derived in class? For q = 0.1, p = 0.25 andn = 5,10,15, work out explicitly what the decision rule is. How does it compare to the simple majorityrule? Does it make intuitive sense?4. (20 pts.) The myth of fingerprintsA crime has been committed. The police discover that the criminal has left DNA behind, and they comparethe DNA fingerprint against a police database containing DNA fingerprints for 20 million people. Assumethat the probability that two DNA fingerprints (falsely) match by chance is 1 in 10 million. Assume that,if the crime was committed by someone whose DNA fingerprint is on file in the police database, then it’scertain that this will turn up as a match when the police compare the crime-scene evidence to their database;the only question is whether there will be any false matches.Let D denote the event that the criminal’s DNA is in the database; ¬D denotes the event that the criminal’sDNA is not in the database. Assume that it is well-documented that half of all such crimes are committedby criminals in the database, i.e., assume that Pr[D] = Pr[¬D] = 1/2. Let the random variable X denote thenumber of matches that are found when the police run the crime-scene sample against the DNA database.(a) Calculate Pr[X = 1|D].(b) Calculate Pr[X = 1|¬D].(c) Calculate Pr[¬D|X = 1]. Evaluate the expression you get and compute this probability to at least twodigits of precision.As it happens, the police find exactly one match, and promptly prosecute the corresponding individual. Youare appointed a member of the jury, and the DNA match is the only evidence that the police present. Duringthe trial, an expert witness testifies that the probability that two DNA fingerprints (falsely) match by chanceis 1 in 10 million. In his summary statement, the prosecutor tells the jury that this means that the probabilitythat the defendant is innocent is 1 in 10 million.(d) What is wrong with the prosecutor’s reasoning in the summary statement?(e) Do you think the defendant should be convicted? Why or why not?CS 70, Fall 2011, HW 11


View Full Document

Berkeley COMPSCI 70 - Homework

Documents in this Course
Notes 1

Notes 1

12 pages

Note 2

Note 2

6 pages

Notes

Notes

6 pages

Notes

Notes

7 pages

Note 10

Note 10

8 pages

n20

n20

10 pages

n19

n19

10 pages

n18

n18

10 pages

n17

n17

6 pages

n16

n16

9 pages

n15

n15

10 pages

n14

n14

9 pages

n13

n13

6 pages

n12

n12

7 pages

n11

n11

6 pages

n10

n10

8 pages

n9

n9

5 pages

n8

n8

7 pages

n7

n7

8 pages

n6

n6

5 pages

n5

n5

8 pages

n4

n4

7 pages

n3

n3

10 pages

n2

n2

7 pages

n1

n1

5 pages

Load more
Download Homework
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?