Binomial distribution
If black squares appear independently with probability p then the probability that m squares out of n are black is Binomial[n, m] pm (1 - p)n - m.
Binomial distribution
If black squares appear independently with probability p then the probability that m squares out of n are black is Binomial[n, m] pm (1 - p)n - m.