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

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

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

12 1 = = 1

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

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

Lecture Lecture 5

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

First Digit Tally Marks Final Count

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

Introduction to Probability, Fall 2009

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.

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

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

4.2 Probability Models

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

2011 Pearson Education, Inc

Intermediate Math Circles November 8, 2017 Probability II

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

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

Elementary Discrete Probability

CHAPTER 4 PROBABILITY AND PROBABILITY DISTRIBUTIONS

Chapter. Probability

Chapter 2 PROBABILITY SAMPLE SPACE

Probability (Devore Chapter Two)


Probabilistic models

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

UNIT 5 ~ Probability: What Are the Chances? 1

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

TOPIC 12 PROBABILITY SCHEMATIC DIAGRAM

EXAM. Exam #1. Math 3342 Summer II, July 21, 2000 ANSWERS

P [(E and F )] P [F ]

2. Conditional Probability

Section 7.1 Experiments, Sample Spaces, and Events

Conditional Probability & Independence. Conditional Probabilities

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

Module 1. Probability

Chapter 2: Probability Part 1

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

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

What is the probability of getting a heads when flipping a coin

Presentation on Theo e ry r y o f P r P o r bab a il i i l t i y

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

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

STAT 414: Introduction to Probability Theory

STAT Chapter 3: Probability

Introduction to probability

Chapter 2 Class Notes

Introduction to Probability Theory

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}

Ch 14 Randomness and Probability

Conditional Probability

k P (X = k)

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

Mutually Exclusive Events

BASICS OF PROBABILITY CHAPTER-1 CS6015-LINEAR ALGEBRA AND RANDOM PROCESSES

Each trial has only two possible outcomes success and failure. The possible outcomes are exactly the same for each trial.

PRACTICE PROBLEMS FOR EXAM 1

Objective - To understand experimental probability

Name: Exam 2 Solutions. March 13, 2017

Axioms of Probability

Probabilistic models

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

Econ 113. Lecture Module 2

the time it takes until a radioactive substance undergoes a decay

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

Conditional Probability & Independence. Conditional Probabilities

STA 2023 EXAM-2 Practice Problems From Chapters 4, 5, & Partly 6. With SOLUTIONS

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

MATH/STATS 425 : Introduction to Probability. Boaz Slomka

Math 20 Spring Discrete Probability. Midterm Exam

STAT 418: Probability and Stochastic Processes

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

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

MATH 3510: PROBABILITY AND STATS July 1, 2011 FINAL EXAM

PLEASE MARK YOUR ANSWERS WITH AN X, not a circle! 1. (a) (b) (c) (d) (e) 2. (a) (b) (c) (d) (e) (a) (b) (c) (d) (e) 4. (a) (b) (c) (d) (e)...

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

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

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

18.05 Practice Final Exam

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

STAT 430/510 Probability

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

TOPIC 12: RANDOM VARIABLES AND THEIR DISTRIBUTIONS

EECS 126 Probability and Random Processes University of California, Berkeley: Spring 2015 Abhay Parekh February 17, 2015.

Final Examination. Your name: Circle the name of your Tutorial Instructor: David Hanson Jelani Sayan

Homework 6 Solutions

Lecture 6 - Random Variables and Parameterized Sample Spaces

Section F Ratio and proportion

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

Section 2.4 Bernoulli Trials

Math 447. Introduction to Probability and Statistics I. Fall 1998.

Lecture 1 Introduction to Probability and Set Theory Text: A Course in Probability by Weiss

Carleton University. Final Examination Winter DURATION: 2 HOURS No. of students: 152

Statistical Theory 1

Math 180B Homework 4 Solutions

Event A: at least one tail observed A:

MAT 271E Probability and Statistics

CS 361 Sample Midterm 2

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.

Transcription:

Name: Student ID: CSE 21A Midterm #2 February 28, 2013 There are 6 problems. The number of points a problem is worth is shown next to the problem. Show your work (even on multiple choice questions)! Also, make sure you write legibly so that I have a chance of being able to read your solutions! Additional scratch paper is available at the front of the room. This is a CLOSED BOOK test. However, you may use one 8 1/2 by 11 inch sheets of paper with hand-written notes (on both sides). You can use a calculator if you wish but it shouldn t be necessary since answers can be left in unexpanded form, i.e., using! and ( x y).good luck! Prob. 1 2 3 4 5 6 Total Score 1

