SlideShare a Scribd company logo
1 of 31
Nonparametric Tests


By Rama Krishna Kompella
Key Terms

• Power of a test refers to the probability of rejecting a false
  null hypothesis (or detect a relationship when it exists)
• Power Efficiency the power of the test relative to that of its
  most powerful alternative.  For example, if the power
  efficiency of a certain nonparametric test for difference of
  means with sample size 10 is 0.9, it means that if interval
  scale and the normality assumptions can be made (more
  powerful), we can use the t-test with a sample size of 9 to
  achieve the same power.
Choice of nonparametric test

• It depends on the level of measurement obtained (nominal, ordinal, or
  interval), the power of the test, whether samples are related or
  independent, number of samples, availability of software support (e.g.
  SPSS)
• Related samples are usually referred to match-pair (using randomization)
  samples or before-after samples.  
• Other cases are usually treated as independent samples.  For instance, in
  a survey using random sampling, we have a sub-sample of males and a
  sub-sample of females.  They can be considered as independent samples
  as they are all randomly selected.
Non-parametric Tests

Sign Test                 paired data

                          2 independent
Mann-Whitney U Test
                          samples
                          > 2 independent
Kruskal-Wallis Test
                          samples
Sign Test
• Used for paired data
  – Can be ordinal or continuous
• Very simple and easy to interpret
• Makes no assumptions about distribution of
  the data
• Not very powerful
Sign Test: null hypothesis
• The null hypothesis for the sign test is
       H0: the median difference is zero

• To evaluate H0 we only need to know the signs
  of the differences
  – If half the differences are positive and half are
    negative, then the median = 0 (H0 is true).
  – If the signs are more unbalanced, then that is
    evidence against H0.
child
        Rating 
        before
                  Rating 
                   after    change   sign      Example:
                                            Body image data
 1        1         5         4       +
 2        1         4         3       +
 3        3         1         -2      -
 4        2         3         1       +     • The sign test looks at the
 5        4         4         0       0       signs of the differences
 6        1         4         3       +
 7        3         5         2       +
                                               – 15 children felt better
 8        1         5         4       +          about their teeth (+
 9        1         4         3       +          difference in ratings)
 10       4         4         0       0
 11       1         1         0       0
                                               – 1 child felt worse (- diff.)
 12       1         4         3       +        – 4 children felt the same
 13       1         4         3       +          (difference = 0)
 14       2         4         2       +
 15       1         4         3       +     • Looks like good evidence
 16       2         5         3       +
 17       1         4         3       +
 18       1         5         4       +
 19       4         4         0       0
 20       3         5         2       +
Mann-Whitney U test
• The Mann-Whitney U test, also called the rank sum
  test, is a non-parametric test that compares two
  independent (unmatched) groups.
• This means that either the data are at the ordinal
  level or data are at the interval/ratio level but not
  normally distributed.
• The test statistic is the U statistic. This is the test that
  you use if you cannot fulfill the assumptions of the t-
  test.
Mann-Whitney U test
• Assumption of normality or equality of variance is
  not met.
• Like many non-parametric tests, uses the ranks of
  the data rather than their raw values to calculate the
  statistic.
• Since this test does not make a distribution
  assumption, it is not as powerful as the t-test.
Mann-Whitney U test
The hypotheses for the comparison of two
  independent groups are:
• Ho: The two samples come from identical
  populations / the sum of the ranks is similar
• Ha: The two samples come from different
  populations / the sum of the ranks is different
Procedure for Mann-Whitney U-Test
1. Choose Mann-Whitney Test
2. Hypotheses Null and hypotheses Alternative
3. Assign ranks to all the scores in the
   experiment.
4. Compute the sum of the ranks for each
   group.
5. Compute the two version of the Mann-
   Whitney U. Fist compute U1 for Group 1
   using the formula:
   U1 = (n1)(n2) + n1 (n1 + 1) - Σ R1
                   2
Procedure for Mann-Whitney U-Test
    Next compute U2 for Group 2 using the formula:
    U2 = (n1)(n2) + n2 (n2 + 1) - Σ R2
                    2
4. Determine the Mann_Whitney Uobt.
5. Find the critical value
6.Compare Uobt to Ucritt .
7. Intrepret, and make decision.
8. Draw conclusion
Solution:
• H0: There is no difference in the test scores for
  the two type of classes.
• H1: There is a difference in test score for the
  two type of classes (claim)
Solution:
U1 = (n1)(n2) + n1 (n1 + 1) - Σ R1
                 2
   = (18)(13) + (18)(19) – 208
                  2
   = 234 + 342 - 208
             2
   = 197
Solution:
U2 = (n2)(n1) + n2 (n2 + 1) - Σ R2
                 2
   = (13)(18) + (13)(14) – 288
                  2
   = 234 + 182 - 288
             2
   = 37
Solution:
To check your computation of U:
U1 + U2 = n1.n2 197 +37 = (18)(13)
                          234 = 234
It checks out, and because U is the smaller of U1 and
   U2, U = 37
Critical value: Using n1 = 18 and n2 = 13, at a = 0.05,
   the critical value is 67.
Reject null hypothesis , since Uobt less than Ucrit
There is a difference between the two classes on the
   algebra readiness test.
The Kruskal-Wallis H Test

• The Kruskal-Wallis H Test is a nonparametric
  procedure that can be used to compare more
  than two populations in a completely
  randomized design.
• All n = n1+n2+…+nk measurements are jointly
  ranked (i.e.treat as one large sample).
• We use the sums of the ranks of the k samples
  to compare the distributions.
The Kruskal-Wallis H Test

• Rank the total measurements in all k samples from 1
  to n. Tied observations are assigned average of the
  ranks they would have gotten if not tied.
• Calculate Ti = rank sum for the ith sample i = 1, 2,
  …,k
• And the test statistic

               12      Ti 2
          H=         ∑      − 3(n + 1)
             n(n + 1) ni
The Kruskal-Wallis H Test
H0: the k distributions are identical versus
Ha: at least one distribution is different
Test statistic: Kruskal-Wallis H
When H0 is true, the test statistic H has an 
approximate chi-square distribution with df = k-1. 
Use a right-tailed rejection region or p-value based 
on the Chi-square distribution.
Spearman’s Rank Correlation
• Spearman's Rank Correlation is a technique
  used to test the direction and strength of the
  relationship between two variables.
• In other words, its a device to show whether
  any one set of numbers has an effect on
  another set of numbers
• It uses the statistic Rs which falls between -1
  and +1
Procedure for using
      Spearman's Rank Correlation
• State the null hypothesis i.e. "There is no
  relationship between the two sets of data."
• Rank both sets of data from the highest to the
  lowest.
• Make sure to check for tied ranks.
• Subtract the two sets of ranks to get the difference
  d.
• Square the values of d.
• Add the squared values of d to get Sigma d2.
Procedure for using
        Spearman's Rank Correlation
•   Use the formula Rs = 1-(6Ʃd2/n3-n) where n is the number of
    ranks you have.
•   If the Rs value...
    –   ... is -1, there is a perfect negative correlation.
    –   ...falls between -1 and -0.5, there is a strong negative correlation.
    –   ...falls between -0.5 and 0, there is a weak negative correlation.
    –   ... is 0, there is no correlation
    –   ...falls between 0 and 0.5, there is a weak positive correlation.
    –   ...falls between 0.5 and 1, there is a strong positive correlation
    –   ...is 1, there is a perfect positive correlation
        between the 2 sets of data. If the Rs value is 0, state that null
        hypothesis is accepted. Otherwise, say it is rejected.
Run Test for Randomness
• Run test is used for examining whether or not a set
  of observations constitutes a random sample from
  an infinite population
• A run is defined as a series of increasing values or a
  series of decreasing values.
• For example, the males and females in a line can
  have patterns such as M F M F M F M F and M M M
  M F F F F, which have 8 and 2 runs, respectively
