Академический Документы
Профессиональный Документы
Культура Документы
Anh Nguyen
Stat 5421
Student ID: 4743426
Question 1.2:
a) Let X = number of correct answers, X ~ Bin(100,)
= probbability of a correct answer in four possible answers =
= 0.25
b) Mean: = E(X) = n = 100 *0.25 = 25
Variance: 2 = Var(X) = n(1-)= 100*0.25 *0.75 = 18.75
Yes, it would be surprising if a student made at least 50 correct
response since by using R, we get P(X 50 =0 .
c) Let nj= number of times the student picked choice j
Then (n1, n2 , n3, n4)~ Multinomial(n=100, 1, 2, 3, 4 )
1 = 2 = 3 = 4 = 0.25
d) E(nj) = nj
E(n1) = E(n2) = E(n3) = E(n4)= 100*0.25 = 25
Var(nj) = nj (1- j )
Var(n1) = Var(n2) =Var(n3) =Var(n4) =100*0.25*0.75 =
18.75
Cov(nj,nk) = -n*jk =-100*0.25*0.25= -6.25
Corr(nj,nk) = Cov (nj,nk)/ Var (n j)Var (nk ) = -6.25/ (18.7518.75)
=-0.333
Question 1.9:
X = number of green seedlings = 854
n = total number of green seedlings = 1103
= probability of green seedling
Hypothesis testing: Ho: = 0.75
H1 : 0.75
a) Wald statistic test: ^ = x/n = 854/1103 = 0.77425204
^ 0
z=
= (0.77425204 0.75)/
^ (1 ^ )/n
0.77425204(10.77425204)/1103
= 1.9266
Using R: > pval = 2*(1-pnorm(q=1.9266))
> pval
[1] 0.0540295
Hence, p-value = 0.0540295 > 0.05 , there is evidence to
support Ho, which means the ratio of green seedlings to yello
seedlings = 3:1 is true.
b) Likelikhood ratio test statistic:
Using R:
> mu.hat= 0.77425204
j
j
n j ( j1)
j=1
Using R:
- log(
/k !
5
nj
k=0
j=1