SlideShare a Scribd company logo
1 of 63
Download to read offline
Kruskal-Wallis test
Friedman test
Spearman’s Correlation
Dr. S. A. Rizwan, M.D.,
Public Health Specialist,
Saudi Board of Preventive Medicine,
Riyadh, Kingdom of Saudi Arabia.
With thanks to Dr. Tajali Nazir Shora
Checklist of four questions
• Q1. What scales of measurement has been used?
• Q2. Which hypothesis has been tested?
• Q3. If the hypothesis of difference has been
tested, are the samples independent or
dependent?
• Q4. How many sets of measures are involved?
2
Kruskal-Wallis test
3
KW test
• The Kruskal-Wallis test is a nonparametric
test that can be used to determine whether
three or more independent samples were
selected from populations having the same
distribution.
H0: There is no difference in the group medians
Ha: There is a difference in the group medians
4
KW test
• This test is appropriate for use under the
following circumstances:
– we have three or more conditions that you want to
compare;
– each condition is performed by a different group of
participants;
– the data do not meet the requirements for a
parametric test.
5
Requirements
• The data:
– not normally distributed;
– if the variances for the different conditions are
markedly different;
– if the data are measurements on an ordinal scale.
• If the data meet the requirements for a
parametric test, it is better to use a one-way
independent-measures Analysis of Variance
(ANOVA)
6
Given three or more independent samples, the test statistic H
for the Kruskal-Wallis test is
Where: N represents the number of participants,
Tc is the rank total for each group
nc is the number of participants in each group
Reject the null hypothesis when H is greater than the critical number.
(always use a right tail test.)
KW test
7
Procedure
1
• Combine the observations of the various groups
2
• Arrange them in order of magnitude from lowest to highest
3
• Assign ranks to each of the observations and replace them in each of the
groups
4
• Original ratio data has therefore been converted into ordinal or ranked
data
5
• Ranks are summed in each group and the test statistic, H is computed
6
• Ranks assigned to observations in each of the groups are added
separately to give rank sums
8
Example
• Does physical exercise alleviate depression?
– We find some depressed people and check that they
are all equivalently depressed to begin with. Then we
allocate each person randomly to one of three
groups:
• no exercise;
• 20 minutes of jogging per day; or
• 60 minutes of jogging per day.
– At the end of a month, we ask each participant to
rate how depressed they now feel, on a Likert scale
that runs from 1 ("totally miserable") through to 100
(ecstatically happy"). 9
Appropriate test?
• We have three separate groups of participants.
• In each group each participant gives us a single
score on a rating scale.
(Ratings are examples of an ordinal scale of
measurement, and so the data are not suitable
for a parametric test)
10
KW test
The Kruskal-Wallis test will tell us if the
differences between the groups are so large that
they are unlikely to have occurred by chance.
11
KW test
12
Step 1: Rank all of the scores
13
14
Step 2: Find "Tc", the total of the ranks for each group. Just add
together all of the ranks for each group in turn.
• Tc1 (the rank total for the "no exercise" group)
is 76.5.
• Tc2 (the rank total for the "20 minutes" group)
is 79.5.
• Tc3 (the rank total for the "60 minutes" group)
is 144.
15
Step 3: Find "H".
16
KW test
17
18
Step 4: Calculate the degrees of freedom
• The degrees of freedom is the number of
groups minus one.
Degrees of Freedom = Number of Groups - 1
• Here we have three groups, and so we have 2
d.f.
19
Step 5: Assess the significance of H
• Assessing the significance of H depends on
– the number of participants and
– the number of groups.
20
KW test
• Three groups, with ≤ 5 participants in each
group, then use the special table for small
sample sizes.
• For more than five participants per group, treat
H as Chi-Square.
21
22
23
KW test
• H is statistically significant if it is equal to or
larger than the critical value of Chi-Square for
particular df
• Here, we have 8 participants per group, and so
we treat H as Chi-Square.
• H is 7.27, with 2 df
24
KW test
• Look along the row that corresponds to number
of degrees of freedom.
• We look along the row for 2 df
• We compare our obtained value of H to each of
the critical values in that row of the table,
starting on the left hand side and stopping once
our value of H is no longer equal to or larger
than the critical value.
25
KW test
• So here, we start by comparing our H of 7.27 to
5.99. With 2 degrees of freedom, a value of Chi-
Square as large as 5.99 is likely to occur by
chance only 5 times in a hundred: i.e. it has a p
of .05.
• Our obtained value of 7.27 is even larger than
this, and so this tells us that our value of H is
even less likely to occur by chance.
• Our H will occur by chance with a probability
of less than 0.05. 26
KW test
• Move on, and compare our H to the next value
in the row, 9.21. 9.21 will occur by chance one
time in a hundred, i.e. with a p of .01. However,
our H of 7.27 is less than 9.21, not bigger than
it.
• This tells us that our value of H is not so large
that it is likely to occur with a probability of
0.01.
27
KW test
• The likelihood of obtaining a value of H as
large as the one we've found, purely by chance,
is somewhere between 0.05 and 0.01 - i.e. pretty
unlikely, and so we would conclude that there is
a difference of some kind between our three
groups.
28
KW test
• Note that the Kruskal-Wallis test merely tells you that
the groups differ in some way: you need to inspect the
group means or medians
• However in this particular case, the interpretation
seems fairly straightforward: exercise does seem to
reduce self-reported depression, but only in the case of
participants who are doing 60 minutes.
• There seems to be no difference between those
participants who took 20 minutes of exercise per day,
and those who did not exercise at all.
29
KW test
• We could write this up as follows:
• "A Kruskal-Wallis test revealed that there was a
significant effect of exercise on depression
levels (H (2) = 7.27, p < .05).
• Inspection of the group means suggests that
compared to the "no exercise" control
condition, depression was significantly reduced
by 60 minutes of daily exercise, but not by 20
minutes of exercise".
30
KW test
• The post hoc test for a significant KW is called
Dunn’s test with Bonferroni correction for
multiple testing
31
Friedman Test
32
Friedman Test
• This is similar to the Wilcoxon singed rank test,
except that we can use it with three or more
conditions.
• Each subject participates in all of the different
conditions of the experiment.
33
FT
• Does background music affect the
performance of Laboratory workers?
• We take a group of five workers, and measure
each worker's productivity (in terms of the
number of Stool Microscopies per hour) thrice
– once while the worker is listening to “Easy-
listening music’,
– once while the worker is listening to ‘Marching
Band music,’ and
– once while the same worker is working in ‘Silence.’34
Step 1:
Rank each subject's scores individually
Worker No Music Easy Listening Marching Band
Raw
Score
Ranked
Score
Raw
Score
Ranked
Score
Raw
Score
Ranked
Score
1 4 1 5 2 6 3
2 2 1 7 2.5 7 2.5
3 6 1.5 6 1.5 8 3
4 3 1 7 3 5 2
5 3 1 8 2 9 3
35
Step 2:
Find the rank total for each condition
Worker No Music Easy Listening Marching Band
Raw
Score
Ranked
Score
Raw
Score
Ranked
Score
Raw
Score
Ranked
Score
1 4 1 5 2 6 3
2 2 1 7 2.5 7 2.5
3 6 1.5 6 1.5 8 3
4 3 1 7 3 5 2
5 3 1 8 2 9 3
Total 5.5 11 13.5
36
Step 3:
Work out χr2
• Where :
– C is the number of conditions,
– N is the number of subjects
– ΣTc2 is the sum of the squared rank totals for
each condition.
37
FT
• To get ΣTc2:
• Take each rank total and square it.
Worker No Music Easy Listening Marching Band
Raw
Score
Ranked
Score
Raw
Score
Ranked
Score
Raw
Score
Ranked
Score
1 4 1 5 2 6 3
2 2 1 7 2.5 7 2.5
3 6 1.5 6 1.5 8 3
4 3 1 7 3 5 2
5 3 1 8 2 9 3
Total 5.5 11 13.5
Square of
Rank Total
30.25 121 182.25
38
FT
39
Step 4: Calculate degrees of
freedom
• The degrees of freedom are given by the
number of conditions minus one.
C - 1 = 3 - 1 = 2.
40
Step 5:
Assess the statistical significance of Xr2
• It depends on the number of subjects and the
number of groups.
– more than 9 subjects, we can use a Chi-Square table.
– less than nine subjects, special tables of critical
values are available.
• Compare obtained Xr2 value to the critical value
of Chi-Square for df
41
Number of
Subjects
Number of
Conditions
42
FT
• If your obtained value of Xr2 is bigger than the
critical Chi-Square value, the difference between
conditions is statistically significant.
• As with the Kruskal- Wallis test, Friedman's test
only tells you that some kind of difference
exists;
• Inspection of the median score for each
condition will usually be enough
• Post hoc test for FT is called Dunn’s test
43
Spearman’s Correlation
44
Types of correlation
• Pearson’s
• Spearman’s
• Hoeffding’s D
• Distance correlation
• Mutual Information and the Maximal
Information Coefficient
45
Correlation coefficient
• A correlation coefficient is a succinct (single-
number) measure of the strength of association
between two variables.
• There are various types of correlation
coefficient for different purposes.
• Commonly used correlation coeff. are
– Pearson's r
– Spearman's rho
46
Difference between Pearson’s r
and Spearman’s rho
• Spearman’s rho makes fewer assumptions about the
nature of the data on which the correlation is to be
performed
• The data need only be measured on an ordinal scale
• Pearson’s “r” is a measure of the strength of the
linear relationship between two variables
• Spearman’s rho is a measure of the strength of the
monotonic relationship between them.
47
Difference between Pearson’s r
and Spearman’s rho
• If a monotonic relationship exists, it simply means that
one of the variables increases (or decreases) by some
amount when the value of the other variable changes.
• A linear relationship is thus a special case of a
monotonic relationship.
• Thus, if there is a monotonic but non-linear
relationship between two variables, it’s better to use
Spearman’s rho because Pearson’s “r” will tend to
underestimate the strength of the relationship.
48
Difference between Pearson’s r
and Spearman’s rho
• Spearman’s rho won’t be “fooled” by the fact
that the relationship isn’t a linear one.
49
Monotonic and non-monotonic
50
Linear relationships
Monotonic and non-monotonic
• Monotonic variables
increase (or decrease)
in the same direction,
but not always at the
same rate.
• Linear variables
increase (or decrease)
in the same direction
at the same rate.
51
How to decide a correlation test?
• Before running a test, you should make a scatter plot first to
view the overall pattern of your data.
• The strength and direction of a monotonic relationship between
two variables can be measured by the Spearman Rank-Order
Correlation.
• If your variables are monotonic and linear, a more appropriate
test might be Pearson’s Correlation as long as the assumptions
for Pearson’s are met. for example, if your data is highly skewed,
has high kurtosis, or is heteroscedastic, you cannot use Pearson’s.
You can, however, still use Spearman’s, which is a non-
parametric test.
52
Example for Spearman’s rho
• Vitamin treatment enhances the memory of
people who take it
• If there is a correlation between the number of
vitamin treatments that a subject has had, and
their performance on some memory test. We
would have two scores for each subject: number
of vitamin treatments, and that person’s
memory-test score.
53
Spearman’s rho
54
Spearman’s rho
55
Problems In Interpreting Correlations
• Correlation does not imply causality
• Factors affecting the size of the correlation
– The smaller the sample, the more likely it is to show
sampling variation, and the more variable the
correlation can be.
– Thus, when a correlation coefficient is calculated, it
does not represent the one-and-only correlation
between those two variables for that population.
– Different samples might produce higher or lower
correlations.
56
Sample and population
correlations
Here are the limits within which 80% of sample r’s will
fall, when the true correlation (i.e., in the population) is
zero
57
Requirements for Pearson’s
correlation
Linearity of the relationship
Homoscedasticity
Effect of discontinuous distributions
58
Linearity of the relationship
• Pearson’s r is a measure of the linear relationship between two
variables and Spearman’s rho is a measure of the monotonic
relationship between them.
• Two variables may have a very strong relationship to each other,
but of a non-linear or non-monotonic kind (for example they
might have a curvilinear relationship).
• If so, the correlation coefficient will underestimate the strength
of the relationship between the two variables.
• This is why you should always make a scatterplot of the data, so
that you can look at the trend before calculating a correlation.
59
Homoscedasticity
• Homoscedasticity (equal variability): For
Pearsons’ r to be valid, scores should have a
reasonably constant amount of variability at all
points in their distribution
60
Effect of discontinuous
distributions
61
Take home messages
• KW test NP equivalent of One Way ANOVA, >2
independent groups
• FT test NP equivalent of Repeated Measures ANOVA, >2
paired groups
• Spearman’s rank order correlation NP equivalent of
Pearson’s correlation for monotonic relationships
62
Thank you
Kindly email your queries to sarizwan1986@outlook.com
63

