Third Problem Assignment

Similar documents
ECEN 303: Homework 3 Solutions

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

Formalizing Probability. Choosing the Sample Space. Probability Measures

Second Problem Assignment

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14

Outline Conditional Probability The Law of Total Probability and Bayes Theorem Independent Events. Week 4 Classical Probability, Part II

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

= 2 5 Note how we need to be somewhat careful with how we define the total number of outcomes in b) and d). We will return to this later.

Econ 113. Lecture Module 2

Problem # Number of points 1 /20 2 /20 3 /20 4 /20 5 /20 6 /20 7 /20 8 /20 Total /150

Independence. P(A) = P(B) = 3 6 = 1 2, and P(C) = 4 6 = 2 3.

Discrete Mathematics and Probability Theory Fall 2010 Tse/Wagner MT 2 Soln

ECE 450 Lecture 2. Recall: Pr(A B) = Pr(A) + Pr(B) Pr(A B) in general = Pr(A) + Pr(B) if A and B are m.e. Lecture Overview

Exam III Review Math-132 (Sections 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 8.1, 8.2, 8.3)

2 Chapter 2: Conditional Probability

Discrete Mathematics and Probability Theory Fall 2011 Rao Midterm 2 Solutions

STAT 516: Basic Probability and its Applications

Chapter 3 : Conditional Probability and Independence

Conditional Probability

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ).

Math , Fall 2012: HW 5 Solutions

Entropy. Probability and Computing. Presentation 22. Probability and Computing Presentation 22 Entropy 1/39

Computing Probability

Previous Exam Questions, Chapter 2

Determining Probabilities. Product Rule for Ordered Pairs/k-Tuples:

Chapter 7: Section 7-1 Probability Theory and Counting Principles

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then

STAT 516 Answers Homework 2 January 23, 2008 Solutions by Mark Daniel Ward PROBLEMS. = {(a 1, a 2,...) : a i < 6 for all i}

Probability Experiments, Trials, Outcomes, Sample Spaces Example 1 Example 2

Example. What is the sample space for flipping a fair coin? Rolling a 6-sided die? Find the event E where E = {x x has exactly one head}

Example 1. The sample space of an experiment where we flip a pair of coins is denoted by:

Probability the chance that an uncertain event will occur (always between 0 and 1)

Introduction and basic definitions

MA 250 Probability and Statistics. Nazar Khan PUCIT Lecture 15

Lectures Conditional Probability and Independence

(i) Given that a student is female, what is the probability of having a GPA of at least 3.0?

Expected Value II. 1 The Expected Number of Events that Happen

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B).

4. Suppose that we roll two die and let X be equal to the maximum of the two rolls. Find P (X {1, 3, 5}) and draw the PMF for X.

MATH MW Elementary Probability Course Notes Part I: Models and Counting

3.2 Probability Rules

Probability Pr(A) 0, for any event A. 2. Pr(S) = 1, for the sample space S. 3. If A and B are mutually exclusive, Pr(A or B) = Pr(A) + Pr(B).

Bits. Chapter 1. Information can be learned through observation, experiment, or measurement.

Midterm Exam 1 (Solutions)

Notes Week 2 Chapter 3 Probability WEEK 2 page 1

I - Probability. What is Probability? the chance of an event occuring. 1classical probability. 2empirical probability. 3subjective probability

Basic Combinatorics. Math 40210, Section 01 Fall Homework 8 Solutions

Solution Set for Homework #1

The set of all outcomes or sample points is called the SAMPLE SPACE of the experiment.

A Event has occurred

PROBABILITY.

What does independence look like?

4/17/2012. NE ( ) # of ways an event can happen NS ( ) # of events in the sample space

Lecture 4 - Conditional Probability

Intermediate Math Circles November 8, 2017 Probability II

3.2 Intoduction to probability 3.3 Probability rules. Sections 3.2 and 3.3. Elementary Statistics for the Biological and Life Sciences (Stat 205)

Lecture Notes. 1 Leftovers from Last Time: The Shape of the Binomial Distribution. 1.1 Recap. 1.2 Transmission Across a Noisy Channel

2. Polynomials. 19 points. 3/3/3/3/3/4 Clearly indicate your correctly formatted answer: this is what is to be graded. No need to justify!

Machine Learning, Midterm Exam: Spring 2008 SOLUTIONS. Q Topic Max. Score Score. 1 Short answer questions 20.

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability

MS-A0504 First course in probability and statistics

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10

Chapter 7 Probability Basics

Chapter 1: Introduction to Probability Theory

Section F Ratio and proportion

Probability Notes (A) , Fall 2010

Section 7.1 Experiments, Sample Spaces, and Events

1. Sample spaces, events and conditional probabilities. A sample space is a finite or countable set S together with a function. P (x) = 1.

Lecture 2: Probability. Readings: Sections Statistical Inference: drawing conclusions about the population based on a sample

SUMMARY OF PROBABILITY CONCEPTS SO FAR (SUPPLEMENT FOR MA416)

Probability Year 9. Terminology

UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis

Our learning goals for Bayesian Nets

MATH 3C: MIDTERM 1 REVIEW. 1. Counting

Chapter 2.5 Random Variables and Probability The Modern View (cont.)

God doesn t play dice. - Albert Einstein

Problems for 2.6 and 2.7

DRAFT. M118 Exam Jam Concise. Contents. Chapter 2: Set Theory 2. Chapter 3: Combinatorics 3. Chapter 4: Probability 4. Chapter 5: Statistics 6

M118 Exam Jam. Contents. Chapter 2: Set Theory 2. Chapter 3: Combinatorics 5. Chapter 4: Probability 7. Chapter 5: Statistics 12

Probability Year 10. Terminology

HW2 Solutions, for MATH441, STAT461, STAT561, due September 9th

3.2 Conditional Probability and Independence

Discrete Distributions

Topic 2 Multiple events, conditioning, and independence, I. 2.1 Two or more events on the same sample space

Lecture Notes. The main new features today are two formulas, Inclusion-Exclusion and the product rule, introduced

LECTURE NOTES by DR. J.S.V.R. KRISHNA PRASAD

Module 1. Probability

Independence 1 2 P(H) = 1 4. On the other hand = P(F ) =

Conditional Probability P( )

STAT:5100 (22S:193) Statistical Inference I

Topic -2. Probability. Larson & Farber, Elementary Statistics: Picturing the World, 3e 1

Probability and the Second Law of Thermodynamics

Review Basic Probability Concept

Conditional Probability

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

CS280, Spring 2004: Final

PRACTICE PROBLEMS FOR EXAM 1

What is Probability? Probability. Sample Spaces and Events. Simple Event

2011 Pearson Education, Inc

Probability & Random Variables

Transcription:

