简体   繁体   English

R中此二项式检验中的样本估计值是什么意思?

[英]What is meant by sample estimates in this binom test in R?

What is meant by sample estimates in this binom test. 此二项检验中的样本估计值是什么意思。 They don't seem to change with change in porbability of success . 他们似乎并没有随着porbability of success改变而改变。 I have tried to find it's meaning in documentation and on google but can't see it. 我试图在文档和Google中找到它的含义,但看不到它。 I also tried to hand compute it, to check if it meant any thing but still I cannot see what it really means. 我也尝试过手工计算它,以检查它是否意味着什么,但仍然看不到它真正的含义。 Any idea? 任何想法?

binom.test(60, 300, 0.3) binom.test(60,300,0.3)

    Exact binomial test

data:  60 and 300
number of successes = 60, number of trials = 300, p-value = 0.0001137
alternative hypothesis: true probability of success is not equal to 0.3
95 percent confidence interval:
 0.1562313 0.2498044
sample estimates:
probability of success 
               0.2 

binom.test(60, 300, 1/6) binom.test(60,300,1/6)

    Exact binomial test

data:  60 and 300
number of successes = 60, number of trials = 300, p-value = 0.1216
alternative hypothesis: true probability of success is not equal to     0.1666667
95 percent confidence interval:
0.1562313 0.2498044
sample estimates:
probability of success 
                0.2 

binom.test(60, 300, 0.5) binom.test(60,300,0.5)

    Exact binomial test

data:  60 and 300
number of successes = 60, number of trials = 300, p-value < 2.2e-16
alternative hypothesis: true probability of success is not equal to 0.5
95 percent confidence interval:
 0.1562313 0.2498044
sample estimates:
probability of success 
                 0.2 

I will use your second chunk of code to explain (it is the same for all). 我将使用您的第二段代码进行解释(所有代码都是相同的)。

Imagine rolling a die. 想象一下,掷骰子。 The probability of rolling a 6 if the die is fair is 1/6 . 如果骰子是公平的, 1/6 6的概率是1/6 This is the third argument of the binom.test function. 这是binom.test函数的第三个参数。 Therefore, in your example, the successes that you would expect would be 300 / 6 = 50 . 因此,在您的示例中,您期望的成功将是300 / 6 = 50 This implies a (hypothesized) probability of success of 1/6 . 这意味着(假设的)成功概率为1/6

However, you observed 60 successes. 但是,您观察到60成功。 These 60 observed successes are used to calculate the success sample estimate ie the value that you see at the bottom. 60观察到的成功用于计算成功样本估计值,即您在底部看到的值。 This is calculated as 60 / 300 = 0.2 . 计算公式为60 / 300 = 0.2

The binomial test then is used to test whether the proportion of 6s that you observed is significantly higher than would be expected by chance (ie 50 if the die is fair). 然后使用二项式检验来检验您观察到的6s的比例是否明显高于偶然预期的比例(例如,如果死是公平的,则为50)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM