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

Similar documents
Math , Fall 2012: HW 5 Solutions

Probability Year 10. Terminology

Probability Year 9. Terminology

Intermediate Math Circles November 8, 2017 Probability II

Problems from Probability and Statistical Inference (9th ed.) by Hogg, Tanis and Zimmerman.

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

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

4. Probability of an event A for equally likely outcomes:

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

k P (X = k)

Properties of Probability

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

Lecture 8: Conditional probability I: definition, independence, the tree method, sampling, chain rule for independent events


ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

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

P (A) = P (B) = P (C) = P (D) =

Lecture notes for probability. Math 124

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

Introduction to Probability, Fall 2009

Math 493 Final Exam December 01

3.2 Probability Rules

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

= 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.

Chapter 2 Class Notes

Axioms of Probability

Probability (Devore Chapter Two)

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 ).

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

Probability: Terminology and Examples Class 2, Jeremy Orloff and Jonathan Bloom

Chance, too, which seems to rush along with slack reins, is bridled and governed by law (Boethius, ).

Week 2. Section Texas A& M University. Department of Mathematics Texas A& M University, College Station 22 January-24 January 2019

Grades 7 & 8, Math Circles 24/25/26 October, Probability

Independence Solutions STAT-UB.0103 Statistics for Business Control and Regression Models

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

First Digit Tally Marks Final Count

Recap. The study of randomness and uncertainty Chances, odds, likelihood, expected, probably, on average,... PROBABILITY INFERENTIAL STATISTICS

Lecture Lecture 5

Fundamentals of Probability CE 311S

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

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).

Chapter 6: Probability The Study of Randomness

Set/deck of playing cards. Spades Hearts Diamonds Clubs

Section 13.3 Probability

Total. Name: Student ID: CSE 21A. Midterm #2. February 28, 2013

Lecture 8: Probability

Lecture 6 - Random Variables and Parameterized Sample Spaces

Mutually Exclusive Events

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

Axioms of Probability. Set Theory. M. Bremer. Math Spring 2018

STAT 430/510 Probability

P (E) = P (A 1 )P (A 2 )... P (A n ).

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

PRACTICE PROBLEMS FOR EXAM 1

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

Elementary Discrete Probability

6.041/6.431 Spring 2009 Quiz 1 Wednesday, March 11, 7:30-9:30 PM. SOLUTIONS

Course: ESO-209 Home Work: 1 Instructor: Debasis Kundu

Ch 14 Randomness and Probability

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

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

1 The Basic Counting Principles

CMPSCI 240: Reasoning about Uncertainty

Chapter 2: Probability Part 1

Statistical Theory 1

Probability: Sets, Sample Spaces, Events

Section F Ratio and proportion

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

Lecture 3. Probability and elements of combinatorics

RANDOM WALKS AND THE PROBABILITY OF RETURNING HOME

University of California, Berkeley, Statistics 134: Concepts of Probability. Michael Lugo, Spring Exam 1

STA111 - Lecture 1 Welcome to STA111! 1 What is the difference between Probability and Statistics?

12 1 = = 1

ORF 245 Fundamentals of Statistics Chapter 5 Probability

1 Preliminaries Sample Space and Events Interpretation of Probability... 13

Probability & Random Variables

Basic Set Concepts (2.1)

Chapter 13, Probability from Applied Finite Mathematics by Rupinder Sekhon was developed by OpenStax College, licensed by Rice University, and is

Lectures Conditional Probability and Independence

Stat 225 Week 1, 8/20/12-8/24/12, Notes: Set Theory

Conditional Probability 2 Solutions COR1-GB.1305 Statistics and Data Analysis

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 16. Random Variables: Distribution and Expectation

Probabilistic models

an event with one outcome is called a simple event.

2.6 Tools for Counting sample points

(a) Fill in the missing probabilities in the table. (b) Calculate P(F G). (c) Calculate P(E c ). (d) Is this a uniform sample space?

Conditional Probability, Independence and Bayes Theorem Class 3, Jeremy Orloff and Jonathan Bloom

Solution to HW 12. Since B and B 2 form a partition, we have P (A) = P (A B 1 )P (B 1 ) + P (A B 2 )P (B 2 ). Using P (A) = 21.

STAT 414: Introduction to Probability Theory

Introduction to Probability. Ariel Yadin. Lecture 1. We begin with an example [this is known as Bertrand s paradox]. *** Nov.

CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 7 Probability. Outline. Terminology and background. Arthur G.

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 14. Random Variables: Distribution and Expectation

324 Stat Lecture Notes (1) Probability

4 Lecture 4 Notes: Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio

Lecture 1. ABC of Probability

Math P (A 1 ) =.5, P (A 2 ) =.6, P (A 1 A 2 ) =.9r

Instructor Solution Manual. Probability and Statistics for Engineers and Scientists (4th Edition) Anthony Hayter

Chapter 8 Sequences, Series, and Probability

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 12. Random Variables: Distribution and Expectation

Transcription:

