Student[Statistics][TwoSampleTTest] Overview
overview of the Two Sample T-Test
Description
Example
The Two Sample T Test is used to test if the means of two samples, each assumed to follow a normal distribution, are equal.
To apply this test, the standard deviations of the two populations do not need to be known. If the standard deviations of the two populations are provided, then the Two Sample Z Test can be used.
If the two samples are paired, then the Two Sample Paired T Test can be used.
Requirements for using Two Sample T Test:
The two populations studied are assumed to be normally distributed.
The two standard deviations of the two populations are unknown.
The formula is:
T=Mean⁡X−Mean⁡Y−βs12N1+s22N2
where X is the sample drawn from the first population, Y is the sample drawn from the second population, β is the test value of the difference, s1: The sample standard deviation of X, s2 is the sample standard deviation of Y, N1 is the sample size of X, and N2 is the sample size of Y.
T follows Student's T distribution with degree of freedom computed as follows: DF=s12N1+s22N22s14N12⁢N1−1+s24N22⁢N2−1
A research team conducted a survey to know the difference between the weights of male and female subjects of ages from 20 to 30 years. They knew that the weights should be normally distributed, but they did not know the standard deviations. The researchers randomly selected 10 men and 8 women for the survey, and their weights were recorded as follows:
X
Sample of the weights of male subjects
Y
Sample of the weights of female subjects
Male
Weight(kg)
Female
1
75
61
2
80
55
3
73
65
4
88
53
5
84
48
6
67
66
7
77
50
8
60
9
10
69
The researchers hypothesized that due to differences in the body structure, males should on average be 20 kg heavier than females. Now they want to test their hypothesis with the data that was collected.
Determine the null hypothesis:
Null Hypothesis: On average, men are 20 kg heavier than women (β is 20 for this case)
Substitute the information into the formula:
Mean⁡X=75.6,Mean⁡Y=57.25,β=20,s1=7.18331,s2=6.75595,N1=10,N2=8
t=75.6⁢−57.25⁢−⁢207.18331210+6.7559528=−0.500567
DF=⁢7.18331210+⁢6.755952827.1833121029⁢+⁢6.755952827=15.51621
Compute the p-value:
p−value⁢=⁢Probability(|T|⁢>⁢|−0.500567|)=⁢ProbabilityT⁢<⁢−0.500567⁢+⁢ProbabilityT⁢>⁢0.500567⁢=⁢0.623702, T⁢˜⁢StudentT15.51621
Draw the conclusion:
This statistical test does not provide enough evidence to conclude that the null hypothesis is false, so we fail to reject the null hypothesis.
See Also
Student[Statistics][TwoSampleTTest]
Download Help Document