god teaches the lesson of the sample mean

31
God Teaches the Lesson of the Sample Mean

Upload: kevork

Post on 06-Jan-2016

20 views

Category:

Documents


1 download

DESCRIPTION

God Teaches the Lesson of the Sample Mean. Squared Error. Which Squared Error?. Measuring Best. minimize. Calculati Form a Plan. Algebrati Form a Plan. Vertex of y = ax 2 + bx + c is at x = -b/(2a). Calculati Compute the Derivative. Calculati Set the Derivative to Zero. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: God Teaches the Lesson of the Sample Mean

God Teaches the Lesson of the Sample Mean

Page 2: God Teaches the Lesson of the Sample Mean

Squared Error

(xi − guess)2

Page 3: God Teaches the Lesson of the Sample Mean

Which Squared Error?

(x1 − guess)2, (x2 − guess)2, or (x3 − guess)2 ?

Page 4: God Teaches the Lesson of the Sample Mean

Measuring Best

minimize

(x1 − guess)2 +(x2 − guess)2 +(x3 − guess)2

Page 5: God Teaches the Lesson of the Sample Mean

Calculati Form a Plan

SSE = (x1 − x)2 +(x2 − x)2 +(x3 − x)2

Page 6: God Teaches the Lesson of the Sample Mean

Algebrati Form a Plan

• Vertex of y = ax2 + bx + c

• is at x = -b/(2a)

Page 7: God Teaches the Lesson of the Sample Mean

Calculati Compute the Derivative

−2(x1 − x) − 2(x2 − x) − 2(x3 − x)

Page 8: God Teaches the Lesson of the Sample Mean

Calculati Set the Derivative to Zero

0 = −2(x1 − x) − 2(x2 − x) − 2(x3 − x)

Page 9: God Teaches the Lesson of the Sample Mean

Calculati Find Best Representative

• (x1+x2+x3)/3

Page 10: God Teaches the Lesson of the Sample Mean

The Lesson of Uncertainty

• Three Scientists Receive Three Samples

Page 11: God Teaches the Lesson of the Sample Mean

Mean for Scientist One

x1 =x1 + x2

2

Page 12: God Teaches the Lesson of the Sample Mean

Means for Scientists Two and Three

x3 =x1 + x3

2

x2 =x2 + x3

2

Page 13: God Teaches the Lesson of the Sample Mean

Algebraists to the Fore

• Compare Three Sample Means

x1, x2 , and x3

With the Population Mean

x1 + x2 + x3

3

Page 14: God Teaches the Lesson of the Sample Mean

x1 + x2 + x3

3=

x1 + x2

2+x2 + x3

2+x1 + x3

23

=

2x1 + 2x2 + 2x3

23

=x1 + x2 + x3

3= μ

Page 15: God Teaches the Lesson of the Sample Mean

The Mean of the Sample Means is the Population Mean

• End of Act One

Page 16: God Teaches the Lesson of the Sample Mean

God Teaches the Mystery of n-1

Page 17: God Teaches the Lesson of the Sample Mean

Least Squared Error

• SSE = (x1-)2 + (x2-)2 + (x3-)2 . . . until the end of the Population

Page 18: God Teaches the Lesson of the Sample Mean

God Challenges Man Again

=x1 + x2 + x3

3

SSE = (x1 − μ )2 +(x2 − μ )2 +(x3 − μ )2

Page 19: God Teaches the Lesson of the Sample Mean

Scientist One’s Plan

x =x1 + x2

2

SSE = (x1 − x)2 +(x2 − x)2

Page 20: God Teaches the Lesson of the Sample Mean

Scientist Two’s Plan

• Guess = 3/2 Times SSE of Sample

Page 21: God Teaches the Lesson of the Sample Mean

The First Practice Test

• And the first practice test was {12, 12, 0}.• the three Samples would be {12,12}, {12,0}, and

{12,0}.

x1 = 12

x2 = 6

x3 = 6

Page 22: God Teaches the Lesson of the Sample Mean

First Practice Test

• From this generation of answers was begat the three Sample SSE values

SSE1 = (12−12)2 +(12−12)2 = 0

SSE2 = (12− 6)2 +(0− 6)2 = 72

SSE3 = (12− 6)2 +(0− 6)2 = 72

Page 23: God Teaches the Lesson of the Sample Mean

Strategy of Scientist One

• SSE guesses as 0, 72 and 72.

Page 24: God Teaches the Lesson of the Sample Mean

Multiply-by-3/2 strategy Recommended by Scientist Two

• the three guesses as 0, 108 and 108

Page 25: God Teaches the Lesson of the Sample Mean

Computations for God and the SSE of the Population

=12+12+ 0

3= 8

SSE = (12− 8)2 +(12− 8)2 +(0− 8)2 = 96

Then God would compute the mean of their guesses as(0 +72+72)/3 = 48 for the Scientist One strategyand(0+108+108)/3 = 72 for the Scientist Two strategy.

Page 26: God Teaches the Lesson of the Sample Mean

More Practice Tests

Population Samples mean SSE SSE’s Mean SSE

Scaling Required

0,6,12 6 72 18, 18, 72 36 2 0,9,12 12 378 40.5, 162, 364.5 189 2 1,2,3 2 2 0.5,0.5,2 1 2

1,7,10 6 42 18,4.5,40.5 21 2

Page 28: God Teaches the Lesson of the Sample Mean

Scaling N=6

• N n scale factor

• 3 2 2/1

• 6 5 5/4

• 6 4 5/3

• 6 3 5/2

• 6 2 5/1

Page 29: God Teaches the Lesson of the Sample Mean

Normalize by n-1

• General Scale Factor is (N-1)/(n-1)

• Use SSE/(n-1) Eliminates all scale factors

• SSE/(n-1) is called the Variance

Page 30: God Teaches the Lesson of the Sample Mean

Go Forth and Nevermore ask Why Divide by n-1

Page 31: God Teaches the Lesson of the Sample Mean

The End