R 數值資料推論
Mine Cetinkaya-Rundel
Associate Professor of the Practice, Duke University
回到 High School and Beyond 調查資料。
這組資料是否能有力支持:學生的閱讀與寫作平均分數有差異?使用 5% 顯著水準。
$H_0: \mu_{diff} = 0$,閱讀與寫作的平均分數無差。
$H_A: \mu_{diff} \ne 0$,閱讀與寫作的平均分數有差。
t.test(hsb2$diff, null = 0, alternative = "two.sided")
t.test(hsb2$diff, null = 0, alternative = "two.sided")
One Sample t-test
data: hsb2$diff
t = -0.86731, df = 199, p-value = 0.3868
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
-1.7841424 0.6941424
sample estimates:
mean of x
-0.545
R 數值資料推論