Please help! I am stuck at part (b)! Im not sure how to calculate the type 2 error..
To test the effectiveness of a diet, a random sample of 16 female patients is drawn from a population of adult females using the diet. The weight of each individual in the sample is taken at the start and at the end of the diet. Assume that the population of differences in weight before and after the diet follows a normal distribution. Suppose the mean decrease in weights over all 16 subjects in the study is 4.0 pounds. Assume the true standard deviation of differences computed as 6.4 pounds. Let $\mu_x −\mu_y$ equal the mean weight before the diet minutes the mean weight after the diet.
(a) Test the null hypothesis at the five-percent level that the diet is ineffective against the alternate hypothesis that it helped patients lose weight. Report the null and alternative hypothesis, the decision rule, and the appropriate test statistic.
(b) A large-scale study conducted one year later finds that diet works, but its true effect, on average, is minor. The average difference overall is a one-pound weight loss, with a standard deviation of 1.2. What was the power of our test from part (a)?
(c) Suppose we wanted to conduct a new study of the same diet, but we want to conduct our sample only with men. Assume that the true difference is the same for men and women - on average, it leads to a one-pound weight loss, with standard deviation of 1.2 pounds. What is the minimum sample size that we would need to obtain $80$% power?
For (a), my answer is:
$H_0$: $\mu_x −\mu_y < 4$
$H_1$: $\mu_x −\mu_y > 4$
Reject $H_0$ if $t > 2.131$
Since $t = 2.5$, reject $H_0$
Am i correct so far?? Thanks