math 180 - probabilitychhays/lecture08.pdfbaseball i suppose that a baseball player has a batting...

44
Announcements I Office hours are now 2-4 on Tuesdays. I Question 4: What is the probability that AT LEAST one die lands on 1?

Upload: others

Post on 23-Jan-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Announcements

I Office hours are now 2-4 on Tuesdays.

I Question 4: What is the probability that AT LEAST one dielands on 1?

Page 2: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Baseball

I Suppose that a baseball player has a batting average of 0.333.

I This means that the probability that he/she hits the ball is0.333 in each at-bat.

I Assume the attempts are independent. (Reasonable?)

I If the player strikes out 10 times in a row, are they “due for ahit”?

Page 3: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Baseball

I Suppose that a baseball player has a batting average of 0.333.

I This means that the probability that he/she hits the ball is0.333 in each at-bat.

I Assume the attempts are independent. (Reasonable?)

I If the player strikes out 10 times in a row, are they “due for ahit”?

Page 4: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Baseball

I Suppose that a baseball player has a batting average of 0.333.

I This means that the probability that he/she hits the ball is0.333 in each at-bat.

I Assume the attempts are independent. (Reasonable?)

I If the player strikes out 10 times in a row, are they “due for ahit”?

Page 5: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Baseball

I Suppose that a baseball player has a batting average of 0.333.

I This means that the probability that he/she hits the ball is0.333 in each at-bat.

I Assume the attempts are independent. (Reasonable?)

I If the player strikes out 10 times in a row, are they “due for ahit”?

Page 6: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Law of Averages Fallacy

False:

Law of Averages Fallacy

(For instance) If you flip a coin and get 100 tails is a row, theprobability that the next flip is a heads is greater than 0.5.

(False because the trials are independent; the coin knows nohistory.)

Page 7: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Law of Averages Fallacy

False:

Law of Averages Fallacy

(For instance) If you flip a coin and get 100 tails is a row, theprobability that the next flip is a heads is greater than 0.5.

(False because the trials are independent; the coin knows nohistory.)

Page 8: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Famous criminal trial from 1968, in L.A. (robbery of elderywoman)

I The two robbers had the following characteristics:I According to victim:

I perpetrator: white female with blonde hair in ponytail.

I According to other witness:

I getaway driver: black male with beard and mustache,I in a yellow get-away vehicle

Page 9: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Famous criminal trial from 1968, in L.A. (robbery of elderywoman)

I The two robbers had the following characteristics:

I According to victim:

I perpetrator: white female with blonde hair in ponytail.

I According to other witness:

I getaway driver: black male with beard and mustache,I in a yellow get-away vehicle

Page 10: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Famous criminal trial from 1968, in L.A. (robbery of elderywoman)

I The two robbers had the following characteristics:I According to victim:

I perpetrator: white female with blonde hair in ponytail.

I According to other witness:

I getaway driver: black male with beard and mustache,I in a yellow get-away vehicle

Page 11: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Famous criminal trial from 1968, in L.A. (robbery of elderywoman)

I The two robbers had the following characteristics:I According to victim:

I perpetrator: white female with blonde hair in ponytail.

I According to other witness:I getaway driver: black male with beard and mustache,

I in a yellow get-away vehicle

Page 12: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Famous criminal trial from 1968, in L.A. (robbery of elderywoman)

I The two robbers had the following characteristics:I According to victim:

I perpetrator: white female with blonde hair in ponytail.

I According to other witness:I getaway driver: black male with beard and mustache,I in a yellow get-away vehicle

Page 13: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Prosecution called as expert witness “an instructor ofmathematics,” who presented the following table:

Characteristic probability

Black man with beard 1/10Man with moustache 1/4White woman with pony tail 1/10White woman with blonde hair 1/3Yellow motor car 1/10Interracial couple in car 1/1000

I “Expert” claimed: to find the probability that a randomcouple matches all these characteristics, you multiply theinvidual probabilities.

