fennerm / fennerm/pmultinom

incorect calculation?

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
R
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.