Docsity

2 Sample t-Test (1 tailed), Schemes and Mind Maps of Descriptive statistics

Toggle sidebar
bg1
Variations of the t-Test: 2 Sample 1 tail 1
2 Sample t-Test (1 tailed, equal variance)
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 1
Y = the mean sherd
thickness of sample 1, and 2
Y= the mean sherd thickness of sample 2. Formally, we
state the hypothesis at the a = 0.05 level:
0:
0:
21
21
โ‰ฅโˆ’
=โˆ’
YYH
YYH
A
O
Here are the data:
Sample 1
19.7475
19.8387
12.6873
17.6973
19.0878
30.5562
14.5291
14.7627
14.3439
12.5745
11.0734
19.4998
18.3869
10.7374
18.0030
18.1730
18.8374
17.9287
15.3563
18.6004
11.7280
12.2898
21.0552
21.4184
25.5953
Sample 2
17.4715
20.0386
12.6012
20.4401
22.4969
9.8613
19.6289
9.7741
15.1119
17.4448
23.4827
24.9357
19.9265
7.9955
17.6675
13.6029
17.8812
16.4178
5.1385
7.0984
18.1181
20.2681
14.7372
22.5915
16.7546
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.923
Sample 2 25 16.46 17.47 16.58 5.29 1.06
Variable Min Max Q1 Q3
Sample 1 10.737 30.556 13.516 19.624
Sample 2 5.14 24.94 13.10 20.15
pf3
pf4
pf5

Partial preview of the text

Download 2 Sample t-Test (1 tailed) and more Schemes and Mind Maps Descriptive statistics in PDF only on Docsity!

2 Sample t- Test (1 tailed, equal variance)

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 โˆ’ โ‰ฅ

H Y Y

H Y Y

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

Y Y

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:

LL = ( Y 1 โˆ’ Y 2 ) โˆ’ tCRITsep (4)

LL = ( Y 1 โˆ’ Y 2 ) + tCRITsep (5)

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.