Lecture 15 Wilcoxon Tests

Slides:



Advertisements
Similar presentations
Hypothesis testing Another judgment method of sampling data.
Advertisements

Chapter 16 Introduction to Nonparametric Statistics
statistics NONPARAMETRIC TEST
Lecture 10 Non Parametric Testing STAT 3120 Statistical Methods I.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Business Statistics - QBM117
Lesson #25 Nonparametric Tests for a Single Population.
Statistics 07 Nonparametric Hypothesis Testing. Parametric testing such as Z test, t test and F test is suitable for the test of range variables or ratio.
1 Distribution-free testing If the data are normally distributed, we may apply a z- test or t-test when the parameter of interest is . But what if this.
15-1 Introduction Most of the hypothesis-testing and confidence interval procedures discussed in previous chapters are based on the assumption that.
Chapter 15 Nonparametric Statistics
The paired sample experiment The paired t test. Frequently one is interested in comparing the effects of two treatments (drugs, etc…) on a response variable.
NONPARAMETRIC STATISTICS
Lesson Inferences about the Differences between Two Medians: Dependent Samples.
What are Nonparametric Statistics? In all of the preceding chapters we have focused on testing and estimating parameters associated with distributions.
Previous Lecture: Categorical Data Methods. Nonparametric Methods This Lecture Judy Zhong Ph.D.
Nonparametric Statistics aka, distribution-free statistics makes no assumption about the underlying distribution, other than that it is continuous the.
Fall 2002Biostat Nonparametric Tests Nonparametric tests are useful when normality or the CLT can not be used. Nonparametric tests base inference.
Nonparametric Statistics. In previous testing, we assumed that our samples were drawn from normally distributed populations. This chapter introduces some.
Wilcoxon Matched-Pairs Signed Rank Test A nonparametric alternative to the t test for related samples Before and After studies Studies in which measures.
Ch11: Comparing 2 Samples 11.1: INTRO: This chapter deals with analyzing continuous measurements. Later, some experimental design ideas will be introduced.
GG 313 Lecture 9 Nonparametric Tests 9/22/05. If we cannot assume that our data are at least approximately normally distributed - because there are a.
CD-ROM Chap 16-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition CD-ROM Chapter 16 Introduction.
1 Uses both direction (sign) and magnitude. Applies to the case of symmetric continuous distributions: Mean equals median. Wilcoxon Signed-Rank Test.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Copyright © Cengage Learning. All rights reserved. 15 Distribution-Free Procedures.
Wilcoxon Signed Rank Testing for a difference R+ RR
13 Nonparametric Methods Introduction So far the underlying probability distribution functions (pdf) are assumed to be known, such as SND, t-distribution,
1 Nonparametric Statistical Techniques Chapter 18.
1 Underlying population distribution is continuous. No other assumptions. Data need not be quantitative, but may be categorical or rank data. Very quick.
Ex St 801 Statistical Methods Part 2 Inference about a Single Population Mean (HYP)
Inference about the slope parameter and correlation
Introduction For inference on the difference between the means of two populations, we need samples from both populations. The basic assumptions.
Chapter 4 Comparing Two Groups of Data
3. The X and Y samples are independent of one another.
Chapter 4. Inference about Process Quality
Data Analysis and Interpretation
Unit 7 Today we will look at: Normal distributions
Lecture 6 Comparing Proportions (II)
Hypothesis Testing: Hypotheses
Lecture 16 Nonparametric Two-Sample Tests
Lesson Inferences about the Differences between Two Medians: Dependent Samples.
Statistics in Water Resources, Lecture 6
Environmental Modeling Basic Testing Methods - Statistics
Lecture 17 Rank Correlation Coefficient
Nonparametric Tests (1)
Chapter 9 Hypothesis Testing.
Lecture 13 The Quantile Test
Lecture 11 Nonparametric Statistics Introduction
Nonparametric Statistics
9 Tests of Hypotheses for a Single Sample CHAPTER OUTLINE
Signed-rank statistic
Lecture 18 The Run Test Outline of Today The Definition
Lecture 7 The Odds/ Log Odds Ratios
Lecture Slides Elementary Statistics Twelfth Edition
Chapter 12 Nonparametric Methods
Some Nonparametric Methods
Lecture 12 Binomial Tests and Quantiles
Tutorial 7 Consider the example discussed in the lecture, concerning the comparison of two teaching methods A and B, and let W denote the sum of the.
Lecture 14 The Sign Test and the Rank Test
The Rank-Sum Test Section 15.2.
NONPARAMETRIC METHODS
Inferences Between Two Variables
Nonparametric Statistics
Tests of inference about 2 population means
Distribution-Free Procedures
pairing data values (before-after, method1 vs
See Table and let’s do it in R…
For a permutation test, we have H0: F1(x) = F2(x) vs
Wilcoxon Rank-Sum Test
Presentation transcript:

Lecture 15 Wilcoxon Tests Outline of Today Wilcoxon Signed Test for Median Wilcoxon Signed Test for Paired Experiment 11/22/2018 SA3202, Lecture 15

Wilcoxon’s Signed Rank Test for the Median Wilcoxon’s signed rank test is a more powerful alternative to the sign test ( for testing the median or comparing two related distributions). The problem Given a sample X1, X2, …, Xn ~F, continuous and symmetric, consider testing the hypothesis H0: =a (the median is a). For sign test, let Di=Xi-a, i=1,2,…,n. Note that the sign test is based on only the signs of these differences, but not their magnitudes. The Wilcoxon Signed Rank Test takes both the signs and magnitudes of the differences di into account ( but requires an extra assumption of symmetry). 11/22/2018 SA3202, Lecture 15

Step 2 We rank the absolute values of the difference |Xi-a|. Let Procedure Step 1 As with the sign test, we ignore zero differences, and adjust the sample size accordingly. In what follows, n is really just the adjust sample size. Step 2 We rank the absolute values of the difference |Xi-a|. Let Sp=Sum of ranks for Positive differences Sm=Sum of ranks for Negative differences 11/22/2018 SA3202, Lecture 15

Sp+Sm=Sum of all the ranks= Null Distribution Due to symmetry, under H0, Sp and Sm have the same distribution: Sp+Sm=Sum of all the ranks= E(Sp)=E(Sm)= When H0 is true, we expect Sp and Sm to be about n(n+1)/4, whereas H0 is false, one of them, depending on the H1, tends to be smaller than n(n+1)/4. Thus, we may use Sp or Sm as test statistic 11/22/2018 SA3202, Lecture 15

Pr(Sp <=T0)=Pr(Sp>=n(n+1)/2-T0) Remarks Remark 1 When the critical table just gives the lower quantiles of the distribution Sp or Sm, the upper quantiles may be found using symmetry: Under H0, Sp and Sm have the same symmetric distributions, with mean n(n+1)/4 Pr(Sp <=T0)=Pr(Sp>=n(n+1)/2-T0) Pr(Sm<=T0)=Pr(Sm>=n(n+1)/2-T0) Remark 2 The problem of finding the upper quantiles may be avoided by using the following procedure: 1. For H1: >a, reject H0 when Sm is too small 2. For H1: <a, reject H0 when Sp is too small 3. For H1: a, reject H0 when either Sp or Sm is too small 11/22/2018 SA3202, Lecture 15

E(Sp)=n(n+1)/4, Var(Sp)=n(n+1)(2n+1)/24 So Sp+.5- n(n+1)/4 Large Sample Test For large sample sizes (n>=25), we use normal approximation: Under H0, Sp (or Sm) is asymptotically normal with E(Sp)=n(n+1)/4, Var(Sp)=n(n+1)(2n+1)/24 So Sp+.5- n(n+1)/4 ---------------------------- ~AN(0,1) {n(n+1)(2n+1)/24}^(1/2) 11/22/2018 SA3202, Lecture 15

Wilcoxon’s Signed Rank Test for a Paired Experiment Suppose that we have n pairs of observations of the form (Xi, Yi) and that we wish to test H0: X~Y against H1: X~Y+theta As before, we use the difference Di=Xi-Yi, i=1,2,…,n. Under H0, the distribution of Di is symmetric about 0. The procedure is then to rank the absolute values of these differences and use the statistics: Sp=Sum of ranks for Positive differences Sm=Sum of ranks for Negative differences For H1: theta>0, we reject H0 when Sm is too small theta<0, we reject H0 when Sp is too small theta 0, we reject H0 when either Sp or Sm is too small 11/22/2018 SA3202, Lecture 15

Example The following table shows the density of six pairs of cakes, using two different mixes A and B. We wish to test H0: there is no difference between A and B against a two-sided alternative A .135 .102 .108 .141 .131 .144 B .129 .120 .112 .152 .135 .163 A-B .006 -.18 -.004 -.011 -.004 -.019 Rank 3 5 1.5 4 1.5 6 We then have Sm=18, Sp=3. For a two-sided test of size 10%, the critical region is min(Sp,Sm)<=2. Thus, H0 is not rejected. 11/22/2018 SA3202, Lecture 15