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

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

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

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

Probability Year 9. Terminology

Lecture Lecture 5

Probability Year 10. Terminology

Fundamentals of Probability CE 311S

Dept. of Linguistics, Indiana University Fall 2015

Useful for Multiplication Rule: When two events, A and B, are independent, P(A and B) = P(A) P(B).

Random Signals and Systems. Chapter 1. Jitendra K Tugnait. Department of Electrical & Computer Engineering. James B Davis Professor.

Section 13.3 Probability

STAT Chapter 3: Probability

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

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

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

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

Announcements. Lecture 5: Probability. Dangling threads from last week: Mean vs. median. Dangling threads from last week: Sampling bias

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

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

Bayes Formula. MATH 107: Finite Mathematics University of Louisville. March 26, 2014

Lecture 1. ABC of Probability

3 PROBABILITY TOPICS

Independence. CS 109 Lecture 5 April 6th, 2016

Topic 2 Probability. Basic probability Conditional probability and independence Bayes rule Basic reliability

Mutually Exclusive Events

Chapter 2: Probability Part 1

STAT 111 Recitation 1

Chapter 14. From Randomness to Probability. Copyright 2012, 2008, 2005 Pearson Education, Inc.

Ch 14 Randomness and Probability

SS257a Midterm Exam Monday Oct 27 th 2008, 6:30-9:30 PM Talbot College 342 and 343. You may use simple, non-programmable scientific calculators.

A brief review of basics of probabilities

Math 243 Section 3.1 Introduction to Probability Lab

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

Properties of Probability

Chapter 1: Introduction to Probability Theory

Probability and Independence Terri Bittner, Ph.D.

CHAPTER 3 PROBABILITY: EVENTS AND PROBABILITIES

Events A and B are said to be independent if the occurrence of A does not affect the probability of B.

Topic 5 Basics of Probability

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

Chapter. Probability

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

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

Random processes. Lecture 17: Probability, Part 1. Probability. Law of large numbers

Lecture 3 Probability Basics

Business Statistics. Lecture 3: Random Variables and the Normal Distribution

Lectures Conditional Probability and Independence

14 - PROBABILITY Page 1 ( Answers at the end of all questions )

Today we ll discuss ways to learn how to think about events that are influenced by chance.

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

Probability and Statistics Notes

3.2 Probability Rules

UNIT 5 ~ Probability: What Are the Chances? 1

Math 1313 Experiments, Events and Sample Spaces

12 1 = = 1

STA Module 4 Probability Concepts. Rev.F08 1

Chapter 7 Wednesday, May 26th

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

MATH 3C: MIDTERM 1 REVIEW. 1. Counting

