Question

Please solve in R studio. Thanks in advance! **A teaching assistant in Florida collected a sample...

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)
```

Homework Answers

Answer #1

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

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT