



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Suppose we have two samples of ceramic sherd thickness collected from an archaeological site, where the two samples are easily distinguishable by the use of different styles to decorate the slip. However, the samples seem to be roughly similar in thickness (mm) suggesting that they might have had a similar function.
Therefore, we are interested in testing the hypothesis that mean difference in sherd thickness between the two samples is statistically zero, or in other words that there is statistically no difference between the sherd thickness of sample 1 and sample 2. As sample 1 seems to be slightly thicker on average than sample 2, we state the alternative
hypothesis that sample 1 is thicker than sample 2. As such, let Y 1 = the mean sherd
thickness of sample 1, and Y 2 = the mean sherd thickness of sample 2. Formally, we state the hypothesis at the a = 0.05 level:
1 2
1 2 โ โฅ
A
O
Here are the data: Sample 1
Sample 2
The descriptive statistics output is:
Descriptive Statistics
Variable N Mean Median Tr Mean StDev SE Mean Sample 1 25 17.380 18.003 17.096 4.615 0. Sample 2 25 16.46 17.47 16.58 5.29 1.
Variable Min Max Q1 Q Sample 1 10.737 30.556 13.516 19. Sample 2 5.14 24.94 13.10 20.
From the descriptive stats we see that the means and medians are acceptable, and that the boxplots suggest both distributions are close enough to normal for us to use a parametric hypothesis test.
Sample 1 Sample 2
30
20
10
We see from the output and the boxplot that the variances (or standard deviations) are roughly equal. As we are interested in the statistics describing the variance between the two samples, we need to take into account the standard errors of both samples. As we have determined the variances are equal, we POOL the standard errors ( seP ) using one of the following equations:
n
s s n
s n
s se (^) P
2 2
2 1 2
2 2 1
2 = 1 + = + , as n is the same for both samples, or (1)
1 2
2 n n
s s se (^) p +
= , which should give an equivalent answer. (2)
The t -test statistic is now calculated as:
p
STAT se
t
And the degrees of freedom used to look up the tCRIT are df = n 1 โ 1 + n 2 โ 1 = n 1 + n 2 โ 2.
If we wish to establish confidence limits around the mean of the difference between the two samples we calculate:
In MINITAB we follow these procedures:
Enter your two samples in two columns
>STAT
**>BASIC STATS
2 SAMPLE t Choose SAMPLES IN DIFFERENT COLUMNS Choose the alternative hypothesis (in this case**
GREATER THAN)
**>Leave the confidence level at 95%
Choose ASSUME EQUAL**
VARIANCES
**>GRAPHS
BOXPLOTS OK**
MINITAB gives both results in the output:
Two Sample T-Test and Confidence Interval
Two sample T for Sample 1 vs Sample 2 N Mean StDev SE Mean Sample 1 25 17.38 4.62 0. Sample 2 25 16.46 5.29 1.
95% CI for mu Sample 1 - mu Sample 2: ( -1.90, 3.7) T-Test mu Sample 1 = mu Sample 2 (vs >): T= 0.66 P=0.26 DF= 48 Both use Pooled StDev = 4.
And the boxplots look like:
Sample 1 Sample 2
30
20
10
Boxplots of Sample 1 and Sample 2 (means are indicated by solid circles)
To check that our math fits our computer output we see that the Pooled StDev in the output = 4.97 (we got 4.953, the difference due to rounding errors), and the T score in the output = 0.66 (we got 0.657 or 0.66). Finally, looking at our confidence limits we see the output gives us a 95% CI = (-1.90, 3.7), whereas we got (-1.90, 3.74). We could not manually calculate the p value, but the output tells us it is 0.26, which again fits our failure to reject the null hypothesis.
Although doing the t -test manually requires some mathematical trickery, it is essential for us to understand the decisions we are making when we choose different options in a software package as one small mistake coming from a basic misunderstanding can invalidate the whole test.
There are other variations to the t- test that we shall follow in the same way as we did here.