Help with Probability Equation

0 votes

I'm trying to put together an app for fun that has a scenario where I need to figure out a probability equation for the following scenario:

Suppose I have a number of attempts at something and each attempt has a success rate (known ahead of time). What are the odds after doing all those attempts that a success happens?

For example there are three attempts (all will be taken individually).

The first is known to have a 60% success rate. The second is known to have a 30% success rate. The third is known to have a 75% success rate. What are the odds of a success occurring if all three attempts are made?

I've tried several formulas and can't pinpoint the correct one.

Thanks for the help!

Apr 5, 2022 in Machine Learning by Dev
• 6,000 points
1,028 views

1 answer to this question.

0 votes

The likelihood of winning is equal to the likelihood of not losing all three: 1 - (1 - 0.6) (1 - 0.3)(1 - 0.75)

.4 *.7 *.25 = 1

To put it another way, find the likelihood that all of your attempts will fail and reverse it. So, given a finite sequence of occurrences with probabilities P[i], the probability that at least one of them would succeed is 1 - P[i] (1 - P[0]) * (P[1] - 1) *... * (1 - P[n])

And here's a perl one-liner to compute the value: (input is white-space separated list of success rates)

 perl -0777 -ane '$p=1; $p*=1-$_ foreach @F; print 1-$p . "\n"'
answered Apr 7, 2022 by Nandini
• 5,480 points

Related Questions In Machine Learning

0 votes
1 answer

Getting one word as caption with zero probability using pretrained checkpoints for image captioning-im2txt

Under caption_generator.py change the following line as follow ...READ MORE

answered Feb 27, 2022 in Machine Learning by CoolCoder
• 4,420 points
691 views
0 votes
1 answer

Empirical probability in R with x1+x2>2*x3

It's easy to duplicate random draws with ...READ MORE

answered Mar 15, 2022 in Machine Learning by Dev
• 6,000 points
554 views
0 votes
1 answer

Choose specific number with probability

Examine the sample function. set.seed(1) sample(c(0,1), size=12, replace=TRUE, prob=c(0.2,0.8)) 1 ...READ MORE

answered Mar 14, 2022 in Machine Learning by Dev
• 6,000 points
520 views
0 votes
1 answer

Getting one word as caption with zero probability using pretrained checkpoints for image captioning-im2txt

captiongenerator.py is a Python script that generates ...READ MORE

answered Mar 17, 2022 in Machine Learning by Dev
• 6,000 points
523 views
0 votes
1 answer

How to use Euler's number and power operation?

You can refer the math library of ...READ MORE

answered Dec 31, 2018 in Python by SDeb
• 13,300 points
1,454 views
0 votes
1 answer

Formula to calculate chance (probability) of a dice side based on its value

If I understand you correctly, you're looking ...READ MORE

answered Mar 17, 2022 in Machine Learning by Dev
• 6,000 points
783 views
0 votes
1 answer

Understanding the probability of a double-six if i roll two dice

The chance of not getting a double ...READ MORE

answered Mar 23, 2022 in Machine Learning by Nandini
• 5,480 points
20,580 views
0 votes
1 answer

Probability: the one true fish

What you're looking for is P(A|B), which ...READ MORE

answered Mar 25, 2022 in Machine Learning by Dev
• 6,000 points
525 views
0 votes
1 answer

Understanding Polynomial Regression Equation with multiple Independent Variable

You can choose from the following options: Powers ...READ MORE

answered Mar 25, 2022 in Machine Learning by Nandini
• 5,480 points
1,204 views
0 votes
1 answer

Random numbers with user-defined continuous probability distribution

You can use the rejection sampling approach ...READ MORE

answered Mar 25, 2022 in Machine Learning by Nandini
• 5,480 points
1,422 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP