Professional Documents
Culture Documents
Part 1
1. Let𝑋 ∼ 𝑃𝑜𝑖𝑠(𝑎), where a is unknown. Apply the maximal likelihood method to estimate 𝑎.
𝐿(𝑥1 ,…, 𝑥𝑛 ,𝑎) = ∏𝑛𝑖=1 𝑎𝑥𝑥𝑖 𝑖𝑒!−𝑎
ln𝐿 = ∑𝑛𝑖=1 ln 𝑎𝑥𝑥𝑖 𝑖𝑒!−𝑎 = ∑𝑛𝑖=1 (ln 𝑎𝑥𝑖 − ln 𝑥𝑖 ! + ln 𝑒−𝑎 ) = ∑𝑛𝑖=1 (𝑥𝑖 ln𝑎 − ln 𝑥𝑖 ! − 𝑎)
∂ln𝐿
∂𝑎 = ∑𝑛𝑖=1 ( 𝑥𝑎𝑖 − 1) = 1𝑎 ∑𝑛𝑖=1 𝑥𝑖 − ∑𝑛𝑖=1 1 = 1𝑎 ∑𝑛𝑖=1 𝑥𝑖 − 𝑛 = 0
𝑎 = ∑𝑛𝑥𝑖 = 𝑋⎯⎯⎯⎯⎯
2. Let 𝑋 ∼ 𝐵𝑖(1,𝑝) , where 𝑝 is unknown. Apply the maximal likelihood method to estimate 𝑝.
𝑋 ∼ 𝐵𝑖(1,𝑝) = Bernoulli(𝑝)
𝐿(𝑥1 ,…, 𝑥𝑛 ,𝑝) = 𝑝𝑚 (1 − 𝑝)𝑛−𝑚, where 𝑚 is the number of attempts with 𝑥𝑖 = 1
ln𝐿 = 𝑚ln𝑝 + (𝑛 − 𝑚)ln(1 − 𝑝)
∂ln𝐿 = 𝑚 − 𝑛−𝑚 = 0
∂𝑝 𝑝 1−𝑝
𝑝 = 𝑚𝑛
4. Let 𝑋 ∼ 𝑈(𝑎,𝑏) , where 𝑎 and 𝑏 are unknown. Apply the maximal likelihood method to estimate 𝑎 and
𝑏.
Let 𝐼 be an indicator:
Part 2
1. Let 𝑋 ∼ 𝑁(𝜇, 𝜎 2 ), where 𝜇 and 𝜎 2 are unknown. Apply the method of moments to estimate 𝜇 and 𝜎 2 .
(𝑥−𝜇)2
𝜈1 = ∫−∞+∞ 𝑥1 √2𝜋𝜎1 2 𝑒− 2𝜎2 𝑑𝑥 = 𝜇 — the first theoretical raw moment
− (𝑥−𝜇)2
𝜇2 = ∫−∞ (𝑥 − 𝜇) √2𝜋𝜎2 𝑒 2𝜎2 𝑑𝑥 = 𝜎 2 — the second theoretical central moment
+∞ 2 1
Part 3
𝑃(𝑎 ≤ 𝑚𝑛 ≤ 𝑏) ≈ 12 [Φ(𝑧2 ) − Φ(𝑧1 )] where 𝑎 is the left bound, 𝑏 is the right bound, 𝑧1 = √𝑎−𝑝
𝑝𝑞/𝑛1 ,
𝑧2 = √𝑏−𝑝𝑝𝑞/𝑛1 , and Φ is the Laplace function Φ(𝑥) = √22𝜋 ∫0𝑥 𝑒 −𝑡22 𝑑𝑡
𝑧1 = √0.5⋅0.5/1000
0.45−0.5 ≈ −3.16 ; 𝑧2 = 1−0.5 ≈ 31.62
√0.5⋅0.5/1000
𝑃1 (0.45 ≤ 𝑚𝑛 ≤ 1) ≈ 12 [Φ(31.62) − Φ(−3.16)] = 12 [Φ(31.62) + Φ(3.16)] = 12 [1 + 0.9984] = 0.9992
ii. The second hospital has > 45% of male babies.
𝑛2 = 500
𝑧1 = √0.45−0.5
0.5⋅0.5/500 ≈ −2.24 ; 𝑧2 =
1−0.5 ≈ 22.36
√0.5⋅0.5/500
𝑃2 (0.45 ≤ 𝑚𝑛 ≤ 1) ≈ 12 [Φ(22.36) − Φ(−2.24)] = 12 [Φ(22.36) + Φ(2.24)] ≈ 12 [1 + 0.9749] ≈ 0.9875
b. Compare these probabilities and explain.
Let𝑝1 and 𝑝2 be a share of birth of boys in the first and second maternity hospitals respectively
𝐻0 : 𝑝1 = 𝑝2 = 𝑝 where 𝑝 = 0.5 and 𝑞 = 1 − 𝑝 = 0.5
𝐻1 : 𝑝1 ≠ 𝑝2
Significance level 𝛼 = 0.05
⎯⎯⎯⎯
Critical area 𝐺 = [−∞,−𝑧𝑐𝑟 ] ∪ [𝑧𝑐𝑟 ,+∞]
Critical values [Φ(𝑧𝑐𝑟 ) = Φ(𝑧1−𝛼 ) = 0.95] ⇒ 𝑧𝑐𝑟 = 𝑧0.95 = 1.96
1000 − 500
515 240
𝑧= ≈ 1.28
√0.5⋅0.5( 10001 + 5001 )
P-value = 𝑃(𝑝 ∈ [−∞,−1.28] ∪ [1.28,+∞]) = 1 − Φ(1.28) = 1 − 0.7984 = 0.2016 > 𝛼
𝑧 ∉ ⎯𝐺⎯⎯⎯ thereby accept 𝐻0
Answer: the difference is not statistically significant
2. A group of people want to prove that less than half of all voters support the President's policies about
𝑣
managing the financial crisis. Let be a share of voters who support the president’s policies. What is
𝐻1 and 𝐻0 with 𝛼 = 0.05
? A recent poll showed that 228
out of 500
voters support the president’s
policies. Test the hypothesis with 𝛼 = 0.05
. Find the P-value and explain the results.
Let𝑝=𝑣
𝐻0 : 𝑝 = 𝑝0 = 0.5 and 𝑞 = 1 − 𝑝 = 0.5
𝐻1 : 𝑝 < 0.5
Significance level 𝛼 = 0.05
𝑧 = (𝑤−√𝑝𝑝𝑞0)√𝑛 ∼ 𝑁(0,1)
⎯⎯⎯⎯
Critical area for the left-tail case 𝐺 = [−∞, 𝑧𝑐𝑟 ]
Critical value for the left-tail case [Φ(𝑧𝑐𝑟 ) = Φ(𝑧1−2𝛼 ) = 0.9] ⇒ 𝑧𝑐𝑟 = 𝑧0.9 = −1.64
( 228
500 −0.5)√500
𝑧= √0.5⋅0.5 ≈ −1.97
P-value = 𝑃(𝑧 ∈ [−∞,−1.97]) = 1−Φ(−1.97)
2 = 2 = 0.0244 < 𝛼 = 0.05
1−0.9512