(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?

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

Statistics 251: Statistical Methods

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

6.2 Introduction to Probability. The Deal. Possible outcomes: STAT1010 Intro to probability. Definitions. Terms: What are the chances of?

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

Probability Notes (A) , Fall 2010

k P (X = k)

Probabilistic models

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

Outline. Probability. Math 143. Department of Mathematics and Statistics Calvin College. Spring 2010

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

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

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

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

Statistics for Engineers

STAT200 Elementary Statistics for applications


MAE 493G, CpE 493M, Mobile Robotics. 6. Basic Probability

STAT509: Probability

Intermediate Math Circles November 8, 2017 Probability II

Introduction to probability

Lecture 2: Probability

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

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

Business Statistics MBA Pokhara University

Probability: Part 1 Naima Hammoud

With Question/Answer Animations. Chapter 7

Math 140 Introductory Statistics

Econ 113. Lecture Module 2

Venn Diagrams; Probability Laws. Notes. Set Operations and Relations. Venn Diagram 2.1. Venn Diagrams; Probability Laws. Notes

Elementary Discrete Probability

CSE 312, 2017 Winter, W.L.Ruzzo. 5. independence [ ]

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

STAT 285 Fall Assignment 1 Solutions

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

Discrete Structures for Computer Science

STA 247 Solutions to Assignment #1

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

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

Chapter 6. Probability

Transcription:

Conditional Probability 2 Solutions COR-GB.305 Statistics and Data Analysis The Birthday Problem. A class has 50 students. What is the probability that at least two students have the same birthday? Assume that each person in the class was assigned a random birthday between January and December 3. Solution: Assume that everyone in the class is randomly assigned a birthday, which corresponds to number between and 365 representing the day of the year. It turns out to be much easier to compute the probability using the complement rule, as P(at least 2 people have the same birthday) = P(all 50 birthdays are different). The next trick is to write the event that all 50 birthdays are different in a redundant way: {all 50 birthdays are different} = {first 2 are different} {first 3 are different} {first are different} {first 5 are different} {first 50 are different}. In class we showed how to use the multiplicative rule repeatedly to get: P(all 50 birthdays are different) = P(first 2 diff.) P(first 3 diff. first 2 diff.) P(first diff. first 3 diff.) P(first 5 diff. first diff.) P(first 50 diff. first 9 diff.). Using this expression we can compute P(all 50 birthdays are different) = 36 365 363 365 362 365 365 9. 365 We can do a similar calculation for other class sizes. The following table shows the probabilities of having at least two students with the same birthday for various class sizes: Class Size P(all diff.) P(at least 2 same) 0 88% 2% 20 59% % 30 29% 7% 0 % 89% 50 3% 97% 60 0.6% 99.% 70 0.08% 99.92%

Independence 2. Suppose that you flip two fair coins. Let A = the first coin shows Heads, B = The second coin shows Heads. Find the probability of getting Heads on both coins, i.e. find P (A B). Solution: The long way to solve this problem is to write out the elementary outcomes and their probabilities: Outcome Probability HH HT TH TT Since A B = {HH}, it follows that P(A B) =. We can solve this problem much more expediently using the independence of A and B: P(A B) = P(A) P(B A) = P(A) P(B) = ( 2 )( 2 ) =. 3. Suppose that you roll two dice. What is the probability of getting exactly one 6? Solution: Define the following events: A = 6 on the first roll, B = 6 on the second roll, Using the shorthand Ā = Ac and A B = A B, the event exactly one 6 can be written as exactly one 6 = A B ĀB These events are mutually exclusive, so P(exactly one 6) = P(A B) + P(ĀB) Page 2

Using the independence of events A and B, we get P(A B) = P(A) P( B) = ( 6 )( 5 6 ) P(ĀB) = P(Ā) P(B) = ( 5 6 )( 6 ) Note that these two expressions are equal. Thus, P(exactly one 6) = 2 6 5 6 28%. Suppose that you sell fire insurance policies to two different buildings in Manhattan, located in different neighborhoods. You estimate that the buildings have the following chances of being damaged by fire in the next 0 years: 5%, and %. Assume that fire damages to the two buildings are independent events. Compute the probability that exactly one building gets damaged by fire in the next 0 years. Solution: (.05)(.99) + (.95)(.0) =.059 = 5.9% Page 3

5. Consider the following experiment. A hat contains two coins: one coin, the fair coin, has 50% chance of heads and 50% chance of tails on every flip; the other coin, the heads coin, has heads on both sides, so it always lands heads on every flip. You reach into the hat and pull out a random coin, equally likely to get the fair coin or the heads coin. Then, you flip this coin twice. Define events A and B as A = the first flip lands heads B = the second flip lands heads. (a) Based on your intuition, do you think that A and B independent events? (b) Compute P (A). Solution: There are two possibilities with equal chances: either we pick the fair coin, or we pick the heads coin. We know that P (fair coin) = P (heads coin) = 0.5 Given the coin, it is easy to compute the probabilities of heads: Finally, P (heads on first flip fair coin) = 0.5 P (heads on first flip heads coin) =.0 P (A) = P (fair coin)p (heads on first fair coin) + P (heads coin)p (heads on first heads coin) = (0.5)(0.5) + (0.5)(.0) = 0.75. (c) Compute P (A B). Solution: Given the coin, the first and the second flips are independent: P (heads on both flips fair coin) = P (heads on first flip fair coin) P (heads on second flip fair coin) = (0.5)(0.5) = 0.25. Similarly, P (heads on both flips heads coin) =.0. Page

Now, P (A) = P (fair coin)p (heads on both fair coin) + P (heads coin)p (heads on both heads coin) = (0.5)(0.25) + (0.5)(.0) = 0.625. (d) Use your answers to parts (b) and (c) to either prove or disprove that A and B are independent. Solution: To check for independence, we compare the product P (A)P (B) with P (A B). Noting that P (A) = P (B), we have P (A)P (B) = (0.75)(0.75) = 0.5625. Clearly, P (A)P (B) P (A B). Thus, the events are not independent. To get some more intuition for what is happening here, note that P (B) = 0.75, P (B A) = P (B A)/P (A) = 0.625/0.75 = 0.833. That is, before performing the experiment, we have a 75% chance of getting a heads on the second flip. In the middle of the experiment, if we see that the first flip is heads, then we have an 83.3% chance of getting heads on the next flip. Why is this? After we see event A, we gain some information relevant to event B, namely that it is more likely we have selected the heads coin. Page 5

Bayes Rule 6. Every year in March there is a standardized exam for people who want to be licensed sheep herders. It happens that, with probability 0.5, a person will pass this exam. In the process of screening people, it turns out that among those who passed the exam, 60% had taken college courses in biology. It happens also that 30% of all those who take the exam had college courses in biology. Find the probability that a person with college courses in biology will pass the exam. Solution: The information in the problem is P(Pass) =.5 P(Bio) =.30 P(Bio Pass) =.60 The problem is asking us to compute the quantity P(Pass Bio). Using Bayes rule, P(Pass Bio) = P(Bio Pass) P(Pass) P(Bio) = (.60) (.5) (.30) =.90. That is, there is a 90% chance that a person with college courses in biology will pass the exam. 7. Amazon.com maintains a list of all registered customers, along with their email addresses. During July, they sent coupons to 20% of their customers. They recorded that 5% of their customers made purchases in July, and 0% of all purchases were made with coupons. In this problem we will compute the proportion of customers sent a coupon in July who made a purchase in that month. For simplicity, we will assume that customers either make 0 or purchases in July. (a) Consider a random customer, and define two events: Coupon = the customer received a coupon in July, Purchase = the customer made a purchase in July. Express all percentages given in the problem statement as probabilities or conditional probabilities of these two events. Example: P(Coupon) = 0.20. Page 6

Solution: The information in the problem is P(Coupon) =.20 P(Purchase) =.05 P(Coupon Purchase) =.0 (b) Use Bayes rule to compute the proportion of custoers sent a coupon in July who made a purchase that month. Solution: The problem is asking us to compute the quantity P(Purchase Coupon). Using Bayes rule, P(Purchase Coupon) = P(Coupon Purchase) P(Purchase) P(Coupon) = (.0) (.05) (.20) =.0. Page 7