Amount of attempts for something to happen

  • MHB
  • Thread starter Roen
  • Start date
In summary, the conversation is about a user trying to figure out how to calculate the average number of attempts needed to achieve success, where every failed attempt increases the chance of success. The example given is a base chance of 20% with an incremental increase of 2.5% per failure. The conversation also touches on the game mechanics of a specific game the user is playing, where there are different base success chances and incremental increases for different enchantment levels. The user is seeking help in how to properly calculate the average number of attempts, considering the chance increases with each failed attempt.
  • #1
Roen
8
0
Hello!

To start off, this is my first post here, math is not my strongest subject and so I do not know if this is pre university or university math.
Apologies if this is the wrong sub forum.

I have created a google doc where I am currently trying to solv my problem, link below.
https://docs.google.com/spreadsheets/d/102W_V674wH3wHw13EhS50hhi5IM410Rb74uUkQYkvUQ/edit?usp=sharing

I am trying to figure out how to calculate how many attempts on average it would take to achieve success, when every failed attempt increases the chance of succeding.

Example:
Base chance to succeed is 20%, every failed attempt increases chance to succeed by 2,5%.
How many attempts would it take on average, to succeed, when taking into concideration that the chance of success increases every failed attempt?

Thank you for any help you can give!

A major bonus would be if you could write your answer in a way that I can use excel to autopopulate cells with rows of higher base chance.

-Roen
 
Mathematics news on Phys.org
  • #2
Hello Roen and welcome to MHB! :D

We ask that our users show their progress (work thus far or thoughts on how to begin) when posting questions. This way our helpers can see where you are stuck or may be going astray and will be able to post the best help possible without potentially making a suggestion which you have already tried, which would waste your time and that of the helper.

Can you post what you have done so far?
 
  • #3
Roen said:
Hello!

To start off, this is my first post here, math is not my strongest subject and so I do not know if this is pre university or university math.
Apologies if this is the wrong sub forum.

I have created a google doc where I am currently trying to solv my problem, link below.
https://docs.google.com/spreadsheets/d/102W_V674wH3wHw13EhS50hhi5IM410Rb74uUkQYkvUQ/edit?usp=sharing

I am trying to figure out how to calculate how many attempts on average it would take to achieve success, when every failed attempt increases the chance of succeding.

Example:
Base chance to succeed is 20%, every failed attempt increases chance to succeed by 2,5%.
How many attempts would it take on average, to succeed, when taking into concideration that the chance of success increases every failed attempt?

Thank you for any help you can give!

A major bonus would be if you could write your answer in a way that I can use excel to autopopulate cells with rows of higher base chance.

-Roen

Hi Roen! Welcome to MHB! ;)

How does the level of the enchantment factor in?

You list for enchantment level 8 that 5 attempts would be needed.
Doesn't that mean there would have been 4 failures?
Can you clarify?

Btw, your table shows that enchantment level 16 would suddenly be possible with a much lower number of attempts.
What's happening there?
 
  • #4
The reason for enchant +16 becomming easier is due to the base % chance of success and the incremental increase per failure attempt being higher than +15.

I am able to calculate the average amount of attempts at a given already attained amount of failures.
For example:

At "enchant level" 9, which has a base success chance of 17,5%
With 8 accumulated failure attempts.
the average amount of attempts would be 3.
=100%/(17.5%+2%*8)

But my formula does not take into account the increase of 2% chance to succeed every time it fails to succeed.

This is where I am a bit lost.

How can I write this to properly calculate the correct average amount of attempts, taking height for the chance increasing every time you don't succeed.

Thank you!

-Roen
 
  • #5
Roen said:
The reason for enchant +16 becomming easier is due to the base % chance of success and the incremental increase per failure attempt being higher than +15.

That didn't make any sense to me.
Can you clarify?

I am able to calculate the average amount of attempts at a given already attained amount of failures.
For example:

At "enchant level" 9, which has a base success chance of 17,5%

I'll stop here.
How did you get that at enchant level 9 the base success chance would be 17.5%?
 
  • #6
This is for use in a game.
There is already a stated base success chance at each level of enchant.
Base chances for success are as follows.
At +8: 20% base, increase of 2,5% per failure.
At +9: 17,5% base, increase of 2% per failure.
Etc.
All of these base values the game already informs you of.
 
  • #7
