251是什么意思| 三级手术是什么意思| 九一年属什么生肖| 孕妇应该吃什么蔬菜| 二胎政策什么时候开放的| 久站腿肿是什么原因引起的| 母亲节送妈妈什么礼物好| 扬长避短什么意思| 二聚体测定是什么| 乳头疼吃什么药| 680分能上什么大学| 切除扁桃体有什么好处和坏处| 息斯敏是什么药| rad是什么意思| 做喉镜能检查出什么病| 嘴巴苦苦的是什么原因| 伤到什么程度打破伤风| 福不唐捐什么意思| 浅表性胃炎伴糜烂吃什么药效果好| 为什么尿频| 头发湿着睡觉有什么害处| 恋恋不舍的意思是什么| 什么是七七事变| 什么是磁共振| 艳阳高照是什么生肖| 下焦湿热是什么意思| 隐喻的意思是什么| 怀孕胸部会有什么反应| 白羊座男和什么星座最配| 庸人自扰是什么意思| 朝对什么| 什么的池水| 弱智的人有什么表现| 坏血病的症状是什么| 脸上长癣是什么原因造成的| 服饰是什么意思| 乐山大佛是什么佛| 浑身痒是什么原因| 乳腺结节低回声是什么意思| 意字五行属什么| 病人说胡话是什么征兆| 梦见买白菜是什么意思| 配子是什么| 经常便秘吃什么调理| 十一月二十五是什么星座| 一直不射精是什么原因| 间接胆红素偏高什么意思| 堪称什么意思| 脾胃气虚吃什么药| 宝宝感冒吃什么药| 呦西是什么意思| 为什么感冒会咳嗽| 甲功七项检查什么| 肠炎用什么药| 传统是什么意思| 幽门螺旋杆菌挂什么科| 覆盖是什么意思| 伦字五行属什么| 红烧肉用什么肉| 吃什么可以减肥| 陪产假什么时候开始休| 做梦丢钱了什么征兆| 什么是法定节假日| 向日葵代表什么象征意义| 婊是什么意思| 5月28是什么星座| gp是什么的缩写| 无花果为什么叫无花果| 羽五行属什么| 梦见红棺材是什么征兆| 男人山根有痣代表什么| 吃饭老是噎着是什么原因| 春天有什么水果| 做什么好赚钱| 女性胆固醇高吃什么好| 胃反流吃什么药效果好| 七六年属什么生肖| 血糖低吃什么药| 做梦梦见钓鱼是什么意思| 河图洛书是什么意思| 低筋面粉能做什么| 拔智齿后可以吃什么| 解辣喝什么| 经常手淫对身体有什么危害| 掰弯了是什么意思| 脑脊液是什么颜色| 1957年发生了什么| 48年属什么生肖| 生眼屎是什么原因引起的| 什么驴技穷成语| 凤凰是什么| 芽原基发育成什么| 阴道瘙痒是什么原因| 乙肝病毒携带者有什么症状| 军校毕业是什么军衔| 手腕疼去医院挂什么科| 百白破是什么疫苗| 属羊是什么命| 1952年属什么生肖| 淋巴细胞偏高说明什么问题| 尿血是什么症状| 部分导联t波改变是什么意思| 院士是什么级别| 女人打呼噜是什么原因| 化痰祛痰吃什么药| 成是什么生肖| 舌苔黄厚吃什么药| 心率快吃什么药| 属虎的是什么命| 中性粒细胞高说明什么| 尿生化是查什么的| 汗斑用什么药膏| 入坑是什么意思| 什么是牙结石| 闭合性骨折是什么意思| 9月10日什么星座| 75年属什么的生肖| 怀孕后乳房有什么变化| 肺结节什么东西不能吃| rng是什么意思| 吃猪肺有什么好处和坏处| 脚踝肿挂什么科| fs是什么单位| 什么也别说| 拔牙有什么危害| 许久是什么意思| 胃不好的人适合吃什么水果| 啪啪啪什么意思| 二郎神是什么生肖| 梦见手机丢了又找到了是什么意思| 腺苷钴胺片治什么病| 射进去是什么感觉| chris是什么意思| au是什么货币| 先天性心脏病最怕什么| 检查乙肝五项挂什么科| 炸酱面用什么酱| 蛋白粉吃多了有什么危害| 真实是什么意思| 改嫁是什么意思| 属猴的和什么属相最配| 白玉是什么玉| 穿刺是检查什么的| 莒姬是什么位分| 狗肉和什么一起炖最佳| 艳字五行属什么| 做梦梦到掉牙齿是什么意思| 属牛是什么命| 7.21是什么日子| 马齿苋是什么| 脸上发痒是什么原因| 内火重吃什么药见效快| 什么的海风| cg是什么意思| 肾结石看病挂什么科室| 手指长痣代表什么| 宫颈hsil是什么意思| 云南雪燕有什么作用| 灰指甲挂什么科室| 什么鸡没有毛| c反应蛋白偏高是什么原因| 维生素B1有什么副作用| 香蕉不能和什么一起吃| 爱新觉罗是什么民族| 陆代表什么生肖| 可乐杀精是什么意思| 过敏了吃什么药好| 恐龙为什么会灭绝| 心里发慌是什么病| 材料化学属于什么类| 腹黑男是什么意思| 缺锌吃什么| 皮蛋是什么蛋做的| 12月14号是什么星座| 一个木一个舌读什么| 梦房子倒塌什么预兆| 今年28岁属什么生肖| 梦见刮胡子是什么意思| 11年是什么婚| 容易头晕是什么原因| 皮肤瘙痒用什么药| 虎皮鹦鹉吃什么食物| 头发细软是什么原因| 膀胱破裂什么症状| 中国特工组织叫什么| 肾亏是什么意思| chemical是什么意思| 大脑供血不足用什么药| 山葵是什么| 反复发烧吃什么药| 六月什么星座| 兰桂坊是什么地方| 变化不著是什么意思| 大腿淤青是什么原因| 血色素是什么| 高原反应的原因是什么| 岁岁年年是什么意思| 幡然是什么意思| 心跳和心率有什么区别| 人流后什么时候来月经| 冷酷是什么意思| 印尼用什么货币| 脑白质疏松是什么病| 月经期适合吃什么食物| 做梦梦见死去的亲人是什么意思| 葡萄什么时候种植| 什么是宫颈纳囊| 人为什么要穿衣服| 三次元是什么意思| 怀疑心梗做什么检查| 膝盖内侧疼是什么原因| 什么是目标| 大麦茶是什么做的| 什么是意象| k是什么元素| 一级甲等医院是什么意思| 口腔溃疡吃什么食物| 10点多是什么时辰| 马子是什么意思| po医学上是什么意思| coscia是什么品牌| 辣椒炭疽病用什么药| 云想衣裳花想容是什么意思| 气管炎吃什么药最有效| 大学挂科是什么意思| 观字五行属什么| 洋生姜的功效与作用是什么| 普萘洛尔是什么药| 喝椰子水有什么好处| 车顶放饮料什么意思| 沉鱼落雁闭月羞花是什么意思| 维生素e有什么功效| 消失是什么意思| 破冰是什么意思| 黑洞里面有什么| 格斗和散打有什么区别| 果实是什么意思| 草莓像什么| 念想是什么意思| 张伦硕为什么娶钟丽缇| 潘粤明老婆现任叫什么| 真心是什么意思| 翡翠和和田玉有什么区别| 1998年出生属什么生肖| 输氨基酸对身体有什么好处和坏处| 钟馗是什么意思| 什么同道合| 杭州有什么| w是什么单位| 日本天皇叫什么名字| 为什么喝咖啡会拉肚子| 长白头发缺什么维生素| 阳历7月15日是什么星座| 晒太阳对身体有什么好处| cn是什么意思二次元| 飞机后面的白烟是什么| 智五行属性是什么| 肌无力吃什么药最好| 吃饭老是噎着是什么原因| 猪宝是什么东西| 弱酸性是什么意思| 珍惜眼前人是什么意思| 刺猬和豪猪有什么区别| 送男人什么礼物最难忘| 百度Jump to content

