I'm trying to understand how to use multinomial-dist
in Gamble. From the Gamble documentation:
Represents a multinomial distribution. The support consists of vectors of the same length as weights representing counts of n iterated samples from the corresponding categorical distribution with weights for weights.
So if I understood correctly writing (define test (multinomial-dist 100 (vector 50 40 10)))
defines a multinomial distribution in which, out of 100 samples, outcome 1 appeared 50 times, outcome 2 appeared 40 times and outcome 3 appeared 10 times. What I'm struggling to understand is that if I evaluate (sample test)
I could obtain results like '#(51 88 100)
and I can't really understand what these numbers mean. I know that probably is an easy question, but I really can't find the answer anywhere else. Thank you very much.