Run Test for Randomness
• Hypothesis: To test the run test of
  randomness, first set up the null and
  alternative hypothesis.
• In run test of randomness, null hypothesis
  assumes that the distribution of the sample is
  random. The alternative hypothesis will be the
  opposite of the null hypothesis.
Run Test for Randomness
• The second step is the calculation of the mean and
  variance.



• Where N= Total number of observations =N1+N2
  N1=Number of + symbols
  N2=Number of – symbols
  R= number of runs
• If Rc (lower) <= R<= Rc (Upper), accept Ho. Otherwise
  reject Ho
Cox-Stuart Test for Trend
• This test is useful for detecting positively or
  negatively sloping gradual trends in a sequence of
  independents on a single random variable
• One of the three alternative hypotheses are possible
   – An upward or downward trend exists
   – An upward trend exists or
   – A downward trend exists
• If the null hypothesis is accepted, the result
  indicates that the measurements within the
  ordered sequence are identically distributed
Kolmogorov-Smirnov Test
• In situations where there is unequal number of
  observations in two samples, K-S test is appropriate
• This test is used to test whether there is any
  significant difference between two treatments A and
  B
• The test Hypothesis is
   – Ho: No difference in the effect of treatments A and B
   – H1: There is some difference in the effect of treatments A
     and B
Questions?

More Related Content

What's hot

Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Tesfamichael Getu
 
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...AZCPh
 
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
 
Wilcoxon rank-sum-test
Wilcoxon rank-sum-testWilcoxon rank-sum-test
Wilcoxon rank-sum-testMSU-IIT
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeekShafeek S
 
Parametric tests
Parametric testsParametric tests
Parametric testsheena45
 
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
Parametric test _ t test and ANOVA _  Biostatistics and Research Methodology....Parametric test _ t test and ANOVA _  Biostatistics and Research Methodology....
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....AZCPh
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U TestJohn Barlow
 
Non parametric test
Non parametric testNon parametric test
Non parametric testNeetathakur3
 
Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics Mero Eye
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anovashoffma5
 
Unit-III Non-Parametric Tests BSRM.pdf
Unit-III Non-Parametric Tests BSRM.pdfUnit-III Non-Parametric Tests BSRM.pdf
Unit-III Non-Parametric Tests BSRM.pdfRavinandan A P
 
NON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantNON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantPRAJAKTASAWANT33
 

What's hot (20)

Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
 
The mann whitney u test
The mann whitney u testThe mann whitney u test
The mann whitney u test
 
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
 
Wilcoxon rank-sum-test
Wilcoxon rank-sum-testWilcoxon rank-sum-test
Wilcoxon rank-sum-test
 
Friedman's test
Friedman's testFriedman's test
Friedman's test
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeek
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
Parametric test _ t test and ANOVA _  Biostatistics and Research Methodology....Parametric test _ t test and ANOVA _  Biostatistics and Research Methodology....
Parametric test _ t test and ANOVA _ Biostatistics and Research Methodology....
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U Test
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 
Unit-III Non-Parametric Tests BSRM.pdf
Unit-III Non-Parametric Tests BSRM.pdfUnit-III Non-Parametric Tests BSRM.pdf
Unit-III Non-Parametric Tests BSRM.pdf
 
Student T - test
Student T -  testStudent T -  test
Student T - test
 
NON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta SawantNON-PARAMETRIC TESTS by Prajakta Sawant
NON-PARAMETRIC TESTS by Prajakta Sawant
 
T test
T testT test
T test
 
Student t-test
Student t-testStudent t-test
Student t-test
 

Viewers also liked

What is a Mann Whitney U?
What is a Mann Whitney U?What is a Mann Whitney U?
What is a Mann Whitney U?Ken Plummer
 
Reporting Mann Whitney U Test in APA
Reporting Mann Whitney U Test in APAReporting Mann Whitney U Test in APA
Reporting Mann Whitney U Test in APAKen Plummer
 
Nonparametric tests
Nonparametric testsNonparametric tests
Nonparametric testsArun Kumar
 
