Professional Documents
Culture Documents
Data are saved in two differents numeric vectors (x and y) : hence to perform the T
test we have improvised the commands in R, as > t.test(data2, data3) is not applicable
in this case, since both data2 and data3 and in the same excel.
Hypothesis
Null hypothesis is false if and only if
level alpha = 0.05 > p- value
Rejection Region
A critical region, also known as the rejection region, is a set of values for the test statistic for which the null hypothesis
is rejected. i.e. if the observed test statistic is in the critical region then we reject the null hypothesis and accept the
alternative hypothesis.
How we proceeded .
Unlike in the case mentioned in the book, our data set was fairly different, hence
we decided to improvise with our commands.
t.test(x,y) was used to make sure we stay within the domain of our textbook.
However to feed our entry into R we used to a different approach.
.
Result
Now in most softwares we would be required to look the the corresponding p value to know it’s
value. However in R, the p value is represented straight away p-value= 0.3717
The confidence interval (conf.int) of the mean differences at 95% is also shown (conf.int=
[-1.2898638, 0.4998638]); and finally, we have the means of the two groups of samples (average
x= 3.315, y =3.710).
Conclusion for Unequal Variance
The p-value of the test is 0.3717, which is more than the significance level alpha = 0.05.
We cannot then reject the null hypothesis and hence we conclude that there is no
evidence of a difference between the two location means