Contents

1 覈觜 蟲螳豢
2 伎 觜 蟆
3 覈蠏 蟲螳豢
4 蠍壱 覦覯
5 谿瑚危


1 覈觜 蟲螳豢 #

企 碁襯 譟一 蟆郁骸 100覈 譴 48覈 蠏 誤 蟆朱 . 95%襤郁規螳 蟲企慨.

prop.test(48,100,conf.level=0.95)

        1-sample proportions test with continuity correction

data:  48 out of 100, null probability 0.5 
X-squared = 0.09, df = 1, p-value = 0.7642
alternative hypothesis: true p is not equal to 0.5 
95 percent confidence interval:
 0.3798722 0.5816817 
sample estimates:
   p 
0.48 

襤郁規螳 (0.3798722, 0.5816817) 企. 讀, 38% ~ 58% 觜

2 伎 觜 蟆 #

A 300覈 譴 100覈, B 400覈 譴 170覈 D覲企ゼ 讌讌り 譟一. A B D覿 讌讌 觜 螳り 螳?

p <- c(100/300, 170/400)
n <- c(300, 400)
prop.test(n*p, n, alt="two.sided")


        2-sample test for equality of proportions with continuity
        correction

data:  n * p out of n 
X-squared = 5.6988, df = 1, p-value = 0.01698
alternative hypothesis: two.sided 
95 percent confidence interval:
 -0.16664176 -0.01669158 
sample estimates:
   prop 1    prop 2 
0.3333333 0.4250000 

蟆郁骸伎
  • 讌 企 蟇伎 觜 螳り 讌 蟆.

    • 蠏覓願: 谿願 .
    • 襴所: 谿願 .
  • p-value = 0.01698 朱 譴 0.05覲企 朱襦 襴所れ 觧 伎襯 谿場 覈詩. 蠏碁覩襦 襴所 豈, 蠏覓願 蠍郁. 讀, A B 螳 D覲伎 讌讌 谿願 .

3 覈蠏 蟲螳豢 #


> x <- c(95,92,94,95,96,96,94,95,93,95,96,94)
> t.test(x)

        One Sample t-test

data:  x 
t = 264.2069, df = 11, p-value < 2.2e-16
alternative hypothesis: true mean is not equal to 0 
95 percent confidence interval:
 93.79540 95.37126 
sample estimates:
mean of x 
 94.58333 

> 

蟲螳...93.79540 ~ 95.37126


4 蠍壱 覦覯 #

5 谿瑚危 #