Roen said:
This is for use in a game.
There is already a stated base success chance at each level of enchant.
Base chances for success are as follows.
At +8: 20% base, increase of 2,5% per failure.
At +9: 17,5% base, increase of 2% per failure.
Etc.
All of these base values the game already informs you of.

Ok, so let's focus on +8 for now.

As I understand you now, it works as follows.
There's a 20% chance that we have a success on the first attempt.
And an 80% chance that we fail the first time, after which we have a 22.5% to succeed in the second attempt.
The chance that the second attempt also fails is then 77.5%, after which we have 25% to succeed in the third attempt.

That brings us to the following table.
\begin{array}{|c|c|c|} \hline
\text{Attempts} & \text{Probability formula} & \text{Probability} & \text{Probability} \times \text{Attempts}\\
\hline
1 & 20\% & 20\% &0.2 \\
2 & 80\% \cdot 22.5\% & 18\% & 0.36 \\
3 & 80\% \cdot 77.5\% \cdot 25\% & 15.50\% & 0.465 \\
4 & 80\% \cdot 77.5\% \cdot 75\% \cdot 27.5\% & 12.79\% & 0.512\\
\vdots & \vdots & \vdots & \vdots\\
33 & 80\% \cdot 77.5\% \cdot ... \cdot 0\% \cdot 100\% & 0\%& 0\\
\hline
\text{Sum}& 100\% & 100\% & 3.871 \\
\hline
\end{array}
It shows that the expectation (average number of required attempts) is $3.871$ instead of the $5$ that you currently have in your table.

Is this the number you are looking for?
 
  • #8
yes! exactly.

There is one more element to this though.

for the +8, the incremental increase of 2,5% stops after failing 13 times.

so the maximum chance would be 20% + 32,5% chance of success.

How will this affect the table you made?

Thank you so much for your help so far.
 
  • #9
Roen said:
yes! exactly.

There is one more element to this though.

for the +8, the incremental increase of 2,5% stops after failing 13 times.

so the maximum chance would be 20% + 32,5% chance of success.

How will this affect the table you made?

Thank you so much for your help so far.

Then we'll get:
\begin{array}{|c|c|c|} \hline
\text{Attempts} & \text{Success} & \text{Previous attempts failed} & \text{Probability} & \text{Probability} \times \text{Attempts}\\
\hline
1 & 20\% & 100\% & 20\% & 0.2 \\
2 & 22.5\% & 100\% \cdot (100\% - 20\%) = 80\% & 18\% & 0.36 \\
3 & 25\% & 80\% \cdot (100\% - 22.5\%) = 62\% & 15.50 \% &0.465 \\
4 & 27.5\% & 62\% \cdot (100\% - 25\%) = 46.5\% & 12.79\%& 0.512\\
\vdots & \vdots & \vdots & \vdots & \vdots\\
13 & 50\% & 0.64\% & 0.32\% &0.042\\
14 & 52.5\% & 0.64\% \cdot (100\% - 50\%) = 0.32\% & \\
15 & 52.5\% & 0.32\% \cdot (100\% - 52.5\%) = 0.15\% & \\
16 & 52.5\% & 0.15\% \cdot (100\% - 52.5\%) = 0.07\% & \\
\vdots & \vdots & \vdots & \vdots & \vdots\\
\hline
\text{Sum}& & & 100\% & 3.872 \\
\hline
\end{array}
 
  • #10
Perfect!

Thank you a million times.

I'll start working on how to get it into a forumla in excel.

Any ideas?

The kind of formula I'm looking for would be able to scale with the initial amount of failures.

Example:
+8, 4 failures

I'm sorry if it is a bit vague.
 
  • #11
Roen said:
Perfect!

Thank you a million times.

I'll start working on how to get it into a forumla in excel.

Any ideas?

The kind of formula I'm looking for would be able to scale with the initial amount of failures.

Example:
+8, 4 failures

I'm sorry if it is a bit vague.

That is a bit vague. :)

I've already played around in Excel a bit and got this table:

EnchantmentBase successIncrease per failureNr IncreasesExpectation
+820.0%2.50%133.9
+917.5%2.00%144.4
+1015.0%1.50%155.0
+1112.5%1.25%165.8
+1210.0%0.75%187.3
+137.5%0.63%208.8
+145.0%0.50%2511.3
+152.5%0.50%2514.2
+1615.0%1.50%255.0
+177.5%0.75%358.5
+185.0%0.50%4411.3
+192.0%0.25%9019.2
+201.5%0.25%12420.5

