What Are Parameters? Why Do We Care?: N X X X
What Are Parameters? Why Do We Care?: N X X X
What Are Parameters? Why Do We Care?: N X X X
• Consider some probability distributions: • In real world, don’t know “true” parameters
Ber(p) =p But, we do get to observe data
Poi(l) =l o E.g., number of times coin comes up heads, lifetimes of disk
Multinomial(p1, p2, ..., pm) = (p1, p2, ..., pm) drives produced, number of visitors to web site per day, etc.
Uni(a, b) = (a, b) Need to estimate model parameters from data
Normal(m, 2) = (m, 2) “Estimator” is random variable estimating parameter
Etc. • Want “point estimate” of parameter
Single value for parameter as opposed to distribution
• Call these “parametric models”
• Estimate of parameters allows:
• Given model, parameters yield actual distribution
Better understanding of process producing data
Usually refer to parameters of distribution as
Future predictions based on model
Note that that can be a vector of parameters
Simulation of processes
n i 1 n i 1 n 1
225 computers are monitored for idle hours
For large n, 100(1 – a)% confidence interval is:
Say X 11.6 hrs., S 2 16.81 hrs2., so S 4.1 hrs.
S S
X za / 2 , X za / 2 Estimate m, mean idle hrs./CPU, with 90% conf. interval
n n
a 0.10, a / 2 0.05, ( za / 2 ) 0.95, za / 2 1.645
where ( za / 2 ) 1 (a / 2)
S S
o E.g.:a 0.05, a / 2 0.025, ( za / 2 ) 0.975, za / 2 1.96 X za / 2 , X za / 2
n n
Meaning: 100(1 – a)% of time that confidence interval is 4.1
11.15, 12.05
4.1
computed from sample, true m would be in interval 11.6 1.645 , 11.6 1.645
225 225
o Not: X or m is 100(1 – a)% likely to be in this particular interval 90% of time that such an interval computed, true m is in it
1
Method of Moments Examples of Method of Moments
1 n
• Recall: n-th moment of distribution for variable X: • Recall the sample mean: X X i mˆ 1 E[ X ]
n i 1
mn E[ X n ] This is method of moments estimator for E[X]
• Consider I.I.D. random variables X1, X2, ..., Xn • Method of moments estimator for variance
1 n
Xi have distribution F Estimate second moment: mˆ 2 Xi
2
1 n
1 n
1 n n i 1
Let mˆ 1 Xi mˆ 2 X i ... mˆ k n Var ( X ) E[ X 2 ] ( E[ X ])2
2 k
Xi
n i 1 n i 1 i 1
Estimate: Var ( X ) m
ˆ 2 (m
ˆ 1 )2
m̂i are called the “sample moments”
(Xi X 2)
n 2
1 n 2 1 n 1 n
X i X 2 X i X 2 i 1
2
o Estimates of the moments of distribution based on data
i 1
n n i 1 n i 1 n
• Method of moments estimators Recall sample variance:
Estimate model parameters by equating “true” n
( X X )2 n
(X 2Xi X X 2)
2
n
(Xi X 2)
2
n
moments to sample moments: mi mˆi S i
2
i i 1
ˆ 2 (m
(m ˆ 1 )2 )
i 1 n 1 i 1 n 1 n 1 n 1
n 1 2
What is MOM estimate of variance? MOM estimator of variance = S is biased
n
n 1
(Xi X 2) (Xi Xi ) o Asymptotically less biased as n
2 2 2
i 1
i 1
0
n 1 For large n, either sample variance or MOM estimate
I.e., have complete certainty about distribution! of variance is fine.
o There is no variance
2
Method of Moments with Poisson Method of Moments with Normal
• Consider I.I.D. random variables X1, X2, ..., Xn • Consider I.I.D. random variables X1, X2, ..., Xn
Xi ~ Poi(l) Xi ~ N(m, 2)
• Estimate l • Estimate m
1 n 1 n
l E[ X i ] mˆ 1 X X i lˆ
n i 1
m E[ X i ] mˆ 1 X X i mˆ
n i 1
But note that for Poisson, l = Var(Xi) as well! • Now estimate 2
Could also use method of moments to estimate: 2 mˆ 2 (mˆ 1 ) 2
n
(Xi X 2) (Xi X 2)
2 n 2
1 n 2 1 n 1 n
l E[ X 12 ] E[ X i ]2 mˆ 2 (mˆ 1 ) 2 i 1
lˆ X i mˆ 2 X i X 2 i 1
2
n n i 1 n i 1 n i 1 n
2 mˆ 2 (mˆ 1 ) 2 i 1
ˆ 2
n
ab (b a) 2
For Uni(a, b), know that: m and 2
2 12
Solve (two equations, two unknowns):
o Set b = 2m – a, substitute into formula for 2 and solve:
aˆ X 3ˆ and bˆ X 3ˆ