Chapter36a (Compatibility Mode)
Chapter36a (Compatibility Mode)
M1 M 2
t
d d
2 2
1 1
1 2
N N
N1 N 2 2 1 2
M = Mean
d = difference between the means
N = Number of cases
t-TEST FOR INDEPENDENT SAMPLES
The t-test computes a ratio between a measure of
the between-groups variance and the within group
variance.
This shows:
the name of 2 conditions;
the number of cases in each condition;
the mean of each condition;
the standard deviation and standard error of
the mean, of the two conditions.
t-TEST FOR INDEPENDENT SAMPLES (SPSS)
Independent Samples Test
Levene’s Test
for Equality of
Variances t-test for Equality of Means
95% Confidence
Interval of the
Difference
Sig. Mean Std. Error
Lower Upper
F Sig t df (2-tailed) Differences Differences
How many Equal variances .177 .676 -6.137 22 .000 -6.5833 1.07279 -8.808 -4.359
words can assumed
you recall? Equal variances -6.137 21.78 .000 -6.5833 1.07279 -8.809 -4.357
not assumed
This indicates:
1.The two conditions;
2.The mean of each condition;
3.The number of cases in each condition;
4.The standard deviation and standard error of the
mean, for the two conditions.
PAIRED SAMPLE t-TEST (SAME GROUP
UNDER TWO CONDITIONS) WITH SPSS
Paired Samples Correlations
N Correlation Sig.
Pair 1 Mathematics pre-test 252 .020 .749
score & Mathematics
post-test score
Between variance
d X N 2
mean
df groups 1
Within variance
d 2
df N groups
A1 A2 A3
9 15 21
9 15 25
9 16 17
9 15 22
9 16 26
X =9 X = 15.4 X = 22.2
Between-groups and within-groups variance:
Variation between the groups (9 to 22.2);
Variation within the first group (no variation since all
participants scored the same);
Variation within the second group (from 15 to 16);
Variation within the third group (from 17 to 26).
ANOVA
1. First, ANOVA calculates the mean for each of
the three groups;
2. Then it calculates the grand mean (the three
means added then divided by three);
3. For each group separately, the total deviation of
each individual’ s score from the mean of the
group is calculated (within-groups variation);
4. Then the deviation of each group mean from the
grand mean is calculated (between-groups
variation).
F RATIO
between - groups variance
F ratio
within - groups variance
When we conduct our experiment, we hope that the
between-groups variance is very much larger than the
within-groups variance, in order to get a bigger F ratio;
This shows us that one (or more) of the individual
group means is significantly different from the grand
mean;
However, it does not tell us which means are
statistically significantly different.
Descriptives
Value Label N
Which group are you 1 Control group 166
O = observed frequencies
E = expected frequencies
= the sum of
ONE-VARIABLE CHI-SQUARE OR
GOODNESS-OF-FIT TEST
• Enables us to discover whether a set of
obtained frequencies differs from an expected
set of frequencies;
• One variable only;
• The numbers that we find in the various
categories are called the observed frequencies;
• The numbers that we expect to find in the
categories, if the null hypothesis is true, are the
expected frequencies;
• Chi-Square compares the observed and the
expected frequencies.
EXAMPLE: PREFERENCE FOR
CHOCOLATE BARS
A sample of 120 people were asked which of
four chocolate bars they preferred;
• We want to find out whether some brands (or
one brand) are preferred over others –
Research Hypothesis;
• If some brands are not preferred over others,
then all brands should be equally represented
– Null Hypothesis;
• If the Null Hypothesis is true, then we expect
30 (120/4) people in each category
ONE-VARIABLE CHI-SQUARE OR
GOODNESS-OF-FIT TEST
Frequencies Chocolate A Chocolate B Chocolate C Chocolate D
Observed 20 70 10 20
Expected 30 30 30 30
Chi-Square = 12.12
df (degrees of freedom) = (columns -1) x (rows -1)
= (2-1) x (2-1) = 1
RESULTS
A 2 x 2 Chi-square was carried out to discover
whether there was a significant relationship
between smoking and drinking. The Chi-
square value of 12.12 has an associated
probability value of p<0.001, df = 1, showing
that such an association is extremely unlikely
to have arisen as a result of sampling error. It
can therefore be concluded that there is a
significant association between smoking and
drinking.
MANN-WHITNEY U-TEST FOR
INDEPENDENT SAMPLES
• Mann-Whitney (non-parametric, nominal and
ordinal data) for two groups under one condition
– Difference between two independent groups
(independent samples), based on ranks
• This is the non-parametric equivalent of the t-test
for independent samples.
• Find the significant differences and then run a
crosstabs to look at where the differences lie.
• Note where there are NO statistically significant
differences as well as where there are statistically
significant differences
MANN-WHITNEY U-TEST (SPSS)
Ranks
the
contents
are
interesting
Mann-Whitney U 703.500
Wilcoxon W 2783.500
Z -.006
Asymp. Sig.
.996
(2-tailed)
a. Grouping Variable: form
THE WILCOXON TEST FOR RELATED
SAMPLES
This is the non-parametric equivalent of the t-test
for related samples.
Ranks
own made-up
tests
Chi-Square 4.319
df 2
Asymp. Sig. .115
a. Kruskal Wallis Test
b. Grouping Variable: Age
THE FRIEDMAN TEST FOR 3 OR MORE
RELATED GROUPS
This is the non-parametric equivalent of ANOVA for
related samples.