Lesson 15 - 4 Inferences about the Differences between Two Medians: Dependent Samples.

Slides:



Advertisements
Similar presentations
Chapter 16 Introduction to Nonparametric Statistics
Advertisements

McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Nonparametric Methods Chapter 15.
Lesson Inferences Between Two Variables. Objectives Perform Spearman’s rank-correlation test.
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.
Chapter 12 Chi-Square Tests and Nonparametric Tests
EPI 809 / Spring 2008 Wilcoxon Signed Rank Test. EPI 809 / Spring 2008 Signed Rank Test Example You work in the finance department. Is the new financial.
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.
© 2004 Prentice-Hall, Inc.Chap 10-1 Basic Business Statistics (9 th Edition) Chapter 10 Two-Sample Tests with Numerical Data.
Basic Business Statistics (9th Edition)
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
Choosing Statistical Procedures
Chapter 14: Nonparametric Statistics
Claims about a Population Mean when σ is Known Objective: test a claim.
Correlation.
NONPARAMETRIC STATISTICS
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Lesson Inferences about Measures of Central Tendency.
Chapter 11 Nonparametric Tests.
Lesson Inferences about the Differences between Two Medians: Dependent Samples.
Previous Lecture: Categorical Data Methods. Nonparametric Methods This Lecture Judy Zhong Ph.D.
© Copyright McGraw-Hill CHAPTER 13 Nonparametric Statistics.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Copyright © Cengage Learning. All rights reserved. 14 Elements of Nonparametric Statistics.
Comparing Three or More Means ANOVA (One-Way Analysis of Variance)
Nonparametric Statistics. In previous testing, we assumed that our samples were drawn from normally distributed populations. This chapter introduces some.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Nonparametric Statistics
Lesson 15 - R Chapter 15 Review. Objectives Summarize the chapter Define the vocabulary used Complete all objectives Successfully answer any of the review.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
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.
Lesson Nonparametric Statistics Overview. Objectives Understand Difference between Parametric and Nonparametric Statistical Procedures Nonparametric.
NON-PARAMETRIC STATISTICS
Nonparametric Statistics
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Lesson Test to See if Samples Come From Same Population.
Nonparametric Statistics - Dependent Samples How do we test differences from matched pairs of measurement data? If the differences are normally distributed,
Lesson Runs Test for Randomness. Objectives Perform a runs test for randomness Runs tests are used to test whether it is reasonable to conclude.
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.
Nonparametric Statistics
9.3 Hypothesis Tests for Population Proportions

Chapter 12 Chi-Square Tests and Nonparametric Tests
Review of Testing a Claim
Statistics for Managers using Microsoft Excel 3rd Edition
NONPARAMETRIC STATISTICS
Inference about Two Means - Independent Samples
Lecture Slides Elementary Statistics Twelfth Edition
Inference about Two Means: Dependent Samples
Hypothesis tests for the difference between two means: Independent samples Section 11.1.
Inferences on Two Samples Summary
Elementary Statistics
Lecture Slides Elementary Statistics Twelfth Edition
Some Nonparametric Methods
Lesson Comparing Two Means.
Inference about Two Means: Independent Samples
Statistical Inference about Regression
Test to See if Samples Come From Same Population
The Rank-Sum Test Section 15.2.
Inferences Between Two Variables
Review of Chapter 10 Comparing Two Population Parameters
Nonparametric Statistics
Tests of inference about 2 population means
Inference about Two Means: Dependent Samples
Presentation transcript:

Lesson 15 - 4 Inferences about the Differences between Two Medians: Dependent Samples

Objectives Test a claim about the difference between the medians of two dependent samples

Vocabulary Wilcoxon Matched-Pairs Signed-Ranks Test -- a nonparametric procedure that is used to test the equality of two population medians obtained through dependent sampling (matched pairs). Ranks – 1 through n with ties award the sum of the tied ranks divided by the number tied. For example, if 4th and 5th observation was tied then they would both receive a 4.5 ranking. Signed-Ranks – ranks are constructed with absolute values and then the sign of the value (positive or negative) is applied to the ranking.

Parametric vs Nonparametric For our parametric test for matched-pairs (dependent samples), we Compared the corresponding observations by subtracting one from the other Performed a test of whether the mean is 0 using either t or z procedures Conditions: SRS, Independence (of differences), Normality For our nonparametric case for matched-pairs (dependent samples), we will Compare the corresponding observations by subtracting one from the other Perform a test of whether the median is 0 Conditions: matched pairs, random sample

