Suppose that X is a discrete random variable with: P(X=0) = (2/3

advertisement
Suppose that X is a discrete random variable with: P(X=0) = (2/3)theta
P(X=1) = (1/3)theta P(X=2) = (2/3)(1-theta) P(X=3) = (1/3)(1-theta)
where theta: [0,1] is a parameter. The following 10 independent
observations were taken from such a distribution: (3,0,2,1,3,2,1,0,2,1) a.
Find the moment of methods estimate of theta b. Find an approximate
standard error for your estimate c. What is the maximum likelihood
estimate of theta? d. What is an approximate standard error of the
maximum likelihood estimate?
๐‘ƒ(๐‘‹ = 0) =
2
๐œƒ
3
๐‘ƒ(๐‘‹ = 1) =
1
๐œƒ
3
๐‘ƒ(๐‘‹ = 2) =
2
(1 − ๐œƒ)
3
1
(1 − ๐œƒ)
3
๐ธ(๐‘‹) = 0 × ๐‘ƒ(๐‘‹ = 0) + 1 × ๐‘ƒ(๐‘‹ = 1) + 2 × ๐‘ƒ(๐‘‹ = 2) + 3 × ๐‘ƒ(๐‘‹ = 3)
๐‘ƒ(๐‘‹ = 3) =
2
1
2
1
= 0 × ๐œƒ + 1 × ๐œƒ + 2 × (1 − ๐œƒ) + 3 × (1 − ๐œƒ)
3
3
3
3
= ๐œƒ(1/3 − 4/3 − 3/3) + 4/3 + 3/3 = −2๐œƒ + 7/3
๐ธ (๐‘‹ 2 ) = 02 × ๐‘ƒ(๐‘‹ = 0) + 12 × ๐‘ƒ(๐‘‹ = 1) + 22 × ๐‘ƒ(๐‘‹ = 2) + 32 × ๐‘ƒ(๐‘‹ = 3)
2
1
2
1
= 0 × ๐œƒ + 1 × ๐œƒ + 4 × (1 − ๐œƒ) + 9 × (1 − ๐œƒ)
3
3
3
3
16
17
= ๐œƒ(1/3 − 8/3 − 9/3) + 8/3 + 9/3 = − ๐œƒ +
3
3
16
17
2
2
2
๐œŽ = ๐‘‰๐‘Ž๐‘Ÿ(๐‘‹) = ๐ธ (๐‘‹ ) − [๐ธ(๐‘‹)] = − ๐œƒ +
− (−2๐œƒ + 7/3)2
3
3
16
17
28
49
2
2
=− ๐œƒ+
− (4๐œƒ − ๐œƒ + ) = −4๐œƒ 2 + 4๐œƒ +
3
3
3
9
9
3,0,2,1,3,2,1,0,2,1
Sample size = ๐‘› = 10
3+0+2+1+3+2+1+0+2+1
15
3
Sample mean ๐‘ฅฬ… =
= =
10
10
2
To find moment estimate of ๐œƒ, equate population mean and sample
mean.
๐ธ(๐‘‹) = ๐‘ฅฬ…
−2๐œƒ + 7/3 = 3/2
7 3 14 − 9
2๐œƒ = − =
= 5/6
3 2
6
5
๐œƒ=
12
5
The moment estimate of ๐œƒ is ๐œƒฬ‚ =
12
7
In general −2๐œƒ + = ๐‘ฅฬ…
3
7
2๐œƒ = − ๐‘ฅฬ…
3
7 1
๐œƒฬ‚ = − ๐‘ฅฬ…
6 2
3
When ๐‘ฅฬ… = ,
2
๐œƒฬ‚ =
The variance of ๐œƒฬ‚ is
7 3
5
− =
6 4 12
7 1
1 2
1 ๐œŽ2
ฬ‚
(
)
๐‘‰๐‘Ž๐‘Ÿ(๐œƒ ) = ๐‘ฃ๐‘Ž๐‘Ÿ( − ๐‘ฅฬ… ) =
๐‘‰๐‘Ž๐‘Ÿ(๐‘ฅฬ… ) = ×
6 2
2
4 ๐‘›
1
2
(−4๐œƒ 2 + 4๐œƒ + )
=
40
9
Substituting ๐œƒ by its moment estimate ๐œƒฬ‚,
The estimated variance of ๐œƒฬ‚ is
1
2
1
25
5 2
(−4๐œƒฬ‚ 2 + 4๐œƒฬ‚ + ) =
(−4 ×
+4×
+ )
40
9
40
144
12 9
1 −100 + 240 + 32
1 172
43
(
)=
(
)=
=
= 0.029861
40
144
40 144
1440
ฬ‚ (๐œƒฬ‚) =
๐‘‰๐‘Ž๐‘Ÿ
The estimated standard error of ๐œƒฬ‚ is √0.029861 = 0.1728
Maximum likelihood estimation
The likelihood function is
๐‘“2
๐‘“3
2 ๐‘“0 1 ๐‘“1 2
1
๐ฟ(๐œƒ/๐‘ฅ1 , … , ๐‘ฅ๐‘› ) = ๐‘ƒ (๐‘‹ = ๐‘ฅ1 ) … ๐‘ƒ(๐‘‹ = ๐‘ฅ๐‘› ) = ( ๐œƒ) ( ๐œƒ) ( (1 − ๐œƒ)) ( (1 − ๐œƒ))
3
3
3
3
๐‘“0+๐‘“1 (
๐‘“2+๐‘“3
= ๐‘๐‘œ๐‘›๐‘ ๐‘ก๐‘Ž๐‘›๐‘ก × ๐œƒ
1 − ๐œƒ)
(f0, f1, f2, f3 are respectively the frequencies of 0,1,2, and 3.)
๐‘™๐‘œ๐‘” ๐ฟ = ๐‘๐‘œ๐‘›๐‘ ๐‘ก๐‘Ž๐‘›๐‘ก + (๐‘“0 + ๐‘“1)๐‘™๐‘œ๐‘” ๐œƒ + (๐‘“2 + ๐‘“3)๐‘™๐‘œ๐‘”(1 − ๐œƒ)
๐‘‘ ๐‘™๐‘œ๐‘”๐ฟ ๐‘“0 + ๐‘“1 ๐‘“2 + ๐‘“3
=
−
=0
๐‘‘๐œƒ
๐œƒ
1−๐œƒ
(๐‘“0 + ๐‘“1)(1 − ๐œƒ) − (๐‘“2 + ๐‘“3)๐œƒ = 0
(๐‘“0 + ๐‘“1) = (๐‘“0 + ๐‘“1 + ๐‘“2 + ๐‘“3)๐œƒ = ๐‘›๐œƒ
๐‘“0 + ๐‘“1
๐œƒ=
๐‘›
The maximum likelihood estimate of ๐œƒ is
๐‘“0 + ๐‘“1
๐œƒฬƒ =
๐‘›
๐‘› is the number of observations and f0 and f1 are respectively the number of
0’s and number of 1’s.
3,0,2,1,3,2,1,0,2,1
In this sample, f0 = 2, f1 =3, f2 = 3, f3 = 2, n = 10.
๐œƒฬƒ =
๐‘“0 + ๐‘“1 2 + 3
5
=
=
= 0.5
๐‘›
10
10
Consider the event ๐‘‹ = 0 ๐‘œ๐‘Ÿ 1
The frequency of this event is f0+f1.
2
1
3
3
The probability of this event is ๐œƒ + ๐œƒ = ๐œƒ
The random variable f0+f1 follows binomial distribution with parameters ๐‘› and ๐œƒ.
๐ธ(๐‘“0 + ๐‘“1) = ๐‘›๐œƒ
๐‘‰๐‘Ž๐‘Ÿ(๐‘“0 + ๐‘“1) = ๐‘›๐œƒ(1 − ๐œƒ)
๐‘‰๐‘Ž๐‘Ÿ(๐œƒฬƒ) =
ฬƒ
1
๐œƒ(1 − ๐œƒ)
๐‘‰๐‘Ž๐‘Ÿ(๐‘“0 + ๐‘“1) =
2
๐‘›
๐‘›
ฬƒ
๐œƒ(1−๐œƒ)
0.5(1−0.5)
0.25
Estimated standard error of ๐œƒฬƒ = √ ๐‘› = √ 10
= √ 10 = √0.025 = 0.1581
SUMMARY
5
Moment estimate of ๐œƒ = ๐œƒฬ‚ = 12 = 0.4167
Standard error of ๐œƒฬ‚ = 0.1728
Maximum likelihood estimate of ๐œƒ = ๐œƒฬƒ = 0.5
Standard error of ๐œƒฬƒ = 0.1581
Download