More Related Content

What's hot

Non parametric test
Non parametric testNon parametric test
Non parametric testNeetathakur3
 
3.1 non parametric test
3.1 non parametric test3.1 non parametric test
3.1 non parametric testShital Patil
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Sneh Kumari
 
Parametric Statistical tests
Parametric Statistical testsParametric Statistical tests
Parametric Statistical testsSundar B N
 
Advance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestAdvance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestJoshua Batalla
 
Wilcoxon Rank-Sum Test
Wilcoxon Rank-Sum TestWilcoxon Rank-Sum Test
Wilcoxon Rank-Sum TestSahil Jain
 
NON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantNON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantPRAJAKTASAWANT33
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U TestJohn Barlow
 
Sample size determination
Sample size determinationSample size determination
Sample size determinationGopal Kumar
 
Crossover design ppt
Crossover design pptCrossover design ppt
Crossover design pptHARISH J
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anovashoffma5
 
Two way analysis of variance (anova)
Two way analysis of variance (anova)Two way analysis of variance (anova)
Two way analysis of variance (anova)Randel Roy Raluto
 

What's hot (20)

Non parametric test
Non parametric testNon parametric test
Non parametric test
 
3.1 non parametric test
3.1 non parametric test3.1 non parametric test
3.1 non parametric test
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Mann Whitney U test
Mann Whitney U testMann Whitney U test
Mann Whitney U test
 
