unit 7: the law of averages - colgate...

42

Upload: lamminh

Post on 07-Sep-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Unit 7: The Law of Averages

Marius Ionescu

10/20/2011

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 1 / 15

Page 2: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Chapter 16: Law of Averages

Fact (Commonly said)

In the long run, the expected result will happen; or the luck evens out.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 2 / 15

Page 3: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Fact (Actually)

There are two parts to the law of averages:

1 The absolute error goes up as the number n of trials increases

2 The relative (%) error goes down as n increases

The formula says that

Actual value=Expected+chance error.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 3 / 15

Page 4: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Fact (Actually)

There are two parts to the law of averages:

1 The absolute error goes up as the number n of trials increases

2 The relative (%) error goes down as n increases

The formula says that

Actual value=Expected+chance error.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 3 / 15

Page 5: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Fact (Actually)

There are two parts to the law of averages:

1 The absolute error goes up as the number n of trials increases

2 The relative (%) error goes down as n increases

The formula says that

Actual value=Expected+chance error.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 3 / 15

Page 6: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Fact (Actually)

There are two parts to the law of averages:

1 The absolute error goes up as the number n of trials increases

2 The relative (%) error goes down as n increases

The formula says that

Actual value=Expected+chance error.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 3 / 15

Page 7: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Fact (Actually)

There are two parts to the law of averages:

1 The absolute error goes up as the number n of trials increases

2 The relative (%) error goes down as n increases

The formula says that

Actual value=Expected+chance error.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 3 / 15

Page 8: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Fact

So you are likely to be farther from expected, but down in % terms:

If you toss a coin 1000 times and there are 550 heads, then the error is

50 and the relative error is 5%.

If you toss a coin 1,000,000 times and there are 501,000 heads, then

the error is 1000 and the relative error is 0.1%.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 4 / 15

Page 9: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Fact

So you are likely to be farther from expected, but down in % terms:

If you toss a coin 1000 times and there are 550 heads, then the error is

50 and the relative error is 5%.

If you toss a coin 1,000,000 times and there are 501,000 heads, then

the error is 1000 and the relative error is 0.1%.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 4 / 15

Page 10: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Fact

So you are likely to be farther from expected, but down in % terms:

If you toss a coin 1000 times and there are 550 heads, then the error is

50 and the relative error is 5%.

If you toss a coin 1,000,000 times and there are 501,000 heads, then

the error is 1000 and the relative error is 0.1%.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 4 / 15

Page 11: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Law of Averages

Example

Question: if you play a basketball game against Kobe Bryant for $1 million,do you want to play 1 basket or 20 baskets?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 5 / 15

Page 12: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

The Sum of Draws

Example

Suppose that we have a box containing the numbers 1, 2, 3, 4, 5, and 6.Extract 100 numbers with replacement from the box. What do you expecttheir sum to be?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 6 / 15

Page 13: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Casino play

Example

Recall that in a casino game there are 18 reds, 18 blacks, and a 0 and 00.Suppose that you are playing roulette and you bet one dollar for red. Howmuch do you expect to win if you bet 100 times? Is this a fair game?

Fact

To answer these questions (and the previous example) we can use the �box

model�.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 7 / 15

Page 14: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Casino play

Example

Recall that in a casino game there are 18 reds, 18 blacks, and a 0 and 00.Suppose that you are playing roulette and you bet one dollar for red. Howmuch do you expect to win if you bet 100 times? Is this a fair game?

Fact

To answer these questions (and the previous example) we can use the �box

model�.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 7 / 15

Page 15: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Box model

Fact

Box models form a useful tool to study events that repeat a lot.

Turn any repeated independent random process into drawing from a

box.

They summarize the key ingredients of the problem.

They analyze chance variability.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 8 / 15

Page 16: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Box model

Fact

Box models form a useful tool to study events that repeat a lot.

Turn any repeated independent random process into drawing from a

box.

They summarize the key ingredients of the problem.

They analyze chance variability.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 8 / 15

Page 17: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Box model

Fact

Box models form a useful tool to study events that repeat a lot.

Turn any repeated independent random process into drawing from a

box.

They summarize the key ingredients of the problem.

They analyze chance variability.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 8 / 15

Page 18: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Box model

Fact

Box models form a useful tool to study events that repeat a lot.

Turn any repeated independent random process into drawing from a

box.

They summarize the key ingredients of the problem.

They analyze chance variability.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 8 / 15

Page 19: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Box model

Fact

Box models form a useful tool to study events that repeat a lot.

Turn any repeated independent random process into drawing from a

box.

They summarize the key ingredients of the problem.

They analyze chance variability.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 8 / 15

Page 20: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Examples

Example

Make a box model for

50 �ips of a coin counting heads.

Roll a die and sum results

Roll a die and count fours

Draw a card and count the hearts

Multiple choice exam

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 9 / 15

Page 21: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Examples

Example

Make a box model for

50 �ips of a coin counting heads.

Roll a die and sum results

Roll a die and count fours

Draw a card and count the hearts

Multiple choice exam

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 9 / 15

Page 22: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Examples

Example

Make a box model for

50 �ips of a coin counting heads.

Roll a die and sum results

Roll a die and count fours

Draw a card and count the hearts

Multiple choice exam

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 9 / 15

Page 23: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Examples

Example

Make a box model for

50 �ips of a coin counting heads.

Roll a die and sum results

Roll a die and count fours

Draw a card and count the hearts

Multiple choice exam

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 9 / 15

Page 24: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Examples

Example

Make a box model for

50 �ips of a coin counting heads.

Roll a die and sum results

Roll a die and count fours

Draw a card and count the hearts

Multiple choice exam

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 9 / 15

Page 25: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Examples

Example

Make a box model for

50 �ips of a coin counting heads.

