Finding Probability by using loop

4 vues (au cours des 30 derniers jours)
Yaseen
Yaseen le 1 Juin 2023
Commenté : Yaseen le 2 Juin 2023
I want to find the probability using the following equation:
where n=48, k=7, α=0.995
  6 commentaires
Yaseen
Yaseen le 2 Juin 2023
@Torsten Thanks a lot for the information.
Yaseen
Yaseen le 2 Juin 2023
@Dyuman Joshi I have the ML Toolbox. I am trying this, and will let you know about how it is working.

Connectez-vous pour commenter.

Réponses (1)

Febo Cincotti
Febo Cincotti le 1 Juin 2023
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

Community Treasure Hunt

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

Start Hunting!

Translated by