Professional Documents
Culture Documents
The parametric independent t-test, also known as Student’s t-test, is used to determine if there
is a statistical difference between the means of two independent groups. The test requires a
continuous dependent variable and an independent variable comprising 2 groups.
This test produces a t-score which is a ratio of the differences between the two groups and
the differences within the two groups:
X = mean
S = standard deviation
n = number of data points
A large t-score indicates that there is a greater difference between groups. The smaller
the t-score, the more similarity there is between groups. A t-score of 5 means that the groups
are five times as different from each other as they are within each other.
The null hypothesis (Ho) tested is that the population means from the two unrelated
groups are equal
If normality is violated you can try transforming your data (for example log values, square root
values) or, and if the group sizes are very different, use the Mann-Whitney U test which is a
non-parametric equivalent that does not require the assumption of normality (see later).
Homogeneity of variance:
The variances of the dependent variable should be equal in each group. This can be tested
using Levene's Test of Equality of Variances.
If the Levene's Test is statistically significant, indicating that the group variances are unequal
we can correct for this violation by using an adjusted t-statistic based on the Welch method.
Go to T-Tests > Independent Samples t-test and put weight loss in the Dependent variable
box and gender (independent variable) in the Grouping Variable box.
In the analysis window tick the following options:
Levene’s test shows that there is no difference in the variance, therefore, the
assumption of homogeneity of variance is not violated. If Levene’s test was significant Welch’s
adjusted t-statistic, degrees of freedom and p values should be reported.
This table shows the two computed t-statistics (Student and Welch). Remember the t-statistic
is derived from the mean difference divided by the standard error of the difference. Both show
that there is a significant statistical difference between the two groups (p<.001) and Cohen’s
d suggests that this is a large effect.
From the descriptive data, females had a higher weight loss than males.
Illustrative Example
A study of the effect of caffeine on muscle metabolism used eighteen male volunteers
who each underwent arm exercise tests. Nine of the men were randomly selected to take a
capsule containing pure caffeine one hour before the test. The other men received a placebo
capsule. During each exercise the subject’s respiratory exchange ratio (RER) was measured.
(RER is the ratio of CO2 produced to O2 consumed and is an indicator of whether energy is
being obtained from carbohydrates or fats)
The question of interest to the experimenter was whether, on average, caffeine changes
RER.
The two populations being compared are “men who have not taken caffeine” and “men
who have taken caffeine”. If caffeine has no effect on RER the two sets of data can be regarded
as having come from the same population. The results were as follows.
RER
Placebo Caffeine
105 96
100 99
100 94
97 89
96 96
101 93
94 88
95 93
98 88
t df p
Assumption Checks
Test of Normality (Shapiro-Wilk)
W p
F df p
Group N Mean SD SE
Results
The p-value is 0.005 and, therefore, the difference between two mean is statistically
significant at 5% level of significance. There is sufficient evidence to suggest that caffeine does
change the mean RER.
Independent samples t-test shows significant difference on the RER results using
placebo (M=98.44, SD =3.432) and pure caffeine (M=92.89, SD =3.89), t(16) = -3.214, p=.005.
This indicates that caffeine has a significant effect on the RER.
Name: _______________________________ Date: ____________
Solve the following problems using JASP. Check the normality (using Shapiro-Wilk test) and
homogeneity of variance (using Levene’s test). Then, interpret the t-test results.
1. We wish to determine whether there is a difference between the measured ratios of free and
total prostate-specific antigen (PSA) in patients with cancer of the prostate (CAP) and those
with benign prostate hyperplasia (BPH). The ratio of free total PSA is measured in small sample
consisting of 10 CAP patients and 9 BPH patients. The data are presented below.
CAP BPH
1.4 25.1
36.4 27.0
27.3 20.26
11.0 18.0
2.3 34.1
14.9 40.3
13.9 22.5
11.6 21.1
7.7 21.1
10.7
1. A magazine, Consumer Reports, carried out a survey of the calorie content of a number of
different brands of hotdog. The calorie content of 20 beef and 17 poultry hotdogs were recorded
below.
Beef: 186, 181, 176, 149, 184, 190, 158, 139, 175, 148, 152, 111,141, 153, 190, 157, 131,
149, 135, 132
Poultry: 129, 132, 102, 106, 94, 102, 106, 94, 102, 87, 99, 170, 113, 135, 142, 86, 143, 152,
146, 144