In this case, the null hypothesis states that there is no difference between the elite rugby players and the university players, and the alternative hypothesis states that there is a difference between two groups. Using the formula for the two-tailed test, I summed up all the mean scores and the SD from these two groups and calcuate the test statistics using the calculator. The result shows that t = 1.95, and p-value equals 0.0611. Given the alpha 0.05, we fail to reject the null hypothesis. Therefore, we cannot conclude that there is a significant difference between the physical qualities of the university players and the elite players.
Given the mean and the SD in the summary table. We calculate the test statistics using the calculator and the result shows that p = 0.0001. Given this number, we can reject the null hypothesis in favor of the alternative hypothesis that there is a difference in the TMDS between these two groups.
The dropout rate assesses the rate in which a person responses to the certain diet. Throughout the 52 weeks, people who have high dropout rates will response faster to the diet, with others with low dropout rate cannot change their weights quickly. Therefore, considering this dropout rate is important in drawing conclusion from the study.
Null hypothesis: there is no difference between the eastern trees and the western trees. \[Ho: \mu_1 - \mu_2 = 0\]
Alternative hypothesis: there are differences between the eastern trees and the western trees. \[Ha: \mu_1 - \mu_2 ≠ 0 \]
# divide the dataset into two groups:
treeW <- tree %>%
filter(ew == "w") %>%
group_by(ew)
treeE <- tree %>%
filter(ew == "e") %>%
group_by(ew) From these results, we use the test statistics formula for two tailed test, the result is as followed:
t.test(treeE$dbh, treeW$dbh, mu = 0, conf.level = 0.95, alternative = "two.sided", paired = FALSE)##
## Welch Two Sample t-test
##
## data: treeE$dbh and treeW$dbh
## t = -2.1123, df = 57.871, p-value = 0.03899
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -16.6852180 -0.4481154
## sample estimates:
## mean of x mean of y
## 21.71667 30.28333
The table shows t = -2.1123, with the degree of freedom df = 57.8. The p-value equals 0.03. With this given p-value, we can reject the null hypothesis in favor of the alternative hypothesis saying that there is a difference between the eastern halves and the western halves.
# the mean difference is:
diff <- treeE$dbh - treeW$dbh
t.test(diff)##
## One Sample t-test
##
## data: diff
## t = -2.01, df = 29, p-value = 0.05382
## alternative hypothesis: true mean is not equal to 0
## 95 percent confidence interval:
## -17.2835364 0.1502031
## sample estimates:
## mean of x
## -8.566667
The confidence interval is between -17.2 and 0.15. This shows that 95% of the true population mean differences between these two trees are in this intervals.
This should be a two-tailed test. This is because if the null hypothesis assumes that two means are equal, then the alternative hypothesis should state two means are not equal. In here he chooses the one-sided alternative, so it is not an appropiate test.
Since he performed the one-sided test, the p-value is 0.06. If he performed the two tailed test, then the p value should be 0.06*2 = 0.12.
This will have two independent samples. The first sample is those who live in the dorms and the other live elsewhere.
This is a matched pairs design. We compare the response of only college students testing the two new product lables.
This is a single sample design. The sample in here is college students testing a new product.
This is a single sample design. The only sample we need here is the store’s customers.
This is the two independent samples design. In this case we compare the customer satistisfaction of two groups of customers. The first group is the customers from last year and the other is the group from this year.
We have a matched-pair design in this case because one group of people gave opinions on two new floor plans.