HW2 Solutions, for MATH44, STAT46, STAT56, due September 9th. You flip a coin until you get tails. Describe the sample space. How many points are in the sample space? The sample space consists of sequences of H and T where T occurs only at the last position. There are infinitely points in the sample space. S = {T, HT, HHT, HHHT,... 2. Two five-sided dice are rolled. The dice can be distinguished. Write down the sample space. S = {(, ), (, 2), (, 3), (, 4), (, 5), (2, ), (2, 2), (2, 3), (2, 4), (2, 5), (3, ), (3, 2), (3, 3), (3, 4), (3, 5), (4, ), (4, 2), (4, 3), (4, 4), (4, 5), (5, ), (5, 2), (5, 3), (5, 4), (5, 5) 3. Two five sided dice are rolled. Let A be the event that the sum is an odd number. (a) List the outcomes in A. (b) Determine P (A). (a) A = {(, 2), (, 4), (2, ), (2, 3), (2, 5), (3, 2), (3, 4), (4, ), (4, 3), (4, 5), (5, 2), (5, 4) (b) Since there are 2 points in A, and all outcomes are considered equally likely (we assume), P (A) = 2 25. 4. In an ordinary deck of 52 cards, there are four aces (ace of spades, ace of diamonds, ace of clubs, ace of hearts). Suppose you are given 2 cards at random (without replacement) from a shuffled deck, and after your two cards are given, your friend is given two cards at random from the remaining 50 cards. Let A be the event that you have two aces. Let B the event that your friend has two aces. Compute (a) P (A), (b) P (B), (c) P (AB), (d) P (A B). You can assume that by symmetry, P (B) = P (A). (a) P (A) = (4 2) 2 ) = 0.004524887 (b) P (B) = P (A) = 0.004524887 (c) P (AB) = (4 4) or P (AB) = 4 ) 4 ) (4 or P (AB) = 2) 2 ) ( 50 2 ) =.0000093785 (d) P (A B) = P (A) + P (B) P (AB) = 2 (4 2) 2 ) ( 52 4 ) = 0.00904608 In this case, the probability of the intersection is so small that P (A B) is pretty close to P (A) + P (B). Here P (A) + P (B) = 0.009049774.

