33
C4, L1, S1 Chapter 3 Probability

C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

Embed Size (px)

Citation preview

Page 1: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S1

Chapter 3Probability

Page 2: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S2

I am offered two lotto cards:

– Card 1: has numbers

– Card 2: has numbers

Which card should I take so that I have the greatest chance of winning lotto?

Lotto

Page 3: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S3

In the casino I wait at the roulette wheel until I see a run of at least five reds in a row.

I then bet heavily on a black.

I am now more likely to win.

Roulette

Page 4: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S4

Coin Tossing

I am about to toss a coin 20 times.

What do you expect to happen?

Suppose that the first four tosses have been heads and there are no tails so far. What do you expect will have happened by the end of the 20 tosses ?

Page 5: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S5

Coin Tossing

• Option A– Still expect to get 10 heads and 10 tails. Since

there are already 4 heads, now expect to get 6 heads from the remaining 16 tosses. In the next few tosses, expect to get more tails than heads.

• Option B– There are 16 tosses to go. For these 16 tosses I

expect 8 heads and 8 tails. Now expect to get 12 heads and 8 tails for the 20 throws.

Page 6: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S6

• In a TV game show, a car will be given away.

– 3 keys are put on the table, with only one of them

being the right key. The 3 finalists are given a

chance to choose one key and the one who

chooses the right key will take the car.

– If you were one of the finalists, would you prefer

to be the 1st, 2nd or last to choose a key?

TV Game Show

Page 7: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S7

Let’s Make a Deal Game Show

• You pick one of three doors – two have booby prizes behind them– one has lots of money behind it

• The game show host then shows you a booby prize behind one of the other doors

• Then he asks you “Do you want to change doors?”– Should you??! (Does it matter??!)

• See the following website:• http://www.stat.sc.edu/~west/javahtml/LetsMakeaDeal.html

Page 8: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S8

Matching Birthdays• In a room with 23 people what is the

probability that at least two of them will have the same birthday?

• Answer: .5073 or 50.73% chance!!!!!

• How about 30? • .7063 or 71% chance!• How about 40? • .8912 or 89% chance!• How about 50? • .9704 or 97% chance!

Page 9: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S9

Probability

What is Chapter 3 trying to do? – Introduce us to basic ideas about probabilities:

• what they are and where they come from• simple probability models• conditional probabilities• independent events

– Teach us how to calculate probabilities:• through tables of counts and properties of

probabilities, such as independence.

Page 10: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S10

I toss a fair coin (where fair means ‘equally likely outcomes’)• What are the possible outcomes?

Head and tail ~ This is called a “dichotomous experiment” because it has only two possible outcomes. S = {H,T}.

• What is the probability it will turn up heads? 1/2

I choose a person at random and check which eye she/he winks with• What are the possible outcomes?

Left and right• What is the probability they wink with their left eye?

?????

Probability

Page 11: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S11

What are Probabilities?

• A probability is a number between 0 & 1 that quantifies uncertainty

• A probability of 0 identifies impossibility

• A probability of 1 identifies certainty

Page 12: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S12

Where do probabilities come from?

• Probabilities from models:The probability of getting a four when a fair dice is rolled is

1/6 (0.1667 or 16.7%)

Page 13: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S13

• Probabilities from data

or Empirical probabilities

What is the probability that a randomly selected WSU student regularly drinks alcohol?– In a survey conducted by students in a STAT 110

course there were 348 WSU students sampled. – 212 of these students stated they regularly drink

alcohol. – The estimated probability that a randomly chosen

Winona State students drinks alcohol is

212/348 (0.609 or 60.9% chance)

Where do probabilities come from?

Page 14: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S14

• Subjective Probabilities– The probability that there will be another

outbreak of ebola in Africa within the next year is 0.1.

– The probability of rain in the next 24 hours is very high. Perhaps the weather forecaster might say a there is a 70% chance of rain.

– A doctor may state your chance of successful treatment.

Where do probabilities come from?

Page 15: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S15

Simple Probability Models

Terminology:

• a random experiment is an experiment whose outcome cannot be predicted– E.g. Draw a card from a well-shuffled

pack

• a sample space is the collection of all possible outcomes– 52 outcomes S = {AH, 2H, 3H, …, KH,

…, AS,…,KS}