Page 14: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Prosecution called as expert witness “an instructor ofmathematics,” who presented the following table:

Characteristic probability

Black man with beard 1/10Man with moustache 1/4White woman with pony tail 1/10White woman with blonde hair 1/3Yellow motor car 1/10Interracial couple in car 1/1000

I “Expert” claimed: to find the probability that a randomcouple matches all these characteristics, you multiply theinvidual probabilities.

Page 15: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Prosecution called as expert witness “an instructor ofmathematics,” who presented the following table:

Characteristic probability

Black man with beard 1/10Man with moustache 1/4White woman with pony tail 1/10White woman with blonde hair 1/3Yellow motor car 1/10Interracial couple in car 1/1000

I “Expert” claimed: to find the probability that a randomcouple matches all these characteristics, you multiply theinvidual probabilities.

Page 16: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Couple was found guilty!

I If you were the defense, how might you respond to this?

I Multiplying probabilities works only for independent events!

I Maybe 1 in a million couples match these characteristics, soeasily three such couples in L.A. area.

I Without more information, the probability is only about 1 in 3that they are guilty.

Page 17: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Couple was found guilty!I If you were the defense, how might you respond to this?

I Multiplying probabilities works only for independent events!

I Maybe 1 in a million couples match these characteristics, soeasily three such couples in L.A. area.

I Without more information, the probability is only about 1 in 3that they are guilty.

Page 18: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Couple was found guilty!I If you were the defense, how might you respond to this?

I Multiplying probabilities works only for independent events!

I Maybe 1 in a million couples match these characteristics, soeasily three such couples in L.A. area.

I Without more information, the probability is only about 1 in 3that they are guilty.

Page 19: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Couple was found guilty!I If you were the defense, how might you respond to this?

I Multiplying probabilities works only for independent events!

I Maybe 1 in a million couples match these characteristics, soeasily three such couples in L.A. area.

I Without more information, the probability is only about 1 in 3that they are guilty.

Page 20: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Couple was found guilty!I If you were the defense, how might you respond to this?

I Multiplying probabilities works only for independent events!

I Maybe 1 in a million couples match these characteristics, soeasily three such couples in L.A. area.

I Without more information, the probability is only about 1 in 3that they are guilty.

Page 21: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Conviction later set aside by California Supreme Court: “trialby mathematics”.

I Even without using specific numbers, this type of reasoning isused by lawyers, judges, and juries!

I Example of “prosecutor’s fallacy”: more later.

Page 22: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Conviction later set aside by California Supreme Court: “trialby mathematics”.

I Even without using specific numbers, this type of reasoning isused by lawyers, judges, and juries!

I Example of “prosecutor’s fallacy”: more later.

Page 23: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

The People of the State of California v. Collins

I Conviction later set aside by California Supreme Court: “trialby mathematics”.

I Even without using specific numbers, this type of reasoning isused by lawyers, judges, and juries!

I Example of “prosecutor’s fallacy”: more later.

Page 24: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Conditional Probability

I Let A and B be events. P(A|B) means “the probability of A,given B”

I P(rain|cloudy) =?

I P(cloudy|rain) =?

Page 25: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Conditional Probability

I Let A and B be events. P(A|B) means “the probability of A,given B”

I P(rain|cloudy) =?

I P(cloudy|rain) =?

Page 26: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Conditional Probability

I Let A and B be events. P(A|B) means “the probability of A,given B”

I P(rain|cloudy) =?

I P(cloudy|rain) =?

Page 27: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Dice

I Roll two dice. What is the probability that the dice add up to10 or greater?

I What is this probability if you’re given that the first die showsa six?

Page 28: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Dice

I Roll two dice. What is the probability that the dice add up to10 or greater?

I What is this probability if you’re given that the first die showsa six?

Page 29: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Boys and Girls

I Suppose a family has two children. Four outcomes (forgender), equally likely:

{BB,BG ,GB,GG}

I What is the probability of having two boys (event X )?

