difference between bernoulli and binomial random variables
Afficher commentaires plus anciens
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?
Réponses (2)
Shashank Prasanna
le 11 Juil 2014
0 votes
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
le 11 Juil 2014
Modifié(e) : John D'Errico
le 11 Juil 2014
0 votes
binornd
Yeah. The same thing. Just use n=1, and you get a Bernoulli random variable.
Catégories
En savoir plus sur Binomial Distribution dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!