???????????????????????  ????????????

From Wikipedia, the free encyclopedia
百度 许峰认为。

Binomial test is an exact test of the statistical significance of deviations from a theoretically expected distribution of observations into two categories using sample data.

Usage

[edit]

A binomial test is a statistical hypothesis test used to determine whether the proportion of successes in a sample differs from an expected proportion in a binomial distribution. It is useful for situations when there are two possible outcomes (e.g., success/failure, yes/no, heads/tails), i.e., where repeated experiments produce binary data. If one assumes an underlying probability between 0 and 1, the null hypothesis is

For a sample of size , we would expect successes. The formula of the binomial distribution gives the probability of those samples instead producing successes:

Suppose that we want to test the alternative hypothesis

i.e., we suspect that the actual probability of success is lower than . Then our -value would be computed using a one-tailed test; specifically, we compute the probability of seeing an outcome as extreme as, or more extreme (i.e., less likely), than :

An analogous computation can be done if we're testing if using the summation of the range from to instead.

Calculating a -value for a two-tailed test is slightly more complicated, since a binomial distribution isn't symmetric if . This means that we can't just double the -value from the one-tailed test. Recall that we want to consider events that are as extreme, or more extreme, than the one we've seen, so we should consider the probability that we would see an event that is as, or less, likely than . Let denote all such events. Then the two-tailed -value is calculated as,

