
Cookbook
289
9.16 비모수적으로 두 표본의 위치 비교하기
#> t = -1, df = 200, p-value = 0.3
#> alternative hypothesis: true difference in means is not equal to 0
#> 95 percent confidence interval:
#> -46.4 16.2
#> sample estimates:
#> mean of x mean of y
#> 1054 1069
큰
p
-값은 집단들 사이에 차이가 없다는 결론을 내리게 한다. 동일한 데이터를, 대응
된 데이터라고 제대로 구별해 주고 나서 분석한 것과 대조해 보자.
t.test(x, y, paired = TRUE)
#>
#> Paired t-test
#>
#> data: x and y
#> t = -20, df = 100, p-value <2e-16
#> alternative hypothesis: true difference in means is not equal to 0
#> 95 percent confidence interval:
#> -16.8 -13.5
#> sample estimates:
#> mean of the differences
#> -15.1
p
-값은
2e
-
16
으로 확 떨어지며, 우리는 정반대의 결론을 내릴 수 있다.
모집단이 정규분포(종모양)로 ...