Using stats.binom.pmf(np.arange(0,11),10,0.5)
, I can get an array of numbers representing the probability of an event happening n times(0 to 10) in 10 times given the probability of a single occurrence 0.5, like below:
array([0.00097656, 0.00976563, 0.04394531, 0.1171875 , 0.20507813,
0.24609375, 0.20507813, 0.1171875 , 0.04394531, 0.00976563,
0.00097656])
Now I want to get a similar output for a multinomial case.
Saying I'm rolling a dice three times, how can I get such a probability array representing the probability of the total points(3 to 18) using an existing package?