Confusion:  Fix bernoulli distribution

Is this what you meant?  A Berrnoulli distribution takes value 0 with probability q = 1 - p.