Finding Probability by using loop

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

6 Kommentare

the cyclist
the cyclist am 1 Jun. 2023
Please read this guide about how to ask a good question, and edit your question to improve it.
Dyuman Joshi
Dyuman Joshi am 1 Jun. 2023
Note that binocdf requires Statistics and ML Toolbox.
The question looks simple, what have you attempted yet?
Torsten
Torsten am 1 Jun. 2023
Bearbeitet: Torsten am 1 Jun. 2023
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 am 2 Jun. 2023
@Torsten Thanks a lot for the information.
Yaseen
Yaseen am 2 Jun. 2023
@Dyuman Joshi I have the ML Toolbox. I am trying this, and will let you know about how it is working.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Febo Cincotti
Febo Cincotti am 1 Jun. 2023

1 Stimme

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

Gefragt:

am 1 Jun. 2023

Kommentiert:

am 2 Jun. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by