Answer:
Check the explanation
Explanation:
p=12/20=0.6 
 
H_0:p=0.4,H_a:p>0.4 
 
 =
=
 =1.83
=1.83 
 
pvalue=P(t>1.83,19dof)=0.042 
 
Hence, we reject H0 and say the proportion of peanuts is more than 40% 
 
b)E[weight]=0.2*1+0.3*1.5+0.1*2.5+0.4*0.5=1.1 
 
V[weight]=0.2(1-1.1)^2+0.3(1.5-1.1)^2+0.1(2.5-1.1)^2+0.4(0.5-1.1)^2=0.39 
 
SD[weight]=sqrt(0.39)=0.6245 
 
 =-1.6013)=0.0547=5.47\%
=-1.6013)=0.0547=5.47\%