SlideShare uma empresa Scribd logo
1 de 56
Mann – Whitney U test
• It is a non-parametric statistical method
that compares two groups that are
independent of sample data.
• It is used to test the null hypothesis that
the two samples have similar median or
whether observations in one sample are
likely to have larger values than those in
other sample
• The parametric equivalent of Mann-
Whitney U test is t- test of unrelated
sample
Assumption
• The two samples are random
• Two samples are independent of each
other
• Measurement is of ordinal type
thus observations are arranged
in ranks
Steps to perform
• The null hypothesis and alternative
hypothesis are identified.
• The significance level [alpha] related with
null hypothesis is stated. Usually alpha is
set at 5% and therefore, the confidence
level is 95 %
• All of the observations are arranged in
terms of magnitude.
• The Ra denotes the sum of the ranks in
group a
• The Rb denotes the sum of ranks in
group b
• U statistics is determined by
Verify Ua + Ub =
nanb
• Evaluate U = min [ Ua,Ub]
• The obtained value is smaller of the
two statistics
• Using table of critics evaluate the
possibility of obtaining value of U or
lower
• The critical value is compared with
the obtained value.
• The results are then interpreted to
draw conclusion.
Perform the Mann-Whitney U
test
Treatment A Treatment B
3 9
4 7
2 5
6 10
2 6
5 8
Why Mann-Whitney U test
• Student t test I s preferred for this data
but
• Data are not normal
• Sample size is small
Obsevations Arranged in order
1 2
2 2
3 3
4 4
5 5
6 5
7 6
8 6
9 7
10 8
11 9
12 10
There is no difference between the
rank of each treatment
Rank observation
1.5 2
1.5 2
3 3
4 4
5.5 5
5.5 5
7.5 6
7.5 6
9 7
10 8
11 9
12 10
TA Rank a Tb Rank b
3 3 9 11
4 4 7 9
2 1.5 5 5.5
6 7.5 10 12
2 1.5 6 7.5
5 5.5 8 10
Sum of Ra 23 Sum of Rb 55
Cross check
• Ua= 23-
6[6+1]/2
• = 23- 42/2
• = 23-21
• = 2
• Ub = 55- 6[
6+1]/2
• = 55-21
• = 34
We have to choose lowest value
hence U= 2
• Use u table= critical value
• N1=6 n2=6
• U critics from table = 5
• We should get the calculated value as
equal to or greater than table value.
• Here we got lesser value than table
value hence null hypothesis is
rejected.
Wilcoxon Rank sum test
• It is non-parametric dependent samples t
test that can be performed on ranked or
ordinal data.
• Mann-Whitney Wilcoxon test
• It is used to test null hypothesis
• It is used to assess whether the
distribution of observations obtained
between two separate groups on a
dependent variable are systematically
different from one another.
• It is used to evaluate the populations that
are equally distributed or not
• A population is set of similar items or
data obtained from experiment
• Rank basically two types of rank given Ra
large and Rb small.
It can be used in the place of
• One sample t test
• Paired t test
• For ordered categorical data where a
numerical scale is in appropriate but
where it is possible to rank the
observations
General way to perform test
• State the null hypothesis Ho and
the alternative hypothesis H1
• Define alpha level
• Define decision rule
• Calculate Z statistics
• Calculate results
• Make conclusion
For paired data
• State the null hypothesis
• Calculate each paired difference
• Rank di ignoring signs [ assign rank 1
to the smallest , rank 2 to the next etc ]
• Designate each rank along with its sign.
Based on the sign of di
• Calculate W+ the sum of the ranks of
positive di and W- the sum of the ranks of
the negative di.
• [W+] + [W-] = n [n+1]2
Problem
Group A p1 Group B p2
41 66
56 43
64 72
42 62
50 55
70 80
44 74
57 75
63 77
78
N1=9 N2=10
Group s = P1 + P2 Group Rank
41 A 1
42 A 2
43 B 3
44 A 4
50 A 5
55 B 6
56 A 7
57 A 8
62 B 9
63
64
A
A
10
11
66 B 12
70 A 13
72 B 14
Group s = P1 + P2 Group Rank
74 B 15
75 B 16
77 B 17
78 B 18
80 B 19
Group A Rank sum
Group s = P1 + P2 Group Rank
41 A 1
42 A 2
44 A 4
50 A 5
56 A 7
57 A 8
63
64
A
A
10
11
70 A 13
SUM OF Rank a 61
Group B Rank sum
Group s = P1 + P2 Group Rank
43 B 3
55 B 6
62 B 9
66 B 12
72 B 14
74 B 15
75 B 16
77 B 17
78 B 18
80 B 19
Sum of Group B 129
Small Rank sum is chosen:
61
• μr=n1 [n1+ n2 + 1] /2
• μr= 9 [ 9+ 10+1 ] /2
• μr= 9 [20]/2 = 180/2 =
90
• σr =
Krushal –Wallis H-test
• H test
• Non parametric statistical procedure used
for comparing more than two
independent sample
• Parametric equivalent to this test is one
way ANOVA
• H test is for non-normally distributed data.
Krushal –Wallis H-test
• It is a generalization of the Mann-
Whitney test which is a test for
determining whether the two samples
selected are taken from the same
population.
• The p values in both the Krushal –Wallis
and the Mann-Whitney tests are equal
• It is used for samples to evaluate their
degree of association.
Description of sample
• 3 independently drawn sample.
• Data in each sample should be more
than 5
• Both distribution and population have
same shape
• Data must be ranked
• Samples must be independent
• K independent sample k> 3 or K=3
Characteristics
• Test statistics is applied when data is not
normally distributed
• Test uses k samples of data.
• Test can be used for one nominal and one
ranked variable
• Significance level is denoted with α
• Data is ranked and df is n-1
• The rank of each sample is calculated
• Average rank is applied in case if there is tie
Problem
• Null hypothesis
• K independent sample drawn from
population which are identically
distributed.
• Alternative hypothesis
• K independent sample drawn from
population which are not identically
distributed.
Notation
Sampl1 obseravtion
1 Xxx Xxx Xxx Xxx Xxx
2 Xxx Xxx Xxx Xxx Xxx Xxx xxx
3 Xxx Xxx Xxx xxx Xxx Xxx Xxx Xxx
K Xxx Xxx Xxx Xxx Xxx Xxx xxx
Observation more than
five
K =3 or K>3
Procedure
• Define null H0 and alternative H1
hypothesis.
• Rank the sample observations in
the combined series.
• Compute Ti sum of ranks
• Apply chi square variate with K-1
degree of freedom
• K = number of sample
• Conclusion
• Take the table value from Chi 2 [k-1][α]
• If calculated H value > Chi 2 [k-1][α]
• We reject H0
Use krushal wallis H test at 5 %
level of significance if three
methods are equally effective
Metho
d 1
99 64 101 85 79 88 97 95 90 100
Metho
d 2
83 102 125 61 91 96 94 89 93 75
Metho
d 3
89 98 56 105 87 90 87 101 76 89
Step I
• Null hypotheis
• H0 : μ a = μ b = μc
• Three methods are equally effective
• Alternative hypothesis H1= at least two of
the μ are different
• Three methods are not equally effective
• n1+n2+n3=30
Step II
Met
ho
d 1
99 64 101 85 79 88 97 95 90 100 T1
Rank 24 3 26.5 8 6 11 22 20 15.5 25 161
Met
hod
2
83 102 125 61 91 96 94 89 93 75 T2
Rank 7 28 30 2 17 21 19 13 18 4 159
Met
hod
3
89 98 56 105 87 90 87 101 76 89 T3
Rank 13 23 1 29 9.5 15.5 9.5 26.5 5 13 145
n1 10 n2 10 n3 10
Compute statistics H
Compute statistics H
• Df = K-1 =3-1=2
• Table value = 5.99
• Calculated value is 0.196
• Since the calculated H value
• 0.196 < 5.99
• We fail to reject H0
• All the teaching methods are
equal
Friedman test
• It is a non parametric test developed
and implemented by Milton
Friedman.
• It is used for finding differences in
treatments across multiple attempts by
comparing three or more dependent
samples.
• It is an alternative to ANOVA when
the assumption of normality is not
met
Friedman test
• The test is calculated using ranks of
data instead of unprocessed data
• It is used to test for differences between
groups when the dependent variable
being measured is ordinal.
• It can also be used for continuous data
that has marked as deviations from
normality with repeated measures.
• It is a repeated measures of ANOVA
that can be performed on the ordinal
data.
Descriptions and requirements
• Dependent variable should be measured at
the ordinal or continuous level
• Data comes from a single group measured
on at least three different occasions.
• Random sampling method must be used
• All of the pairs are independent.
• Observations are ranked within blocks with
no ties
• Samples need not be normally distributed.
Problem ordinal data is given .is
there a difference between weeks
1,2,3 using alpha as 0.05
week1 Week 2 Week 3
27 20 34
2 8 31
4 14 3
18 36 23
7 21 30
9 22 6
Steps
• Define null and alternative
hypothesis.
• State alpha
• Calculate degree of freedom
• State decision rule
• Calculate the statistic
• State result
• conclusion
Step 1
• Null hypothesis
• H0 there is no difference between
three conditions.
• Alternative hypotheis
• H1 there is a difference between
three conditions
Step 2
• State
alpha
• 0.05
Step3
• Degree of
freedom’
• df=K-1
• K = no of groups
• =3-1=2
• df=2
Step 4
• Decision rule – chi square
table
Chi square is greater than 5.991 than you
can reject the null hypothesis
Step 5Rank the value
Week 1 Week 2 Week 3
2 1 3
1 2 3
2 3 1
1 3 2
1 2 3
2 3 1
R=9 R=14 R=13
Step 6 Calculation of statistics
Step 7.state result
• If chi square is greater than 5.991 than
reject the null hypothesis.
• Calculated chi square value is 2.33
• Calculated value is lesser than table
value hence fail to reject null
hypotheis.
• Hence there is no difference among the
three group.
Mann-Whitney U & Friedman Tests Explained in 40 Characters

