fennerm / fennerm/pmultinom

incorect calculation?

Đang mở
#3 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
R
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.