Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a...

112
Probabil ity

Transcript of Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a...

Page 1: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Probability

Page 2: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

ExperimentSomething capable of replication under stable conditions.

Example: Tossing a coin

Page 3: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Sample Space

The set of all possible outcomes of an experiment.

A sample space can be finite or infinite, & discrete or continuous.

Page 4: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

A set is discrete ifyou can put you finger on one element

after another & not miss any in between.

That’s not possible if a set is continuous.

Page 5: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example: discrete, finite sample space

Experiment: Tossing a coin once.

Sample space: {H, T}.

This sample space is discrete; you can put your finger on one element after the other & not miss any.

This sample space is also finite. There are just two elements; that’s a finite number.

Page 6: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example: discrete, infinite sample space

Experiment: Eating potato chips:

Sample space: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...}

This sample space is discrete; you can put your finger on one element after another & not miss any in between.

This sample space is infinite, however, since there are an infinite number of possibilities.

Page 7: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example: continuous sample space.

Experiment: Burning a light bulb until it burns out. Suppose there is a theoretical maximum number of hours that a bulb can burn & that is 10,000 hours.

Sample space: The set of all real numbers between 0 & 10,000.

Between any two numbers you can pick in the sample space, there is another number.

For example, the bulb could burn for 99.777 hours or 99.778. But it could also burn for 99.7775, which is in between. You cannot put your finger on one element after another & not miss any in between.

This sample space is continuous.

It is also infinite, since there are an infinite number of possibilities.

All continuous sample spaces are infinite.

Page 8: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Eventa subset of the outcomes of an experiment

Example:

Experiment: tossing a coin twice

Sample space (all possible outcomes) = {HH, HT, TH, TT}

An event could be that you got at least one head on the two tosses.

So the event would be {HH, HT, TH}

Page 9: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Subjective vs. Objective ProbabilitySubjective Probability is probability in lay terms.

Something is probable if it is likely.

Example: I will probably get an A in this course.

Objective Probability is what we’ll use in this course.

Objective Probability is the relative frequency with which something occurs over the long run.

What does that mean?

Page 10: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Objective Probability: Developing the Idea

• Suppose we flip a coin & get tails. Then the relative frequency of heads is 0/1 = 0.

• Suppose we flip it again & get tails again.Our relative frequency of heads is 0/2 = 0.

• We flip it 8 more times & get a total of 6 tails & 4 heads.The relative freq of heads is 4/10 = 0.4

• We flip it 100 times & get 48 heads.The relative freq of heads is 48/100 = 0.48

• We flip it 1000 times & get 503 heads.The relative freq of heads is 503/1000 = 0.503

• If the coin is fair, & we could flip it an infinite number of times, what would the relative frequency of heads be?

0.5 or 1/2

That’s the relative freq over the long run or probability of heads.

Page 11: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Two Basic Properties of Probability

1. 0 < Pr(E) < 1 for every subset of the sample space S

2. Pr(S) = 1

Page 12: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Counting Rules

We’ll look at three counting rules.

1. Basic multiplication rule

2. Permutations

3. Combinations

Page 13: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Multiplication RuleExample

Suppose we toss a coin 3 times & examine the outcomes.

(One possible outcome would be HTH.)

How many outcomes are possible?

Page 14: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We have 2 possibilities for the 1st toss, H & T.

H T

Page 15: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We can pair each of these with 2 possibilities.

H T

H T H T

Page 16: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

That gives 4 possibilities on the 2 tosses: HH,

H T

H T H T

Page 17: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

HT,

H T

H T H T

Page 18: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

TH

H T

H T H T

Page 19: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

And TT

H T

H T H T

Page 20: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

If we toss the coin a 3rd time, we can pair each of 4 possibilities with a H or T.

H T

H T H T

H T H T H T H T

Page 21: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

So for 3 tosses, we have 8 possibilities: HHH,

H T

H T H T

H T H T H T H T

Page 22: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

HHT,

H T

H T H T

H T H T H T H T

Page 23: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