Mais conteúdo relacionado

Semelhante a Mann-Whitney U & Friedman Tests Explained in 40 Characters

Non parametric test
Non parametric testNon parametric test
Non parametric testNeetathakur3
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statisticsAnchal Garg
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics testsrodrick koome
 
t distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testt distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testBPKIHS
 
3.1 non parametric test
3.1 non parametric test3.1 non parametric test
3.1 non parametric testShital Patil
 
Kruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationKruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationRizwan S A
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptxChinna Chadayan
 
Presentation non parametric
Presentation non parametricPresentation non parametric
Presentation non parametricIrfan Hussain
 
Non-parametric tests:correlation.pptx
Non-parametric tests:correlation.pptxNon-parametric tests:correlation.pptx
Non-parametric tests:correlation.pptxOshinBhatia2
 
Introduction to Business Analytics Course Part 9
Introduction to Business Analytics Course Part 9Introduction to Business Analytics Course Part 9
Introduction to Business Analytics Course Part 9Beamsync
 
Chapter 3 Ken Black 2.ppt
Chapter 3 Ken Black 2.pptChapter 3 Ken Black 2.ppt
Chapter 3 Ken Black 2.pptNurinaSWGotami
 
Non-parametric Statistical tests for Hypotheses testing
Non-parametric Statistical tests for Hypotheses testingNon-parametric Statistical tests for Hypotheses testing
Non-parametric Statistical tests for Hypotheses testingSundar B N
 

