Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you calculate %xHKO?
#29
Stereo Wrote:I'd like to go on record saying that the distribution of the sum of uniform distributions is not fun to work with Tongue

You can probably do it algebraically using multiple variable integrals of the p.d.f. (uniform distribution is P(x) = H(x) +(-1)H(x-1) ) so you end up with something like integral y = -inf to inf P(x)P(y) dy But just the fact that it's a piecewise function makes it annoying to work with.

Which, in 2 variables, just ends up being a triangle. P(x) = xH(x) - 2(x-1)H(x-1) + (x-2)H(x-2) But that limits you to finding 2hko probabilities. As a diagram, this would be like the diagonal area under a square, where the square has uniform height.

In the long run just running a few thousand simulations will probably get you close enough, and be a lot easier to write.

When it comes to two hits, you can equate this to using a diagonal line to cut diagonally across a square in the XY plane using your damage range as both the x-axis and y-axis.

ex: with a damage range of 1~7

The chance that you'll do at least X amount of damage can be calculated by finding the area of such a triangle.

7_________
6------- /
5------/
4----/
3--/
2/
1_________
1 2 3 4 5 6 7

^ It's supposed to be a 45 degree line... and a square... but whatever Big Grin

The issue very slightly steps in once you cross the half way point. You'll have to work with two separate sections.


If you move this to 3 attacks, it's the equivalent of cutting a cube using a plane. And sadly this splits up the area that you have to work on into three sections. Mainly because when you begin cutting off the corner of the cube you get shapes that look like pyramids with triangular bases. (Take a cube of cheese, stand it on one of it's vertices, then cut off from the top to see what I mean.) After cutting down enough you start getting hexagonal bases. And after more you go back to triangular bases.

So now you'd have to split this into three parts to calculate the volume.

Each dimension (or hit) that you want to add into this problem will just add yet another section that you have to calculate separately, further complicating the computation if you want to be precise.




~ ~ ~ ~ ~ ~ ~

After about 25 hits though, the uniform distribution on the dice rolls/rng which used to look like this:
[Image: MonteC3.gif]

becomes a normal distribution like so:
[Image: normal.gif]

This second one CAN be calculated. But only if we're talking about you taking 25 hits or more in the first place.

This would just barely a bit to calculate %4hko with something like savage blow since it hits 6 times.

I doubt most of you who use 4 hits skills would want to train on something that takes you 6 skill uses to kill. So it's pointless to look at a normal distribution.

~~~~~~~~~


I'm still working on this problem. I'll let you guys know if I come up with anything.
Reply


