Top Banner
1 Chapter 3: Counting and Probability
93

Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

Apr 20, 2018

Download

Documents

PhạmTuyền
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

1

Chapter 3: Counting and Probability

Page 2: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

2

Motivation

Page 3: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

3

I Probability studies the chances ofevents happening

Page 4: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

4

For instance, the probability of:I winning the lottery

I stock prices going upI a coincidence happening

Page 5: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

4

For instance, the probability of:I winning the lotteryI stock prices going up

I a coincidence happening

Page 6: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

4

For instance, the probability of:I winning the lotteryI stock prices going upI a coincidence happening

Page 7: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

5

I Counting is the basis forprobability

I Probability is the basis forstatistics (Chapter 4)

Page 8: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

5

I Counting is the basis forprobability

I Probability is the basis forstatistics (Chapter 4)

Page 9: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

6

Some history

The first people who studiedprobability were Frenchmathematicians Blaise Pascal andPierre de Fermat (17th century)

Page 10: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

7

Pierre de Fermat (1601 - 1665)

Page 11: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

8

Blaise Pascal (1623 - 1662)

Page 12: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

9

Page 13: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

10

Page 14: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

11

In contrast, you need 253 peoplebefore the probability is 1/2 thatsomeone has a specific birth date,like July 4

Page 15: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

12

Raise your hand if your birthday is:I July 4

I March 4I February 7I December 25I November 14I December 15

In theory, we should get about 2 or 3“coincidences”

Page 16: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

12

Raise your hand if your birthday is:I July 4I March 4

I February 7I December 25I November 14I December 15

In theory, we should get about 2 or 3“coincidences”

Page 17: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

12

Raise your hand if your birthday is:I July 4I March 4I February 7

I December 25I November 14I December 15

In theory, we should get about 2 or 3“coincidences”

Page 18: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

12

Raise your hand if your birthday is:I July 4I March 4I February 7I December 25

I November 14I December 15

In theory, we should get about 2 or 3“coincidences”

Page 19: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

12

Raise your hand if your birthday is:I July 4I March 4I February 7I December 25I November 14

I December 15In theory, we should get about 2 or 3“coincidences”

Page 20: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

12

Raise your hand if your birthday is:I July 4I March 4I February 7I December 25I November 14I December 15

In theory, we should get about 2 or 3“coincidences”

Page 21: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

12

Raise your hand if your birthday is:I July 4I March 4I February 7I December 25I November 14I December 15

In theory, we should get about 2 or 3“coincidences”

Page 22: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

12

Raise your hand if your birthday is:I July 4I March 4I February 7I December 25I November 14I December 15

In theory, we should get about 2 or 3“coincidences”

Page 23: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

13

Section 3.1: Counting Principles

Page 24: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

14

We consider counting problems like:

“In how many ways can . . . bedone?”.

To do this, we need some countingprinciples.

Page 25: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

15

Section 3.1.1: List and Count (bruteforce)

Page 26: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

16

Sometimes you just list all thepossible ways and then count them.

Page 27: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

17

Example

I Flip a coin, how many outcomes?

Answer: 2 possible outcomes:Heads or Tails.

I Roll a normal die, how manyoutcomes?Answer: 6 possible outcomes:r

,r r , r r r , r rr r , r rrr r , r rr rr r

Page 28: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

17

Example

I Flip a coin, how many outcomes?Answer: 2 possible outcomes:Heads or Tails.

I Roll a normal die, how manyoutcomes?Answer: 6 possible outcomes:r

,r r , r r r , r rr r , r rrr r , r rr rr r

Page 29: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

17

Example

I Flip a coin, how many outcomes?Answer: 2 possible outcomes:Heads or Tails.

I Roll a normal die, how manyoutcomes?

Answer: 6 possible outcomes:r,

r r , r r r , r rr r , r rrr r , r rr rr r

Page 30: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

17

Example

I Flip a coin, how many outcomes?Answer: 2 possible outcomes:Heads or Tails.

I Roll a normal die, how manyoutcomes?Answer: 6 possible outcomes:r

,r r , r r r , r rr r , r rrr r , r rr rr r

Page 31: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

18

Except for very small countingproblems, this is not practical.

In general, we need some elementarycounting principles that make thingseasier.

Page 32: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

18

Except for very small countingproblems, this is not practical.

In general, we need some elementarycounting principles that make thingseasier.

Page 33: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

19

These principles include:

Product principle: when the problemcan be broken down intoindependent steps.

Sum Principle: when the problem canbe broken down into disjointcases.

Page 34: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

19

These principles include:Product principle: when the problem

can be broken down intoindependent steps.

Sum Principle: when the problem canbe broken down into disjointcases.

Page 35: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

19

These principles include:Product principle: when the problem

can be broken down intoindependent steps.

Sum Principle: when the problem canbe broken down into disjointcases.

Page 36: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

20

Complement Principle: when theproblem is the exact oppositeof another one.

Page 37: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

21

Section 3.1.2: Product principle

Page 38: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

22