Parametric Statistical tests
Parametric Statistical testsParametric Statistical tests
Parametric Statistical tests
 
Kruskal wallis test
Kruskal wallis testKruskal wallis test
Kruskal wallis test
 
Friedman's test
Friedman's testFriedman's test
Friedman's test
 
Non-Parametric Tests
Non-Parametric TestsNon-Parametric Tests
Non-Parametric Tests
 
Advance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestAdvance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank Test
 
Wilcoxon Rank-Sum Test
Wilcoxon Rank-Sum TestWilcoxon Rank-Sum Test
Wilcoxon Rank-Sum Test
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
NON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantNON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta Sawant
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U Test
 
Parametric Test
Parametric TestParametric Test
Parametric Test
 
Kruskal-Wallis H test
Kruskal-Wallis H testKruskal-Wallis H test
Kruskal-Wallis H test
 
Non parametric tests
Non parametric testsNon parametric tests
Non parametric tests
 
Sample size determination
Sample size determinationSample size determination
Sample size determination
 
Crossover design ppt
Crossover design pptCrossover design ppt
Crossover design ppt
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 
Two way analysis of variance (anova)
Two way analysis of variance (anova)Two way analysis of variance (anova)
Two way analysis of variance (anova)
 

Similar to Kruskal Wallis test, Friedman test, Spearman Correlation

Kruskal wallis Friedman Spearman Dr Tajali Shora
Kruskal wallis Friedman Spearman Dr Tajali ShoraKruskal wallis Friedman Spearman Dr Tajali Shora
Kruskal wallis Friedman Spearman Dr Tajali ShoraDr. Tajali Nazir Shora
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovanaranbatn
 
non parametric test.pptx
non parametric test.pptxnon parametric test.pptx
non parametric test.pptxSoujanyaLk1
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss Subodh Khanal
 
Summary of statistical tools used in spss
Summary of statistical tools used in spssSummary of statistical tools used in spss
Summary of statistical tools used in spssSubodh Khanal
 
Parametric tests
Parametric testsParametric tests
Parametric testsheena45
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethicsAbhishek Thakur
 
Biomedical statistics
Biomedical statisticsBiomedical statistics
Biomedical statisticsAbdullaAhmad6
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologistsxeonfusion
 
7- Quantitative Research- Part 3.pdf
7- Quantitative Research- Part 3.pdf7- Quantitative Research- Part 3.pdf
7- Quantitative Research- Part 3.pdfezaldeen2013
 
Chi square test final
Chi square test finalChi square test final
Chi square test finalHar Jindal
 
Some statistical concepts relevant to proteomics data analysis
Some statistical concepts relevant to proteomics data analysisSome statistical concepts relevant to proteomics data analysis
Some statistical concepts relevant to proteomics data analysisUC Davis
 
allnonparametrictest-210427031923.pptx
allnonparametrictest-210427031923.pptxallnonparametrictest-210427031923.pptx
allnonparametrictest-210427031923.pptxSoujanyaLk1
 

