Nonparametric Tests. Mathematics 47: Lecture 25. Dan Sloughter. Furman University. April 20, 2006

Similar documents
Sampling Distributions

Mathematics 13: Lecture 4

TMA4255 Applied Statistics V2016 (23)

3. Nonparametric methods

Dr. Maddah ENMG 617 EM Statistics 10/12/12. Nonparametric Statistics (Chapter 16, Hines)

Business Statistics MEDIAN: NON- PARAMETRIC TESTS

S D / n t n 1 The paediatrician observes 3 =

Non-parametric methods

Mathematics 22: Lecture 10

PSY 307 Statistics for the Behavioral Sciences. Chapter 20 Tests for Ranked Data, Choosing Statistical Tests

Nonparametric Statistics Notes

Module 9: Nonparametric Statistics Statistics (OA3102)

Calculus: Area. Mathematics 15: Lecture 22. Dan Sloughter. Furman University. November 12, 2006

Nonparametric hypothesis tests and permutation tests

Pivotal Quantities. Mathematics 47: Lecture 16. Dan Sloughter. Furman University. March 30, 2006

Mathematics 22: Lecture 19

Inferential Statistics

Chapter 18 Resampling and Nonparametric Approaches To Data

Visual interpretation with normal approximation

Non-parametric tests, part A:

Statistical Inference

Chapter 15: Nonparametric Statistics Section 15.1: An Overview of Nonparametric Statistics

Change of Variables: Indefinite Integrals

Contents 1. Contents

Antiderivatives. Mathematics 11: Lecture 30. Dan Sloughter. Furman University. November 7, 2007

Mathematics 22: Lecture 5

Wilcoxon Test and Calculating Sample Sizes

ST4241 Design and Analysis of Clinical Trials Lecture 9: N. Lecture 9: Non-parametric procedures for CRBD

STAT 135 Lab 8 Hypothesis Testing Review, Mann-Whitney Test by Normal Approximation, and Wilcoxon Signed Rank Test.

STATISTIKA INDUSTRI 2 TIN 4004

BIO 682 Nonparametric Statistics Spring 2010

Solutions exercises of Chapter 7

Nonparametric Statistics. Leah Wright, Tyler Ross, Taylor Brown

Goodness of Fit Tests: Homogeneity

Introduction to Nonparametric Statistics

Some Trigonometric Limits

5 Introduction to the Theory of Order Statistics and Rank Statistics

Nonparametric tests. Timothy Hanson. Department of Statistics, University of South Carolina. Stat 704: Data Analysis I

Mathematics 22: Lecture 11

Introduction to Statistical Data Analysis III

This is particularly true if you see long tails in your data. What are you testing? That the two distributions are the same!

Mathematics 13: Lecture 10

SEVERAL μs AND MEDIANS: MORE ISSUES. Business Statistics

