My summary notes

t test의 비모수 통계: 윌콕슨 순위합 검정 (wilcoxon rank sum test)

쪽파 [Chives] 2024. 10. 10. 11:30

윌콕슨 순위합 검정 (wilcoxon rank sum test)

 

1. 언제 이용?

   자료가 정규분포하지 않을때의 t test가 부적절시의 비모수 통계법

   전체 데이터에서 순위를 매기고, 두 그룹으로 나누어 순위합을 비교후 Z 통계량을 구하고, 통계적 유의성 검정

   표를 제시할 때 두 그룹의 순위합이 아니라, 대표값인 중위수 (Q1, Q3)를 보여 줌.

 

   Wilcoxon Rank-Sum (or Mann-Whitney U) test is the non-parametric equivalent of two-sample independent T-test.

   It is a test of location, i.e., compares the medians: whether there is (or not) a significance difference in medians.

  (Wilcoxon Rank-Sum(또는 Mann-Whitney U) 검정은 두 표본 독립 T 검정의 비모수적 동등물입니다.

   이는 위치 검정으로, 중앙값을 비교합니다. 즉, 중앙값에 유의미한 차이가 있는지를 검정합니다.)

 

2. 가설검정

    Ho: 두 그룹의 중앙값 차이가 없다.

    H1: 두 그룹의 중앙값 차이가 있다.

 

3. SAS code

   proc npar1way data = your_data_name Wilcoxon;

   class your_group_variable;

   var your_outcome_varable;

   run;

 

4. 실제 예

   proc npar1way data = b2 Wilcoxon;
   class p2;  var sum_partici_year; run;
   run;

  (b2: 데이터, p2: 도시와 농촌, sum_partici_year : 조사 참여회수) 

 

결과해석: 도시와 농촌의 조사참여회수를 알기위한 z 값은 0.12, p value 0.90으로 귀무가설 채택

 

참고:

https://speedspeed.tistory.com/207

https://angeloyeo.github.io/2021/11/17/ranksum.html#google_vignette

https://columbiabiostatbmi.github.io/Attachments/Recitation/Recitation%206/Rec_06_SAS.pdf

반응형
LIST