Similar to Kruskal Wallis test, Friedman test, Spearman Correlation (20)

Kruskal wallis Friedman Spearman Dr Tajali Shora
Kruskal wallis Friedman Spearman Dr Tajali ShoraKruskal wallis Friedman Spearman Dr Tajali Shora
Kruskal wallis Friedman Spearman Dr Tajali Shora
 
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
 
Non parametric-tests
Non parametric-testsNon parametric-tests
Non parametric-tests
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anova
 
Statistics using SPSS
Statistics using SPSSStatistics using SPSS
Statistics using SPSS
 
non parametric test.pptx
non parametric test.pptxnon parametric test.pptx
non parametric test.pptx
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
Summary of statistical tools used in spss
Summary of statistical tools used in spssSummary of statistical tools used in spss
Summary of statistical tools used in spss
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethics
 
Biomedical statistics
Biomedical statisticsBiomedical statistics
Biomedical statistics
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologists
 
7- Quantitative Research- Part 3.pdf
7- Quantitative Research- Part 3.pdf7- Quantitative Research- Part 3.pdf
7- Quantitative Research- Part 3.pdf
 
Chi square test final
Chi square test finalChi square test final
Chi square test final
 
Some statistical concepts relevant to proteomics data analysis
Some statistical concepts relevant to proteomics data analysisSome statistical concepts relevant to proteomics data analysis
Some statistical concepts relevant to proteomics data analysis
 
allnonparametrictest-210427031923.pptx
allnonparametrictest-210427031923.pptxallnonparametrictest-210427031923.pptx
allnonparametrictest-210427031923.pptx
 
All non parametric test
All non parametric testAll non parametric test
All non parametric test
 
All non parametric test
All non parametric testAll non parametric test
All non parametric test
 

More from Rizwan S A

Introduction to scoping reviews
Introduction to scoping reviewsIntroduction to scoping reviews
Introduction to scoping reviewsRizwan S A
 
Sources of demographic data 2019
Sources of demographic data 2019Sources of demographic data 2019
Sources of demographic data 2019Rizwan S A
 
Effect sizes in meta-analysis
Effect sizes in meta-analysisEffect sizes in meta-analysis
Effect sizes in meta-analysisRizwan S A
 
Presenting the results of meta-analysis
Presenting the results of meta-analysisPresenting the results of meta-analysis
Presenting the results of meta-analysisRizwan S A
 
Heterogeneity in meta-analysis
Heterogeneity in meta-analysisHeterogeneity in meta-analysis
Heterogeneity in meta-analysisRizwan S A
 
Overview of the systematic review process
Overview of the systematic review processOverview of the systematic review process
Overview of the systematic review processRizwan S A
 
Biases in meta-analysis
Biases in meta-analysisBiases in meta-analysis
Biases in meta-analysisRizwan S A
 
Moderator analysis in meta-analysis
Moderator analysis in meta-analysisModerator analysis in meta-analysis
Moderator analysis in meta-analysisRizwan S A
 
Fixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisFixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisRizwan S A
 
Inverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's QInverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's QRizwan S A
 
Data extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisData extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisRizwan S A
 
Introduction & rationale for meta-analysis
Introduction & rationale for meta-analysisIntroduction & rationale for meta-analysis
Introduction & rationale for meta-analysisRizwan S A
 
Types of correlation coefficients
Types of correlation coefficientsTypes of correlation coefficients
Types of correlation coefficientsRizwan S A
 
Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Rizwan S A
 
Analysis of small datasets
Analysis of small datasetsAnalysis of small datasets
Analysis of small datasetsRizwan S A
 
A introduction to non-parametric tests
A introduction to non-parametric testsA introduction to non-parametric tests
A introduction to non-parametric testsRizwan S A
 
Kolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testKolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testRizwan S A
 
Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification) Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification) Rizwan S A
 
Use of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literatureUse of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literatureRizwan S A
 
Critical Appraisal of health literature
Critical Appraisal of health literatureCritical Appraisal of health literature
Critical Appraisal of health literatureRizwan S A
 

More from Rizwan S A (20)

Introduction to scoping reviews
Introduction to scoping reviewsIntroduction to scoping reviews
Introduction to scoping reviews
 
Sources of demographic data 2019
Sources of demographic data 2019Sources of demographic data 2019
Sources of demographic data 2019
 
Effect sizes in meta-analysis
Effect sizes in meta-analysisEffect sizes in meta-analysis
Effect sizes in meta-analysis
 
Presenting the results of meta-analysis
Presenting the results of meta-analysisPresenting the results of meta-analysis
Presenting the results of meta-analysis
 
Heterogeneity in meta-analysis
Heterogeneity in meta-analysisHeterogeneity in meta-analysis
Heterogeneity in meta-analysis
 
Overview of the systematic review process
Overview of the systematic review processOverview of the systematic review process
Overview of the systematic review process
 
Biases in meta-analysis
Biases in meta-analysisBiases in meta-analysis
Biases in meta-analysis
 
Moderator analysis in meta-analysis
Moderator analysis in meta-analysisModerator analysis in meta-analysis
Moderator analysis in meta-analysis
 
Fixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisFixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysis
 
Inverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's QInverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's Q
 
Data extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisData extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysis
 
Introduction & rationale for meta-analysis
Introduction & rationale for meta-analysisIntroduction & rationale for meta-analysis
Introduction & rationale for meta-analysis
 
Types of correlation coefficients
Types of correlation coefficientsTypes of correlation coefficients
Types of correlation coefficients
 
Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Checking for normality (Normal distribution)
Checking for normality (Normal distribution)
 
Analysis of small datasets
Analysis of small datasetsAnalysis of small datasets
Analysis of small datasets
 
