difference between bernoulli and binomial random variables
2 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (2 件)
Shashank Prasanna
2014 年 7 月 11 日
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
0 件のコメント
John D'Errico
2014 年 7 月 11 日
編集済み: John D'Errico
2014 年 7 月 11 日
binornd
Yeah. The same thing. Just use n=1, and you get a Bernoulli random variable.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!