HTH,

H T

H T H T

H T H T H T H T

Page 24: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

HTT,

H T

H T H T

H T H T H T H T

Page 25: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

THH,

H T

H T H T

H T H T H T H T

Page 26: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

THT,

H T

H T H T

H T H T H T H T

Page 27: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

TTH,

H T

H T H T

H T H T H T H T

Page 28: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

and TTT.

H T

H T H T

H T H T H T H T

Page 29: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Again, we had 8 possibilities for 3 tosses.

2 x 2 x 2 = 23 = 8

Page 30: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

In general, If we have an experiment with k parts

(such as 3 tosses)

and each part has n possible outcomes (such as heads & tails),

then the total number of possible outcomes for the experiment is

nk

This is the simplest multiplication rule.

Page 31: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

As a variation, suppose that we have an experiment with 2 parts,

the 1st part has m possibilities, & the 2nd part has n possibilities.

How many possibilities are there for the experiment?

Page 32: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

In particular, we might have a coin & a die.

So one possible outcome could be H6 (a head on the coin & a 1 on the die).

How many possible outcomes does the experiment have?

Page 33: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We have 2 x 6 = 12 possibilities.

Return to our more general question about the 2-part experiment with m & n possibilities for each part.We now see that the total number of outcomes for the experiment is

mn

Page 34: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

If we had a 3-part experiment, the 1st part has m possibilities, the 2nd part has n possibilities,

& the 3rd part has p possibilities, how many possible outcomes would

the experiment have?

m n p

Page 35: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Permutations

Suppose we have a horse race with 8 horses: A,B,C,D,E,F,G, and H.

We would like to know how many possible arrangements we can have for the 1st, 2nd, & 3rd place horses.

One possibility would be G D F.(F D G would be a different possibility because order matters here.)

Page 36: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We have 8 possible horses we can pick for 1st place.

Once we have the 1st place horse, we have 7 possibilities for the 2nd place horse.

Then we have 6 possibilities for the 3rd place horse.

So we have 8 • 7 • 6 = 336 possibilities.

This is the number of permutations of 8 objects (horses in this case), taken 3 at a time.

Page 37: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

How many possible arrangements of all the horses are there?

In other words, how many permutations are there of 8 objects taken 8 at a time?

8 • 7 • 6 • 5 • 4 • 3 • 2 • 1 = 40,320

This is 8 factorial or 8!

Page 38: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We’d like to develop a general formula for the number of permutations of n objects taken k at a time.

Let’s work with our horse example of 8 horses taken 3 at a time.

The number of permutations was 8 • 7 • 6.

Page 39: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We can multiply our answer (8 • 7 • 6) by 1 & still have the same answer.

Note that this is

1 12345

12345

12345

12345 678 678

12345

12345678

! 5

8

!

Multiplying we have

! 38