Semelhante a Mann-Whitney U & Friedman Tests Explained in 40 Characters (20)

Non parametric test
Non parametric testNon parametric test
Non parametric test
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
Hypothesis Testing.pptx
Hypothesis Testing.pptxHypothesis Testing.pptx
Hypothesis Testing.pptx
 
Stats - Intro to Quantitative
Stats -  Intro to Quantitative Stats -  Intro to Quantitative
Stats - Intro to Quantitative
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
t distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testt distribution, paired and unpaired t-test
t distribution, paired and unpaired t-test
 
3.1 non parametric test
3.1 non parametric test3.1 non parametric test
3.1 non parametric test
 
Kruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationKruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman Correlation
 
Hypothsis testing
Hypothsis testingHypothsis testing
Hypothsis testing
 
biostat__final_ppt_unit_3.pptx
biostat__final_ppt_unit_3.pptxbiostat__final_ppt_unit_3.pptx
biostat__final_ppt_unit_3.pptx
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptx
 
Presentation non parametric
Presentation non parametricPresentation non parametric
Presentation non parametric
 
Chi square test
Chi square testChi square test
Chi square test
 
Non-parametric tests:correlation.pptx
Non-parametric tests:correlation.pptxNon-parametric tests:correlation.pptx
Non-parametric tests:correlation.pptx
 
