Feb 27: Expectation, Variance, and Standard Deviation In-class - - PowerPoint PPT Presentation

feb 27 expectation variance and standard deviation in
SMART_READER_LITE
LIVE PREVIEW

Feb 27: Expectation, Variance, and Standard Deviation In-class - - PowerPoint PPT Presentation

Feb 27: Expectation, Variance, and Standard Deviation In-class Midterm Exam MOVED to 3/10 Goals for today What are mean, variance, and standard deviation? What is the difference between distribution mean/variance and sample mean/variance?


slide-1
SLIDE 1

Feb 27: Expectation, Variance, and Standard Deviation

slide-2
SLIDE 2

In-class Midterm Exam MOVED to 3/10

slide-3
SLIDE 3

Goals for today

What are mean, variance, and standard deviation? What is the difference between distribution mean/variance and sample mean/variance? When are mean and variance informative, and when are they misleading? What is the 68/95/99.7 rule?

slide-4
SLIDE 4

Mean is a balance point

torque = force × distance

slide-5
SLIDE 5

Mean is a balance point

torque = force × distance

slide-6
SLIDE 6

Mean is a balance point

torque = force × distance

slide-7
SLIDE 7

Mean is a balance point

torque = force × distance balance point is where we get equal torque on both sides

slide-8
SLIDE 8

Mean is a balance point

torque = force × distance balance point is where we get equal torque on both sides

5 5 6 6 6 6 7 7 7 10

6.44

slide-9
SLIDE 9

Mean is a balance point

torque = force × distance balance point is where we get equal torque on both sides

5 5 6 6 6 6 7 7 7 10

x - μ = 6 - 6.44 = -0.44

slide-10
SLIDE 10

Mean is a balance point

torque = force × distance balance point is where we get equal torque on both sides

5 5 6 6 6 6 7 7 7 10

4 × -0.44

slide-11
SLIDE 11

Mean is a balance point

torque = force × distance balance point is where we get equal torque on both sides

Σ (x - μ) = 0 Σ x = Nμ (Σ x)/N = μ

5 5 6 6 6 6 7 7 7 10

mean = average

slide-12
SLIDE 12

Mean is a balance point

torque = force × distance balance point is where we get equal torque on both sides

5 5 6 6 6 6 7 7 7 10

6.44

slide-13
SLIDE 13

Mean is a balance point

torque = force × distance balance point is where we get equal torque on both sides

5 5 6 6 6 6 7 7 7 8

slide-14
SLIDE 14

Mean is a balance point

torque = force × distance balance point is where we get equal torque on both sides

5 5 6 6 6 6 7 7 7 8

slide-15
SLIDE 15

Mean is sensitive to outliers

5 5 6 6 6 6 7 7 7 17

slide-16
SLIDE 16

5 5 6 6 6 6 7 7 10

Median ignores values

slide-17
SLIDE 17

5 5 6 6 6 6 7 7 10

Median ignores values

slide-18
SLIDE 18

5 5 6 6 6 6 7 7 328

Median ignores values

slide-19
SLIDE 19

The sum of squared distances to the mean

x = [2, 3, 7]

2 3 7

slide-20
SLIDE 20

2 3 7

The sum of squared distances to the mean

slide-21
SLIDE 21

2 3 7

The sum of squared distances to the mean

slide-22
SLIDE 22

2x2 1x1 3x3

2 3 7

Σ (x - μ)2 N = (4 + 1 + 9)/3 = 4.66

Variance: mean squared distances to the mean

slide-23
SLIDE 23

2 3 7

Σ (x - μ)2 N = (4 + 1 + 9)/3 = 4.66

Variance: mean squared distances to the mean

slide-24
SLIDE 24

2.16x2.16

2 3 7

Σ (x - μ)2 N = (4 + 1 + 9)/3 = 4.66

Variance: mean squared distances to the mean

slide-25
SLIDE 25

2.16

2 3 7

Standard deviation: square root of mean squared distances to the mean

slide-26
SLIDE 26

2.64x2.64

2 3 7

