how to plot the cdf of a bernoulli using matlab

3 ビュー (過去 30 日間)
oshomah kanoba
oshomah kanoba 2015 年 3 月 1 日
回答済み: Greig 2015 年 3 月 1 日
how do i plot the cdf of a bernoulli using matlab

回答 (1 件)

Greig
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.

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by