fennerm / fennerm/pmultinom

incorect calculation?

未关闭
#3 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
R
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Dear @fennerm,

I think there is a disagreement between the documentation (and your examples) and the calculation.
Namely, the 4 balls example:
_For 4 balls randomly thrown into 2 bins, probability that all bins end up with 2 or fewer balls
pmultinom(q = 2, n = 4, prob = c(0.5, 0.5))
[1] 0.3361880568`_

That means that only one scenario is possible: 2 balls in each bin (since all together there should be 4 balls), which can be calculated with the
`dbinom(x = 2, size = 4, prob = 0.5) `
[1] 0.375

Best,
Vlada

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。