Student/Statistics/TwoSampleTTest/overview - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Student/Statistics/TwoSampleTTest/overview

Student[Statistics][TwoSampleTTest] Overview

overview of the Two Sample T-Test

 

Description

Example

Description

• 

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:

1. 

The two populations studied are assumed to be normally distributed.

2. 

The two standard deviations of the two populations are unknown.

• 

The formula is:

T=MeanXMeanYβ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+s22N22s14N12N11+s24N22N21   

Example

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

Weight(kg)

1

75

1

61

2

80

2

55

3

73

3

65

4

88

4

53

5

84

5

48

6

67

6

66

7

77

7

50

8

66

8

60

9

77

 

 

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.

1. 

Determine the null hypothesis:

  

Null Hypothesis: On average, men are 20 kg heavier than women (β is 20 for this case)

2. 

Substitute the information into the formula:

  

MeanX=75.6,MeanY=57.25,β=20,s1=7.18331,s2=6.75595,N1=10,N2=8 

  

t=75.657.25207.18331210+6.7559528=0.500567

  

DF=7.18331210+6.755952827.1833121029+6.755952827=15.51621 

3. 

Compute the p-value:

  

pvalue=Probability(|T|>|0.500567|)=ProbabilityT<0.500567+ProbabilityT>0.500567=0.623702, T˜StudentT15.51621

4. 

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]