Reporting a Kruskal Wallis Test
Reporting a Kruskal Wallis TestReporting a Kruskal Wallis Test
Reporting a Kruskal Wallis TestKen Plummer
 
Parametric and non parametric test
Parametric and non parametric testParametric and non parametric test
Parametric and non parametric testAjay Malpani
 
DIstinguish between Parametric vs nonparametric test
 DIstinguish between Parametric vs nonparametric test DIstinguish between Parametric vs nonparametric test
DIstinguish between Parametric vs nonparametric testsai prakash
 
Reporting the wilcoxon signed ranks test
Reporting the wilcoxon signed ranks testReporting the wilcoxon signed ranks test
Reporting the wilcoxon signed ranks testKen Plummer
 
Parametric vs Nonparametric Tests: When to use which
Parametric vs Nonparametric Tests: When to use whichParametric vs Nonparametric Tests: When to use which
Parametric vs Nonparametric Tests: When to use whichGönenç Dalgıç
 
Nonparametric statistics
Nonparametric statisticsNonparametric statistics
Nonparametric statisticsTarun Gehlot
 
Nonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec domsNonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec domsBabasab Patil
 
What is a Kruskal Wallis-Test?
What is a Kruskal Wallis-Test?What is a Kruskal Wallis-Test?
What is a Kruskal Wallis-Test?Ken Plummer
 
What is a Friedman Test?
What is a Friedman Test?What is a Friedman Test?
What is a Friedman Test?Ken Plummer
 
Friedman Test- A Presentation
Friedman Test- A PresentationFriedman Test- A Presentation
Friedman Test- A PresentationIrene Gabiana
 
Null hypothesis for Kruskal Wallis Test
Null hypothesis for Kruskal Wallis TestNull hypothesis for Kruskal Wallis Test
Null hypothesis for Kruskal Wallis TestKen Plummer
 
Parametric tests seminar
Parametric tests seminarParametric tests seminar
Parametric tests seminardrdeepika87
 
Statistical tests/prosthodontic courses
Statistical tests/prosthodontic coursesStatistical tests/prosthodontic courses
Statistical tests/prosthodontic coursesIndian dental academy
 

Viewers also liked (20)

What is a Mann Whitney U?
What is a Mann Whitney U?What is a Mann Whitney U?
What is a Mann Whitney U?
 
Reporting Mann Whitney U Test in APA
Reporting Mann Whitney U Test in APAReporting Mann Whitney U Test in APA
Reporting Mann Whitney U Test in APA
 
Non-Parametric Tests
Non-Parametric TestsNon-Parametric Tests
Non-Parametric Tests
 
Nonparametric tests
Nonparametric testsNonparametric tests
Nonparametric tests
 
Reporting a Kruskal Wallis Test
Reporting a Kruskal Wallis TestReporting a Kruskal Wallis Test
Reporting a Kruskal Wallis Test
 
Non Parametric Tests
Non Parametric TestsNon Parametric Tests
Non Parametric Tests
 
Parametric and non parametric test
Parametric and non parametric testParametric and non parametric test
Parametric and non parametric test
 
DIstinguish between Parametric vs nonparametric test
 DIstinguish between Parametric vs nonparametric test DIstinguish between Parametric vs nonparametric test
DIstinguish between Parametric vs nonparametric test
 
Reporting the wilcoxon signed ranks test
Reporting the wilcoxon signed ranks testReporting the wilcoxon signed ranks test
Reporting the wilcoxon signed ranks test
 
Parametric vs Nonparametric Tests: When to use which
Parametric vs Nonparametric Tests: When to use whichParametric vs Nonparametric Tests: When to use which
Parametric vs Nonparametric Tests: When to use which
 
Nonparametric statistics
Nonparametric statisticsNonparametric statistics
Nonparametric statistics
 
Nonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec domsNonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec doms
 
Kruskal wallis test
Kruskal wallis testKruskal wallis test
Kruskal wallis test
 