The product principle ormultiplication rule states:

IF a counting task can be brokendown into a sequence ofindependent steps, i.e., latersteps don’t depend on choicesfrom previous steps...

Page 39: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

22

The product principle ormultiplication rule states:

IF a counting task can be brokendown into a sequence ofindependent steps, i.e., latersteps don’t depend on choicesfrom previous steps...

Page 40: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

23

THEN the answer is the product ofthe answers for the individualsteps.

Page 41: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

24

Example

Roll two (distinguishable) dice. Howmany different combinations cancome up?

Page 42: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

25

Solution

The problem can be broken downinto two steps:

I Count the number of outcomes onthe first die.There are 6.

I Count the number of outcomes onthe second die.There are also 6.

Page 43: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

25

Solution

The problem can be broken downinto two steps:

I Count the number of outcomes onthe first die.There are 6.

I Count the number of outcomes onthe second die.There are also 6.

Page 44: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

25

Solution

The problem can be broken downinto two steps:

I Count the number of outcomes onthe first die.There are 6.

I Count the number of outcomes onthe second die.There are also 6.

Page 45: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

26

Solution

These steps are independent, so

by the product principle there are

6 × 6 = 36

different combinations.

Page 46: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

26

Solution

These steps are independent, soby the product principle there are

6 × 6 = 36

different combinations.

Page 47: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

27

Page 48: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

28

Example

Why do bikes often have 18 differentgears? Why not 19?

Page 49: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

28

Example

Why do bikes often have 18 differentgears? Why not 19?

Page 50: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

29

Solution

Counting combinations of front andback gears can be broken down intotwo steps:

I Count the number of rear gears.For example there could be 6.

I Count the number of front gears.For example there could be 3.

Page 51: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

29

Solution

Counting combinations of front andback gears can be broken down intotwo steps:

I Count the number of rear gears.For example there could be 6.

I Count the number of front gears.For example there could be 3.

Page 52: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

29

Solution

Counting combinations of front andback gears can be broken down intotwo steps:

I Count the number of rear gears.For example there could be 6.

I Count the number of front gears.For example there could be 3.

Page 53: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

30

Solution

By the product principle there are

6 × 3 = 18

different gears. (And we only needed6 in back and 3 in front.)

To get 19 we’d need 1 × 19 = 19,which is inconvenient.

Page 54: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

31

Example

An ice cream parlor has 7 differentflavors. They serve either on aregular cone, sugar cone, or a dish.How many different single-scoop icecream orders are possible?

Page 55: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

32

Solution

This can be broken down into twosteps:

I Pick a container.Can be done in 3 different ways:regular, sugar, dish.

I Pick a flavor.Can be done in 7 different ways,namely the 7 different flavors.

Page 56: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

32

Solution

This can be broken down into twosteps:

I Pick a container.Can be done in 3 different ways:regular, sugar, dish.

I Pick a flavor.Can be done in 7 different ways,namely the 7 different flavors.

Page 57: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

33

Solution

These are independent choices, sothe product principle says there are

7 × 3 = 21

different single-scoop ice creamorders.

Page 58: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

34

Cont.3 ×

Flavor7 =

Order21

Page 59: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

35

The number of steps can be morethan 2. But the product principle stillapplies as long as the steps areindependent of each other, just likehow the choice of the flavor didn’tdepend on the choice of container.

Page 60: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

36

Example

Maria has 3 pairs of shoes, 2 skirts, 4blouses and 1 jacket. How manydifferent outfits can she assemble?(Assume an “outfit” is a pair ofshoes, a skirt, and a blouse, with thejacket optional).

Page 61: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

37

Solution

We can view this as a 4-step process:

Page 62: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

38

Solution

1. Pick a pair of shoes. There are 3choices.

2. Pick a skirt. There are 2 choices.3. Pick a blouse. There are 4 choices.4. Finally, decide on the jacket.

There are 2 choices (to wear ornot to wear)

Page 63: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

38

Solution

1. Pick a pair of shoes. There are 3choices.

2. Pick a skirt. There are 2 choices.

3. Pick a blouse. There are 4 choices.4. Finally, decide on the jacket.

There are 2 choices (to wear ornot to wear)

Page 64: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

38

Solution

1. Pick a pair of shoes. There are 3choices.

2. Pick a skirt. There are 2 choices.3. Pick a blouse. There are 4 choices.

4. Finally, decide on the jacket.There are 2 choices (to wear ornot to wear)

Page 65: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

38

Solution

1. Pick a pair of shoes. There are 3choices.

2. Pick a skirt. There are 2 choices.3. Pick a blouse. There are 4 choices.4. Finally, decide on the jacket.

There are 2 choices (to wear ornot to wear)

Page 66: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

39

Solution

By the product principle, this can bedone in 3 × 2 × 4 × 2 = 48 differentways. Therefore 48 different outfitscan be assembled.

Shoes3 ×

Skirt2 ×

Blouse4 ×

Jacket2 =

Outfit48

Page 67: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

39

Solution