A introduction to non-parametric tests
A introduction to non-parametric testsA introduction to non-parametric tests
A introduction to non-parametric tests
 
Kolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testKolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit test
 
Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification) Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification)
 
Use of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literatureUse of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literature
 
Critical Appraisal of health literature
Critical Appraisal of health literatureCritical Appraisal of health literature
Critical Appraisal of health literature
 

Recently uploaded

Aspirin presentation slides by Dr. Rewas Ali
Aspirin presentation slides by Dr. Rewas AliAspirin presentation slides by Dr. Rewas Ali
Aspirin presentation slides by Dr. Rewas AliRewAs ALI
 
High Profile Call Girls Coimbatore Saanvi☎️ 8250192130 Independent Escort Se...
High Profile Call Girls Coimbatore Saanvi☎️  8250192130 Independent Escort Se...High Profile Call Girls Coimbatore Saanvi☎️  8250192130 Independent Escort Se...
High Profile Call Girls Coimbatore Saanvi☎️ 8250192130 Independent Escort Se...narwatsonia7
 
CALL ON ➥9907093804 🔝 Call Girls Hadapsar ( Pune) Girls Service
CALL ON ➥9907093804 🔝 Call Girls Hadapsar ( Pune)  Girls ServiceCALL ON ➥9907093804 🔝 Call Girls Hadapsar ( Pune)  Girls Service
CALL ON ➥9907093804 🔝 Call Girls Hadapsar ( Pune) Girls ServiceMiss joya
 
Call Girls Service Navi Mumbai Samaira 8617697112 Independent Escort Service ...
Call Girls Service Navi Mumbai Samaira 8617697112 Independent Escort Service ...Call Girls Service Navi Mumbai Samaira 8617697112 Independent Escort Service ...
Call Girls Service Navi Mumbai Samaira 8617697112 Independent Escort Service ...Call girls in Ahmedabad High profile
 
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...indiancallgirl4rent
 
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...narwatsonia7
 
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls ServiceKesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Servicemakika9823
 
Bangalore Call Girls Hebbal Kempapura Number 7001035870 Meetin With Bangalor...
Bangalore Call Girls Hebbal Kempapura Number 7001035870  Meetin With Bangalor...Bangalore Call Girls Hebbal Kempapura Number 7001035870  Meetin With Bangalor...
Bangalore Call Girls Hebbal Kempapura Number 7001035870 Meetin With Bangalor...narwatsonia7
 
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort ServiceCall Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Serviceparulsinha
 
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night EnjoyCall Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoybabeytanya
 
Call Girl Bangalore Nandini 7001305949 Independent Escort Service Bangalore
Call Girl Bangalore Nandini 7001305949 Independent Escort Service BangaloreCall Girl Bangalore Nandini 7001305949 Independent Escort Service Bangalore
Call Girl Bangalore Nandini 7001305949 Independent Escort Service Bangalorenarwatsonia7
 
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% SafeBangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safenarwatsonia7
 
VIP Mumbai Call Girls Hiranandani Gardens Just Call 9920874524 with A/C Room ...
VIP Mumbai Call Girls Hiranandani Gardens Just Call 9920874524 with A/C Room ...VIP Mumbai Call Girls Hiranandani Gardens Just Call 9920874524 with A/C Room ...
VIP Mumbai Call Girls Hiranandani Gardens Just Call 9920874524 with A/C Room ...Garima Khatri
 
Call Girl Coimbatore Prisha☎️ 8250192130 Independent Escort Service Coimbatore
Call Girl Coimbatore Prisha☎️  8250192130 Independent Escort Service CoimbatoreCall Girl Coimbatore Prisha☎️  8250192130 Independent Escort Service Coimbatore
Call Girl Coimbatore Prisha☎️ 8250192130 Independent Escort Service Coimbatorenarwatsonia7
 
VIP Call Girls Pune Sanjana 9907093804 Short 1500 Night 6000 Best call girls ...
VIP Call Girls Pune Sanjana 9907093804 Short 1500 Night 6000 Best call girls ...VIP Call Girls Pune Sanjana 9907093804 Short 1500 Night 6000 Best call girls ...
VIP Call Girls Pune Sanjana 9907093804 Short 1500 Night 6000 Best call girls ...Miss joya
 
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore EscortsCall Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escortsvidya singh
 
Call Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night EnjoyCall Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night Enjoybabeytanya
 
Call Girls Yelahanka Bangalore 📲 9907093804 💞 Full Night Enjoy
Call Girls Yelahanka Bangalore 📲 9907093804 💞 Full Night EnjoyCall Girls Yelahanka Bangalore 📲 9907093804 💞 Full Night Enjoy
Call Girls Yelahanka Bangalore 📲 9907093804 💞 Full Night Enjoynarwatsonia7
 
♛VVIP Hyderabad Call Girls Chintalkunta🖕7001035870🖕Riya Kappor Top Call Girl ...
♛VVIP Hyderabad Call Girls Chintalkunta🖕7001035870🖕Riya Kappor Top Call Girl ...♛VVIP Hyderabad Call Girls Chintalkunta🖕7001035870🖕Riya Kappor Top Call Girl ...
♛VVIP Hyderabad Call Girls Chintalkunta🖕7001035870🖕Riya Kappor Top Call Girl ...astropune
 
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...Taniya Sharma
 

Recently uploaded (20)

Aspirin presentation slides by Dr. Rewas Ali
Aspirin presentation slides by Dr. Rewas AliAspirin presentation slides by Dr. Rewas Ali
Aspirin presentation slides by Dr. Rewas Ali
 
High Profile Call Girls Coimbatore Saanvi☎️ 8250192130 Independent Escort Se...
High Profile Call Girls Coimbatore Saanvi☎️  8250192130 Independent Escort Se...High Profile Call Girls Coimbatore Saanvi☎️  8250192130 Independent Escort Se...
High Profile Call Girls Coimbatore Saanvi☎️ 8250192130 Independent Escort Se...
 