What is a Kruskal Wallis-Test?
What is a Kruskal Wallis-Test?What is a Kruskal Wallis-Test?
What is a Kruskal Wallis-Test?
 
What is a Friedman Test?
What is a Friedman Test?What is a Friedman Test?
What is a Friedman Test?
 
Friedman Test- A Presentation
Friedman Test- A PresentationFriedman Test- A Presentation
Friedman Test- A Presentation
 
Null hypothesis for Kruskal Wallis Test
Null hypothesis for Kruskal Wallis TestNull hypothesis for Kruskal Wallis Test
Null hypothesis for Kruskal Wallis Test
 
Parametric tests seminar
Parametric tests seminarParametric tests seminar
Parametric tests seminar
 
Nonparametric and Distribution- Free Statistics
Nonparametric and Distribution- Free Statistics Nonparametric and Distribution- Free Statistics
Nonparametric and Distribution- Free Statistics
 
Statistical tests/prosthodontic courses
Statistical tests/prosthodontic coursesStatistical tests/prosthodontic courses
Statistical tests/prosthodontic courses
 

Similar to T12 non-parametric tests

Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxxababid981
 
NON-PARAMETRIC TESTS.pptx
NON-PARAMETRIC TESTS.pptxNON-PARAMETRIC TESTS.pptx
NON-PARAMETRIC TESTS.pptxDrLasya
 
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
 
allnonparametrictest-210427031923.pptx
allnonparametrictest-210427031923.pptxallnonparametrictest-210427031923.pptx
allnonparametrictest-210427031923.pptxSoujanyaLk1
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in StatisticsVikash Keshri
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics testsrodrick koome
 
parametric hypothesis testing using MATLAB
parametric hypothesis testing using MATLABparametric hypothesis testing using MATLAB
parametric hypothesis testing using MATLABKajal Saraswat
 
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
 
T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samplesshoffma5
 
non parametric test.pptx
non parametric test.pptxnon parametric test.pptx
non parametric test.pptxSoujanyaLk1
 

Similar to T12 non-parametric tests (20)

Non parametric-tests
Non parametric-testsNon parametric-tests
Non parametric-tests
 
Mann - Whitney U test.pptx
Mann - Whitney U test.pptxMann - Whitney U test.pptx
Mann - Whitney U test.pptx
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptx
 
NON-PARAMETRIC TESTS.pptx
NON-PARAMETRIC TESTS.pptxNON-PARAMETRIC TESTS.pptx
NON-PARAMETRIC TESTS.pptx
 
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
 
allnonparametrictest-210427031923.pptx
allnonparametrictest-210427031923.pptxallnonparametrictest-210427031923.pptx
allnonparametrictest-210427031923.pptx
 
Comparing means
Comparing meansComparing means
Comparing means
 
Nonparametric Statistics
Nonparametric StatisticsNonparametric Statistics
Nonparametric Statistics
 
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
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
 
Hypothesis Testing.pptx
Hypothesis Testing.pptxHypothesis Testing.pptx
Hypothesis Testing.pptx
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
parametric hypothesis testing using MATLAB
parametric hypothesis testing using MATLABparametric hypothesis testing using MATLAB
parametric hypothesis testing using MATLAB
 
Stats - Intro to Quantitative
Stats -  Intro to Quantitative Stats -  Intro to Quantitative
Stats - Intro to Quantitative
 
Stat2013
Stat2013Stat2013
Stat2013
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samples
 
non parametric test.pptx
non parametric test.pptxnon parametric test.pptx
non parametric test.pptx
 

More from kompellark

T22 research report writing
T22 research report writingT22 research report writing
T22 research report writingkompellark
 
Rubric assignment 2
Rubric   assignment 2Rubric   assignment 2
Rubric assignment 2kompellark
 
Answers mid-term
Answers   mid-termAnswers   mid-term
Answers mid-termkompellark
 
T21 conjoint analysis
T21 conjoint analysisT21 conjoint analysis
T21 conjoint analysiskompellark
 
T20 cluster analysis
T20 cluster analysisT20 cluster analysis
T20 cluster analysiskompellark
 