GROUPED DATA E.G. FOR SAMPLE OF RAW DATA (E.G. 4, 12, 7, 5, MEAN G x / n STANDARD DEVIATION MEDIAN AND QUARTILES STANDARD DEVIATION

Distribution-Free Procedures (Devore Chapter Fifteen)

What is a Hypothesis?

What to do today (Nov 22, 2018)?

Fish SR P Diff Sgn rank Fish SR P Diff Sng rank

Mathematics 22: Lecture 7

Lecture Slides. Elementary Statistics. by Mario F. Triola. and the Triola Statistics Series

Non-parametric Hypothesis Testing

Statistics Handbook. All statistical tables were computed by the author.

Lecture Slides. Section 13-1 Overview. Elementary Statistics Tenth Edition. Chapter 13 Nonparametric Statistics. by Mario F.

Nonparametric tests. Mark Muldoon School of Mathematics, University of Manchester. Mark Muldoon, November 8, 2005 Nonparametric tests - p.

Non-parametric (Distribution-free) approaches p188 CN

Design of the Fuzzy Rank Tests Package

Nonparametric Statistics

Unit 14: Nonparametric Statistical Methods

Statistics for Managers Using Microsoft Excel Chapter 9 Two Sample Tests With Numerical Data

ANOVA - analysis of variance - used to compare the means of several populations.

Data are sometimes not compatible with the assumptions of parametric statistical tests (i.e. t-test, regression, ANOVA)

Mathematics 22: Lecture 12

Mathematics 22: Lecture 4

The Geometry. Mathematics 15: Lecture 20. Dan Sloughter. Furman University. November 6, 2006

Stat 425. Introduction to Nonparametric Statistics Paired Comparisons in a Population Model and the One-Sample Problem

4/6/16. Non-parametric Test. Overview. Stephen Opiyo. Distinguish Parametric and Nonparametric Test Procedures

Formulas and Tables by Mario F. Triola

Relating Graph to Matlab

16. Nonparametric Methods. Analysis of ordinal data

TABLES AND FORMULAS FOR MOORE Basic Practice of Statistics

Comparison of Two Population Means

Economics 520. Lecture Note 19: Hypothesis Testing via the Neyman-Pearson Lemma CB 8.1,

Introduction and Descriptive Statistics p. 1 Introduction to Statistics p. 3 Statistics, Science, and Observations p. 5 Populations and Samples p.

Nonparametric Methods

Formulas and Tables. for Elementary Statistics, Tenth Edition, by Mario F. Triola Copyright 2006 Pearson Education, Inc. ˆp E p ˆp E Proportion

Transition Passage to Descriptive Statistics 28

Chapter 7: Hypothesis Testing

Hypothesis Testing. Hypothesis: conjecture, proposition or statement based on published literature, data, or a theory that may or may not be true

Summary of Chapters 7-9

Lecture 26. December 19, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University.

6 Single Sample Methods for a Location Parameter

Nonparametric statistic methods. Waraphon Phimpraphai DVM, PhD Department of Veterinary Public Health

How do we compare the relative performance among competing models?

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

Basic Business Statistics, 10/e

ST4241 Design and Analysis of Clinical Trials Lecture 7: N. Lecture 7: Non-parametric tests for PDG data

Bootstrap tests. Patrick Breheny. October 11. Bootstrap vs. permutation tests Testing for equality of location

Statistical Procedures for Testing Homogeneity of Water Quality Parameters

A3. Statistical Inference Hypothesis Testing for General Population Parameters

Stat 135, Fall 2006 A. Adhikari HOMEWORK 6 SOLUTIONS

Frequency table: Var2 (Spreadsheet1) Count Cumulative Percent Cumulative From To. Percent <x<=

1 Statistical inference for a population mean

Y i = η + ɛ i, i = 1,...,n.

The Chi-Square Distributions

Stat 315: HW #6. Fall Due: Wednesday, October 10, 2018

The Chi-Square Distributions

Lecture 14: ANOVA and the F-test

CHAPTER 17 CHI-SQUARE AND OTHER NONPARAMETRIC TESTS FROM: PAGANO, R. R. (2007)

Estimating the accuracy of a hypothesis Setting. Assume a binary classification setting

NONPARAMETRIC TESTS. LALMOHAN BHAR Indian Agricultural Statistics Research Institute Library Avenue, New Delhi-12

Transcription:

Nonparametric Tests Mathematics 47: Lecture 25 Dan Sloughter Furman University April 20, 2006 Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 1 / 14

The sign test Suppose X 1, X 2,..., X n is a random sample from a continuous distribution with median m. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 2 / 14

The sign test Suppose X 1, X 2,..., X n is a random sample from a continuous distribution with median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 2 / 14

The sign test Suppose X 1, X 2,..., X n is a random sample from a continuous distribution with median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. Let Y be the number of values of X i m 0, i = 1, 2,..., n, which are positive. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 2 / 14

The sign test Suppose X 1, X 2,..., X n is a random sample from a continuous distribution with median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. Let Y be the number of values of X i m 0, i = 1, 2,..., n, which are positive. Note: if H 0 is true, Y is binomial with probability of success p = 1 2. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 2 / 14

The sign test Suppose X 1, X 2,..., X n is a random sample from a continuous distribution with median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. Let Y be the number of values of X i m 0, i = 1, 2,..., n, which are positive. Note: if H 0 is true, Y is binomial with probability of success p = 1 2. Moreover, large values of Y provide evidence against H 0. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 2 / 14

The sign test (cont d) For an observed value y of Y, the p-value is P(Y y m = m 0 ) = n i=y ( n i ) ( 1 2 ) i ( ) 1 n i = 1 2 2 n n i=y ( ) n. i Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 3 / 14

The sign test (cont d) For an observed value y of Y, the p-value is P(Y y m = m 0 ) = n i=y ( n i ) ( 1 2 ) i ( ) 1 n i = 1 2 2 n n i=y ( ) n. i If the alternative hypothesis is H A : m < m 0, then small values of Y provide evidence against H 0, with p-value P(Y y m = m 0 ) = 1 2 n y i=0 ( ) n. i Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 3 / 14

The sign test (cont d) For an observed value y of Y, the p-value is P(Y y m = m 0 ) = n i=y ( n i ) ( 1 2 ) i ( ) 1 n i = 1 2 2 n n i=y ( ) n. i If the alternative hypothesis is H A : m < m 0, then small values of Y provide evidence against H 0, with p-value P(Y y m = m 0 ) = 1 2 n y i=0 ( ) n. i For H A : m m 0, the p-value is twice the p-value of the appropriate one-sided test. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 3 / 14

The sign test (cont d) For an observed value y of Y, the p-value is P(Y y m = m 0 ) = n i=y ( n i ) ( 1 2 ) i ( ) 1 n i = 1 2 2 n n i=y ( ) n. i If the alternative hypothesis is H A : m < m 0, then small values of Y provide evidence against H 0, with p-value P(Y y m = m 0 ) = 1 2 n y i=0 ( ) n. i For H A : m m 0, the p-value is twice the p-value of the appropriate one-sided test. We call this test the sign test. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 3 / 14

Example Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 4 / 14

Example Recall: A study of 20 Shoshoni beaded rectangles yielded the following width-to-length ratios: 0.693 0.662 0.690 0.606 0.570 0.749 0.672 0.628 0.609 0.844 0.654 0.615 0.668 0.601 0.576 0.670 0.606 0.611 0.553 0.933 Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 4 / 14

Example Recall: A study of 20 Shoshoni beaded rectangles yielded the following width-to-length ratios: 0.693 0.662 0.690 0.606 0.570 0.749 0.672 0.628 0.609 0.844 0.654 0.615 0.668 0.601 0.576 0.670 0.606 0.611 0.553 0.933 Suppose m is the median of the distribution of width-to-length ratios of Shoshoni beaded rectangles. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 4 / 14

Example Recall: A study of 20 Shoshoni beaded rectangles yielded the following width-to-length ratios: 0.693 0.662 0.690 0.606 0.570 0.749 0.672 0.628 0.609 0.844 0.654 0.615 0.668 0.601 0.576 0.670 0.606 0.611 0.553 0.933 Suppose m is the median of the distribution of width-to-length ratios of Shoshoni beaded rectangles. Suppose we wish to test H 0 : m = 0.618 H A : m 0.618. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 4 / 14

Example Recall: A study of 20 Shoshoni beaded rectangles yielded the following width-to-length ratios: 0.693 0.662 0.690 0.606 0.570 0.749 0.672 0.628 0.609 0.844 0.654 0.615 0.668 0.601 0.576 0.670 0.606 0.611 0.553 0.933 Suppose m is the median of the distribution of width-to-length ratios of Shoshoni beaded rectangles. Suppose we wish to test H 0 : m = 0.618 H A : m 0.618. The number of observations which exceed 0.618 is 11. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 4 / 14

Example (cont d) Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 5 / 14

Example (cont d) So the p-value for the sign test is ( ) 20 ( ) 1 20 2 2 20 i i=11 = 0.823803. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 5 / 14

Example (cont d) So the p-value for the sign test is ( ) 20 ( ) 1 20 2 2 20 i i=11 = 0.823803. Note: this was computed in R with > 2*(1-pbinom(10,20,.5)). Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 5 / 14

Example (cont d) So the p-value for the sign test is ( ) 20 ( ) 1 20 2 2 20 i i=11 = 0.823803. Note: this was computed in R with > 2*(1-pbinom(10,20,.5)). Hence, viewed in this way, the data provide no evidence against H 0. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 5 / 14

Example (cont d) So the p-value for the sign test is ( ) 20 ( ) 1 20 2 2 20 i i=11 = 0.823803. Note: this was computed in R with > 2*(1-pbinom(10,20,.5)). Hence, viewed in this way, the data provide no evidence against H 0. How might the outlier 0.933 have affected our tests? Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 5 / 14

Wilcoxon signed-rank test Let X 1, X 2,..., X n be a random sample from a continuous distribution which is symmetric about its median m. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 6 / 14

Wilcoxon signed-rank test Let X 1, X 2,..., X n be a random sample from a continuous distribution which is symmetric about its median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 6 / 14

Wilcoxon signed-rank test Let X 1, X 2,..., X n be a random sample from a continuous distribution which is symmetric about its median m. Suppose we wish to test For i = 1, 2,..., n, H 0 : m = m 0 H A : m > m 0. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 6 / 14

Wilcoxon signed-rank test Let X 1, X 2,..., X n be a random sample from a continuous distribution which is symmetric about its median m. Suppose we wish to test For i = 1, 2,..., n, let D i = X i m 0, H 0 : m = m 0 H A : m > m 0. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 6 / 14

Wilcoxon signed-rank test Let X 1, X 2,..., X n be a random sample from a continuous distribution which is symmetric about its median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. For i = 1, 2,..., n, let D i = X i m 0, rank D i from smallest to largest, and Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 6 / 14

Wilcoxon signed-rank test Let X 1, X 2,..., X n be a random sample from a continuous distribution which is symmetric about its median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. For i = 1, 2,..., n, let D i = X i m 0, rank D i from smallest to largest, and let R(D i ) = rank of D i. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 6 / 14

Wilcoxon signed-rank test Let X 1, X 2,..., X n be a random sample from a continuous distribution which is symmetric about its median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. For i = 1, 2,..., n, let D i = X i m 0, rank D i from smallest to largest, and let R(D i ) = rank of D i. Let R = D i <0 R(D i ). Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 6 / 14

Wilcoxon signed-rank test Let X 1, X 2,..., X n be a random sample from a continuous distribution which is symmetric about its median m. Suppose we wish to test H 0 : m = m 0 H A : m > m 0. For i = 1, 2,..., n, let D i = X i m 0, rank D i from smallest to largest, and let R(D i ) = rank of D i. Let R = D i <0 R(D i ). Then we should reject H 0 for small values of R. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 6 / 14

Wilcoxon signed-rank test (cont d) To test the alternative H A : m < m 0, let R + = D i >0 R(D i ) and reject H 0 for small values of R +. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 7 / 14

Wilcoxon signed-rank test (cont d) To test the alternative H A : m < m 0, let R + = D i >0 R(D i ) and reject H 0 for small values of R +. For H A : m m 0, we double the appropriate one-sided p-value. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 7 / 14

Wilcoxon signed-rank test (cont d) To test the alternative H A : m < m 0, let R + = D i >0 R(D i ) and reject H 0 for small values of R +. For H A : m m 0, we double the appropriate one-sided p-value. Note: so R + R + = n R(D i ) = i=1 R = n(n + 1) 2 n i = i=1 R +. n(n + 1), 2 Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 7 / 14

Wilcoxon signed-rank test (cont d) To test the alternative H A : m < m 0, let R + = D i >0 R(D i ) and reject H 0 for small values of R +. For H A : m m 0, we double the appropriate one-sided p-value. Note: so R + R + = n R(D i ) = i=1 R = n(n + 1) 2 n i = i=1 R +. n(n + 1), 2 It is possible to find the null distribution of R +, or R, using the fact that each of the 2 n sequences of signs of D i are equally likely. Table VI contains lower-tail probabilities for this distribution for 4 n 15. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 7 / 14

Wilcoxon signed-rank test (cont d) If, for k = 1, 2,..., n, we let { 1, if, for some i, D i has rank k and D i > 0, I k = 0, otherwise, then R + = n ki k. k=1 Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 8 / 14

Wilcoxon signed-rank test (cont d) If, for k = 1, 2,..., n, we let { 1, if, for some i, D i has rank k and D i > 0, I k = 0, otherwise, then R + = n ki k. Assuming H 0 is true, I k is Bernoulli with probability of success p = 1 2. k=1 Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 8 / 14

Wilcoxon signed-rank test (cont d) If, for k = 1, 2,..., n, we let { 1, if, for some i, D i has rank k and D i > 0, I k = 0, otherwise, then R + = n ki k. Assuming H 0 is true, I k is Bernoulli with probability of success p = 1 2. Hence, if H 0 is true, n E[R + ] = ke[i k ] = 1 n n(n + 1) k = 2 4 and var[r + ] = k=1 n k 2 var[i k ] = 1 4 k=1 k=1 k=1 n k 2 = k=1 n(n + 1)(2n + 1). 24 Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 8 / 14

Wilcoxon signed-rank test (cont d) In may be shown that for n > 15 the null distributions of R + and R are reasonably well approximated by a normal distribution with mean and variance n(n + 1) 2 n(n + 1)(2n + 1). 24 Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 9 / 14

Example Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 10 / 14

Example Suppose m is the median of the distribution of the Shoshoni beaded rectangle data and we wish to test H 0 : m = 0.618 H A : m 0.618. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 10 / 14

Example Suppose m is the median of the distribution of the Shoshoni beaded rectangle data and we wish to test H 0 : m = 0.618 H A : m 0.618. The observed values d i, i = 1, 2,..., 20, are 0.075 0.044 0.072 0.012 0.048 0.131 0.054 0.010 0.009 0.226 0.036 0.003 0.050 0.017 0.042 0.052 0.012 0.007 0.065 0.315 Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 10 / 14

Example (cont d) Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 11 / 14

Example (cont d) Putting these in order of magnitude, we have: 0.003 [1] 0.007 [2] 0.009 [3] 0.010 [4] 0.012 [5] 0.012 [6] 0.017 [7] 0.036 [8] 0.042 [9] 0.044 [10] 0.048 [11] 0.050 [12] 0.052 [13] 0.054 [14] 0.065 [15] 0.072 [16] 0.075 [17] 0.131 [18] 0.226 [19] 0.315 [20] Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 11 / 14

Example (cont d) Putting these in order of magnitude, we have: 0.003 [1] 0.007 [2] 0.009 [3] 0.010 [4] 0.012 [5] 0.012 [6] 0.017 [7] 0.036 [8] 0.042 [9] 0.044 [10] 0.048 [11] 0.050 [12] 0.052 [13] 0.054 [14] 0.065 [15] 0.072 [16] 0.075 [17] 0.131 [18] 0.226 [19] 0.315 [20] Hence r + = 4 + 8 + 10 + 12 + 13 + 14 + 16 + 17 + 18 + 19 + 20 = 151 and r = 1 + 2 + 3 + 5 + 6 + 7 + 9 + 11 + 15 = 59. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 11 / 14

Example (cont d) Putting these in order of magnitude, we have: 0.003 [1] 0.007 [2] 0.009 [3] 0.010 [4] 0.012 [5] 0.012 [6] 0.017 [7] 0.036 [8] 0.042 [9] 0.044 [10] 0.048 [11] 0.050 [12] 0.052 [13] 0.054 [14] 0.065 [15] 0.072 [16] 0.075 [17] 0.131 [18] 0.226 [19] 0.315 [20] Hence r + = 4 + 8 + 10 + 12 + 13 + 14 + 16 + 17 + 18 + 19 + 20 = 151 and r = 1 + 2 + 3 + 5 + 6 + 7 + 9 + 11 + 15 = 59. The p-value is then 2P(R 59 m = 0.618) = 2(0.04484749) = 0.08969498, where the R command > psignrank(59,20) was used to compute P(R 59 m = 0.618). Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 11 / 14

Example Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 12 / 14

Example To approximate this value using the normal approximation, we first find E[R ] = (20)(21) = 105 4 and var[r ] = (20)(21)(41) 24 = 717.5. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 12 / 14

Example To approximate this value using the normal approximation, we first find E[R ] = (20)(21) = 105 4 and Then find var[r ] = (20)(21)(41) 24 z = = 717.5. 59 105 717.5 = 1.717. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 12 / 14

Example To approximate this value using the normal approximation, we first find E[R ] = (20)(21) = 105 4 and Then find var[r ] = (20)(21)(41) 24 z = = 717.5. 59 105 717.5 = 1.717. Hence an approximate p-value is given by 2Φ( 1.717) = 0.08597917. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 12 / 14

Example (cont d) Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 13 / 14

Example (cont d) The R command > wilcox.test(x,mu=.618) will perform the test, computing the exact p-value if the sample size is less than 50 and there are no ties in the data, and using a normal approximation for the p-value otherwise. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 13 / 14

Example (cont d) The R command > wilcox.test(x,mu=.618) will perform the test, computing the exact p-value if the sample size is less than 50 and there are no ties in the data, and using a normal approximation for the p-value otherwise. By default, the latter approximation uses a continuity correction, and so will differ slightly from the approximation we computed above. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 13 / 14

Notes on the sign and signed-rank tests In both the sign test and the signed-rank test, we discard any observations x for which x m 0 = 0. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 14 / 14

Notes on the sign and signed-rank tests In both the sign test and the signed-rank test, we discard any observations x for which x m 0 = 0. In the signed-rank test, we average the ranks of any ties. The significance level is not affected greatly if the number of ties is small. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 14 / 14

Notes on the sign and signed-rank tests In both the sign test and the signed-rank test, we discard any observations x for which x m 0 = 0. In the signed-rank test, we average the ranks of any ties. The significance level is not affected greatly if the number of ties is small. The tests are applicable to discrete distributions provided P(X < m) = P(X > m), where X is a random variable with the given distribution. Dan Sloughter (Furman University) Nonparametric Tests April 20, 2006 14 / 14