48
Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz

Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Estimation TheorySTAT 432 | UIUC | Fall 2019 | Dalpiaz

Page 2: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Questions?Comments? Concerns?

Page 3: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Administration

• CBTF Syllabus Exam

• PrairieLearn Quiz

• Quiz Policy

Page 5: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Do You Remember STAT 400?

Page 6: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

p(x |n, p) = (nx)px(1 − p)n−x, x = 0,1,…, n, n ∈ ℕ, 0 < p < 1

X ∼ bin(n, p)

Page 7: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

X ∼ N (μ, σ2)

f(x |μ, σ2) =1

σ 2π⋅ exp [ −1

2 ( x − μσ )

2

], − ∞ < x < ∞, − ∞ < μ < ∞, σ > 0

Page 8: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

X ∼ N (μ = 5, σ2 = 4)P[X = 4] = ?

P[X < 4] = ?

Page 9: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

X ∼ N (μ = 5, σ2 = 4)

P[2 < X < 4] = ? P[X > 3] = ?

Page 10: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

X ∼ N (μ = 5, σ2 = 4)

P[X > c] = 0.75, c = ?

Page 11: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 12: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Expectations

Page 13: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Estimation

Page 14: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

What is Statistics?

Page 15: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

What is Statistics?

• Technically: The study of statistics.

• Practically: The science of collecting, organizing, analyzing, interpreting, and presenting data.

Page 16: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

What is a statistic?

Page 17: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

What is a statistic?• Technically: A function of (sample) data.

Page 18: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Terminology

• Population: The entire group of interest.

• Parameter: A (usually unknown) numeric value associated with the population.

• Sample: A subset of individuals taken from the population.

• Statistic: A numeric value computed using the sample data.

Page 19: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

The Big Picture

Page 20: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Random Sample

• A random sample is a sample where each individual in the population is equally likely to be included.

Why do we care?

Page 21: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

What is an estimator?• A statistic that attempts to provide a good guess

for an unknown population parameter.

Page 22: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Parameters Estimators

Page 23: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Statistics are Random Variables

• An Estimator / A statistic: A function that tells us what calculation we will perform after taking a sample from the population.

• An Estimate / The value of a statistic: The numeric result of performing the calculation on a particular sample of data.

X vs x

Page 24: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Why so much focus on the mean?

Page 26: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 27: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 28: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 29: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Definitions

bias [ θ] ≜ 𝔼 [ θ] − θ

var [ θ] ≜ 𝔼 [( θ − 𝔼 [ θ])2

]

MSE [ θ] ≜ 𝔼 [( θ − θ)2] = var [ θ] + (Bias [ θ])

2

Page 30: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

X1, X2, X3 ∼ N(μ, σ2)

X =1n

n

∑i=1

Xi

μ =14

X1 +15

X2 +16

X3

Page 31: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Probability Models

Page 32: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Professor Professorson received the following number of emails on each of the previous 40 days:

5 6 2 5 3 3 4 1 4 4 3 4 6 2 3 6 7 1 3 3

5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

• What is the probability that Professor Professorson receives three emails on a particular day?

• What is the probability that Professor Professorson receives nine emails on a particular day?

Page 33: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Idea: Use a Poisson distribution to model the number of emails received per day.

But which Poisson distribution?

Page 34: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 35: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 36: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 37: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 38: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 39: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 40: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

The previous “analysis” is flawed.

• The previous 40 days is not a random sample.

• Why do we need a random sample?

• We were just guessing and checking.

• How do we know if Poisson was a reasonable distribution?

• How do we pick a good lambda given some data?

• How do we know if our method for picking is good?

Page 41: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Maximum Likelihood

Page 42: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 43: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 44: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Fitting a Probability Distribution

Page 45: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

data = c(4, 10, 9, 3, 2, 4, 3, 7, 3, 5)

Page 46: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 47: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3
Page 48: Estimation Theory - STAT 432 · Estimation Theory STAT 432 | UIUC | Fall 2019 | Dalpiaz. Questions? Comments? Concerns? Administration ... 5 1 8 6 1 3 2 5 3 5 4 4 2 4 0 5 0 2 5 3

Questions?Comments? Concerns?