T19 factor analysis
T19 factor analysisT19 factor analysis
T19 factor analysiskompellark
 
T18 discriminant analysis
T18 discriminant analysisT18 discriminant analysis
T18 discriminant analysiskompellark
 
T17 correlation
T17 correlationT17 correlation
T17 correlationkompellark
 
T16 multiple regression
T16 multiple regressionT16 multiple regression
T16 multiple regressionkompellark
 
T13 parametric tests
T13 parametric testsT13 parametric tests
T13 parametric testskompellark
 
T11 types of tests
T11 types of testsT11 types of tests
T11 types of testskompellark
 
T13 parametric tests
T13 parametric testsT13 parametric tests
T13 parametric testskompellark
 
T11 types of tests
T11 types of testsT11 types of tests
T11 types of testskompellark
 
T16 multiple regression
T16 multiple regressionT16 multiple regression
T16 multiple regressionkompellark
 
T10 statisitical analysis
T10 statisitical analysisT10 statisitical analysis
T10 statisitical analysiskompellark
 

More from kompellark (20)

T22 research report writing
T22 research report writingT22 research report writing
T22 research report writing
 
Rubric assignment 2
Rubric   assignment 2Rubric   assignment 2
Rubric assignment 2
 
Answers mid-term
Answers   mid-termAnswers   mid-term
Answers mid-term
 
Exam paper
Exam paperExam paper
Exam paper
 
T21 conjoint analysis
T21 conjoint analysisT21 conjoint analysis
T21 conjoint analysis
 
T20 cluster analysis
T20 cluster analysisT20 cluster analysis
T20 cluster analysis
 
T19 factor analysis
T19 factor analysisT19 factor analysis
T19 factor analysis
 
T18 discriminant analysis
T18 discriminant analysisT18 discriminant analysis
T18 discriminant analysis
 
T17 correlation
T17 correlationT17 correlation
T17 correlation
 
T16 multiple regression
T16 multiple regressionT16 multiple regression
T16 multiple regression
 
T15 ancova
T15 ancovaT15 ancova
T15 ancova
 
T14 anova
T14 anovaT14 anova
T14 anova
 
T13 parametric tests
T13 parametric testsT13 parametric tests
T13 parametric tests
 
T11 types of tests
T11 types of testsT11 types of tests
T11 types of tests
 
T15 ancova
T15 ancovaT15 ancova
T15 ancova
 
T14 anova
T14 anovaT14 anova
T14 anova
 
T13 parametric tests
T13 parametric testsT13 parametric tests
T13 parametric tests
 
T11 types of tests
T11 types of testsT11 types of tests
T11 types of tests
 
T16 multiple regression
T16 multiple regressionT16 multiple regression
T16 multiple regression
 
T10 statisitical analysis
T10 statisitical analysisT10 statisitical analysis
T10 statisitical analysis
 

Recently uploaded

The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...Aggregage
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsMichael W. Hawkins
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876dlhescort
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...lizamodels9
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Roland Driesen
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Best Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaBest Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaShree Krishna Exports
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 DelhiCall Girls in Delhi
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Lviv Startup Club
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 

Recently uploaded (20)

The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael Hawkins
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Best Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in IndiaBest Basmati Rice Manufacturers in India
Best Basmati Rice Manufacturers in India
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 

