
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!

I believe that dogs are as smart as people. Assume IQ of a dog follows Xi ∼ N (μ, 102 ). IQ of 10 dogs are measured: 30, 25, 70, 110, 40, 80, 50, 60, 100,
H 0 : μ = 100 vs. H 1 : μ < 100.
One reasonable thing one may try is to see how high the sample mean is.
x<-c(30, 25, 70, 110, 40, 80, 50, 60, 100, 60)
mean(x) [1] 62.
Since the average IQ of 10 dogs are lower than 100, one would be inclined to reject H 0. Let X¯ be a test statistic and R = (−∞, 90] to be a rejection region. Let’s compute the probabil- ity of making Type I error based on this testing procedure. Under the assumption H 0 is true,
Xi ∼ N (100, 102 ).
Under this condition, X¯ ∼ N (100, 10) and
α = P ( X¯ ≤ 90).
pnorm(90,100,sqrt(10)) [1] 0.
By using this test procedure, it is highly unlikely to make Type I error. Let’s see what happens when we change the rejection region. When R = (−∞, 95], α = P ( X¯ ≤ 95).
pnorm(95,100,sqrt(10)) [1] 0.
When R = (−∞, 99], α = P ( X¯ ≤ 99).
pnorm(99,100,sqrt(10)) [1] 0.
The test procedure based on rejecting H 0 if X¯ ≤ 99 will produce huge Type I error. Why?
Example 8.1., 8.2., 8.3., 8.4., 8.5. Do not compute β.