In: Math
Use R to answer the following questions.
Assume that you are interested in testing H0 : E(X) = 20 versus H1 : E(X) 1 20 with a significance level of 5% using the t-test. Let the sample average be equal to 22.7 (?̅ = 22.7) and the sample standard deviation be equal to 5.4 (s = 5.4). The sample size is 55 (n = 55).
1. Do you reject the null hypothesis?
2. If a significance level of 1% is used, do you reject the null hypothesis?
3. If the testing hypotheses are changed to H0 : E(X) = 24 versus H1 : E(X) 1 24 (with a significance level of 5%), do you reject the null hypothesis?
Once you have the answers in R, copy the text commands and results and paste them in a word processor file (e.g., Microsoft Word)