5. Two six sided dice are rolled repeatedly until the sum is either 2 or 3. Find the probability that a 2 is rolled first. Hint: let E i be the event that a 2 is rolled on the ith round and that neither a 2 nor a 3 has occurred on any previous round. Let E be the event of interest. Then argue that the event E = i= E n and compute P (E) = P ( i= E n). The probability of rolling a 2 in one particular roll is. The probability of rolling a 3 is 2 because there are two ways to roll a 3: (,2) and (2,). The probability of neither a 2 nor a 3 is 2 = 33. P (E ) = P (E 2 ) = 33 P (E 3 ) = 33 33 ( ) n 33 P (E n ) = = ) n ( 2 ( ) ( ) i P E i = 2 i= i= = ( ) n 2 n=0 = /2 = 2 = 3 Here we used the fact that the sum is a geometric series. Therefore P (E) = /3 is the probability of rolling a 2 first. Another way to solve this problem is to use conditional probabilities. Let A be the event that 2 is rolled on the first round. Let B the event that 3 is rolled on the first round. Let C be the event that neither occurs on the first round. Then using total probability, P (E) = P (E A)P (A) + P (E B)P (B) + P (E C)P (C) = + 0 2 33 + P (E) = + P (E) ( 2 P (E) ) = 2 P (E) = 2 = 3 This seems easier than the infinite series approach. The main trick is realizing that P (E C) = P (E) and the reason for this is that if no one wins in the first round, we essentially just 2

start the game over, and the probability of rolling a 2 first starting on the second round is the same as rolling a 2 first starting on the first round. 6. Assume that the probability that a randomly selected person has a birthday in a given month is /2. In other words, the probability that a birthday occurs in January is /2, the probability that it occurs in February is /2, etc. What is the probability that in a group of 5 people, each person has a birthday in a distinct month? Hint: This is a variation of the famous birthday problem which asks the probability that a group of n people have distinct birthdays considering 5 possible birthdays. It doesn t matter what month the first person s birthday is in. The probability that the second person has a birthday in the same month as the first person is /2, there for the probability that the second person has a birthday in a different month from the first person is /2 = /2. The probability that the third person has a birthday in a month distinct from the first two given that the first two have distinct months is 0/2 because there are 0 months remaining that don t have birthdays. The probability we are interested in is therefore 2 0 2 9 2 8 2 0.38 Thus, the probability is less than /2 that five people will have birthdays in distinct months under this model. 7. In a certain population, 4% of people are color blind. A subset is to be randomly chosen. How large must the subset be if the probability of its containing at least one color blind person is at least 95%? (Consider the population to be large enough that you can consider it to be infinite, so the selection can be considered with replacement. In other words, don t worry about whether a random sample might sample the same person twice.) Let A i be the event that the ith person in the sample is color blind. Then P (A i ) =.04 for each i. The event that there is at least one color blind person in the sample is A A 2 A n We are interested in the value of n for which P (A A 2 A n ).95. Using inclusionexclusion is possible but difficult for large unions. It would be easier if we had intersections. What do we use to convert unions to intersions? DeMorgan s rule. Use P (A) = P (A c ) to write the probability as P (A A 2 A n ).95 P [(A A 2 A n ) c ].95 P [A c A c 2 A c n].95 P (A c )P (A 2 ) c P (A c n).95 [P (A c )] n.95 (0.96) n.95 0.96 n.05 To solve the last inequality for n, you can plug in different values of n until you find the smallest n for which the inequality is true, or you can solve directly using logarithms. I use log for the natural logarithm. 3

.96 n.05 n log 0.96 log.05 log.05 n log.96 n 73.38 n = 74 is sufficiently large Because n is the number of individuals, we need n to be an integer, so we round up. The inequality was reversed in the second step because we are dividing both sides by a negative number, i.e., log.96 < 0. 8. Consider flipping a coin twice where the only possibilities are heads and tails. Let A be the event that both tosses result in the same value (both heads or both tails). Let B be the event that the second toss is heads. Find P (AB) and P (A B). P (AB) = P ({HH) = /4. P (A B) = P (A) + P (B) P (AB) = /2 + /2 /4 = 3/4. 9. Suppose P (A c ) = /5 and P (B) = /4. Can A and B be mutually exclusive? Why or why not? No, they cannot be mutually exclusive because P (A) = 4/5 and P (A)+P (B) = 4/5+/4 = 2/20 >. If A and B were mutually exclusive, then P (A B) = P (A)+P (B), but since this is greater than, this is impossible. 0. Suppose 5 indistinguishable balls are placed at random into 5 distinguishable bins. Find the probability that exactly one bin is empty. Hint: First determine that probability that the first bin is empty. Let A be the event that exactly one bin is empty. Let A i be the event that bin i is empty and that no other bin is empty. We note that A, A 2,..., A 5 are disjoint. Then ( 5 ) 5 P (A) = A i = P (A i ) = 5 P (A ) i= i= By symmetry, the probabilities P (A i ) should all be equal (if balls are distributed randomly, it is just as probable that bin 2 is empty as that bin is empty). So, we can just worry about the probability that bin is the only empty bin. In order for bin to be empty and the other bins not empty, we need to distribute the 5 balls into the 4 bins in such a way that every bin other than bin is non empty. This means that three bins get one ball, and one bin gets two balls (if any bin got three or more balls, then there would be at least two empty bins). Let s pretend that the balls are distinguishable, and determine the probability of one such arrangement. Then we can count how many ways the balls could be relabled. If we divided by the number of distinguishable arrangements, then it won t have mattered that the balls are indistinguishable. For bins 2 through 5, exactly one bin gets two balls, and the rest get one. Suppose bin 2 gets two balls, and bins 3 5 get ball each. If the balls were distinguishable, then we could choose two out of the five to go to bin 2, this can be done in ( 5 2) ways. Then there are 3 choices for bin 3, 2 remaining choices for bin 4 and choice remaining for bin 5. Thus the total number of ways to distribute the 5 balls to bins 2 5 where bin 2 gets two balls is ( ) 5 3 2 = 60 2 4

There are an equal number of ways to distribute the balls such that bin i gets 2 balls and the remainder ball, with i = 3, 4, 5. Therefore there are 240 ways to distribute the balls to bins 2 5 such that none are empty. The number of ways to distribute the balls when they are considered distinguished is 5 5 = 325 because there are 5 choices for location of the first ball, 5 choices for the location of the second ball, etc. Thus the probability that bin is the one and only empty bin is P (A ) = 240 325 and the probability that exactly one bin is empty is 240 P (A) = 5 325 = 200 325 = 48 25 = 0.384 This is a relatively complicated problem, and it can be helpful to program a simulation to check your answer. Here is a simulation in R on the next page. I need about,000,000 iterations (about 5 20 seconds on my computer) to get the answer to within about 3 decimal places. I did some lazy programming and just made a for loop, but this is not very efficient in R. Code in MATLAB could be similar to this, but again it is better to avoid for loops if you want something more efficient. The code would execute faster if we simulated all random variables at once, put them into matrices, and did column sums or row sums instead of using for loops. I am willing to wait 20 seconds for an answer to make the programming easier, and I find for loops more natural to think about. J=00000 # number of iterations to simulate count <- 0 # count the number of times event A occurs #iterate the simulation J times for(j in :J) { bin <- rep(0,5) # initialize all bins to be empty u <- floor(runif(5)*5)+ # 5 random integers between and 5 to # determine bin for the 5 balls #put balls in the bins. For example if u[]==3, then the first ball is put in bin 3 # and bin[3] is incremented by. bin[i] counts how many balls are in bin i # but doesn t distinguish the balls -- it only counts them. for(i in :5) { bin[u[i]] <- bin[u[i]] + num0 <- 0 # number of empty bins #check each bin. If it is empty, increment number of empty bins for(i in :5) { if(bin[i] == 0) num0 <- num0 + if(num0==) count <- count+ #The proportion of times that event A occurs is count/j #this is an estimate of the probability of event A print(count/j) 5