difference between bernoulli and binomial random variables
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Shashank Prasanna
il 11 Lug 2014
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 Commenti
John D'Errico
il 11 Lug 2014
Modificato: John D'Errico
il 11 Lug 2014
binornd
Yeah. The same thing. Just use n=1, and you get a Bernoulli random variable.
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!