
Adam W. answered 04/08/20
Probability Tutoring from an Algorithmic Trader
You can use the binomial distribution's probability mass function.
Let X be the number of successes. For k successes in n trials with a fixed probability of success p per trial, we have:
Pr(X=k) = C(n,k) * p^k * (1-p)^{n-k}, where C(n,k) is the binomial coefficient n!/(k!(n-k)!).