Re:We built voice modulator to mask gender in tech interview...
by timr on Friday October 14, 2022 @12:52PM
(#33206004)
The part where you did rand() < 0.8 ? 1 : 0 is fine. That's a Bernoulli trial with p=0.8
The part where you did this in a loop, with two calls per iteration, and then divided the counts and called it a percentage is wrong. It's certainly not a Binomial distribution. It's just the ratio of two binomial random variables.
The part where you did this in a loop, with two calls per iteration, and then divided the counts and called it a percentage is wrong. It's certainly not a Binomial distribution. It's just the ratio of two binomial random variables.