2017-08-24 147 views
0

在這個binom測試中,樣本估計的含義是什麼。他們似乎沒有改變porbability of success的變化。我試圖在文檔和Google上找到它的含義,但看不到它。我也試着手動計算它,檢查它是否意味着任何事情,但我仍然看不到它的真正含義。 有什麼想法?R中的這個binom測試中的樣本估計值是什麼意思?

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)

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)

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 
+0

你從哪裏看到「樣本估計」這個術語?我沒有在幫助文件中看到它。無論如何,通過執行''binom.test',你會看到函數調用,比如'binom.test(60,300,0.3)'對零假設'H_0:p = 0.3'進行測試。在零假設下,概率分佈是「二項式(300,0.3)」,並且觀察到的成功概率是「60/300 = 0.2」。所以在上面的所有例子中,我們都有相同的觀測概率「60/300」。假設是什麼在改變。讓我知道如果這有助於需要進一步澄清。 – jav

回答

1

我會用你的第二部分代碼來解釋(這對所有人來說都是一樣的)。

想象一下滾動模具。如果骰子合理,滾動的概率爲1/6。這是binom.test函數的第三個參數。因此,在你的例子中,你所期望的成功將是300/6 = 50。這意味着1/6成功的概率(假設)。

但是,您觀察到了60的成功。這些60觀測成功用於計算成功樣本估計值,即您在底部看到的值。這是計算爲60/300 = 0.2

然後用二項式檢驗來測試你觀察到的6s的比例是否明顯高於偶然預期的比例(即如果死亡是公平的話,則爲50)。