How can I simulate a binomial distribution without using a matlab command?
이전 댓글 표시
Hello all,
Do some of you know how to simulate a Bin(n,p) distribution in matlab by only using the command binornd(1,p) (bernoulli distribution)? I am aware that I can do it with binornd(n,p) but I'm looking for another way.
Since the bernoulli is a special case of a binomial distribution I used the binornd command for simulating a bernoulli. Perhaps there is a better way for simulating a bernoulli distribution?
Can someone help me with this?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Binomial Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!