Latest Diablo 3 News
Support the site! Become a Diablo: IncGamers PAL - Remove ads and more!

# How to calculate the odds of double damage when combining C-Strike and D-strike?

Discussion in 'Theorycrafting and Statistics' started by Krim, Feb 4, 2008. | Replies: 8 | Views: 1999

1. ### KrimBanned

Joined:
Dec 19, 2006
Messages:
154
0
Trophy Points:
0
How to calculate the odds of double damage when combining C-Strike and D-strike?

Hi all, I'm pretty certain it wouldn't take long to find the formula, but really isn't what I'm interested in. I'm interested in how you find the formula.

I'd like to try to show how I'd calculate it, yet the results I get doesn't seem to match the correct formula, and if possible, I'd like to know why, and how to calculate to correct formula for odds of double damage when both critical strike (now cs) and deadly strike (now ds) is applied.

How I'd think it should be calculated:
Well first of, I see three possibilities, either the game checks if both cs and ds trigger, or it first checks cs, if trigger ds = 0, if not, it checks ds, or vice versa.

If we set %Cs = 1 / n and %Ds = 1 / m, then I get the following formulas:
First assumption, the game checks both independently, so what can happen is:
There can be a trigger of cs only, ds only, and both of them. Given it's cs only, then this can happen 1 times m (I've taken double trigger with) given it's ds only then it can happen 1 time (n - 1) (I'm making sure not to take double trigger with twice). Then there can be a nontrigger for each (m - 1) and that's (n - 1) times, so the formula should be, using the possible triggers divide by the total:
(m + n - 1) / (n + m - 1 + (n - 1)(m - 1)) = (m + n - 1)/(n * m) =

%Cs + %Ds - %Cs * %Ds

Funny enough, this is actually the formula for direct chance adding, P(A + B|I) = P(A|I) + P(B|I) - P(AB|I), where P(AB|I) = P(A|I)P(B|I)
so I'm pretty certain that this isn't correct.

Second, if the game first checks for Cs, if trigger %Ds equals zero, if not, it checks for Ds.
Then Cs will trigger 1 time, and (n - 1) times it won't where Ds will come into play, so when Cs doesn't trigger there'll be (n - 1) ways there still can be double damage. The total amount of possibilities should be, for in case of a trigger n, and then I guess you'd take into consideration that it might not trigger, which will happen (n - 1) times, with for each (m - 1) possibilites, so I get a formula like this:
(1 + n - 1) / (n + (n - 1)(m - 1)) = n / (n * m - m + 1) =

%Ds / (1 - %Cs + %Cs * %Ds)

This formula looks quite weird, and I'm pretty certain it's wrong for calculating the chance of doubling your damage.

Third, given the damage consider Ds first, and if trigger sets %Cs = 0, then the formula should just be reversed, giving:

%Cs / (1 - %Ds + %Cs * %Ds)

So please note, I don't ask for someone to give me the correct formula, what I'm asking for is
1) What am I doing wrong in my calculations?
2) How do you deduce the correct formula?

Thank you.

Regards Krim

2. ### helveteIncGamers Member

Joined:
Jul 17, 2004
Messages:
6,172
359
Trophy Points:
498
Re: How to calculate the odds of double damage when combining C-Strike and D-strike?

One is checked first, if (and only if) that fails, the other is checked. It's that simple.

3. ### RTBIncGamers Member

Joined:
Jun 21, 2003
Messages:
5,112
1
Trophy Points:
120
Re: How to calculate the odds of double damage when combining C-Strike and D-strike?

In other words:
total_chance = 1 - (1 - CS_amaskill)*(1 - CS_mastery)*(1 - DS_item)

4. ### KrimBanned

Joined:
Dec 19, 2006
Messages:
154
0
Trophy Points:
0
Re: How to calculate the odds of double damage when combining C-Strike and D-strike?

However, unfortunately, it doesn't get me very far.

I did in my opening post, assume in one instance (or actually two) that the game checks first one, and only if it fails it checks the other one, which I ment by setting the percentage for the other to zero, giving the first one didn't fail.

So following my opening post, the formulas I deduce are, given either CS is first checked:
%Ds / (1 - %Cs + %Cs * %Ds)

And given DS is first checked:
%Cs / (1 - %Ds + %Cs * %Ds)

Comparing to RTB's formula which I'm confident is correct:
1 - (1 - CS_amaskill)*(1 - CS_mastery)*(1 - DS_item)

Then it seems like I've made some kind of error. I'd really appreciate it, if someone would take the time to explain to me my error, and in what way I should have "thought".

Thank you.

Regards Krim.

Edit: Just to make it clear what I do, I use the formula that the chance of something happen, is the amount of possible outcomes that it can happen divided with the total amount of outcomes.
In the case where the games skips a test, I set the possible amount of succes at 1, for skipping the test, added with n - 1, for not skipping the test, since then there'll be n - 1 possible ways of it to still succes. Then I divide with the total amount, which I guess should be n, giving the test it skipeed, added with (n - 1) * (m -1) given the test isn't skipped. I hope it maybe makes it more clear to where my mistake might be. Thank you.

Last edited: Feb 4, 2008
5. ### RTBIncGamers Member

Joined:
Jun 21, 2003
Messages:
5,112
1
Trophy Points:
120
Re: How to calculate the odds of double damage when combining C-Strike and D-strike?

I'm sure one can think of more complex formulae to calculate the chance for double dmg, but it's not really needed.
The formula I posted works like this:
you work out each chance not triggering, multiply those by eachother, so that you have the chance of not getting double dmg, then doing one minus that chance, so you get the total chance for double dmg.

Simplifying the formula (the CS chances for the amazon skill and assassin/barb masteries still don't stack), you could change it to:
total_chance = CS + (1-CS)*DS
Which translates to the base CS chance, and added to that the chance that CS doesn't happen multiplied with the chance that DS happens.

DS in any case happens last, even though it's a trivial difference since 1.10, because it's not possible to gain 100% CS anymore.

I think this is a case where you tried to find a solution that is more complex than the situation requires.

6. ### KrimBanned

Joined:
Dec 19, 2006
Messages:
154
0
Trophy Points:
0
Re: How to calculate the odds of double damage when combining C-Strike and D-strike?

Thanks, I do understand your formula now, it's a pretty smart way to think about it. I didn't think that there could be numerous ways of achieving a formula for one thing, in my class we've only learned it the way I posted. It's logical that your formula must be correct, I think, wether mine is, I still have my doubts, especially about the scaling factor in the denominator. I must say, it was really a good idea to calculate the chance of it, not to happen, and then just take one minus it. However there's something I'm still not quite certain about, unless the scaling factor is one, how can you be certain that (1 - ds)(1 - cs) is the chance of a non-trigger? I'd have thought it would be (1 - ds)(1 - cs) / (total possible amount of chances of non-trigger, and trigger).

Regards Krim.

7. ### muzzzIncGamers Member

Joined:
Apr 10, 2006
Messages:
2,422
0
Trophy Points:
165
Re: How to calculate the odds of double damage when combining C-Strike and D-strike?

It either triggers double damage, or it doesn't. Since there's no third option, the sum of both chances is always 1 (or 100%, whichever you prefer).

8. ### KrimBanned

Joined:
Dec 19, 2006
Messages:
154
0
Trophy Points:
0
Re: How to calculate the odds of double damage when combining C-Strike and D-strike?

Oh yes, that makes sense, thank you. I guess from now on I'll try to find the simplest way to deduce a formula before I start deducing it, so I think there isn't much more in this thread other than to say:

Thank you all for your help, both to Helvete, RTB, and Muzzz, let's just say I kind of made a real life "level up" in statistics, hehe :laugh:

Kind Regards

Edit: I mean it makes sense to me, because both CS, and DS are already in percentage, so in this way the scaling factor is already included so the denominator equals one, just to be clear, in what I think is the correct way of understanding it.

Joined:
Feb 10, 2012
Messages:
6