
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

rejection region: z < −zα.
Example 8.11. 47 out of 102 doctors did not know the generic name for the drug methadone. Can you conclude that fewer than half of all doctors know the generic name for methadone? Test it at 1% level.
p<-47/ (p-0.5)/sqrt(0.5*0.5/102) [1] -0. qnorm(0.01) [1] -2.
Assume the IQ of a dog follows normal. The IQs of 10 dogs are measured: 30, 25, 70, 110, 40, 80, 50, 60, 100, 60. Find the P -value for testing
H 0 : μ = 100 vs. H 1 : μ < 100
t=(mean(x)-100)/(sd(x)/sqrt(10)) t [1] -4. qt(c(0.001,0.002,0.003),9) [1] -4.296806 -3.834510 -3. pt(-4.205156,9) [1] 0. t.test(x,mu=100,alternative="less", conf.level=0.95) One Sample t-test
data: x t = -4.2036, df = 9, p-value = 0. alternative hypothesis: true mean is less than 100 95 percent confidence interval: -Inf 78. sample estimates: mean of x 62.
Three options for alternative:less, greater, two.sided. Find the P -value for testing
H 0 : μ = 100 vs. H 1 : μ 6 = 100
Exercise 8.35., Example 8.17., Find the P -value for testing
H 0 : μ = 100 vs. H 1 : μ > 100
Due March 13. 11:00am. 8.24., 8.26, 8.28., 8.36. (a) and (b) only, 8.38.