1. [20 points] An urn contains 4 Red and 2 Blue marbles. A fair coin is flipped. If the flip comes up Heads, one Red marble is added to the urn and one Blue marble is removed from the urn. One the other hand, if the flip comes up Tails, then one Red marble is removed from the urn and one Blue marble is added to the urn. Now a random marble M is drawn from the urn. (i) What is the probability that M is Red? P r(m = R) = P r(m = R T ) P r(t ) + P r(m = R H) P r(h) = 3 6 1 2 + 5 6 1 2 = 2 3. (ii) What is the probability that the flip is Heads, given that M is Blue? P r(h M = B) = P r(h M = B)/P r(m = B) = ( 1 2 1 6 )/( 1 3 ) = 1 4. 2

2. [10 points] A biased coin has P r(h) = α and P r(t ) = 1 α (where H denotes Heads and T denotes Tails). The coin is flipped n times. What is the expected number of occurrences of the consecutive pattern T HH? (For example, in the sequence HHT T HHT HT HHHT T there are 2 occurrences of T HH.) (i) nα(1 α) 2 ; (ii) nα 2 (1 α); (iii) (n 1)α(1 α) 2 ; (iv) (n 2)α 2 (1 α); (v) none of the above. Answer (iv) (For more detail, consider the to Problem 5.6 on Homework 5.) 3

3. [20 points] A random hand H of 5 cards is drawn from an ordinary deck of 52. What is the probability that H has at least two Spades, given that H has the Ace of Spades? Let s find the answer by considering the complement, i.e. that H has at most one Heart: P r( 1S AS) P r( 2S AS) = 1 P r( 1S AS) = 1 = 1 (39 4 )/( 52 5 ) P r(as) ( 51 4 )/( 52 5 ) = 1 (39 4 ) ( 51 4 ). We get the ( ) 39 4 factor because once we ve picked the Ace of Spades, the remaining 4 cards on the hand will be from the other 3 suits. (Note that this is almost the same problem as Problem 5.1 (iii) on Homework 5.) 4

4. [15 points] The Acme Parachute Company produces (rather questionable) parachutes. It is known that with probability α, a randomly selected parachute will be defective (so with probability 1 α, the parachute is good). However, there is a test T which behaves as follows. If T is applied to a good parachute, then with probability β, the test will indicate that the parachute is good (and with probability 1 β, T will say that it is defective). Also, if T is applied to a defective parachute, then with probability γ, it will say that the parachute is good (and with probability 1 γ, it will indicate defective). What is the probability that a random parachute P is good given that the test T says it is defective? In other words, what is P r(p is good T says defective)? (i) (ii) (iii) (iv) (v) (1 α)(1 γ) (1 α)(1 γ)+α(1 β) ; (1 α)(1 β) (1 α)(1 γ)+α(1 β) ; (1 α)(1 β) (1 α)(1 β)+α(1 γ) ; α(1 γ) (1 α)(1 γ)+α(1 β) ; none of the above. Answer (iii) (You can use Bayes Rule.) 5

5. [15 points] A fair coin is flipped 3 times resulting in the flip sequence F 1 F 2 F 3. Consider the three events: E 1 : F 1 is Heads; E 2 : F 1 and F 2 are different; E 3 : an odd number of the F i are Tails. Which of the pairs of these events are independent? (i) Only E 1 and E 2 are independent; (ii) Only E 1 and E 3 are independent; (iii) All three pairs are independent; (iv) Only the pairs E 1, E 2 and E 2, E 3 are independent; (v) None of the above answers is correct. We see that each of these events has 4 elements: E 1 = {HHH, HHT, HT H, HT T }, E 2 = {HT H, HT T, T HH, T HT }, E 3 = {HHT, HT H, T HH, T T T }, thus the same probability. P r(e 1 ) = P r(e 2 ) = P r(e 3 ) = 4 = 1. So, any two of these events are independent if and 8 2 only if their intersection has probability 1, or in other words contains 2 elements. It is easy 4 to verify that this is the case with all pairs, so the answer is (iii). 6

6. [20 points] An urn contains 2 Red, 3 White and 4 Blue balls. (i) Three balls are drawn at random without replacement. What is the probability that at least two of the balls have the same color? Let s consider the complement, where each ball drawn has a different color, i.e. one of each color: 1 (2 1)( 3 1)( 4 1) = 1 ( 9 3) 2 = 5. (See also the solution to Problem 4.6 on Homework 4.) 7 7 (ii) Three balls are drawn randomly one at a time with replacement. What is the probability that at least two of the balls have the same color? Let s consider the complement again: 1 3! ( 2)( 3)( 4) = 1 16 9 9 9 Problem 4.6 (ii) on Homework 4.) = 65 81 81. (See solution to 7

Scratch paper 8