How to find parameters of binomial distribution?

13 ビュー (過去 30 日間)
Clarisha Nijman
Clarisha Nijman 2019 年 1 月 31 日
コメント済み: Star Strider 2019 年 2 月 2 日
Dear all,
What code can I use in matlab to find the parameters of a binomial distribution? This question is very big. So I am restricting it to a specific situation.
X is binomiallly distributed with parameter n and fraction p. The parameter p is unknown.
What function in matlab can help me to find that parameter if for example it is known that X=randi(10,20,1); P(X<=4)=0.3?
Thank you in advance.

採用された回答

Star Strider
Star Strider 2019 年 1 月 31 日
If you have the Statsitics and Machine Learning Toolbox, see if the binofit (link) function will do what you want.
  15 件のコメント
Clarisha Nijman
Clarisha Nijman 2019 年 2 月 2 日
That is it!!!!!!
the problem was the interpretation of the first parameter of the binofit function.
But now I understand, x is not the number of the succeses, but the probability of success in a given binomial trial based on the ACTUAL number of successes,
Once more thanks a lot!!!!
Star Strider
Star Strider 2019 年 2 月 2 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by