|
|
|
|
|
by chronial
1349 days ago
|
|
> "Bernoulli distribution" (not a thing, btw) So this Wikipedia article is a fever dream? https://en.wikipedia.org/wiki/Bernoulli_distribution > they calculated the ratio of two binomial random variables, and presented that as a percentage. Ok, now I'm confused. I 100% agree with that statement. I thought your whole point was that OPs code was not a valid way to sample from a binomial distribution? But then what is your criticism? Are you arguing that the Binomial distribution does not model the original experiment correctly? |
|
> I thought your whole point was that OPs code was not a valid way to sample from a binomial distribution?
The code OP posted was just taking the ratio of two binomial random variables. It's not "sampling from a binomial", except (perhaps) in the sense that each of those random variables was the result of independent coin flips.
We really need to be more precise in our terminology here. "Sampling from a distribution" can mean a lot of things. Based on the sibling comments, it seems like they were trying (?) to sample from the binomial CDF.
Setting this aside, my high-level point was OPs calculation doesn't have anything to do with error distributions.