fennerm / fennerm/pmultinom

incorect calculation?

Offen
#3 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
R
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.