I What is the probability of having at least one boy (event Y )?

I Find P(X |Y ). This means...

I Find P(Y |X ). This means...

Page 30: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Boys and Girls

I Suppose a family has two children. Four outcomes (forgender), equally likely:

{BB,BG ,GB,GG}

I What is the probability of having two boys (event X )?

I What is the probability of having at least one boy (event Y )?

I Find P(X |Y ). This means...

I Find P(Y |X ). This means...

Page 31: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Boys and Girls

I Suppose a family has two children. Four outcomes (forgender), equally likely:

{BB,BG ,GB,GG}

I What is the probability of having two boys (event X )?

I What is the probability of having at least one boy (event Y )?

I Find P(X |Y ). This means...

I Find P(Y |X ). This means...

Page 32: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Boys and Girls

I Suppose a family has two children. Four outcomes (forgender), equally likely:

{BB,BG ,GB,GG}

I What is the probability of having two boys (event X )?

I What is the probability of having at least one boy (event Y )?

I Find P(X |Y ). This means...

I Find P(Y |X ). This means...

Page 33: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Boys and Girls

I Suppose a family has two children. Four outcomes (forgender), equally likely:

{BB,BG ,GB,GG}

I What is the probability of having two boys (event X )?

I What is the probability of having at least one boy (event Y )?

I Find P(X |Y ). This means...

I Find P(Y |X ). This means...

Page 34: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Two tests

I A teacher gives two tests. 60% of the students passed themboth.

I 80% of the students passed the first test.

I Question: among those who passed the first test, whatfraction also passed the second test?

Page 35: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Two tests

I A teacher gives two tests. 60% of the students passed themboth.

I 80% of the students passed the first test.

I Question: among those who passed the first test, whatfraction also passed the second test?

Page 36: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Two tests

I A teacher gives two tests. 60% of the students passed themboth.

I 80% of the students passed the first test.

I Question: among those who passed the first test, whatfraction also passed the second test?

Page 37: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Multiplication rule

Multiplication rule for conditional probabilities

For any events A and B, we have

P(A|B) =P(A ∩ B)

P(B)

soP(A ∩ B) = P(B|A) · P(A)

Page 38: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Facebook and iPhones

I Pick a U.S. citizen at random.

I P({Facebook user}) ≈ 0.5

I Among U.S. Facebook users, say 8% have an iPhone.

I Question: What fraction of U.S. citizens are on facebookAND have an iPhone?

Page 39: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Facebook and iPhones

I Pick a U.S. citizen at random.

I P({Facebook user}) ≈ 0.5

I Among U.S. Facebook users, say 8% have an iPhone.

I Question: What fraction of U.S. citizens are on facebookAND have an iPhone?

Page 40: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Facebook and iPhones

I Pick a U.S. citizen at random.

I P({Facebook user}) ≈ 0.5

I Among U.S. Facebook users, say 8% have an iPhone.

I Question: What fraction of U.S. citizens are on facebookAND have an iPhone?

Page 41: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Facebook and iPhones

I Pick a U.S. citizen at random.

I P({Facebook user}) ≈ 0.5

I Among U.S. Facebook users, say 8% have an iPhone.

I Question: What fraction of U.S. citizens are on facebookAND have an iPhone?

Page 42: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Back to Independent Events

I Another way of understanding independent events:

I A and B are independent if P(A|B) = P(A).

I That is, A and B are independent if knowledge of B does notaffect A.

Page 43: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Back to Independent Events

I Another way of understanding independent events:

I A and B are independent if P(A|B) = P(A).

I That is, A and B are independent if knowledge of B does notaffect A.

Page 44: Math 180 - Probabilitychhays/lecture08.pdfBaseball I Suppose that a baseball player has a batting average of 0.333. I This means that the probability that he/she hits the ball is 0.333

Back to Independent Events

I Another way of understanding independent events:

I A and B are independent if P(A|B) = P(A).

I That is, A and B are independent if knowledge of B does notaffect A.