Common use

[edit]

One common use of the binomial test is the case where the null hypothesizes that two categories occur with equal frequency (), such as a coin toss. Tables are widely available to give the significance observed numbers of observations in the categories for this case. However, as the example below shows, the binomial test is not restricted to this case.

When there are more than two categories, and an exact test is required, the multinomial test, based on the multinomial distribution, must be used instead of the binomial test.[1]

Most common measures of effect size for Binomial tests are Cohen's h or Cohen's g.

Large samples

[edit]

For large samples such as the example below, the binomial distribution is well approximated by convenient continuous distributions, and these are used as the basis for alternative tests that are much quicker to compute, such as Pearson's chi-squared test and the G-test. However, for small samples these approximations break down, and there is no alternative to the binomial test.

The most usual (and easiest) approximation is through the standard normal distribution, in which a z-test is performed of the test statistic , given by

where is the number of successes observed in a sample of size and is the probability of success according to the null hypothesis. An improvement on this approximation is possible by introducing a continuity correction:

For very large , this continuity correction will be unimportant, but for intermediate values, where the exact binomial test doesn't work, it will yield a substantially more accurate result.

In notation in terms of a measured sample proportion , null hypothesis for the proportion , and sample size , where and , one may rearrange and write the z-test above as

by dividing by in both numerator and denominator, which is a form that may be more familiar to some readers.

Example

[edit]

Suppose we have a board game that depends on the roll of one die and attaches special importance to rolling a 6. In a particular game, the die is rolled 235 times, and 6 comes up 51 times. If the die is fair, we would expect 6 to come up

times. We have now observed that the number of 6s is higher than what we would expect on average by pure chance had the die been a fair one. But, is the number significantly high enough for us to conclude anything about the fairness of the die? This question can be answered by the binomial test. Our null hypothesis would be that the die is fair (probability of each number coming up on the die is 1/6).

To find an answer to this question using the binomial test, we use the binomial distribution

with pmf .

As we have observed a value greater than the expected value, we could consider the probability of observing 51 6s or higher under the null, which would constitute a one-tailed test (here we are basically testing whether this die is biased towards generating more 6s than expected). In order to calculate the probability of 51 or more 6s in a sample of 235 under the null hypothesis we add up the probabilities of getting exactly 51 6s, exactly 52 6s, and so on up to probability of getting exactly 235 6s:

If we have a significance level of 5%, then this result (0.02654 < 5%) indicates that we have evidence that is significant enough to reject the null hypothesis that the die is fair.

Normally, when we are testing for fairness of a die, we are also interested if the die is biased towards generating fewer 6s than expected, and not only more 6s as we considered in the one-tailed test above. In order to consider both the biases, we use a two-tailed test. Note that to do this we cannot simply double the one-tailed p-value unless the probability of the event is 1/2. This is because the binomial distribution becomes asymmetric as that probability deviates from 1/2. There are two methods to define the two-tailed p-value. One method is to sum the probability that the total deviation in numbers of events in either direction from the expected value is either more than or less than the expected value. The probability of that occurring in our example is 0.0437. The second method involves computing the probability that the deviation from the expected value is as unlikely or more unlikely than the observed value, i.e. from a comparison of the probability density functions. This can create a subtle difference, but in this example yields the same probability of 0.0437. In both cases, the two-tailed test reveals significance at the 5% level, indicating that the number of 6s observed was significantly different for this die than the expected number at the 5% level.

In statistical software packages

[edit]