Hypothesis Tests Using Wilcoxon Test Step 0: Compute the differences in the matched-pairs observations. Rank the absolute value of all sample differences from smallest to largest after discarding those differences that equal 0. Handle ties by finding the mean of the ranks for tied values. Assign negative values to the ranks where the differences are negative and positive values to the ranks where the differences are positive. Step 1 Hypotheses: Step 2 Box Plot: Draw a boxplot of the differences to compare the sample data from the two populations. This helps to visualize the difference in the medians. Step 3 Level of Significance: (level of significance determines the critical value) Determine a level of significance, based on the seriousness of making a Type I error Small-sample case: Use Table XI. Large-sample case: Use Table IV. (z table) Step 4 Compute Test Statistic: Step 5 Critical Value Comparison: Reject H0 if test statistic < critical value Step 6 Conclusion: Reject or Fail to Reject Left-Tailed Two-Tailed Right-Tailed H0: MD = 0 H1: MD < 0 H0: MD = 0 H1: MD ≠ 0 H0: MD= 0 H1: MD > 0

Test Statistic for the Wilcoxon Matched-Pairs Signed-Ranks Test Small-Sample Case: (n ≤ 30) Large-Sample Case: (n > 30) Left-Tailed Two-Tailed Right-Tailed H0: MD = 0 H1: MD < 0 H0: MD = 0 H1: MD ≠ 0 H0: MD= 0 H1: MD > 0 T = T+ T = smaller of T+ or |T-| T = |T-| Note: MD is the median of the differences of matched pairs. T+ is the sum of the ranks of the positive differences T- is the sum of the ranks of the negative differences n (n + 1) T – -------------- 4 z0 = ----------------------------- n (n + 1)(2n + 1) ------------------------ 24 Need: T (from above) n (number in sample) where T is the test statistic from the small-sample case.

Critical Value for Wilcoxon Matched-Pairs Signed-Ranks Test Small-Sample Case (n ≤ 30): Using α as the level of significance, the critical value is obtained from Table XI in Appendix A. Large-Sample Case (n > 30): Using α as the level of significance, the critical value is obtained from Table IV in Appendix A. The critical value is always in the left tail of the standard normal distribution. Left-Tailed Two-Tailed Right-Tailed -Tα -Tα/2 Left-Tailed Two-Tailed Right-Tailed -zα -zα/2

Comparison: TS vs CV Two-Tailed: if TS < CVα/2, reject H0 Left-Tailed: if TS < CVα, reject H0 Right-Tailed: if TS < CVα, reject H0

Example 1 from 15.4 X Y D = Y-X |D| Signed Rank NegT-calc 11.5 26.0 14.5 +7.5 14.1 26.2 12.1 +5 19.3 24.6 5.3 +3 35.0 30.8 -4.2 4.2 -2 15.9 37.5 21.6 +11 21.5 36.0 11.7 25.9 14.2 +6 17.1 16.9 -0.2 0.2 -1 27.3 50.2 22.9 +12 13.8 33.1 +10 43.2 99.9 56.7 +14 11.2 26.1 14.9 +9 34.2 43.8 9.6 +4 26.7 63.8 37.1 +13 T+ = 88 T- = |-3| = 3

Example continued H0: Meddif = 0 (Medians daily volumes are the same) Ha: Meddif > 0 (Medy > Medx Right tailed test) Box plot: Med-y > Med-x (My has an outlier) Test Statistic: |T-| = 3 (Sum of ranks in support of H0) From Table XI: Tcritcal = T0.05 = 25 The test statistic is less than the critical value (3 < 25) so we reject the null hypothesis and conclude My > Mx

HyCCI for Example 1 Hyp: H0: Median daily volume of JDS = Nortel Ha: Median daily volume of JDS > Nortel Conditions: Assume a matched pair random sample Calculations: Box plot: MedJDS > MedNortel (MJDS has an outlier) Test Statistic: |T-| = 3 (Sum of ranks in support of H0) From Table XI: Tcritcal = T0.05 = 25 Interpretation: The test statistic is less than the critical value (3 < 25) so we reject the null hypothesis and conclude MJDS > MNortel

Summary and Homework Summary Homework The Wilcoxon sign test is a nonparametric test for comparing the median of two dependent samples This test is a weighted count of the differences in signs between the paired observations The critical values for small samples are given in tables The critical values for large samples can be approximated by a calculation with the normal distribution Homework problems 2, 4, 5, 8, 9, 15 from the CD

Homework Answers n T+ T- T z0 Test Stat Prob 4 20 65 -1.493 Prob 5 15 33 -1.533 Prob 8 14 60 45 -0.471 Prob 9 40 300 -1.479 Prob 15 8 30 4 -1.96 Diff Rank 38 52 58 2 72 7 5 74 -2 56 54 36 48 12 6 n = -4