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!