t検定による平均の検定

R による数値データの推測

Mine Cetinkaya-Rundel

Associate Professor of the Practice, Duke University

仮説

高校生調査データを再確認しましょう。

生徒の平均読解スコアと作文スコアに差があるという確かな証拠はあるか?有意水準5%を使用すること。

$H_0: \mu_{diff} = 0$、平均読解スコアと作文スコアに差はない。

$H_A: \mu_{diff} \ne 0$、平均読解スコアと作文スコアに差がある。

R による数値データの推測

t検定による平均の検定

t.test(hsb2$diff, null = 0, alternative = "two.sided")
R による数値データの推測

t検定による平均の検定

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 による数値データの推測

練習しましょう!

R による数値データの推測

Preparing Video For Download...