Wilcoxon rank sum test

조회 수: 8 (최근 30일)
Christian
Christian 2015년 5월 31일
댓글: Star Strider 2015년 5월 31일
Dear all,
I am facing another statistical issue and I hope someone out there can help me :-)
My data: 2 samples of companies, which were targets of a specific intervention at some point in time. I look at the development of a certain financial ratio in the years subsequent to the event. One sample contains targets of SUCCESSFUL interventions, the other entails targets of UNSUCCESSFUL events.
My task: I want to test for difference in both MEANS and MEDIANS between the ratios for the two samples in the various years subsequent to the event.
My approach: I am using the paired-sample t-test (ttest) for testing the means and the two-sided Wilcoxon rank sum test (ranksum) for testing the medians (as I am of the opinion that I am dealing with two independent samples).
My problem: The t-statistic (testing the difference in means) is very insignificant for all five years ex-post the event, which I was expecting. The z-statistic (ranksum), however, is highly significant for all years in question, even though for two of the five years the medians of the successful and the unsuccessful sample are almost identical.
My questions: Am I using the right tests? If so, can my results (especially for the test of differences in median) be correct and why? Are my samples (companies who have undergone successful interventions vs. unsuccessful interventions) independent? Or should I rather use the Wilcoxon SIGNED rank test?
Any help is much appreciated.
My best, Christian

채택된 답변

Star Strider
Star Strider 2015년 5월 31일
The t-test assumes your data are normally distributed. The Wilcoxon rank sum test is nonparametric (although the statistic derived from it is normally-distributed, creating the z-score).
I would use histfit to begin with to see how your data are distributed, then choose the appropriate test.
  댓글 수: 4
Christian
Christian 2015년 5월 31일
Hey Star, I made a mistake. Now my z-statistics make sense. I included ~isnan on both x and y in my ranksum formula. Really stupid :-(
Sorry for bothering you, and thanks again for your help Star! Much appreciated!
Star Strider
Star Strider 2015년 5월 31일
My pleasure!
You didn’t bother me at all! You did send me back to the books (always good, in my opinion) to review the two Wilcoxon tests and research their applicability to your data.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Hypothesis Tests에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by