8

)(

!

Page 40: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

So the number of permutations of n objects taken k at a time is

kn

n P

kn !)(

!

Page 41: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Combinations

Suppose we want to know how many different poker hands there are.

In other words, how many ways can you deal 52 objects taken 5 at a time.

Keep in mind that if we have 5 cards dealt to us, it doesn’t matter what order we get them. It’s the same hand.

So while order matters in permutations, order does not matter in combinations.

Page 42: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Let’s start by asking a different question.

What is the number of permutations of 52 cards taken 5 at a time?

nPk = 52P5

!)(

!

552

52

= 52 • 51 • 50 • 49 • 48

= 311,875,200

When we count the number of permutations, we are counting each reordering separately .

!

!

47

52

Page 43: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

However, each reordering should not be counted separately for combinations.

We need to figure out how many times we counted each group of 5 cards.

For example, we counted the cards ABCDE separately as ABCDE, BEACD, CEBAD, DEBAC, etc.

How many ways can we rearrange 5 cards?

We could rearrange 8 horses 8! ways.

So we can rearrange 5 cards 5! = 120 ways.

Page 44: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

That means that we counted each group of cards 120 times.

So the number of really different poker hands is the number of permutations of 52 cards taken 5 at a time divided by the 120 times that we counted each hand.

Page 45: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

So the number of combinations of 52 cards taken 5 at a time is

!

!)(

!

! 5

552

52

5

PC 552

552

!!)(

!

5

1

552

52

5 552

52

!!)(

!

9605982 ,,

Page 46: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

The number of combinations of n objects taken k at a time is

k kn

n C

kn !!)(

!

Page 47: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

The number of combinations of n objects taken k at a time nCk is also written as

n

k

and is read as “n choose k”.

It’s the number of ways you can start with n objects and choose k of them without regard to order.

Page 48: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Complements, Unions, & Intersections

Suppose A & B are events.

Page 49: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

The complement of A is everything in the sample space S that is NOT in A.

AS

If the rectangular box is S, and the white circle is A, then everything in the box that’s outside the circle is Ac , which is the complement of A.

Page 50: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Theorem

Pr (Ac) = 1 - Pr (A)

Example:

If A is the event that a randomly selected student is male, and the probability of A is 0.6, what is Ac and what is its probability?

Ac is the event that a randomly selected student is female, and its probability is 0.4.

Page 51: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

The union of A & B (denoted A U B) is everything in the sample space that is in

either A or B or both.

AS

The union of A & B is the whole white area.

B

Page 52: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

The intersection of A & B (denoted A∩B) is everything in the sample space that is in

both A & B.

S

The intersection of A & B is the pink overlapping area.

BA

Page 53: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example

A family is planning to have 2 children.

Suppose boys (B) & girls (G) are equally likely.

What is the sample space S?

S = {BB, GG, BG, GB}

Page 54: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example continued

If E is the event that both children are the same sex, what does E look like & what is its probability?

E = {BB, GG}

Since boys & girls are equally likely, each of the four outcomes in the sample space S = {BB, GG, BG, GB} is equally

likely & has a probability of 1/4.

So Pr(E) = 2/4 = 1/2 = 0.5

Page 55: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d: Recall that E = {BB, GG} & Pr(E)=0.5

What is the complement of E and what is its probability?

Ec = {BG, GB}

Pr (Ec) = 1- Pr(E) = 1 - 0.5 = 0.5

Page 56: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example continued

If F is the event that at least one of the children is a girl, what does F look like & what is its probability?

F = {BG, GB, GG}

Pr(F) = 3/4 = 0.75

Page 57: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Recall: E = {BB, GG} & Pr(E)=0.5F = {BG, GB, GG} & Pr(F) = 0.75

What is E∩F?

{GG}

What is its probability?

1/4 = 0.25

Page 58: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Recall: E = {BB, GG} & Pr(E)=0.5F = {BG, GB, GG} & Pr(F) = 0.75

What is the EUF?

{BB, GG, BG, GB} = S

What is the probability of EUF?

1

If you add the separate probabilities of E & F together, do you get Pr(EUF)? Let’s try it.Pr(E) + Pr(F) = 0.5 + 0.75 = 1.25 ≠ 1 = Pr (EUF)

Why doesn’t it work?

We counted GG (the intersection of E & F) twice.

Page 59: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

A formula for Pr(EUF)

Pr(EUF) = Pr(E) + Pr(F) - Pr(E∩F)

If E & F do not overlap, then the intersection is the empty set, & the probability of the intersection is zero.

When there is no overlap, Pr(EUF) = Pr(E) + Pr(F) .

Page 60: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Conditional Probability of A given BPr(A|B)

Pr(A|B) = Pr (A∩B) / Pr(B)

Page 61: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

ExampleSuppose there are 10,000 students at a university.

2,000 are seniors (S). 3,500 are female (F).800 are seniors & female.

Determine the probability that a randomly selected student is (1) a senior, (2) female, (3) a senior & female.

1. Pr(S) = 2,000/10,000 = 0.2

2. Pr(F) = 3,500/10,000 = 0.35

3. Pr(S∩F) = 800/10,000 = 0.08

Page 62: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Use the definition of conditional probability Pr(A|B) = Pr(A∩B) / Pr(B)

& the previously calculated information Pr(S) = 0.2; Pr(F) = 0.35; Pr(S∩F) = 0.08

to answer the questions below.

1. If a randomly selected student is female, what is the probability that she is a senior?

Pr(S|F) = Pr(S∩F) / Pr(F)

= 0.08 / 0.35 = 0.228

2. If a randomly selected student is a senior, what is the probability the student is female?

Pr(F|S) = Pr(F∩S) / Pr(S)

= 0.08 / 0.2 = 0.4

Notice that S∩F = F∩S, so the numerators are the same, but the denominators are different.

Page 63: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Joint Probability Distributions & Marginal Distributions

Page 64: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example: Suppose a firm has 3 departments. Of the firm’s employees, 10% are male & in dept. 1, 30% are male & in dept. 2, 20% are male & in dept. 3, 15% are female & in dept. 1, 20% are female & in dept. 2, & 5% are female & in dept. 3. Then the joint probability distribution of gender & dept. is as in the table below.

D1 D2 D3

M 0.10 0.30 0.20

F 0.15 0.20 0.05

Page 65: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d: What is the probability that a randomly selected employee is male?

D1 D2 D3

M 0.10 0.30 0.20

F 0.15 0.20 0.05

Page 66: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d: What is the probability that a randomly selected employee is male?

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05

Page 67: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d: What is the probability that a randomly selected employee is female?

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05

Page 68: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d: What is the probability that a randomly selected employee is female?

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

Page 69: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d: What is the probability that a randomly selected employee is in dept. 1?

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

Page 70: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d: What is the probability that a randomly selected employee is in dept. 1?

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

0.25

Page 71: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d: What is the probability that a randomly selected employee is in dept. 2?

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

0.25

Page 72: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

0.25 0.50

Example cont’d: What is the probability that a randomly selected employee is in dept. 2?

Page 73: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

0.25 0.50

Example cont’d: What is the probability that a randomly selected employee is in dept. 3?

Page 74: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

0.25 0.50 0.25

Example cont’d: What is the probability that a randomly selected employee is in dept. 3?

Page 75: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

0.25 0.50 0.25

Example cont’d: The marginal distribution of gender is in first & last columns (or left & right margins of the table) & gives the probability of each possibility for gender.

Page 76: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

0.25 0.50 0.25

Example cont’d: The marginal distribution of department is in first & last rows (or top & bottom margins of the table) & gives the probability of each possibility for dept.

Page 77: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

D1 D2 D3

M 0.10 0.30 0.20 0.60

F 0.15 0.20 0.05 0.40

0.25 0.50 0.25 1.00

Notice that when you add the numbers in the last column or the last row, you must get one, because you’re adding all the probabilities for all the possibilities.

Page 78: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Bayesian Analysis

Allows us to calculate some conditional probabilities using other conditional probabilities

Page 79: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example: We have a population of potential workers. We know that 40% are grade school graduates (G), 50% are high school grads (H), & 10% are college grads (C). In addition,10% of the grade school grads are unemployed (U), 5% of the h.s. grads are unemployed (U), & 2% of the college grads are unemployed (U).

Convert this information into probability statements.

Then determine the probability that a randomly selected unemployed person is a college graduate, that is, Pr(C|U).

Page 80: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

40% are grade school graduates (G), 50% are high school grads (H), & 10% are college grads (C). In addition,10% of the grade school grads are unemployed (U), 5% of the h.s. grads are unemployed (U), & 2% of the college grads are unemployed (U).

Pr(G) = 0.40

Page 81: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

40% are grade school graduates (G), 50% are high school grads (H), & 10% are college grads (C). In addition,10% of the grade school grads are unemployed (U), 5% of the h.s. grads are unemployed (U), & 2% of the college grads are unemployed (U).

Pr(G) = 0.40

Pr(H) = 0.50

Page 82: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

40% are grade school graduates (G), 50% are high school grads (H), & 10% are college grads (C). In addition,10% of the grade school grads are unemployed (U), 5% of the h.s. grads are unemployed (U), & 2% of the college grads are unemployed (U).

Pr(G) = 0.40

Pr(H) = 0.50

Pr(C) = 0.10

Page 83: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

40% are grade school graduates (G), 50% are high school grads (H), & 10% are college grads (C). In addition,10% of the grade school grads are unemployed (U), 5% of the h.s. grads are unemployed (U), & 2% of the college grads are unemployed (U).

Pr(G) = 0.40 Pr(U|G) = 0.10

Pr(H) = 0.50

Pr(C) = 0.10

Page 84: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

40% are grade school graduates (G), 50% are high school grads (H), & 10% are college grads (C). In addition,10% of the grade school grads are unemployed (U), 5% of the h.s. grads are unemployed (U), & 2% of the college grads are unemployed (U).

Pr(G) = 0.40 Pr(U|G) = 0.10

Pr(H) = 0.50 Pr(U|H) = 0.05

Pr(C) = 0.10

Page 85: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

40% are grade school graduates (G), 50% are high school grads (H), & 10% are college grads (C). In addition,10% of the grade school grads are unemployed (U), 5% of the h.s. grads are unemployed (U), & 2% of the college grads are unemployed (U).

Pr(G) = 0.40 Pr(U|G) = 0.10

Pr(H) = 0.50 Pr(U|H) = 0.05

Pr(C) = 0.10 Pr(U|C) = 0.02

Page 86: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

In order to calculate Pr(C|U), we need to determine the probability that a randomly selected individual is

1. a grade school grad & unemployed

2. a h.s. grad & unemployed

3. a college grad & unemployed

Page 87: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Then 10% of 40% of our population is grade school grads & unemployed.

So Pr(G & U) = Pr(G∩U)

= 0.10 x 0.40 = 0.04.

Similarly, Pr(H & U) = Pr(H∩U)

= 0.05 x 0.50 = 0.025.

Also, Pr(C & U) = Pr(C∩U)

= 0.02 x 0.10 = 0.002.

Recall that 40% of our population is grade school grads, & 10% of them are unemployed.

Page 88: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Pr(U) = Pr(G∩U) + Pr(H∩U) + Pr(C∩U) = 0.04 + 0.025 + 0.002 = 0.067

Given

Pr(G & U) = Pr(G ∩ U) = 0.04,

Pr(H & U) = Pr(H ∩ U) = 0.025, &

Pr(C & U) = Pr(C ∩ U) = 0.002,

we can calculate the probability that a randomly selected individual is unemployed, Pr(U).

Page 89: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We can finally determine Pr(C|U), using our calculations

& the definition of conditional probability.

Pr(C|U) = Pr(C∩U) / Pr(U)

= 0.002 / 0.067

= 0.030.

So the probability that a randomly selected unemployed individual is a college graduate is 0.03.

Page 90: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We can also do the problem in an easily organized table.

Page 91: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We can also do the problem in an easily organized table.

ED Given

Pr(ED) Given

Pr(U|ED)

Grade School Grad

0.40 0.10

High School Grad

0.50 0.05

College Grad

0.10 0.02

All 1.00 ------

Page 92: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We can also do the problem in an easily organized table.

ED Given

Pr(ED) Given

Pr(U|ED)

Pr(ED∩U) = Pr(U|ED) x Pr(ED)

Grade School Grad

0.40 0.10 0.04

High School Grad

0.50 0.05 0.025

College Grad

0.10 0.02 0.002

All 1.00 ------ Pr(U)=0.067

Page 93: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We can also do the problem in an easily organized table.

ED Given

Pr(ED) Given

Pr(U|ED)

Pr(ED∩U) = Pr(U|ED) x Pr(ED)

Pr(ED|U) = Pr(ED∩U)

Pr(U)

Grade School Grad

0.40 0.10 0.04 0.597

High School Grad

0.50 0.05 0.025 0.373

College Grad

0.10 0.02 0.002 0.030

All 1.00 ------ Pr(U)=0.067 1.000

Page 94: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

IndependenceTwo events are independent, if knowing that one event happened doesn’t give you any information on whether the other happened.

Example:

A: It rained a lot in Beijing, China last year.

B: You did well in your courses last year.

These two events are independent (unless you took your courses in Beijing). One of these events occurring tells you nothing about whether the other occurred.

Page 95: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

So in terms of probability, two events A & B are independent if and only if

* Pr(A|B) = Pr(A)

Using the definition of conditional probability, this statement is equivalent to

Pr(A∩B) / Pr(B) = Pr(A).Multiplying both sides by Pr(B), we have

* Pr(A∩B) = Pr(A) Pr(B).

Dividing both sides by Pr(A), we have Pr(A∩B) / Pr(A) = Pr(B),

which is equivalent to

* Pr(B|A) = Pr(B).

This makes sense. If knowing about B tells us nothing about A, then knowing about A tells us nothing about B.

Page 96: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

We now have 3 equivalent statements for 2 independent events A & B

Pr(A|B) = Pr(A)Pr(B|A) = Pr(B)

Pr(A∩B) = Pr(A) Pr(B).

The last equation says that you can calculate the probability that both of two

independent events occurred by multiplying the separate probabilities.

Page 97: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example: Toss a fair coin & a fair die

A: You get a H on the coin.

B: You get a 6 on the die.Recall that we counted 12 possible outcomes for this experiment.

Since the coin & the die are fair, each outcome is equally likely, & the probability of getting a H & a 6 is 1/12.

Page 98: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Example cont’d

The probability of a H on the coin is 1/2

The probability of a 6 on the die is 1/6.

So Pr(H) Pr(6) = (1/2)(1/6)

= 1/12

= Pr(H∩6), & we can see that these 2 events are independent of each other.

Page 99: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Mutually Exclusive

Two events are mutually exclusive if you know that one occurred, then you know that the other could not have occurred.

example: You selected a student at random.

A: You picked a male.

B: You picked a female.

These 2 events are mutually exclusive, because you know that if A occurred, B did not.

Page 100: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Mutually exclusive events are NOT independent!

Remember that for independent events, knowing that one event occurred tells you nothing about whether the other occurred.

For mutually exclusive events, knowing that one event occurred tells you that the other definitely did not occur!

Page 101: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

The Birthday Problem

What is the probability that in a group of k people at least two people have the same birthday?

(We are going to ignore leap day, which complicates the analysis, but doesn’t have much effect on the answer.)

Page 102: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

For our group of k people, let p = Pr(at least 2 people have the same birthday).

At least 2 people having the same birthday is the complement (opposite) of no 2 people having the same birthday, or everyone having different birthdays.

It’s easier to calculate the probability of different birthdays.

So we can do that & then subtract the answer from one to get the probability we want.

Page 103: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 104: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

3651

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 105: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

364•3651

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 106: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

363•364•3651

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 107: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

s)#k haveyou (until •361•362•363•364•3651

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 108: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

365

s)#k haveyou (until •361•362•363•364•3651

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 109: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

365•365

s)#k haveyou (until •361•362•363•364•3651

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 110: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

365•365•365

s)#k haveyou (until •361•362•363•364•3651

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 111: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

p = 1- Pr(all different birthdays)

This is very messy, but you can calculate the answer for any number k.

I have the answers computed for some sample values.

s)#k haveyou ...(until •365•365•365•365•365

s)#k haveyou (until •361•362•363•364•3651

bdays)any pick can peoplek waysof (#

bdays)different pick can peoplek waysof (#1

Page 112: Probability. Experiment Something capable of replication under stable conditions. Example: Tossing a coin.

Birthday Problem Probabilities k p

5 0.027

10 0.117

15 0.253

20 0.411

22 0.476

23 0.507

25 0.569

30 0.706

40 0.891

50 0.970

100 0.9999997