Finding Probability by using loop

I want to find the probability using the following equation:
where n=48, k=7, α=0.995

댓글 수: 6

the cyclist
the cyclist 2023년 6월 1일
Please read this guide about how to ask a good question, and edit your question to improve it.
Dyuman Joshi
Dyuman Joshi 2023년 6월 1일
Note that binocdf requires Statistics and ML Toolbox.
The question looks simple, what have you attempted yet?
Torsten
Torsten 2023년 6월 1일
편집: Torsten 2023년 6월 1일
Maybe "binocdf" has an intelligent solution for large values of n. But n = 48 and k = 7 should work without precautions in using "nchoosek".
Yaseen
Yaseen 2023년 6월 2일
@Torsten Thanks a lot for the information.
Yaseen
Yaseen 2023년 6월 2일
@Dyuman Joshi I have the ML Toolbox. I am trying this, and will let you know about how it is working.

댓글을 달려면 로그인하십시오.

답변 (1개)

Febo Cincotti
Febo Cincotti 2023년 6월 1일

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

질문:

2023년 6월 1일

댓글:

2023년 6월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by