Nonparametric Statistics
Nonparametric StatisticsNonparametric Statistics
Nonparametric Statistics
 
Introduction to Business Analytics Course Part 9
Introduction to Business Analytics Course Part 9Introduction to Business Analytics Course Part 9
Introduction to Business Analytics Course Part 9
 
Chapter 3 Ken Black 2.ppt
Chapter 3 Ken Black 2.pptChapter 3 Ken Black 2.ppt
Chapter 3 Ken Black 2.ppt
 
Non-parametric Statistical tests for Hypotheses testing
Non-parametric Statistical tests for Hypotheses testingNon-parametric Statistical tests for Hypotheses testing
Non-parametric Statistical tests for Hypotheses testing
 
Descriptive statistics -review(2)
Descriptive statistics -review(2)Descriptive statistics -review(2)
Descriptive statistics -review(2)
 

Mais de SoujanyaLk1

Groups and Teams in Organization.pptx group dynamics and teams in the organiz...
Groups and Teams in Organization.pptx group dynamics and teams in the organiz...Groups and Teams in Organization.pptx group dynamics and teams in the organiz...
Groups and Teams in Organization.pptx group dynamics and teams in the organiz...SoujanyaLk1
 
Module 3 oboganization behaviour of Bangalore university
Module 3 oboganization behaviour of Bangalore universityModule 3 oboganization behaviour of Bangalore university
Module 3 oboganization behaviour of Bangalore universitySoujanyaLk1
 
t test for statistics 1st sem mba sylabus
t test for statistics 1st sem mba sylabust test for statistics 1st sem mba sylabus
t test for statistics 1st sem mba sylabusSoujanyaLk1
 
correlation for statistics for 2nd year students
correlation for statistics for 2nd year studentscorrelation for statistics for 2nd year students
correlation for statistics for 2nd year studentsSoujanyaLk1
 
NBFcs in finance specialization in MBA 3rd semester students
NBFcs in finance specialization in MBA 3rd semester studentsNBFcs in finance specialization in MBA 3rd semester students
NBFcs in finance specialization in MBA 3rd semester studentsSoujanyaLk1
 
stats for 1st sem MBA atudents hypothesis testing notes
stats  for 1st sem MBA atudents hypothesis testing notesstats  for 1st sem MBA atudents hypothesis testing notes
stats for 1st sem MBA atudents hypothesis testing notesSoujanyaLk1
 
licpresentation-new for mba 1st sem statistics
licpresentation-new for mba 1st sem statisticslicpresentation-new for mba 1st sem statistics
licpresentation-new for mba 1st sem statisticsSoujanyaLk1
 
DOC-20240131-indian financial system in third semester mba notes
DOC-20240131-indian financial system in third semester mba notesDOC-20240131-indian financial system in third semester mba notes
DOC-20240131-indian financial system in third semester mba notesSoujanyaLk1
 
presentation on nano for mba students for the presentation
presentation on nano for mba students for the presentationpresentation on nano for mba students for the presentation
presentation on nano for mba students for the presentationSoujanyaLk1
 
Role and features of satatistics and random experiment
Role and features of satatistics and random experimentRole and features of satatistics and random experiment
Role and features of satatistics and random experimentSoujanyaLk1
 