CALL ON ➥9907093804 🔝 Call Girls Hadapsar ( Pune) Girls Service
CALL ON ➥9907093804 🔝 Call Girls Hadapsar ( Pune)  Girls ServiceCALL ON ➥9907093804 🔝 Call Girls Hadapsar ( Pune)  Girls Service
CALL ON ➥9907093804 🔝 Call Girls Hadapsar ( Pune) Girls Service
 
Call Girls Service Navi Mumbai Samaira 8617697112 Independent Escort Service ...
Call Girls Service Navi Mumbai Samaira 8617697112 Independent Escort Service ...Call Girls Service Navi Mumbai Samaira 8617697112 Independent Escort Service ...
Call Girls Service Navi Mumbai Samaira 8617697112 Independent Escort Service ...
 
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
(Rocky) Jaipur Call Girl - 9521753030 Escorts Service 50% Off with Cash ON De...
 
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
VIP Call Girls Tirunelveli Aaradhya 8250192130 Independent Escort Service Tir...
 
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls ServiceKesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
Kesar Bagh Call Girl Price 9548273370 , Lucknow Call Girls Service
 
Bangalore Call Girls Hebbal Kempapura Number 7001035870 Meetin With Bangalor...
Bangalore Call Girls Hebbal Kempapura Number 7001035870  Meetin With Bangalor...Bangalore Call Girls Hebbal Kempapura Number 7001035870  Meetin With Bangalor...
Bangalore Call Girls Hebbal Kempapura Number 7001035870 Meetin With Bangalor...
 
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort ServiceCall Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
 
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night EnjoyCall Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Vashi Mumbai📲 9833363713 💞 Full Night Enjoy
 
Call Girl Bangalore Nandini 7001305949 Independent Escort Service Bangalore
Call Girl Bangalore Nandini 7001305949 Independent Escort Service BangaloreCall Girl Bangalore Nandini 7001305949 Independent Escort Service Bangalore
Call Girl Bangalore Nandini 7001305949 Independent Escort Service Bangalore
 
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% SafeBangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
 
VIP Mumbai Call Girls Hiranandani Gardens Just Call 9920874524 with A/C Room ...
VIP Mumbai Call Girls Hiranandani Gardens Just Call 9920874524 with A/C Room ...VIP Mumbai Call Girls Hiranandani Gardens Just Call 9920874524 with A/C Room ...
VIP Mumbai Call Girls Hiranandani Gardens Just Call 9920874524 with A/C Room ...
 
Call Girl Coimbatore Prisha☎️ 8250192130 Independent Escort Service Coimbatore
Call Girl Coimbatore Prisha☎️  8250192130 Independent Escort Service CoimbatoreCall Girl Coimbatore Prisha☎️  8250192130 Independent Escort Service Coimbatore
Call Girl Coimbatore Prisha☎️ 8250192130 Independent Escort Service Coimbatore
 
VIP Call Girls Pune Sanjana 9907093804 Short 1500 Night 6000 Best call girls ...
VIP Call Girls Pune Sanjana 9907093804 Short 1500 Night 6000 Best call girls ...VIP Call Girls Pune Sanjana 9907093804 Short 1500 Night 6000 Best call girls ...
VIP Call Girls Pune Sanjana 9907093804 Short 1500 Night 6000 Best call girls ...
 
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore EscortsCall Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
Call Girls Horamavu WhatsApp Number 7001035870 Meeting With Bangalore Escorts
 
Call Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night EnjoyCall Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night Enjoy
Call Girl Number in Panvel Mumbai📲 9833363713 💞 Full Night Enjoy
 
Call Girls Yelahanka Bangalore 📲 9907093804 💞 Full Night Enjoy
Call Girls Yelahanka Bangalore 📲 9907093804 💞 Full Night EnjoyCall Girls Yelahanka Bangalore 📲 9907093804 💞 Full Night Enjoy
Call Girls Yelahanka Bangalore 📲 9907093804 💞 Full Night Enjoy
 