Roll a die and sum results

Roll a die and count fours

Draw a card and count the hearts

Multiple choice exam

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 9 / 15

Page 26: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Chapter 18: Expected Value

Example

What is the expected number of heads if you toss a coin whenn = 10, 100, 1000?

What is the expected number of fours if you roll a die n = 60, 600?

What is the expected number of even values if you roll a dien = 60, 600?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 10 / 15

Page 27: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Chapter 18: Expected Value

Example

What is the expected number of heads if you toss a coin whenn = 10, 100, 1000?

What is the expected number of fours if you roll a die n = 60, 600?

What is the expected number of even values if you roll a dien = 60, 600?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 10 / 15

Page 28: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Chapter 18: Expected Value

Example

What is the expected number of heads if you toss a coin whenn = 10, 100, 1000?

What is the expected number of fours if you roll a die n = 60, 600?

What is the expected number of even values if you roll a dien = 60, 600?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 10 / 15

Page 29: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Chapter 18: Expected Value

Example

What is the expected number of heads if you toss a coin whenn = 10, 100, 1000?

What is the expected number of fours if you roll a die n = 60, 600?

What is the expected number of even values if you roll a dien = 60, 600?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 10 / 15

Page 30: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Expected Value

De�nition (General Formula)

The expected value of a repeated independent process is

EVsum = n · AVGbox.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 11 / 15

Page 31: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Example

Example

Find the expected value if you roll a die and sum the results forn = 1, 10, 100.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 12 / 15

Page 32: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Spread from EV (SE)

Fact

Law of Averages says that the spread from EV (SE) is proportional to√n:

SE =√n · SDbox.

Fact (Useful formula)

If the box contains just two numbers then there is a shortcut for the SD of

the box:

SDbox = (high− low)√

(fraction of high) · (fraction of low)

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 13 / 15

Page 33: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Spread from EV (SE)

Fact

Law of Averages says that the spread from EV (SE) is proportional to√n:

SE =√n · SDbox.

Fact (Useful formula)

If the box contains just two numbers then there is a shortcut for the SD of

the box:

SDbox = (high− low)√

(fraction of high) · (fraction of low)

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 13 / 15

Page 34: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

A box model for the roulette

Example

Recall that we bet 1 dollar for red and we lose one dollars for black. Inaddition, we lose if 0 or 00 come out.

There are 18 winning tickets: we put in the box 18 tickets with +1.

There are 20 losing tickets: we put in the box 20 tickets with -1.

What is the average of the box?

What is the spread?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 14 / 15

Page 35: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

A box model for the roulette

Example

Recall that we bet 1 dollar for red and we lose one dollars for black. Inaddition, we lose if 0 or 00 come out.

There are 18 winning tickets: we put in the box 18 tickets with +1.

There are 20 losing tickets: we put in the box 20 tickets with -1.

What is the average of the box?

What is the spread?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 14 / 15

Page 36: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

A box model for the roulette

Example

Recall that we bet 1 dollar for red and we lose one dollars for black. Inaddition, we lose if 0 or 00 come out.

There are 18 winning tickets: we put in the box 18 tickets with +1.

There are 20 losing tickets: we put in the box 20 tickets with -1.

What is the average of the box?

What is the spread?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 14 / 15

Page 37: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

A box model for the roulette

Example

Recall that we bet 1 dollar for red and we lose one dollars for black. Inaddition, we lose if 0 or 00 come out.

There are 18 winning tickets: we put in the box 18 tickets with +1.

There are 20 losing tickets: we put in the box 20 tickets with -1.

What is the average of the box?

What is the spread?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 14 / 15

Page 38: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

A box model for the roulette

Example

Recall that we bet 1 dollar for red and we lose one dollars for black. Inaddition, we lose if 0 or 00 come out.

There are 18 winning tickets: we put in the box 18 tickets with +1.

There are 20 losing tickets: we put in the box 20 tickets with -1.

What is the average of the box?

What is the spread?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 14 / 15

Page 39: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

A box model for the roulette

Example

Recall that we bet 1 dollar for red and we lose one dollars for black. Inaddition, we lose if 0 or 00 come out.

There are 18 winning tickets: we put in the box 18 tickets with +1.

There are 20 losing tickets: we put in the box 20 tickets with -1.

What is the average of the box?

What is the spread?

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 14 / 15

Page 40: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Other games

Example

Suppose that you roll a die and you win 2 dollars if 1 and 6 show upand you lose 1 dollar if 2, 3, 4, or 5 show up. Would you play thisgame?

In roulette, betting on four numbers pays 8 to 1. What do you expectto win after 100 plays if you bet 1 dollar? What is the expectednumber of wins? Find the spread for both questions.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 15 / 15

Page 41: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Other games

Example

Suppose that you roll a die and you win 2 dollars if 1 and 6 show upand you lose 1 dollar if 2, 3, 4, or 5 show up. Would you play thisgame?

In roulette, betting on four numbers pays 8 to 1. What do you expectto win after 100 plays if you bet 1 dollar? What is the expectednumber of wins? Find the spread for both questions.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 15 / 15

Page 42: Unit 7: The Law of Averages - Colgate Universitymath.colgate.edu/math102/Common/LectureNotes_MI/Lecture11.pdf · Marius Ionescu Unit 7: The Law of Averages 10/20/2011 2 / 15. Law

Other games

Example

Suppose that you roll a die and you win 2 dollars if 1 and 6 show upand you lose 1 dollar if 2, 3, 4, or 5 show up. Would you play thisgame?

In roulette, betting on four numbers pays 8 to 1. What do you expectto win after 100 plays if you bet 1 dollar? What is the expectednumber of wins? Find the spread for both questions.

Marius Ionescu () Unit 7: The Law of Averages 10/20/2011 15 / 15