In: Statistics and Probability
2 types of peach trees are thought to produce different masses of fruit. Do type 2 trees produce larger fruit? Test hypothesis with R and give p-value.
Type 1 |
67 |
83 | 94 | ||
Type 2 | 206 | 111 | 91 | 112 | 89 |
Null Hypothesis, Ho: There is no significant difference in the mean masses of fruits from Type 1 and Type 2 peach trees i.e.
Alternative hypothesis, H1: Type 2 tree produces larger fruits than Type 1 tree i.e.
We will use 2-sample independent t-test. Before using t-test, we need to check for equality of variances using Bartlett's test.
Since p-value for Bartlett's test is less than 0.05 so we reject Ho and conclude that the variances for the two tree types are not equal.
So we use t-test when variances are unequal.
Here in t-test, p value is less than 0.05 so we reject Ho and conclude that tree type 2 produces larger fruits.