♛VVIP Hyderabad Call Girls Chintalkunta🖕7001035870🖕Riya Kappor Top Call Girl ...
♛VVIP Hyderabad Call Girls Chintalkunta🖕7001035870🖕Riya Kappor Top Call Girl ...♛VVIP Hyderabad Call Girls Chintalkunta🖕7001035870🖕Riya Kappor Top Call Girl ...
♛VVIP Hyderabad Call Girls Chintalkunta🖕7001035870🖕Riya Kappor Top Call Girl ...
 
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...
💎VVIP Kolkata Call Girls Parganas🩱7001035870🩱Independent Girl ( Ac Rooms Avai...
 

Kruskal Wallis test, Friedman test, Spearman Correlation

  • 1. Kruskal-Wallis test Friedman test Spearman’s Correlation Dr. S. A. Rizwan, M.D., Public Health Specialist, Saudi Board of Preventive Medicine, Riyadh, Kingdom of Saudi Arabia. With thanks to Dr. Tajali Nazir Shora
  • 2. Checklist of four questions • Q1. What scales of measurement has been used? • Q2. Which hypothesis has been tested? • Q3. If the hypothesis of difference has been tested, are the samples independent or dependent? • Q4. How many sets of measures are involved? 2
  • 4. KW test • The Kruskal-Wallis test is a nonparametric test that can be used to determine whether three or more independent samples were selected from populations having the same distribution. H0: There is no difference in the group medians Ha: There is a difference in the group medians 4
  • 5. KW test • This test is appropriate for use under the following circumstances: – we have three or more conditions that you want to compare; – each condition is performed by a different group of participants; – the data do not meet the requirements for a parametric test. 5
  • 6. Requirements • The data: – not normally distributed; – if the variances for the different conditions are markedly different; – if the data are measurements on an ordinal scale. • If the data meet the requirements for a parametric test, it is better to use a one-way independent-measures Analysis of Variance (ANOVA) 6
  • 7. Given three or more independent samples, the test statistic H for the Kruskal-Wallis test is Where: N represents the number of participants, Tc is the rank total for each group nc is the number of participants in each group Reject the null hypothesis when H is greater than the critical number. (always use a right tail test.) KW test 7
  • 8. Procedure 1 • Combine the observations of the various groups 2 • Arrange them in order of magnitude from lowest to highest 3 • Assign ranks to each of the observations and replace them in each of the groups 4 • Original ratio data has therefore been converted into ordinal or ranked data 5 • Ranks are summed in each group and the test statistic, H is computed 6 • Ranks assigned to observations in each of the groups are added separately to give rank sums 8
  • 9. Example • Does physical exercise alleviate depression? – We find some depressed people and check that they are all equivalently depressed to begin with. Then we allocate each person randomly to one of three groups: • no exercise; • 20 minutes of jogging per day; or • 60 minutes of jogging per day. – At the end of a month, we ask each participant to rate how depressed they now feel, on a Likert scale that runs from 1 ("totally miserable") through to 100 (ecstatically happy"). 9
  • 10. Appropriate test? • We have three separate groups of participants. • In each group each participant gives us a single score on a rating scale. (Ratings are examples of an ordinal scale of measurement, and so the data are not suitable for a parametric test) 10
  • 11. KW test The Kruskal-Wallis test will tell us if the differences between the groups are so large that they are unlikely to have occurred by chance. 11
  • 13. Step 1: Rank all of the scores 13
  • 14. 14
  • 15. Step 2: Find "Tc", the total of the ranks for each group. Just add together all of the ranks for each group in turn. • Tc1 (the rank total for the "no exercise" group) is 76.5. • Tc2 (the rank total for the "20 minutes" group) is 79.5. • Tc3 (the rank total for the "60 minutes" group) is 144. 15
  • 16. Step 3: Find "H". 16
  • 18. 18
  • 19. Step 4: Calculate the degrees of freedom • The degrees of freedom is the number of groups minus one. Degrees of Freedom = Number of Groups - 1 • Here we have three groups, and so we have 2 d.f. 19
  • 20. Step 5: Assess the significance of H • Assessing the significance of H depends on – the number of participants and – the number of groups. 20
  • 21. KW test • Three groups, with ≤ 5 participants in each group, then use the special table for small sample sizes. • For more than five participants per group, treat H as Chi-Square. 21
  • 22. 22
  • 23. 23
  • 24. KW test • H is statistically significant if it is equal to or larger than the critical value of Chi-Square for particular df • Here, we have 8 participants per group, and so we treat H as Chi-Square. • H is 7.27, with 2 df 24
  • 25. KW test • Look along the row that corresponds to number of degrees of freedom. • We look along the row for 2 df • We compare our obtained value of H to each of the critical values in that row of the table, starting on the left hand side and stopping once our value of H is no longer equal to or larger than the critical value. 25
  • 26. KW test • So here, we start by comparing our H of 7.27 to 5.99. With 2 degrees of freedom, a value of Chi- Square as large as 5.99 is likely to occur by chance only 5 times in a hundred: i.e. it has a p of .05. • Our obtained value of 7.27 is even larger than this, and so this tells us that our value of H is even less likely to occur by chance. • Our H will occur by chance with a probability of less than 0.05. 26
  • 27. KW test • Move on, and compare our H to the next value in the row, 9.21. 9.21 will occur by chance one time in a hundred, i.e. with a p of .01. However, our H of 7.27 is less than 9.21, not bigger than it. • This tells us that our value of H is not so large that it is likely to occur with a probability of 0.01. 27
  • 28. KW test • The likelihood of obtaining a value of H as large as the one we've found, purely by chance, is somewhere between 0.05 and 0.01 - i.e. pretty unlikely, and so we would conclude that there is a difference of some kind between our three groups. 28
  • 29. KW test • Note that the Kruskal-Wallis test merely tells you that the groups differ in some way: you need to inspect the group means or medians • However in this particular case, the interpretation seems fairly straightforward: exercise does seem to reduce self-reported depression, but only in the case of participants who are doing 60 minutes. • There seems to be no difference between those participants who took 20 minutes of exercise per day, and those who did not exercise at all. 29
  • 30. KW test • We could write this up as follows: • "A Kruskal-Wallis test revealed that there was a significant effect of exercise on depression levels (H (2) = 7.27, p < .05). • Inspection of the group means suggests that compared to the "no exercise" control condition, depression was significantly reduced by 60 minutes of daily exercise, but not by 20 minutes of exercise". 30
  • 31. KW test • The post hoc test for a significant KW is called Dunn’s test with Bonferroni correction for multiple testing 31
  • 33. Friedman Test • This is similar to the Wilcoxon singed rank test, except that we can use it with three or more conditions. • Each subject participates in all of the different conditions of the experiment. 33
  • 34. FT • Does background music affect the performance of Laboratory workers? • We take a group of five workers, and measure each worker's productivity (in terms of the number of Stool Microscopies per hour) thrice – once while the worker is listening to “Easy- listening music’, – once while the worker is listening to ‘Marching Band music,’ and – once while the same worker is working in ‘Silence.’34
  • 35. Step 1: Rank each subject's scores individually Worker No Music Easy Listening Marching Band Raw Score Ranked Score Raw Score Ranked Score Raw Score Ranked Score 1 4 1 5 2 6 3 2 2 1 7 2.5 7 2.5 3 6 1.5 6 1.5 8 3 4 3 1 7 3 5 2 5 3 1 8 2 9 3 35
  • 36. Step 2: Find the rank total for each condition Worker No Music Easy Listening Marching Band Raw Score Ranked Score Raw Score Ranked Score Raw Score Ranked Score 1 4 1 5 2 6 3 2 2 1 7 2.5 7 2.5 3 6 1.5 6 1.5 8 3 4 3 1 7 3 5 2 5 3 1 8 2 9 3 Total 5.5 11 13.5 36
  • 37. Step 3: Work out χr2 • Where : – C is the number of conditions, – N is the number of subjects – ΣTc2 is the sum of the squared rank totals for each condition. 37
  • 38. FT • To get ΣTc2: • Take each rank total and square it. Worker No Music Easy Listening Marching Band Raw Score Ranked Score Raw Score Ranked Score Raw Score Ranked Score 1 4 1 5 2 6 3 2 2 1 7 2.5 7 2.5 3 6 1.5 6 1.5 8 3 4 3 1 7 3 5 2 5 3 1 8 2 9 3 Total 5.5 11 13.5 Square of Rank Total 30.25 121 182.25 38
  • 39. FT 39
  • 40. Step 4: Calculate degrees of freedom • The degrees of freedom are given by the number of conditions minus one. C - 1 = 3 - 1 = 2. 40
  • 41. Step 5: Assess the statistical significance of Xr2 • It depends on the number of subjects and the number of groups. – more than 9 subjects, we can use a Chi-Square table. – less than nine subjects, special tables of critical values are available. • Compare obtained Xr2 value to the critical value of Chi-Square for df 41
  • 43. FT • If your obtained value of Xr2 is bigger than the critical Chi-Square value, the difference between conditions is statistically significant. • As with the Kruskal- Wallis test, Friedman's test only tells you that some kind of difference exists; • Inspection of the median score for each condition will usually be enough • Post hoc test for FT is called Dunn’s test 43
  • 45. Types of correlation • Pearson’s • Spearman’s • Hoeffding’s D • Distance correlation • Mutual Information and the Maximal Information Coefficient 45
  • 46. Correlation coefficient • A correlation coefficient is a succinct (single- number) measure of the strength of association between two variables. • There are various types of correlation coefficient for different purposes. • Commonly used correlation coeff. are – Pearson's r – Spearman's rho 46
  • 47. Difference between Pearson’s r and Spearman’s rho • Spearman’s rho makes fewer assumptions about the nature of the data on which the correlation is to be performed • The data need only be measured on an ordinal scale • Pearson’s “r” is a measure of the strength of the linear relationship between two variables • Spearman’s rho is a measure of the strength of the monotonic relationship between them. 47
  • 48. Difference between Pearson’s r and Spearman’s rho • If a monotonic relationship exists, it simply means that one of the variables increases (or decreases) by some amount when the value of the other variable changes. • A linear relationship is thus a special case of a monotonic relationship. • Thus, if there is a monotonic but non-linear relationship between two variables, it’s better to use Spearman’s rho because Pearson’s “r” will tend to underestimate the strength of the relationship. 48
  • 49. Difference between Pearson’s r and Spearman’s rho • Spearman’s rho won’t be “fooled” by the fact that the relationship isn’t a linear one. 49
  • 51. Monotonic and non-monotonic • Monotonic variables increase (or decrease) in the same direction, but not always at the same rate. • Linear variables increase (or decrease) in the same direction at the same rate. 51
  • 52. How to decide a correlation test? • Before running a test, you should make a scatter plot first to view the overall pattern of your data. • The strength and direction of a monotonic relationship between two variables can be measured by the Spearman Rank-Order Correlation. • If your variables are monotonic and linear, a more appropriate test might be Pearson’s Correlation as long as the assumptions for Pearson’s are met. for example, if your data is highly skewed, has high kurtosis, or is heteroscedastic, you cannot use Pearson’s. You can, however, still use Spearman’s, which is a non- parametric test. 52
  • 53. Example for Spearman’s rho • Vitamin treatment enhances the memory of people who take it • If there is a correlation between the number of vitamin treatments that a subject has had, and their performance on some memory test. We would have two scores for each subject: number of vitamin treatments, and that person’s memory-test score. 53
  • 56. Problems In Interpreting Correlations • Correlation does not imply causality • Factors affecting the size of the correlation – The smaller the sample, the more likely it is to show sampling variation, and the more variable the correlation can be. – Thus, when a correlation coefficient is calculated, it does not represent the one-and-only correlation between those two variables for that population. – Different samples might produce higher or lower correlations. 56
  • 57. Sample and population correlations Here are the limits within which 80% of sample r’s will fall, when the true correlation (i.e., in the population) is zero 57
  • 58. Requirements for Pearson’s correlation Linearity of the relationship Homoscedasticity Effect of discontinuous distributions 58
  • 59. Linearity of the relationship • Pearson’s r is a measure of the linear relationship between two variables and Spearman’s rho is a measure of the monotonic relationship between them. • Two variables may have a very strong relationship to each other, but of a non-linear or non-monotonic kind (for example they might have a curvilinear relationship). • If so, the correlation coefficient will underestimate the strength of the relationship between the two variables. • This is why you should always make a scatterplot of the data, so that you can look at the trend before calculating a correlation. 59
  • 60. Homoscedasticity • Homoscedasticity (equal variability): For Pearsons’ r to be valid, scores should have a reasonably constant amount of variability at all points in their distribution 60
  • 62. Take home messages • KW test NP equivalent of One Way ANOVA, >2 independent groups • FT test NP equivalent of Repeated Measures ANOVA, >2 paired groups • Spearman’s rank order correlation NP equivalent of Pearson’s correlation for monotonic relationships 62
  • 63. Thank you Kindly email your queries to sarizwan1986@outlook.com 63