T12 non-parametric tests

  • 1. Nonparametric Tests By Rama Krishna Kompella
  • 2. Key Terms • Power of a test refers to the probability of rejecting a false null hypothesis (or detect a relationship when it exists) • Power Efficiency the power of the test relative to that of its most powerful alternative.  For example, if the power efficiency of a certain nonparametric test for difference of means with sample size 10 is 0.9, it means that if interval scale and the normality assumptions can be made (more powerful), we can use the t-test with a sample size of 9 to achieve the same power.
  • 3. Choice of nonparametric test • It depends on the level of measurement obtained (nominal, ordinal, or interval), the power of the test, whether samples are related or independent, number of samples, availability of software support (e.g. SPSS) • Related samples are usually referred to match-pair (using randomization) samples or before-after samples.   • Other cases are usually treated as independent samples.  For instance, in a survey using random sampling, we have a sub-sample of males and a sub-sample of females.  They can be considered as independent samples as they are all randomly selected.
  • 4. Non-parametric Tests Sign Test paired data 2 independent Mann-Whitney U Test samples > 2 independent Kruskal-Wallis Test samples
  • 5. Sign Test • Used for paired data – Can be ordinal or continuous • Very simple and easy to interpret • Makes no assumptions about distribution of the data • Not very powerful
  • 6. Sign Test: null hypothesis • The null hypothesis for the sign test is H0: the median difference is zero • To evaluate H0 we only need to know the signs of the differences – If half the differences are positive and half are negative, then the median = 0 (H0 is true). – If the signs are more unbalanced, then that is evidence against H0.
  • 7. child Rating  before Rating  after change sign Example: Body image data 1 1 5 4 + 2 1 4 3 + 3 3 1 -2 - 4 2 3 1 + • The sign test looks at the 5 4 4 0 0 signs of the differences 6 1 4 3 + 7 3 5 2 + – 15 children felt better 8 1 5 4 + about their teeth (+ 9 1 4 3 + difference in ratings) 10 4 4 0 0 11 1 1 0 0 – 1 child felt worse (- diff.) 12 1 4 3 + – 4 children felt the same 13 1 4 3 + (difference = 0) 14 2 4 2 + 15 1 4 3 + • Looks like good evidence 16 2 5 3 + 17 1 4 3 + 18 1 5 4 + 19 4 4 0 0 20 3 5 2 +
  • 8. Mann-Whitney U test • The Mann-Whitney U test, also called the rank sum test, is a non-parametric test that compares two independent (unmatched) groups. • This means that either the data are at the ordinal level or data are at the interval/ratio level but not normally distributed. • The test statistic is the U statistic. This is the test that you use if you cannot fulfill the assumptions of the t- test.
  • 9. Mann-Whitney U test • Assumption of normality or equality of variance is not met. • Like many non-parametric tests, uses the ranks of the data rather than their raw values to calculate the statistic. • Since this test does not make a distribution assumption, it is not as powerful as the t-test.
  • 10. Mann-Whitney U test The hypotheses for the comparison of two independent groups are: • Ho: The two samples come from identical populations / the sum of the ranks is similar • Ha: The two samples come from different populations / the sum of the ranks is different
  • 11. Procedure for Mann-Whitney U-Test 1. Choose Mann-Whitney Test 2. Hypotheses Null and hypotheses Alternative 3. Assign ranks to all the scores in the experiment. 4. Compute the sum of the ranks for each group. 5. Compute the two version of the Mann- Whitney U. Fist compute U1 for Group 1 using the formula: U1 = (n1)(n2) + n1 (n1 + 1) - Σ R1 2
  • 12. Procedure for Mann-Whitney U-Test Next compute U2 for Group 2 using the formula: U2 = (n1)(n2) + n2 (n2 + 1) - Σ R2 2 4. Determine the Mann_Whitney Uobt. 5. Find the critical value 6.Compare Uobt to Ucritt . 7. Intrepret, and make decision. 8. Draw conclusion
  • 13.
  • 14.
  • 15. Solution: • H0: There is no difference in the test scores for the two type of classes. • H1: There is a difference in test score for the two type of classes (claim)
  • 16.
  • 17. Solution: U1 = (n1)(n2) + n1 (n1 + 1) - Σ R1 2 = (18)(13) + (18)(19) – 208 2 = 234 + 342 - 208 2 = 197
  • 18. Solution: U2 = (n2)(n1) + n2 (n2 + 1) - Σ R2 2 = (13)(18) + (13)(14) – 288 2 = 234 + 182 - 288 2 = 37
  • 19. Solution: To check your computation of U: U1 + U2 = n1.n2 197 +37 = (18)(13) 234 = 234 It checks out, and because U is the smaller of U1 and U2, U = 37 Critical value: Using n1 = 18 and n2 = 13, at a = 0.05, the critical value is 67. Reject null hypothesis , since Uobt less than Ucrit There is a difference between the two classes on the algebra readiness test.
  • 20. The Kruskal-Wallis H Test • The Kruskal-Wallis H Test is a nonparametric procedure that can be used to compare more than two populations in a completely randomized design. • All n = n1+n2+…+nk measurements are jointly ranked (i.e.treat as one large sample). • We use the sums of the ranks of the k samples to compare the distributions.
  • 21. The Kruskal-Wallis H Test • Rank the total measurements in all k samples from 1 to n. Tied observations are assigned average of the ranks they would have gotten if not tied. • Calculate Ti = rank sum for the ith sample i = 1, 2, …,k • And the test statistic 12 Ti 2 H= ∑ − 3(n + 1) n(n + 1) ni
  • 22. The Kruskal-Wallis H Test H0: the k distributions are identical versus Ha: at least one distribution is different Test statistic: Kruskal-Wallis H When H0 is true, the test statistic H has an  approximate chi-square distribution with df = k-1.  Use a right-tailed rejection region or p-value based  on the Chi-square distribution.
  • 23. Spearman’s Rank Correlation • Spearman's Rank Correlation is a technique used to test the direction and strength of the relationship between two variables. • In other words, its a device to show whether any one set of numbers has an effect on another set of numbers • It uses the statistic Rs which falls between -1 and +1
  • 24. Procedure for using Spearman's Rank Correlation • State the null hypothesis i.e. "There is no relationship between the two sets of data." • Rank both sets of data from the highest to the lowest. • Make sure to check for tied ranks. • Subtract the two sets of ranks to get the difference d. • Square the values of d. • Add the squared values of d to get Sigma d2.
  • 25. Procedure for using Spearman's Rank Correlation • Use the formula Rs = 1-(6Ʃd2/n3-n) where n is the number of ranks you have. • If the Rs value... – ... is -1, there is a perfect negative correlation. – ...falls between -1 and -0.5, there is a strong negative correlation. – ...falls between -0.5 and 0, there is a weak negative correlation. – ... is 0, there is no correlation – ...falls between 0 and 0.5, there is a weak positive correlation. – ...falls between 0.5 and 1, there is a strong positive correlation – ...is 1, there is a perfect positive correlation between the 2 sets of data. If the Rs value is 0, state that null hypothesis is accepted. Otherwise, say it is rejected.
  • 26. Run Test for Randomness • Run test is used for examining whether or not a set of observations constitutes a random sample from an infinite population • A run is defined as a series of increasing values or a series of decreasing values. • For example, the males and females in a line can have patterns such as M F M F M F M F and M M M M F F F F, which have 8 and 2 runs, respectively
  • 27. Run Test for Randomness • Hypothesis: To test the run test of randomness, first set up the null and alternative hypothesis. • In run test of randomness, null hypothesis assumes that the distribution of the sample is random. The alternative hypothesis will be the opposite of the null hypothesis.
  • 28. Run Test for Randomness • The second step is the calculation of the mean and variance. • Where N= Total number of observations =N1+N2 N1=Number of + symbols N2=Number of – symbols R= number of runs • If Rc (lower) <= R<= Rc (Upper), accept Ho. Otherwise reject Ho
  • 29. Cox-Stuart Test for Trend • This test is useful for detecting positively or negatively sloping gradual trends in a sequence of independents on a single random variable • One of the three alternative hypotheses are possible – An upward or downward trend exists – An upward trend exists or – A downward trend exists • If the null hypothesis is accepted, the result indicates that the measurements within the ordered sequence are identically distributed
  • 30. Kolmogorov-Smirnov Test • In situations where there is unequal number of observations in two samples, K-S test is appropriate • This test is used to test whether there is any significant difference between two treatments A and B • The test Hypothesis is – Ho: No difference in the effect of treatments A and B – H1: There is some difference in the effect of treatments A and B