XHKO-ing stuff
Oct 8, 2010 6:35:41 GMT -8
Post by Crystal_ on Oct 8, 2010 6:35:41 GMT -8
I thought this was interesting and I was willing to do it, which means that I did it. Here I explain how to calculate the chances of getting X(2,3,4...)HKOs.
First off, a 2HKO:
Imagine you have two dices with the numbers 1 to 6, and start thinking what could happen if you want the result of summing the two dices ; Possibilities of:
Getting a 2 = one (1,1)
Getting a 3 = two (1,2 ; 2,1)
Getting a 4 = three (1,3 ; 3,1 ; 2,2)
Getting a 5 = four (1,4 ; 4,1 ; 2,3 ; 3,2)
Getting a 6 = five (1,5 ; 5,1 ; 2,4 ; 4,2 ; 3,3)
Getting a 7 = six (1,6 ; 6,1 ; 2,5 ; 5,2 ; 3,4 ; 4,3)
Getting a 8 = five (2,6 ; 6,2 ; 3,5 ; 5,3 ; 4,4)
Getting a 9 = four (3,6 ; 6,3 ; 4,5 ; 5,4)
Getting a 10 = three (6,4 ; 4,6 ; 5,5)
Getting a 11 = two (6,5 ; 5,6)
Getting a 12 = one (6,6)
Now, think you have, instead of the dices, two random damages that can do between 240 and 265 to a Pokemon with 500 HP, or -if you prefer- that you have two big dices with the numbers 240 to 265.
First off, we have to determine the max and the min result:
Min = 240 + 240 = 480
Max = 265 + 265 = 530
Now, he have to see which results are capable of 2HKOing and which are not:
480 to 499 (20 possibilities) => NO
500 to 530 (31 possibilities) => YES
Total = 51 => 1, 2, 3,..., 24, 25, 26, 25, 24..., 1.
And now, lets apply the "dices rule".
Possibilities of getting a:
480 = one
481 = two
...
498 = nineteen
499 = twenty
The result is: 103460
Possibilities of getting a:
500 = 21
501 = 22
...
504 = 25
505 = 26
506 = 25
...
529 = 2
530 = 1
The result is: 237920
Now, turning the results in percentages:
Getting from 480 to 499 (Not a 2HKO) = 30'3%
Getting from 500 to 530 (2HKO) = 69'7%
Critical Hit factor:
Logically, if something is able score a 2HKO, if one of the moves does a CH you will always score the 2HKO (barring a miss).
For example our Pokemon has a 20% CH ratio, but it has two times to score a CH:
.........................................20% CH
100% CH / non CH -------------------------- = 20% CH
.................................100% CH / non CH
If 1st hit does NOT CH (80%):
.......................................20% CH
80% CH / non CH -------------------------- = 16% CH
...............................100% CH / non CH
Total = 20% + 16% = 36% chances of CH-ing.
So, the final division between 2 and 3HKOs must be a 64% of the total (100-36) being that 36%:
Chances of 2HKO-ing: 36 + (0'64*30'3%) = 55'39%
Accuracy factor:
The chances of missing should also be taken into account. A 255'd will not change much the result though. Remember that the 255 also affects to the CH formula, but in my example, the pokemon is supposed to have a 20% chances af CH-ing after doing the *255/256.
255/256*2(moves) = 0'9922
Therefore, the formula starts with a 99'22% of the total.
55'39%*0'9922= 54'96%
This is the final result that shows the possibilities of getting a 2HKO (or OHKO which will be: 0'2% multiplied * the chances of OHKO with the CH * 255/256).
3,4,5... HKOs are calculated in a different way but not much different.
Lets see, if you use three dices:
Chances of getting 3 = 1 (1,1,1)
Chances of getting 4 = 3 (1,1,2 ; 1,2,1 ; 2,1,1)
Chances of getting 5 = 6 (1,1,3 ; 1,3,1 ; 3,1,1 ; 2,2,1 ; 1,2,2 ; 2,1,2)
We can deduct that the sequence will be:
1 , 3 , 6 , 10 , 15 , 21 , 28 , 36 , 36 , 28 , 21 , 15 , 10 , 6 , 3 , 1
So, you just have to change the *2s in the 2HKO formula to *3s, the *3s to *6s, the *4s to *10s... to get the 3HKO formula.
If you use four dices to get the 4HKO formula you have:
1 , 4 , 10 , 19 , 32 , ... , 4 , 1
Etc.
First off, a 2HKO:
Imagine you have two dices with the numbers 1 to 6, and start thinking what could happen if you want the result of summing the two dices ; Possibilities of:
Getting a 2 = one (1,1)
Getting a 3 = two (1,2 ; 2,1)
Getting a 4 = three (1,3 ; 3,1 ; 2,2)
Getting a 5 = four (1,4 ; 4,1 ; 2,3 ; 3,2)
Getting a 6 = five (1,5 ; 5,1 ; 2,4 ; 4,2 ; 3,3)
Getting a 7 = six (1,6 ; 6,1 ; 2,5 ; 5,2 ; 3,4 ; 4,3)
Getting a 8 = five (2,6 ; 6,2 ; 3,5 ; 5,3 ; 4,4)
Getting a 9 = four (3,6 ; 6,3 ; 4,5 ; 5,4)
Getting a 10 = three (6,4 ; 4,6 ; 5,5)
Getting a 11 = two (6,5 ; 5,6)
Getting a 12 = one (6,6)
Now, think you have, instead of the dices, two random damages that can do between 240 and 265 to a Pokemon with 500 HP, or -if you prefer- that you have two big dices with the numbers 240 to 265.
First off, we have to determine the max and the min result:
Min = 240 + 240 = 480
Max = 265 + 265 = 530
Now, he have to see which results are capable of 2HKOing and which are not:
480 to 499 (20 possibilities) => NO
500 to 530 (31 possibilities) => YES
Total = 51 => 1, 2, 3,..., 24, 25, 26, 25, 24..., 1.
And now, lets apply the "dices rule".
Possibilities of getting a:
480 = one
481 = two
...
498 = nineteen
499 = twenty
The result is: 103460
Possibilities of getting a:
500 = 21
501 = 22
...
504 = 25
505 = 26
506 = 25
...
529 = 2
530 = 1
The result is: 237920
Now, turning the results in percentages:
Getting from 480 to 499 (Not a 2HKO) = 30'3%
Getting from 500 to 530 (2HKO) = 69'7%
Critical Hit factor:
Logically, if something is able score a 2HKO, if one of the moves does a CH you will always score the 2HKO (barring a miss).
For example our Pokemon has a 20% CH ratio, but it has two times to score a CH:
.........................................20% CH
100% CH / non CH -------------------------- = 20% CH
.................................100% CH / non CH
If 1st hit does NOT CH (80%):
.......................................20% CH
80% CH / non CH -------------------------- = 16% CH
...............................100% CH / non CH
Total = 20% + 16% = 36% chances of CH-ing.
So, the final division between 2 and 3HKOs must be a 64% of the total (100-36) being that 36%:
Chances of 2HKO-ing: 36 + (0'64*30'3%) = 55'39%
Accuracy factor:
The chances of missing should also be taken into account. A 255'd will not change much the result though. Remember that the 255 also affects to the CH formula, but in my example, the pokemon is supposed to have a 20% chances af CH-ing after doing the *255/256.
255/256*2(moves) = 0'9922
Therefore, the formula starts with a 99'22% of the total.
55'39%*0'9922= 54'96%
This is the final result that shows the possibilities of getting a 2HKO (or OHKO which will be: 0'2% multiplied * the chances of OHKO with the CH * 255/256).
3,4,5... HKOs are calculated in a different way but not much different.
Lets see, if you use three dices:
Chances of getting 3 = 1 (1,1,1)
Chances of getting 4 = 3 (1,1,2 ; 1,2,1 ; 2,1,1)
Chances of getting 5 = 6 (1,1,3 ; 1,3,1 ; 3,1,1 ; 2,2,1 ; 1,2,2 ; 2,1,2)
We can deduct that the sequence will be:
1 , 3 , 6 , 10 , 15 , 21 , 28 , 36 , 36 , 28 , 21 , 15 , 10 , 6 , 3 , 1
So, you just have to change the *2s in the 2HKO formula to *3s, the *3s to *6s, the *4s to *10s... to get the 3HKO formula.
If you use four dices to get the 4HKO formula you have:
1 , 4 , 10 , 19 , 32 , ... , 4 , 1
Etc.