Finding Probability by using loop
4 ビュー (過去 30 日間)
古いコメントを表示
I want to find the probability using the following equation:

where n=48, k=7, α=0.995
回答 (1 件)
Febo Cincotti
2023 年 6 月 1 日
I would proceed to implement the formula step by step.
First, compute the addends of the sum.
Hint: nchoosek(n,m) returns
, (1-alpha)^m returns
and alpha^(n-m) returns 
Then you only need to compute Pr = 1 - sum(addends)
Hope this helped with your homework
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!