| Calling Sequence
| Rand(Multinomial(n,ps))
Multinomial_Rand(n,ps)
|
| Parameters
| | Name | Type | Description |
|
| n
| integer | number of experiments |
| ps
| list(numeric) | probabilities |
|
| Return Type
| list(integer) |
| Synopsis
| Given k probabilities ps=[p_1,..., p_k], this function returns a list of k
random integers multinomially distributed with averages n*p_i, variances n*p_i*(1-p_i) and
covariances -n*p_i*p_j. The sum of all integers is n.
Multinomial_Rand uses Rand() which can be seeded by either the
function SetRand or SetRandSeed. |
| References
| MB Brown and J Bromberg (1984), The American Statistician |
| Examples
| > Rand(Multinomial(100,[0.3,0.2,0.5]));
[36, 23, 41]
> Rand(Multinomial(1000,[0.01,0.9,0.09]));
[7, 893, 100]
|
| See also
| Beta_Rand, Binomial_Rand, ChiSquare_Rand, CreateRandSeq, Cumulative, Exponential_Rand, FDist_Rand, GammaDist_Rand, Geometric_Rand, Graph_Rand, Normal_Rand, Poisson_Rand, SetRand, SetRandSeed, Shuffle, StatTest, Std_Score, Student_Rand, Zscore |