I've put the sheet in Google docs here.

To "scale with the initial amount of failures" I'll need some more clarification of what you mean.
 
  • #12
Amazing, I've made a copy for myself to study later.

By scaling I meant that.
Like in my original attempt, I want to see the expectation for starting the process at an already accumulated failure amount.

base + 1 failure = expectation
base + 2 failures = expectation
base + 3 failures = expectation
...
base + 13 failures = expectation

In a way that does not require me to do the individual calculation for every single one.
 
  • #13
Roen said:
Amazing, I've made a copy for myself to study later.

By scaling I meant that.
Like in my original attempt, I want to see the expectation for starting the process at an already accumulated failure amount.

base + 1 failure = expectation
base + 2 failures = expectation
base + 3 failures = expectation
...
base + 13 failures = expectation

In a way that does not require me to do the individual calculation for every single one.

Ah okay, I've extended the sheet with the initial failures.

Expectation of the number of attempts is:
EnchantmentInitial number of failures
Level012345678910
+83.93.63.33.12.92.82.62.52.32.22.1
+94.44.13.83.63.43.23.02.92.72.62.5
+105.04.74.54.24.03.83.63.53.33.23.1
+115.85.55.24.94.74.54.34.13.93.83.6
+127.37.06.76.46.25.95.75.55.45.25.0
+138.88.58.17.87.57.27.06.76.56.36.1
+1411.310.810.410.09.69.39.08.78.48.17.9
+1514.213.613.012.411.911.410.910.510.19.79.4
+165.04.74.54.24.03.83.63.53.33.23.1
+178.58.17.77.47.06.86.56.26.05.85.6
+1811.310.810.410.09.69.38.98.68.38.07.8
+1919.218.618.017.416.916.315.915.415.014.514.1
+2020.519.819.218.618.017.416.916.315.915.415.0
 
  • #14
Great!

Thank you so much for your help.

I really appreciate it.
 
  • #15
I was reviewing the information in the sheet, and I came across something I had forgotten about.

At +16, +17, +18, +19 and +20, the amount of failure increases per fail are higher than previously.

So at +16, every failed attempt gives you 2 failures.
+17 gives 3 failures.
+18 gives 4 failures.
+19 gives 5 failures.
+20 gives 6 failures.

I attempted to simply increase the amount each failure gives, but this ends up giving the wrong results.
As it does not match up correctly with the maximum amount of failures that way.

Might there be a way for it to account for the failure chance jumping 2/3/4.. amounts depending on the "enchant" level?

-Roen
 
  • #16
I may not quite understand yet...
How about reducing the maximum number of failures as well?
 

Related to Amount of attempts for something to happen

1. How many attempts does it take for something to happen?

The number of attempts required for something to happen can vary greatly depending on the specific situation. It can range from just one attempt to multiple attempts over a long period of time.

2. What factors influence the number of attempts needed for something to happen?

The number of attempts needed for something to happen can be influenced by a variety of factors, such as the complexity of the task, the difficulty level, the individual's skill level, and external factors like luck or chance.

3. Is there a specific formula or calculation for determining the amount of attempts needed for something to happen?

There is no specific formula or calculation for determining the amount of attempts needed for something to happen. It is dependent on the unique circumstances and cannot be accurately predicted.

4. Can the amount of attempts for something to happen be reduced?

In some cases, the amount of attempts needed for something to happen can be reduced by improving one's skills or knowledge, or by finding more efficient methods. However, there may also be external factors that are out of our control that can affect the number of attempts required.

5. Is it possible to guarantee success after a certain number of attempts?

No, there is no guarantee that success will be achieved after a certain number of attempts. Each attempt is unique and success cannot be guaranteed, even after multiple attempts.

Similar threads

  • General Discussion
Replies
5
Views
850
  • Introductory Physics Homework Help
Replies
3
Views
293
Replies
2
Views
4K
  • General Math
Replies
30
Views
3K
  • Precalculus Mathematics Homework Help
Replies
22
Views
3K
  • STEM Academic Advising
Replies
9
Views
2K
  • STEM Career Guidance
Replies
21
Views
1K
  • Quantum Interpretations and Foundations
Replies
2
Views
981
  • STEM Academic Advising
Replies
17
Views
2K
  • STEM Career Guidance
Replies
8
Views
2K
Back
Top