Inference for Numerical Data in R
Mine Cetinkaya-Rundel
Associate Professor of the Practice, Duke University
Vrátíme se k datům z průzkumu High School and Beyond.
Poskytují data přesvědčivý důkaz o rozdílu mezi průměrnými skóre čtení a psaní studentů? Použijte hladinu významnosti 5 %.
$H_0: \mu_{diff} = 0$, Mezi průměrnými skóre čtení a psaní není žádný rozdíl.
$H_A: \mu_{diff} \ne 0$, Mezi průměrnými skóre čtení a psaní existuje rozdíl.
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
Inference for Numerical Data in R