how to plot the cdf of a bernoulli using matlab
2 次查看(过去 30 天)
显示 更早的评论
how do i plot the cdf of a bernoulli using matlab
0 个评论
回答(1 个)
Greig
2015-3-1
A Bernoulli distribution is a Binomial distribution where the number of trials is 1, so you should be able to use
binocdf(x, 1, p)
where x is the number of successes (0 or 1), and p is the probability of success.
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!