By the product principle, this can bedone in 3 × 2 × 4 × 2 = 48 differentways. Therefore 48 different outfitscan be assembled.

Shoes3 ×

Skirt2 ×

Blouse4 ×

Jacket2 =

Outfit48

Page 68: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

40

When the different steps are notindependent of each other, theproduct principle may not apply.

Page 69: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

41

Example

We are planning to drive from SantaRosa to Carbondale, eating lunchalong the way.

To go from SantaRosa to Carbondale there are threedifferent roads.

Page 70: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

41

Example

We are planning to drive from SantaRosa to Carbondale, eating lunchalong the way. To go from SantaRosa to Carbondale there are threedifferent roads.

Page 71: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

42

Example

I On the first road there are fourrestaurants.

I On the second road there are tworestaurants.

I On the third road there is onerestaurant.

How many alternatives do we havefor our trip?

Page 72: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

42

Example

I On the first road there are fourrestaurants.

I On the second road there are tworestaurants.

I On the third road there is onerestaurant.

How many alternatives do we havefor our trip?

Page 73: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

42

Example

I On the first road there are fourrestaurants.

I On the second road there are tworestaurants.

I On the third road there is onerestaurant.

How many alternatives do we havefor our trip?

Page 74: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

42

Example

I On the first road there are fourrestaurants.

I On the second road there are tworestaurants.

I On the third road there is onerestaurant.

How many alternatives do we havefor our trip?

Page 75: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

43

This breaks down naturally into twosteps:

I pick a road

I pick a place for lunch

but the second step depends on thechoice made for the first one!

Page 76: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

43

This breaks down naturally into twosteps:

I pick a roadI pick a place for lunch

but the second step depends on thechoice made for the first one!

Page 77: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

43

This breaks down naturally into twosteps:

I pick a roadI pick a place for lunch

but the second step depends on thechoice made for the first one!

Page 78: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

44

More importantly, the number ofchoices in the second step dependson the choice made in step 1.

We can’t apply the product principle.

We’ll see later we can use the sumprinciple.

Page 79: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

44

More importantly, the number ofchoices in the second step dependson the choice made in step 1.

We can’t apply the product principle.

We’ll see later we can use the sumprinciple.

Page 80: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

44

More importantly, the number ofchoices in the second step dependson the choice made in step 1.

We can’t apply the product principle.

We’ll see later we can use the sumprinciple.

Page 81: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

45

Sometimes the number of choices ina step doesn’t depend on theprevious steps, even though thechoices themselves may depend onearlier choices.

That is enough toapply the product principle.

Page 82: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

45

Sometimes the number of choices ina step doesn’t depend on theprevious steps, even though thechoices themselves may depend onearlier choices. That is enough toapply the product principle.

Page 83: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

46

Example

Election for President and Secretary.

Four candidates: A, B, C, and D.How many possible outcomes arethere?

Page 84: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

46

Example

Election for President and Secretary.Four candidates: A, B, C, and D.

How many possible outcomes arethere?

Page 85: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

46

Example

Election for President and Secretary.Four candidates: A, B, C, and D.How many possible outcomes arethere?

Page 86: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

47

Solution

We can list the outcomes by pickingone candidate for president, and thenone of the remaining candidates forsecretary.

Page 87: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

48

Solution

Note that the second step doesdepend on the choice for the firststep.

I If B is chosen as president then theonly choices for secretary are A, Cand D.

I But if D is chosen for presidentthen B is still a choice forsecretary.

Page 88: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

48

Solution

Note that the second step doesdepend on the choice for the firststep.

I If B is chosen as president then theonly choices for secretary are A, Cand D.

I But if D is chosen for presidentthen B is still a choice forsecretary.

Page 89: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

48

Solution

Note that the second step doesdepend on the choice for the firststep.

I If B is chosen as president then theonly choices for secretary are A, Cand D.

I But if D is chosen for presidentthen B is still a choice forsecretary.

Page 90: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

49

Solution

However, regardless of the choice forpresident, there are always 3 choicesfor secretary.

The number of choicesfor step 2 is independent of step 1.The product principle applies:

President4 ×

Secretary

3 =Outcomes

12

Page 91: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

49

Solution

However, regardless of the choice forpresident, there are always 3 choicesfor secretary. The number of choicesfor step 2 is independent of step 1.

The product principle applies:

President4 ×

Secretary

3 =Outcomes

12

Page 92: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

49

Solution

However, regardless of the choice forpresident, there are always 3 choicesfor secretary. The number of choicesfor step 2 is independent of step 1.The product principle applies:

President4 ×

Secretary

3 =Outcomes

12

Page 93: Chapter 3: Counting and Probability - Binghamton … the probability is 1/2 that ... IFa counting task can be broken ... (distinguishable) dice. How many di erent combinations can

50

Product Principle

When a counting task can be brokendown into steps so that the numberof alternatives in each step is inde-pendent of the previous steps, thenthe number of ways the counting taskcan be done is the product of thenumber of ways the individual stepscan be done.