EECS 401 Due on January 26, 2007 PROBLEM 1 (35 points Oscar has lost his dog in either forest A (with a priori probability 0.4 or in forest B (with a priori probability 0.6. If the dog is alive and not found by the N th day of the search, it will die that evening with probability N/(N + 2. If the dog is in A (either dead or alive and Oscar spends a day searching for it in A, the conditional probability that he will find the dog that day is 0.25. Similarly, if the dos is in B and Oscar spends a day looking for it there, he will find the dog that day with probability 0.15. The dog cannot go from one forest to the other. Oscar can search only in the daytime, and he can travel from one forest to the other only at night. All parts of this problem are to be worked separately. Let A be the event that the dog was lost in forest A and A c be the event that the dog was lost in forest B. Let D n be the event that the dog dies on the nth day. Let F n be the event that the dog is found on the nth day. Let S n be the event that Oscar searches forest A on nth day and S c n be the event that he searches forest B on day n. We know that Pr(A 0.4 Pr(A c 0.6 Pr(D n+1 D c n, F c n N N + 2 Pr(F n A, S n, F c n 1 0.25 Pr(F n B, S c n, F c n 1 0.15 (a In which forest should Oscar look to maximize the probability he finds his dog on the first day of search? We want to find Pr(F 1 S 1 Pr(F 1 S c 1 Now Pr(F 1 S 1 Pr(F 1 S 1, A Pr(A + Pr(F 1 S 1, A c Pr(A c 0 0.25 0.4 0.1 Similarly 1 Due on January 26, 2007

s Pr(F 1 S c 1 Pr(F 1 S c 1, A Pr(A + Pr(F 1 S c 1, A c Pr(A c 0 0.15 0.6 0.09 Thus Pr(F 1 S 1 > Pr(F 1 S c 1, so Oscar should search in forest A. (b Given that Oscar looked in A on the first day but didn t find his dog, what is the probability that the dog is in A? Pr(A S 1, F c 1 Using Baye s Rule Pr(A Pr(F c 1 A, S 1 Pr(A Pr(F c 1 A, S 1 + Pr(A c Pr(F c 1 A c, S 1 1 0.3 0.3 + 0.6 0.3333 (c If Oscar flips a fair coin to determine where to look on the first day and finds the dog on the first day, what is the probability that he looked in A? Pr(S 1 F 1 Pr(S 1 F 1 Pr(F 1 Now Pr(S 1 F 1 Pr(S 1 F 1 A Pr(A Pr(S 1 Pr(F 1 S 1, A 0.4 0.5 0.25 0.05 and Pr(S c 1 F 1 Pr(S c 1 F 1 A c Pr(A c Pr(S c 1 Pr(F 1 S c 1, A c 0.6 0.5 0.15 0.045 Using, Pr(F 1 Pr(F 1 S 1 + Pr(F 1 S c 1 we have Pr(S 1 F 1 0.05 0.05 + 0.045 0.5263 (d Oscar has decided to look in A for the first two days. What is the a priori probability that he will find a live dog for the first time on the second day? day is Probability that the Oscar will find a live dog for the first time on the second 2 Due on January 26, 2007

s Pr(F 2 D c 2 F c 1 S 1, S 2 Pr(D c 2 F 2, F c 1, S 1, S 2 Pr(F 2 F c 1, S 1, S 2 Pr(F c 1 S 1, S 2 Pr(D c 2 F c 1 Pr(F 2 f c 1, S 2 Pr(F c 1 S 1 [ Pr(D c 2 F c 1 Pr(F c 2 F c 1, S 2, A Pr(A F c 1, S 1 + Pr(F 2 F c 1, S 2, A c 0 [ Pr(F c 1 S 1, A Pr(A + Pr(F c 1 S 1, A c 1 ] Pr(A c 0.666 [0.25 0.3333] [0.75 0.4 + 0.6] 0.05 ] Pr(A c F c 1, S 1 (e Oscar has decided to look in A for the first two days. Given the fact that he was unsuccessful on the first day, determine the probability that he does not find a dead dog on the second day. Probability that Oscar does not find a dead dog at the end of the second day is Pr ((F 2 D 2 c F c 1, S 1, S 2 1 Pr(F 2 D 2 F c 1, S 1, S 2 1 Pr(D 2 F 2, F c 1, S 1, S 2 Pr(F 2 F c 1, S 1, S 2 1 Pr(D 2 F c 1 Pr(F 2 F c 1, S 1 1 1 [0.25 0.333] 0.97222 3 (f Oscar finally found his dog on the fourth day of the search. He looked in A for the first 3 days and in B on the fourth day. What is the probability he found his dog alive? Probability that he found a live dog is Pr(D c 4 F 4, F c 3, F c 2, F c 1, S 1, S 2, S 3, S c 4 Pr(D c 4 D c 3 D c 2 F 4, F c 3, F c 2, F c 1, S 1, S 2, S 3, S c 4 Pr(D c 4 D c 3, D c 2, F 4, F c 3, F c 2, F c 1, S 1, S 2, S 3, S c 4 Pr(D c 3 D c 2, F 4, F c 3, F c 2, F c 1, S 1, S 2, S 3, S c 4 Pr(D c 2 F 4, F c 3, F c 2, F c 1, S 1, S 2, S 3, S c 4 Pr(D c 4 D c 3, F c 3 Pr(D c 3 D c 2, F c 2 Pr(D c 2 F c 1 2 5 2 4 2 3 2 15 0.333 3 Due on January 26, 2007

s (g Oscar finally found his dog late on the fourth day of search. If only other thing we know is that he looked in A for 2 days and in B for 2 days. What is the probability that he found his dog alive? Let L be the event that he searches twice in forest A and twice in forest B. Then Pr(D c 4 F 4, F c 3, F c 2, F c 1, L Pr(D c 4 D c 3 D c 2 F 4, F c 3, F c 2, F c 1, L Pr(D c 4 D c 3, D c 2, F 4, F c 3, F c 2, F c 1, L Pr(D c 3 D c 2, F 4, F c 3, F c 2, F c 1, L Pr(D c 2 F 4, F c 3, F c 2, F c 1, L Pr(D c 4 D c 3, F c 3 Pr(D c 3 D c 2, F c 2 Pr(D c 2 F c 1 2 5 2 4 2 3 2 15 0.333 PROBLEM 2 (12 points The Jones family household includes Mr. and Mrs. Jones, four children, two cats, and three dogs. Every six hours there is a Jones family stroll. The rules for a Jones family stroll are: Exactly five things (people + dogs + cats go on each stroll. Each scroll must include at least one parent and at least one pet. There can never be a dog and a cat on the same stroll unless both the parents go. All acceptable stroll groupings are equally likely. Given that exactly one parent went on the 6 P.M. stroll, what is the probability that Rover, the oldest dog, also went? Let P the event that exactly one parent went and R be the event that Rover, the oldest dog, went. We want to find Pr(R P Number of ways exactly one parent and rover can go Number of ways exactly one parent goes Now if exactly one parent and rover are going, we can choose the parent in two ways and the remaining three positons can be filled by any of the remaining two dogs or the four kids. The number of combinations of this is ( 6 2 40 3 If exactly one parent is going, we can choose the parent in two ways. Both dogs and cats cannot go together, so we have two cases: either the dogs go or the cats go. Suppose the 4 Due on January 26, 2007

s pet is a dog. So we have to choose four positions with three dogs or four kids such that at least one dog is chosen. This can be done in ( 4 + 3 4 1 number of ways of not choosing any dog total number of ways Suppose the pet is cat, the number of ways we can fill the remaining four positions is ( 4 + 2 4 1 number of ways of not choosing any cat total number of ways Thus, the total number of ways exactly one parent can go is (( ( 7 6 2 1 + 1 96 4 4 Hence, Pr(R P 40 96 0.4167 PROBLEM 3 (16 points In the game of bridge the entire deck of 52 cards is dealt out to four players, each getting thirteen. Assume that cards are dealt randomly. What is the probability Number of ways of distributing 52 cards to 4 players, each getting cards is ( 52 52! ; ; ;!!!! (a one of the players receives all thirteen spades? Number of ways for one player to receive spades is ( ( 4 39 1 ; ; Choose the player Distribute the remaining 39 cards between 3 players Thus, 5 Due on January 26, 2007

s Pr ( One of the players receive all spades ( 4 1( 39 ;;; ( 52 ;;; (b two of the players receive all thirteen spades and each one has at least one spade? Number of ways for two of players to receive spades such that each one has atleast one spade is ( ( [( ] ( 4 39 26 26 2 2 Choose the 2 players Choose more cards Distribute the 26 cards ( spades and others just chosen between the two players such that each player gets atleast 1 spade Distribute the remaining 26 cards between the remaining 2 players Thus, Pr Two players receive all spades such that each one has atleast one spade ( 4 39 2( [ ( 26 ] (26 2 ( 52 ;;; (c each player receives one ace? Number of ways in which each player gets one ace is ( 48 12; 12; 12; 12 }{{ 4! } Number of ways to distribute the remaining 48 cards between 4 players Number of ways of distributing the 4 aces between 4 players Thus 6 Due on January 26, 2007

s Pr Each player gets one spade ( 48 12;12;12;12 4! ( 52 ;;; (d Suppose now we take a reduced deck of 39 cards that consists of thirteen clubs, thirteen hearts, and thirteen diamonds, and we randomly draw a hand of thirteen cards. What is the probability that this hand is void in at least one suit? Pr The hand drawn is void in at least one suit Pr The hand drawn is void in exactly one suit + Pr The hand drawn is void in exactly two suits + Pr The hand drawn is void in exactly three suits } {{ } 0 Further, number of ways to draw hands that are void in exactly one suit ( [( ] 3 26 2 1 Number of ways to choose the suit Number of ways to draw cards from 26 cards that is not void in any suit 7 Due on January 26, 2007

s and number of ways to draw hands that are void in exactly two suits ( 3 1 2 Choose the two suits in which we are void Thus, Pr The hand drawn is void in at least one suit ( 3 1 [ ( 26 ] 2 + ( 3 ( 39 2 PROBLEM 4 (16 points (a We transmit a bit of information which is 0 with probability p and 1 with probability 1 p. It passes through a binary symmetric channel (BSC with crossover probability ɛ. Suppose that we observe a 1 at the output. Find the conditional probability p 1 that the transmitted bit is a 1. Let A be the event that 1 is transmitted and A c be the event that 0 is transmitted. Let B n be the event that the n th bit we receive is 1. Then using the law of Total Probability and Baye s rule we have p 1 Pr(A B 1 Pr(B 1 A Pr(A Pr(B 1 A Pr(A + Pr(B 1 A c Pr(A c (1 ε(1 p (1 ε(1 p + εp. (b The same bit is transmitted again through the BSC and you observe another 1. Find a formula to update p 1 to obtain p 2, the conditional probability that the transmitted bit is a 1. (You may find equation (1 from the last homework assignment useful. Note that B 1 and B 2 are conditionally independent given A. Now, 8 Due on January 26, 2007

s p 2 Pr(A B 1, B 2 Pr(B 2 A, B 1 Pr(A B 1 Pr(B 2 B 1 Pr(B 2 A, B 1 Pr(A B 1 Pr(B 2 A, B 1 Pr(A B 1 + Pr(B 2 A c, B 1 Pr(A c B 1 Pr(B 2 A, B 1 Pr(A B 1 Pr(B 2 A Pr(A B 1 + Pr(B 2 A c Pr(A c B 1 (1 εp 1 (1 εp 1 + ε(1 p 1 (c Using the preceding part or otherwise, calculate p n, the probability that the transmitted bit is a 1 given than you have observed n 1 s at the BSC output. What happens as n? p n Using the same argument as in part 2, we get (1 εp n 1 (1 εp n 1 + ε(1 p n 1 (1 ε n p (1 ε n p 0 + ε n (1 p 0 p 0 p 0 + ( ε n 1 ε (1 p0 where p 0 1 p. As n, we have 1, ε< 1/2 ; p n p 0, ε 1/2 ; 0 ε> 1/2 ; These results meet the intuitions. When ε < 1/2, it means the observations are positively correlated with the bit transmitted, thus knowing the observations B n, n 1, 2... will increase the conditional probability of A given the observations, until it hits 1. When ε 1/2, it means the observations are independent to the bit transmitted, thus given a bunch of observations B n, n 1, 2... won t change the conditional probability of A given the observations, which is the same as the prior probability p. When ε > 1/2, it means the observations are negatively correlated with the bit transmitted, thus knowing the observations B n, n 1, 2... will decrease the conditional probability of A given the observations, until it hits 0. 9 Due on January 26, 2007

s (d You declare that the transmitted bit is a 1 whenever p n exceeds 0.99. How long do you have to wait? How does your answer qualitatively depend on p and ɛ? Does it make intuitive sense? Explain. By part (c, to get p n 0.99, the following condition must be true: p 0 p n p 0 + ( ε n 0.99 1 ε (1 p0 p 0 ε log n log 99(1 p 0 1 ε (1 There are three cases when ε < 1/2, we need n log p 0 log[99(1 p 0 ], log ε log[1 ε] The intuition is the following. In this case, knowing the observations B n, n 1, 2... will monotonously increase p n, until it hits 1. So we expect after the number of observations n exceeds a threshold, p n can be no less than 0.99. when ε 1/2, the right hand side of (1 is 0. Thus for (1 to be true, the left hand side must be no less than 0, which implies p 0 0.99. If p 0 0.99, then for any n, p n exceeds 0.99; otherwise no p n exceeds 0.99. The intuition is that when ε 1/2, the observations are independent to the bit transmitted. Thus the conditional probability of A given the observations won t change as we get more observations. Consequently, the only possible way to have p n > 0.99 is the prior probability p 0 0.99. When ε > 1/2, we need the following to be true n log p 0 log[99(1 p 0 ] log ε log[1 ε] Since n is no less than 1, the above inequality further requires log p 0 log[99(1 p 0 ] log ε log[1 ε] p 0 99ε 1 + 98ε. The intuition is that when ε > 1/2, knowing the observations B n, n 1, 2,... will monotonously decrease p n, until it hits 0. Thus the only possible way for p n 0.99 is that p 0 is large enough so as to make p n 0.99 for n less than a certain threshold. 10 Due on January 26, 2007

s PROBLEM 5 (21 points In the commuication network given below, link failures are independent, and each link has a probability of failure p Consider the physical situation before you write anything. A can ommunicate with B as longs they are connected by at least one path which contains only in-service links. (a Given that exactly five links have failed, determine the probability that A can still communicate with B. Let A be the event that A can communicate with B and B be the event that exactly five links have failed. We are asked to find Pr(A B. Now and Thus Pr(A B Pr(A B Pr(B Pr(A B Pr({a b cdē fg h, ābc dē fḡh} p 5 (1 p 3 + p 5 (1 p 3 2p 5 (1 p 3 Pr(B ( 8 p 5 (1 p 3 5 Pr(A B 2p5 (1 p 3 ( 8 3 p 5 (1 p 1 3 28 (b Given that exactly five links have failed, determine the probability that either g or h (but not both is still operating properly. Let C be the event that either g or h (but not both are working. Pr(C B Pr(C B Pr(B To find Pr(C B we need to choose one gate out of g and h that is working ( and the other is not and choose four gates out of the remaining six such that these four are not working ( and the remaining two are working. Thus, Pr(C B ( 2 1 ( p(1 p 6 4 p 4 (1 p 2 ( 8 15 5 p 5 (1 p 3 28 (c Given that a, d and h have failed (but no information about the condition of the other lnks, determine the probability that A can communicate with B. 11 Due on January 26, 2007

s Let D be the event that a, d and h have failed. Given this the only way A can communicate with B is if gates b, b, f and g are working. Let this event be E. As the gates fail independently, events E and D are independent. Thus Pr(E D Pr(E (1 p 4 12 Due on January 26, 2007