money market foe mba 3rd sem finance specialization
money market foe mba 3rd sem finance specializationmoney market foe mba 3rd sem finance specialization
money market foe mba 3rd sem finance specializationSoujanyaLk1
 
decision tree in statistics last chapter
decision tree in statistics last chapterdecision tree in statistics last chapter
decision tree in statistics last chapterSoujanyaLk1
 
Chap 1, IFS notes for mba 3rd sem finance specialization
Chap 1, IFS notes for mba 3rd sem finance specializationChap 1, IFS notes for mba 3rd sem finance specialization
Chap 1, IFS notes for mba 3rd sem finance specializationSoujanyaLk1
 
measure of dispersion in stats whichncomes in first chapter
measure of dispersion in stats whichncomes in first chaptermeasure of dispersion in stats whichncomes in first chapter
measure of dispersion in stats whichncomes in first chapterSoujanyaLk1
 
index numbers, which is required for the mba students
index numbers, which is required for the mba studentsindex numbers, which is required for the mba students
index numbers, which is required for the mba studentsSoujanyaLk1
 
trendanalysis for mba management students
trendanalysis for mba management studentstrendanalysis for mba management students
trendanalysis for mba management studentsSoujanyaLk1
 
skewness and curtosis in statistics noes, chapter number 1
skewness and curtosis in statistics noes, chapter number 1skewness and curtosis in statistics noes, chapter number 1
skewness and curtosis in statistics noes, chapter number 1SoujanyaLk1
 
binomial probability distribution for statistics andd mangement mba notes
binomial probability distribution for statistics andd mangement mba notesbinomial probability distribution for statistics andd mangement mba notes
binomial probability distribution for statistics andd mangement mba notesSoujanyaLk1
 
measures of central tendency in statistics which is essential for business ma...
measures of central tendency in statistics which is essential for business ma...measures of central tendency in statistics which is essential for business ma...
measures of central tendency in statistics which is essential for business ma...SoujanyaLk1
 
327953194-Strategic-Brand-Management.ppt
327953194-Strategic-Brand-Management.ppt327953194-Strategic-Brand-Management.ppt
327953194-Strategic-Brand-Management.pptSoujanyaLk1
 

Mais de SoujanyaLk1 (20)

Groups and Teams in Organization.pptx group dynamics and teams in the organiz...
Groups and Teams in Organization.pptx group dynamics and teams in the organiz...Groups and Teams in Organization.pptx group dynamics and teams in the organiz...
Groups and Teams in Organization.pptx group dynamics and teams in the organiz...
 
Module 3 oboganization behaviour of Bangalore university
Module 3 oboganization behaviour of Bangalore universityModule 3 oboganization behaviour of Bangalore university
Module 3 oboganization behaviour of Bangalore university
 
t test for statistics 1st sem mba sylabus
t test for statistics 1st sem mba sylabust test for statistics 1st sem mba sylabus
t test for statistics 1st sem mba sylabus
 
correlation for statistics for 2nd year students
correlation for statistics for 2nd year studentscorrelation for statistics for 2nd year students
correlation for statistics for 2nd year students
 
NBFcs in finance specialization in MBA 3rd semester students
NBFcs in finance specialization in MBA 3rd semester studentsNBFcs in finance specialization in MBA 3rd semester students
NBFcs in finance specialization in MBA 3rd semester students
 
stats for 1st sem MBA atudents hypothesis testing notes
stats  for 1st sem MBA atudents hypothesis testing notesstats  for 1st sem MBA atudents hypothesis testing notes
stats for 1st sem MBA atudents hypothesis testing notes
 
licpresentation-new for mba 1st sem statistics
licpresentation-new for mba 1st sem statisticslicpresentation-new for mba 1st sem statistics
licpresentation-new for mba 1st sem statistics
 
DOC-20240131-indian financial system in third semester mba notes
DOC-20240131-indian financial system in third semester mba notesDOC-20240131-indian financial system in third semester mba notes
DOC-20240131-indian financial system in third semester mba notes
 
presentation on nano for mba students for the presentation
presentation on nano for mba students for the presentationpresentation on nano for mba students for the presentation
presentation on nano for mba students for the presentation
 
