PY1PR1 Stats Lecture 6 Handout
PY1PR1 Stats Lecture 6 Handout
PY1PR1 Stats Lecture 6 Handout
Dr David Field
Assumption 1 - normality
This can be checked by inspecting a histogram
with small samples the histogram is unlikely to ever be
exactly bell shaped
Assumption 1 - normality
Assumption 1 - normality
Assumption 1 - normality
In moderate skew the most
extreme histogram interval
does not have the highest
frequency
Assumption 1 - normality
It is sometimes legitimate to
exclude extreme scores from
the sample or alter them to
make them less extreme. See
section 5.7.1 of the textbook.
You may then use parametric.
Variance 25.2
Variance 4.1
DV
group
1.00
2.00
Mean
25.5673
31.1920
12
12
Std. Deviation
5.04689
7.79554
Std. Error
Mean
1.45691
2.25038
F
DV
Equal variances
assumed
Equal variances
not assumed
7.236
Sig.
.013
df
Sig. (2-tailed)
Mean
Difference
Std. Erro
Differenc
-2.098
22
.048
-5.62476
2.6808
-2.098
18.843
.050
-5.62476
2.6808
DV
group
1.00
2.00
Mean
25.5673
31.1920
12
12
Std. Deviation
5.04689
7.79554
Std. Error
Mean
1.45691
2.25038
F
DV
Equal variances
assumed
Equal variances
not assumed
7.236
Sig.
.013
df
Sig. (2-tailed)
Mean
Difference
Std. Erro
Differenc
-2.098
22
.048
-5.62476
2.6808
-2.098
18.843
.050
-5.62476
2.6808
Non-parametric tests
These are sometimes referred to as distribution free
tests, because they do not make assumptions about the
normality or variance of the data
The Mann Whitney U test is appropriate for a 2 condition
independent samples design
The Wilcoxon Signed Rank test is appropriate for a 2
condition related samples designs
If you have decided to use a non-parametric test then the
most appropriate measure of central tendency will
probably be the median
Mann-Whitney U test
To avoid making the assumptions about the data that are
made by parametric tests, the Mann-Whitney U test first
converts the data to ranks.
If the data were originally measured on an interval or ratio
scale then after converting to ranks the data will have an
ordinal level of measurement
Sample 2
Score
Rank 1
Score
Rank 2
13
12
5.5
5.5
Sample 2
Score
Rank 1
Score
Rank 2
13
12
5.5
5.5
Sample 2
Score
Rank 1
Score
Rank 2
13
12
5.5
5.5
Tied scores take the mean of the ranks they occupy. In this
example, ranks 5 and 6 are shared in this way between 2
scores. (Then the next highest score is ranked 7)
Rationale of Mann-Whitney U
Imagine two samples of scores drawn at random from the
same population
The two samples are combined into one larger group and
then ranked from lowest to highest
In this case there should be a similar number of high and
low ranked scores in each original group
if you sum the ranks in each group the totals should be about the
same
this is the null hypothesis
Sample 2
Score
Rank 1
Score
Rank 2
13
12
5.5
5.5
Sum of ranks
20.5
15.5
group
1.00
2.00
Total
Mean Rank
10.75
14.25
12
12
24
Test Statisticsb
Mann-Whitney U
Wilcoxon W
Z
Asymp. Sig. (2-tailed)
Exact Sig. [2*(1-tailed
Sig.)]
DV
51.000
129.000
-1.212
.225
a
.242
Sum of Ranks
129.00
171.00
group
1.00
2.00
Total
Mean Rank
10.75
14.25
12
12
24
Test Statisticsb
Mann-Whitney U
Wilcoxon W
Z
Asymp. Sig. (2-tailed)
Exact Sig. [2*(1-tailed
Sig.)]
DV
51.000
129.000
-1.212
.225
a
.242
Sum of Ranks
129.00
171.00
Score
cond 2
Difference
Ranked dif
ignoring + /-
-4
3.5
-1
-4
3.5
Score
cond 2
Difference
-4
3.5
-3.5
-1
-1
-4
3.5
-3.5
Score
cond 2
Difference
-4
3.5
-3.5
-1
-1
-4
3.5
-4
Wilcoxon T - SPSS
Ranks
N
RTM in the afternoon
- RTM in the morning
Negative Ranks
Positive Ranks
Ties
Total
10a
3b
1c
14
Mean Rank
8.45
2.17
Sum of Ranks
84.50
6.50
Test Statisticsb
Z
Asymp. Sig. (2-tailed)
RTM in the
afternoon RTM in the
morning
-2.732a
.006
Wilcoxon T - reporting
As the difference scores were not normally distributed,
the most appropriate statistical test was the Wilcoxon
signed-rank test. Descriptive statistics showed that
measurement in condition 1 (median = ____ ) produced
higher scores than in condition 2 (median = ____). The
Wilcoxon test (T = 2.17) was converted into a Z score of
-2.73, p = 0.006 (two tailed). It can therefore be concluded
that the experimental and control treatments produced
different scores.
Parametric
Non-parametric
Assumption
Outlier
Levenes test for equality of variances
Mann Whitney U test
Wilcoxon signed ranks test