View Single Post
Old 2003-12-13, 02:58   #4
Orgasmic Troll
Cranksta Rap Ayatollah
Orgasmic Troll's Avatar
Jul 2003

641 Posts

X is a random variable with binomial distribution

The probabilty of getting n heads out of N trials with a coin that has probabilty p of coming up heads (and probabilty q=1-p of getting tails) is

(N,n)*pnqN-n = N!/n!(N-n)! * pn(1-p)N-n

where (N,n) is a binomial coefficient

the standard deviation is Sqrt[N*p*(1-p)]

Sorry if I gave too much away
Orgasmic Troll is offline   Reply With Quote