Role and features of satatistics and random experiment
Role and features of satatistics and random experimentRole and features of satatistics and random experiment
Role and features of satatistics and random experiment
 
money market foe mba 3rd sem finance specialization
money market foe mba 3rd sem finance specializationmoney market foe mba 3rd sem finance specialization
money market foe mba 3rd sem finance specialization
 
decision tree in statistics last chapter
decision tree in statistics last chapterdecision tree in statistics last chapter
decision tree in statistics last chapter
 
Chap 1, IFS notes for mba 3rd sem finance specialization
Chap 1, IFS notes for mba 3rd sem finance specializationChap 1, IFS notes for mba 3rd sem finance specialization
Chap 1, IFS notes for mba 3rd sem finance specialization
 
measure of dispersion in stats whichncomes in first chapter
measure of dispersion in stats whichncomes in first chaptermeasure of dispersion in stats whichncomes in first chapter
measure of dispersion in stats whichncomes in first chapter
 
index numbers, which is required for the mba students
index numbers, which is required for the mba studentsindex numbers, which is required for the mba students
index numbers, which is required for the mba students
 
trendanalysis for mba management students
trendanalysis for mba management studentstrendanalysis for mba management students
trendanalysis for mba management students
 
skewness and curtosis in statistics noes, chapter number 1
skewness and curtosis in statistics noes, chapter number 1skewness and curtosis in statistics noes, chapter number 1
skewness and curtosis in statistics noes, chapter number 1
 
binomial probability distribution for statistics andd mangement mba notes
binomial probability distribution for statistics andd mangement mba notesbinomial probability distribution for statistics andd mangement mba notes
binomial probability distribution for statistics andd mangement mba notes
 
measures of central tendency in statistics which is essential for business ma...
measures of central tendency in statistics which is essential for business ma...measures of central tendency in statistics which is essential for business ma...
measures of central tendency in statistics which is essential for business ma...
 
327953194-Strategic-Brand-Management.ppt
327953194-Strategic-Brand-Management.ppt327953194-Strategic-Brand-Management.ppt
327953194-Strategic-Brand-Management.ppt
 

Último

ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 

Último (20)

ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 