Σ (x - μ)2 N-1 = (4 + 1 + 9)/2 = 7

Variance: alternative form

slide-27
SLIDE 27

2x2 1x1 3x3

2 3 7

Mean is the point that minimizes variance for a fixed data set

d/dμ Σ (x - μ)2 = 2 Σ (x - μ) Σ (x - μ) = 0

slide-28
SLIDE 28

Goals for today

What are mean, variance, and standard deviation? What is the difference between distribution mean/variance and sample mean/variance? When are mean and variance informative, and when are they misleading? What is the 68/95/99.7 rule?

slide-29
SLIDE 29

Mean is a balance point for a distribution

torque = force × distance balance point is where we get equal torque on both sides

P(2) P(3) P(4) P(10)

slide-30
SLIDE 30

Mean is a balance point for a distribution

torque = force × distance balance point is where we get equal torque on both sides

μ = Σ x P(x)

P(2) P(3) P(4) P(10)

mean = average = eypectation

slide-31
SLIDE 31

What are the expectations of these two dice?

P(6)=1/2 P(6)=1/6

μ = E[x] = Σ x P(x)

slide-32
SLIDE 32

What are the expectations of these two dice?

P(6)=1/2 P(6)=1/6

μ = E[x] = Σ x P(x) "eypectation of x"

slide-33
SLIDE 33

What are the expectations of these two dice?

P(6)=1/6

E[x] = Σ xP(x) = 1×.16 + 2×.16 + ... + 6×.16 = (1 + 2 + ... + 6) × .16 = 21 / 6 = 3.5

slide-34
SLIDE 34

What are the expectations of these two dice?

P(6)=1/6

μ = E[x] = Σ x P(x) = Σ x / N

  • nly if P(x) is

uniform for all x

slide-35
SLIDE 35

What are the expectations of these two dice?

P(6)=1/2

E[x] = Σ xP(x) = 1×.1 + 2×.1 + ... + 6×.5 = .1 × (1 + 2 + ... + 5) + 3 = 1.5 + 3 = 4.5

slide-36
SLIDE 36

What are the variances of these two dice?

P(6)=1/2 P(6)=1/6

σ2 = E[Σ (x-μ)2] = Σ (x-μ)2 P(x)

slide-37
SLIDE 37

Which has greater variance?

P(6)=1/2 P(6)=1/6

slide-38
SLIDE 38

Variance of uniform distribution

P(6)=1/6

var[x] = Σ (x-μ)2 P(x) = (1-3.5)2×.16 + ... + (6-3.5)2×.16 = -2.52×.16 + -1.52×.16 + ... + 2.52×.16 = 2.916

slide-39
SLIDE 39

Variance of non-uniform distribution

P(6)=1/2

var[x] = Σ (x-μ)2 P(x) = (1-4.5)2×.1 + ... + (6-4.5)2×.5 = -3.52×.1 + ... + 1.52×.5 = 3.25

slide-40
SLIDE 40

Which has greater variance?

P(6)=1/2 P(6)=1/6

slide-41
SLIDE 41

Sample mean/var vs. Distribution mean/var

sample distribution mean x ̄ = Σ x/N μ = Σ x P(x) variance s2 = Σ(x-x ̄ )2/N σ2 = Σ (x-μ)2 P(x)

slide-42
SLIDE 42

Sample mean/var vs. Distribution mean/var

sample distribution mean x ̄ = Σ x/N μ = Σ x P(x) variance s2 = Σ(x-x ̄ )2/N σ2 = Σ (x-μ)2 P(x)

slide-43
SLIDE 43

Distribution vs. Sample with dice

slide-44
SLIDE 44

Mean and variance for distributions

mean variance binomial np np(1-p) geometric 1/p (1-p)/p2 Poisson λ λ

slide-45
SLIDE 45

Distribution vs. Sample with parametric distributions

slide-46
SLIDE 46

Goals for today

What are mean, variance, and standard deviation? What is the difference between distribution mean/variance and sample mean/variance? When are mean and variance informative, and when are they misleading? What is the 68/95/99.7 rule?