On Sat, Mar 7, 2009 at 6:57 PM, Robert Kern wrote:
> On Sat, Mar 7, 2009 at 17:29, wrote:
>> np.random.multinomial looks weird. Are these bugs, or is there
>> something not correct with the explanation.
>
> I would like to know how you are interpreting the documentation.
>
>> Josef
>>
>> from t
On Sat, Mar 7, 2009 at 17:29, wrote:
> np.random.multinomial looks weird. Are these bugs, or is there
> something not correct with the explanation.
I would like to know how you are interpreting the documentation.
> Josef
>
> from the help/ docstring:
>
np.random.multinomial(20, [1/6.]*6,
np.random.multinomial looks weird. Are these bugs, or is there
something not correct with the explanation.
Josef
from the help/ docstring:
>>> np.random.multinomial(20, [1/6.]*6, size=2)
array([[3, 4, 3, 3, 4, 3],
[2, 4, 3, 4, 0, 7]])
For the first run, we threw 3 times 1, 4 times 2, etc