Mann-Whitney U & Friedman Tests Explained in 40 Characters

  • 2. • It is a non-parametric statistical method that compares two groups that are independent of sample data. • It is used to test the null hypothesis that the two samples have similar median or whether observations in one sample are likely to have larger values than those in other sample • The parametric equivalent of Mann- Whitney U test is t- test of unrelated sample
  • 3. Assumption • The two samples are random • Two samples are independent of each other • Measurement is of ordinal type thus observations are arranged in ranks
  • 4. Steps to perform • The null hypothesis and alternative hypothesis are identified. • The significance level [alpha] related with null hypothesis is stated. Usually alpha is set at 5% and therefore, the confidence level is 95 % • All of the observations are arranged in terms of magnitude.
  • 5. • The Ra denotes the sum of the ranks in group a • The Rb denotes the sum of ranks in group b • U statistics is determined by Verify Ua + Ub = nanb
  • 6. • Evaluate U = min [ Ua,Ub] • The obtained value is smaller of the two statistics • Using table of critics evaluate the possibility of obtaining value of U or lower • The critical value is compared with the obtained value. • The results are then interpreted to draw conclusion.
  • 7. Perform the Mann-Whitney U test Treatment A Treatment B 3 9 4 7 2 5 6 10 2 6 5 8
  • 8. Why Mann-Whitney U test • Student t test I s preferred for this data but • Data are not normal • Sample size is small
  • 9. Obsevations Arranged in order 1 2 2 2 3 3 4 4 5 5 6 5 7 6 8 6 9 7 10 8 11 9 12 10
  • 10. There is no difference between the rank of each treatment Rank observation 1.5 2 1.5 2 3 3 4 4 5.5 5 5.5 5 7.5 6 7.5 6 9 7 10 8 11 9 12 10
  • 11. TA Rank a Tb Rank b 3 3 9 11 4 4 7 9 2 1.5 5 5.5 6 7.5 10 12 2 1.5 6 7.5 5 5.5 8 10 Sum of Ra 23 Sum of Rb 55
  • 13. • Ua= 23- 6[6+1]/2 • = 23- 42/2 • = 23-21 • = 2 • Ub = 55- 6[ 6+1]/2 • = 55-21 • = 34
  • 14. We have to choose lowest value hence U= 2 • Use u table= critical value • N1=6 n2=6 • U critics from table = 5 • We should get the calculated value as equal to or greater than table value. • Here we got lesser value than table value hence null hypothesis is rejected.
  • 15. Wilcoxon Rank sum test • It is non-parametric dependent samples t test that can be performed on ranked or ordinal data. • Mann-Whitney Wilcoxon test • It is used to test null hypothesis • It is used to assess whether the distribution of observations obtained between two separate groups on a dependent variable are systematically different from one another.
  • 16. • It is used to evaluate the populations that are equally distributed or not • A population is set of similar items or data obtained from experiment • Rank basically two types of rank given Ra large and Rb small.
  • 17. It can be used in the place of • One sample t test • Paired t test • For ordered categorical data where a numerical scale is in appropriate but where it is possible to rank the observations
  • 18. General way to perform test • State the null hypothesis Ho and the alternative hypothesis H1 • Define alpha level • Define decision rule • Calculate Z statistics • Calculate results • Make conclusion
  • 19. For paired data • State the null hypothesis • Calculate each paired difference • Rank di ignoring signs [ assign rank 1 to the smallest , rank 2 to the next etc ] • Designate each rank along with its sign. Based on the sign of di
  • 20. • Calculate W+ the sum of the ranks of positive di and W- the sum of the ranks of the negative di. • [W+] + [W-] = n [n+1]2
  • 21. Problem Group A p1 Group B p2 41 66 56 43 64 72 42 62 50 55 70 80 44 74 57 75 63 77 78 N1=9 N2=10
  • 22. Group s = P1 + P2 Group Rank 41 A 1 42 A 2 43 B 3 44 A 4 50 A 5 55 B 6 56 A 7 57 A 8 62 B 9 63 64 A A 10 11 66 B 12 70 A 13 72 B 14
  • 23. Group s = P1 + P2 Group Rank 74 B 15 75 B 16 77 B 17 78 B 18 80 B 19
  • 24. Group A Rank sum Group s = P1 + P2 Group Rank 41 A 1 42 A 2 44 A 4 50 A 5 56 A 7 57 A 8 63 64 A A 10 11 70 A 13 SUM OF Rank a 61
  • 25. Group B Rank sum Group s = P1 + P2 Group Rank 43 B 3 55 B 6 62 B 9 66 B 12 72 B 14 74 B 15 75 B 16 77 B 17 78 B 18 80 B 19 Sum of Group B 129
  • 26. Small Rank sum is chosen: 61 • μr=n1 [n1+ n2 + 1] /2 • μr= 9 [ 9+ 10+1 ] /2 • μr= 9 [20]/2 = 180/2 = 90 • σr =
  • 27.
  • 28.
  • 29. Krushal –Wallis H-test • H test • Non parametric statistical procedure used for comparing more than two independent sample • Parametric equivalent to this test is one way ANOVA • H test is for non-normally distributed data.
  • 30. Krushal –Wallis H-test • It is a generalization of the Mann- Whitney test which is a test for determining whether the two samples selected are taken from the same population. • The p values in both the Krushal –Wallis and the Mann-Whitney tests are equal • It is used for samples to evaluate their degree of association.
  • 31. Description of sample • 3 independently drawn sample. • Data in each sample should be more than 5 • Both distribution and population have same shape • Data must be ranked • Samples must be independent • K independent sample k> 3 or K=3
  • 32. Characteristics • Test statistics is applied when data is not normally distributed • Test uses k samples of data. • Test can be used for one nominal and one ranked variable • Significance level is denoted with α • Data is ranked and df is n-1 • The rank of each sample is calculated • Average rank is applied in case if there is tie
  • 33. Problem • Null hypothesis • K independent sample drawn from population which are identically distributed. • Alternative hypothesis • K independent sample drawn from population which are not identically distributed.
  • 34. Notation Sampl1 obseravtion 1 Xxx Xxx Xxx Xxx Xxx 2 Xxx Xxx Xxx Xxx Xxx Xxx xxx 3 Xxx Xxx Xxx xxx Xxx Xxx Xxx Xxx K Xxx Xxx Xxx Xxx Xxx Xxx xxx Observation more than five K =3 or K>3
  • 35. Procedure • Define null H0 and alternative H1 hypothesis. • Rank the sample observations in the combined series. • Compute Ti sum of ranks
  • 36. • Apply chi square variate with K-1 degree of freedom • K = number of sample • Conclusion • Take the table value from Chi 2 [k-1][α] • If calculated H value > Chi 2 [k-1][α] • We reject H0
  • 37. Use krushal wallis H test at 5 % level of significance if three methods are equally effective Metho d 1 99 64 101 85 79 88 97 95 90 100 Metho d 2 83 102 125 61 91 96 94 89 93 75 Metho d 3 89 98 56 105 87 90 87 101 76 89
  • 38. Step I • Null hypotheis • H0 : μ a = μ b = μc • Three methods are equally effective • Alternative hypothesis H1= at least two of the μ are different • Three methods are not equally effective • n1+n2+n3=30
  • 39. Step II Met ho d 1 99 64 101 85 79 88 97 95 90 100 T1 Rank 24 3 26.5 8 6 11 22 20 15.5 25 161 Met hod 2 83 102 125 61 91 96 94 89 93 75 T2 Rank 7 28 30 2 17 21 19 13 18 4 159 Met hod 3 89 98 56 105 87 90 87 101 76 89 T3 Rank 13 23 1 29 9.5 15.5 9.5 26.5 5 13 145 n1 10 n2 10 n3 10
  • 42. • Df = K-1 =3-1=2 • Table value = 5.99 • Calculated value is 0.196 • Since the calculated H value • 0.196 < 5.99 • We fail to reject H0 • All the teaching methods are equal
  • 43. Friedman test • It is a non parametric test developed and implemented by Milton Friedman. • It is used for finding differences in treatments across multiple attempts by comparing three or more dependent samples. • It is an alternative to ANOVA when the assumption of normality is not met
  • 44. Friedman test • The test is calculated using ranks of data instead of unprocessed data • It is used to test for differences between groups when the dependent variable being measured is ordinal. • It can also be used for continuous data that has marked as deviations from normality with repeated measures.
  • 45. • It is a repeated measures of ANOVA that can be performed on the ordinal data.
  • 46. Descriptions and requirements • Dependent variable should be measured at the ordinal or continuous level • Data comes from a single group measured on at least three different occasions. • Random sampling method must be used • All of the pairs are independent. • Observations are ranked within blocks with no ties • Samples need not be normally distributed.
  • 47. Problem ordinal data is given .is there a difference between weeks 1,2,3 using alpha as 0.05 week1 Week 2 Week 3 27 20 34 2 8 31 4 14 3 18 36 23 7 21 30 9 22 6
  • 48. Steps • Define null and alternative hypothesis. • State alpha • Calculate degree of freedom • State decision rule • Calculate the statistic • State result • conclusion
  • 49. Step 1 • Null hypothesis • H0 there is no difference between three conditions. • Alternative hypotheis • H1 there is a difference between three conditions
  • 51. Step3 • Degree of freedom’ • df=K-1 • K = no of groups • =3-1=2 • df=2
  • 52. Step 4 • Decision rule – chi square table Chi square is greater than 5.991 than you can reject the null hypothesis
  • 53. Step 5Rank the value Week 1 Week 2 Week 3 2 1 3 1 2 3 2 3 1 1 3 2 1 2 3 2 3 1 R=9 R=14 R=13
  • 54. Step 6 Calculation of statistics
  • 55. Step 7.state result • If chi square is greater than 5.991 than reject the null hypothesis. • Calculated chi square value is 2.33 • Calculated value is lesser than table value hence fail to reject null hypotheis. • Hence there is no difference among the three group.