I try to visualize a bernoulli chain. With variables p q and s.
pprobability for successqprobability for failureslength of the chain
For fixed p q and s the chain is easiliy calcultated. However s in my case is determined by a roll of n dice which each have d sides:
n= number of dice rolledd= number of sided of the dice (3, 4, 6, 8, 10, 12, 20)
So lets take this example:
p = 0.25q = 0.75n = 10d = 3
So s can be anywhere from 10 to 30. I want to cacluclate a probability vecotor with
[No success, exactly 1 success, exactly 2 Successes..., exactly 30 successes]
I think I have to calculate the probability of each possible s, multiplie it with the actual bernoulli formula. And add the probabilities for i.e. 5 successes from each possible outcome of s. Is this correct?
I really struggle to get the probabilities of each sum. I get it for 2 or 3 dice I could just go through all possible results and well add it but for 20 dice it breaks my computer ;)