Binomial tests are available in most software used for statistical purposes. E.g.

  • In R the above example could be calculated with the following code:
    • binom.test(51, 235, 1/6, alternative = "less") (one-tailed test)
    • binom.test(51, 235, 1/6, alternative = "greater") (one-tailed test)
    • binom.test(51, 235, 1/6, alternative = "two.sided") (two-tailed test)
  • In Java using the Apache Commons library:
    • new BinomialTest().binomialTest(235, 51, 1.0 / 6, AlternativeHypothesis.LESS_THAN) (one-tailed test)
    • new BinomialTest().binomialTest(235, 51, 1.0 / 6, AlternativeHypothesis.GREATER_THAN) (one-tailed test)
    • new BinomialTest().binomialTest(235, 51, 1.0 / 6, AlternativeHypothesis.TWO_SIDED) (two-tailed test)
  • In SAS the test is available in the Frequency procedure
    PROC FREQ DATA=DiceRoll ;
    	TABLES Roll / BINOMIAL (P=0.166667) ALPHA=0.05 ;
    	EXACT  BINOMIAL ;
    	WEIGHT Freq ;
    RUN;
    
  • In SPSS the test can be utilized through the menu Analyze > Nonparametric test > Binomial
     npar tests 
     /binomial (.5) = node1 node2.
    
  • In Python, use SciPy's binomtest:
    • scipy.stats.binomtest(51, 235, 1.0/6, alternative="greater") (one-tailed test)
    • scipy.stats.binomtest(51, 235, 1.0/6, alternative="two-sided") (two-tailed test)
  • In MATLAB, use myBinomTest, which is available via Mathworks' community File Exchange website. myBinomTest will directly calculate the p-value for the observations given the hypothesized probability of a success. [pout]=myBinomTest(51, 235, 1/6) (generally two-tailed, but can optionally perform a one-tailed test).
  • In Stata, use bitest.
  • In Microsoft Excel, use Binom.Dist. The function takes parameters (Number of successes, Trials, Probability of Success, Cumulative). The "Cumulative" parameter takes a boolean True or False, with True giving the Cumulative probability of finding this many successes (a left-tailed test), and False the exact probability of finding this many successes.

See also

[edit]

References

[edit]
  1. ^ Howell, David C. (2007). Statistical methods for psychology (6. ed.). Belmont, Calif.: Thomson. ISBN 978-0495012870.

Further reading

[edit]
  • Dougherty, Edward R. (1990). "Testing a Proportion". Probability and Statistics for the Engineering, Computing, and Physical Sciences. Englewood Cliffs: Prentice Hall. pp. 417–423. ISBN 0-13-711995-X.
[edit]
释怀和释然有什么区别 初中学历能做什么工作 秋收冬藏是什么生肖 11月份是什么星座 什么网站可以看三级片
九个月宝宝吃什么辅食 6.3是什么星座 加息是什么意思 瑞五行属什么 人流前需要检查什么项目
梦到吃苹果是什么意思 喉咙痛挂什么科 肌酐低有什么危害 牙龈化脓是什么原因 乙肝15阳性是什么意思
白天咳嗽晚上不咳嗽是什么原因 diff是什么意思 吃什么能让子宫瘤变小 小孩尿不出来尿是什么原因 失眠去药店买什么药
刘备和刘表什么关系520myf.com 人均gdp是什么意思hcv8jop1ns2r.cn 爱心是什么牌子hcv8jop7ns5r.cn 高我是什么意思hcv7jop9ns7r.cn 云南有什么山hcv9jop2ns2r.cn
脸红是什么大病的前兆hcv7jop9ns1r.cn 驻马店有什么大学hcv8jop1ns6r.cn 为什么会得荨麻疹呢hcv9jop2ns0r.cn 不现实什么意思clwhiglsz.com 八字桃花是什么意思hcv7jop6ns9r.cn
疟疾病的症状是什么样hcv9jop6ns9r.cn 拉肚子吃什么益生菌hcv9jop8ns1r.cn 基尼系数是什么意思hlguo.com 什么枝什么叶hcv8jop0ns9r.cn 什么是过敏wzqsfys.com
哈密瓜是什么季节的水果hcv9jop2ns2r.cn 上尉是什么级别hcv8jop7ns9r.cn 嗓子痒痒老想咳嗽是什么原因hcv9jop4ns1r.cn 什么是粉尘螨过敏hcv8jop8ns8r.cn 欢天喜地是什么生肖hcv8jop5ns8r.cn
百度