Messages In This Thread
How do you calculate %xHKO? - by Dusk - 2009-08-14, 11:40 AM
How do you calculate %xHKO? - by Kortestanov - 2009-08-14, 12:45 PM
How do you calculate %xHKO? - by Shidoshi - 2009-08-14, 01:59 PM
How do you calculate %xHKO? - by Stereo - 2009-08-14, 02:00 PM
How do you calculate %xHKO? - by KaidaTan - 2009-08-14, 05:29 PM
How do you calculate %xHKO? - by Russt - 2009-08-14, 05:41 PM
How do you calculate %xHKO? - by modular - 2009-08-14, 06:59 PM
How do you calculate %xHKO? - by Russt - 2009-08-14, 07:01 PM
How do you calculate %xHKO? - by Shidoshi - 2009-08-14, 08:45 PM
How do you calculate %xHKO? - by singularity - 2009-08-15, 06:23 AM
How do you calculate %xHKO? - by Russt - 2009-08-15, 12:56 PM
How do you calculate %xHKO? - by Shady - 2009-08-15, 04:30 PM
How do you calculate %xHKO? - by singularity - 2009-08-18, 12:19 AM
How do you calculate %xHKO? - by Stereo - 2009-08-18, 12:29 AM
How do you calculate %xHKO? - by Russt - 2009-08-18, 12:39 AM
How do you calculate %xHKO? - by Dusk - 2009-08-18, 12:57 AM
How do you calculate %xHKO? - by modular - 2009-08-18, 12:57 AM
How do you calculate %xHKO? - by Russt - 2009-08-18, 01:03 AM
How do you calculate %xHKO? - by Dusk - 2009-08-18, 01:21 AM
How do you calculate %xHKO? - by Dusk - 2009-08-23, 01:45 PM
How do you calculate %xHKO? - by Russt - 2009-08-23, 01:56 PM
How do you calculate %xHKO? - by singularity - 2009-08-24, 10:38 PM
How do you calculate %xHKO? - by Russt - 2009-08-24, 10:51 PM
How do you calculate %xHKO? - by Noah - 2009-08-26, 04:38 PM
How do you calculate %xHKO? - by rainbowBean - 2009-12-14, 08:22 AM
How do you calculate %xHKO? - by KaidaTan - 2009-12-14, 09:07 AM
How do you calculate %xHKO? - by Stereo - 2009-12-14, 12:19 PM
How do you calculate %xHKO? - by KaidaTan - 2009-12-14, 04:19 PM
How do you calculate %xHKO? - by shouri - 2009-12-14, 04:42 PM
How do you calculate %xHKO? - by KaidaTan - 2009-12-14, 05:02 PM
How do you calculate %xHKO? - by Russt - 2009-12-14, 08:46 PM
How do you calculate %xHKO? - by shouri - 2009-12-14, 08:56 PM
How do you calculate %xHKO? - by Noah - 2009-12-14, 09:32 PM
How do you calculate %xHKO? - by Stereo - 2009-12-14, 09:33 PM
How do you calculate %xHKO? - by Russt - 2009-12-14, 09:40 PM
How do you calculate %xHKO? - by KaidaTan - 2009-12-14, 10:32 PM
How do you calculate %xHKO? - by rainbowBean - 2009-12-14, 11:01 PM
How do you calculate %xHKO? - by Russt - 2009-12-15, 03:50 AM
How do you calculate %xHKO? - by KaidaTan - 2009-12-15, 03:54 AM
How do you calculate %xHKO? - by Stereo - 2009-12-15, 03:51 PM
How do you calculate %xHKO? - by Noah - 2009-12-16, 09:28 PM
How do you calculate %xHKO? - by Stereo - 2010-01-18, 09:17 PM
How do you calculate %xHKO? - by Jellyflower - 2010-02-23, 08:30 PM
How do you calculate %xHKO? - by Jellyflower - 2010-02-23, 10:18 PM
How do you calculate %xHKO? - by KaidaTan - 2010-02-23, 10:34 PM
How do you calculate %xHKO? - by Russt - 2010-02-23, 10:42 PM
How do you calculate %xHKO? - by Noah - 2010-03-06, 06:51 AM
How do you calculate %xHKO? - by Russt - 2010-03-06, 09:08 AM
How do you calculate %xHKO? - by Shidoshi - 2010-03-06, 10:40 AM
How do you calculate %xHKO? - by Russt - 2010-03-06, 10:50 AM
How do you calculate %xHKO? - by Stereo - 2010-03-06, 11:42 AM
How do you calculate %xHKO? - by Noah - 2010-03-06, 12:39 PM
How do you calculate %xHKO? - by Russt - 2010-03-06, 02:57 PM
How do you calculate %xHKO? - by Noah - 2010-03-08, 12:00 PM
How do you calculate %xHKO? - by Kortestanov - 2010-05-03, 08:39 AM
How do you calculate %xHKO? - by Nikkey - 2010-05-03, 12:11 PM
How do you calculate %xHKO? - by Kortestanov - 2010-05-03, 02:16 PM
How do you calculate %xHKO? - by KaidaTan - 2010-05-03, 02:24 PM
How do you calculate %xHKO? - by shouri - 2010-05-03, 02:24 PM
How do you calculate %xHKO? - by Nikkey - 2010-05-03, 02:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)