Page 16: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S16

Simple Probability Models• an event is a collection of outcomes

– E.g. E = card drawn is a heart

• an event occurs if any outcome making up that event occurs– drawing a 5 of hearts

• the complement of an event E is denoted as E’ , it contains all outcomes not in E E.g. E’ = card drawn is not a heart

= card drawn is a spade, club or

diamond

Page 17: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S17

For equally likely outcomes, and a given event E:

Simple Probability Models

“The probability that an event E occurs”

is written in shorthand as P(E).

P(E) =Number of outcomes in E

Total number of outcomes

Page 18: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S18

1. House Sales Example

Below is a table containing some information for a sample of 600 sales of single family houses in 1999.

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 19: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S19

1. House Sales Example• Let A be the event that a sale is

over $400,000

– A’ is the event that a sale is NOT over $400,000

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 20: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S20

1. House Sales Example• B be the event that a sale is

made within 45 days– So B’ is the event that a sale takes

longer than 45 days

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 21: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S21

1. House Sales Example

For a sale selected at random from these 600 sales, find the probability that the sale was:

a) over $400,000, i.e. event A occurs.

P(A) = 61/600 = 0.102

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 22: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S22

1. House Sales ExampleFor a sale selected at random from these 600 sales, find the probability that the sale was:

b) not over $400,000, i.e. A’ occurs.

P(A’) = (155+384)/600 = 539/600 = 0.898* Note that P(A) + P(A’) = 1 and that P(A’) = 1 – P(A)Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 23: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S23

1. House Sales ExampleFor a sale selected at random from these 600 sales, find the probability that the sale was:

c) made in 45 days or more, i.e. B’ occurs.

P(B’) = (300 + 54)/600 = 354/600 = 0.59

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 24: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S24

1. House Sales Example

For a sale selected at random from these 600 sales, find the probability that the sale was:

d) made within 45 days and sold for over $400,000, i.e. both B and A occur.

P(B and A) = 20/600 = 0.033Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 25: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S25

1. House Sales Example

For a sale selected at random from these 600 sales, find the probability that the sale was:

e) made within 45 days and/or sold for over $400,000, i.e. either A or B occur.

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 26: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S26

1. House Sales Example

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

P(B and/or A) = (246 + 61 – 20)/600 = 287/600 = 0.478

For a sale selected at random from these 600 sales, find the probability that the sale was:

e) made within 45 days and/or sold for over $400,000.

Page 27: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S27

1. House Sales Example

For a sale selected at random from these 600 sales, find the probability that the sale was:

f ) on the market for less than 45 days given that it sold for over $400,000

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 28: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S28

1. House Sales Example

For a sale selected at random from these 600 sales, find the probability that the sale was:

f ) on the market for less than 45 days given that it sold for over $400,000

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

P(B given A) = P(B|A) = 20/61 = 0.328

Page 29: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S29

Conditional Probability

• The sample space is reduced.

• Key words that indicate conditional probability are:“given that”, “of those”, “if …”,

“assuming that”

Page 30: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S30

“The probability of event E occurring given that event F has already occurred”

is written in shorthand as P(E|F)

Conditional Probability

Page 31: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S31

1. House Sales ExampleFor a sale selected at random from these 600 sales,

g) What proportion of the houses that sold in less than 45 days, sold for more than $400,000?

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

Page 32: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S32

1. House Sales ExampleFor a sale selected at random from these 600 sales,

g) What proportion of the houses that sold in less than 45 days, sold for more than $400,000?

Days on the Market

Less than 45 Days

45 - 90 Days More than 90 Days

Under $250,000 75 77 3 155

$250,000 - 400,000 151 192 41 384

Over $400,000 20 31 10 61

246 300 54 600

P (A|B) = 20/246 = 0.081

Page 33: C4, L1, S1 Chapter 3 Probability. C4, L1, S2 I am offered two lotto cards: –Card 1: has numbers –Card 2: has numbers Which card should I take so that

C4, L1, S33

Independence

Events E and F are said to independent if

P(E|F) = P(E)

For the house sales data the

P(A) = 61/600 = .102

and we have just seen P(A|B) = .081 thus it seems that A and B are NOT independent.