difference between bernoulli and binomial random variables
이전 댓글 표시
I'm try to generate both Bernoulli and binomial random variables; for binomial distribution, I can use binornd(N,P). What is the equivalent for Bernoulli random variable distribution?
답변 (2개)
Shashank Prasanna
2014년 7월 11일
0 개 추천
The Bernoulli distribution is a special case of the binomial distribution, with the number of trials n = 1.
https://en.wikipedia.org/wiki/Bernoulli_distribution
John D'Errico
2014년 7월 11일
편집: John D'Errico
2014년 7월 11일
0 개 추천
binornd
Yeah. The same thing. Just use n=1, and you get a Bernoulli random variable.
카테고리
도움말 센터 및 File Exchange에서 Binomial Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!