Please solve in R studio. Thanks in advance!
**A teaching assistant in Florida collected a sample to see if the average number of hours students put into studying depending on if they were in graduate school or not. The data below represents these two samples.**
**Perform a test to determine if the time graduate students
spend studying is greater than that of undergraduate students. Be
sure to identify your hypotheses and explain your conclusion in the
context of the question. Assume the time spend studying for both
graduate and undergraduate is normally distributed.**
```{r}
grad<-c(15,7,15,10,5,5,2,3,12,16,15,37,8,14,10,18,3,25,15,5,5)
undergrad<-c(6,8,15,6,5,14,10,10,12,5)
```
Run the code below in R Studio:
grad<-c(15,7,15,10,5,5,2,3,12,16,15,37,8,14,10,18,3,25,15,5,5); undergrad<-c(6,8,15,6,5,14,10,10,12,5); t.test(grad, undergrad, alternative = "greater", var.equal = TRUE)
Output:
Two Sample t-test data: grad and undergrad t = 0.92469, df = 29, p-value = 0.1814 alternative hypothesis: true difference in means is greater than 0 95 percent confidence interval: -2.149605 Inf sample estimates: mean of x mean of y 11.66667 9.10000
Based on the test results we can conclude that we donot have enough evidence to reject the null at 5% level of significance.
i.e. We cannot conclude that the time graduate students spend studying is greater than that of undergraduate students
Get Answers For Free
Most questions answered within 1 hours.