This m-file returns the multinomial coefficient with parameter N at the values in X. Let {X1, X2, . . . , Xk}, k > 1, be a set of random variables, each of which can take the values 0, 1, . . . , n; such that for every set of k nonnegative integers {n1, . . . , nk} whose sum is n, the multinomial coefficient is,
C(n;n1,n2,...,nk) = (n1, n2,...,nk)! =
(n1 + n2 + ... nk)!
--------------------------- .
n1! × n2! × . . × nk!
It is possible to work with large factorials.
It needs to input n-number of trials and x-vector of the interested values.
File outputs the multinomial coefficient.
Zitieren als
Antonio Trujillo-Ortiz (2025). multcoef (https://de.mathworks.com/matlabcentral/fileexchange/6786-multcoef), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Discrete Distributions > Multinomial Distribution >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 | "fix" in line 85 was replaced by "round". |
