![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
I worked out the probability of scoring at least x successes on n dice for a given test - were people looking for that a bit ago?
I don't know how to make equations look pretty in bbcode, here.. so it might be hard to read. A few notes: (1) n! = n*(n-1)*(n-2)*...*3*2*1 (2) Sum((i=1 to n), A_i) = A_1 + A_2 + A_3 + ... + A_n Then the probability P(x) of rolling exactly x successes on n dice is: P(x) = (1/3)^x * n! / (x! * (n-x)!) And the probability of rolling at least x successes on n dice is: Sum((i=x to n), P(i) ) Can anyone make that look a bit nicer? Or does that work...? Feel free to double check my math, too. I'm certainly not immune to error.. Edit: Ignore these calculations. Not accurate. Damn. |
|
|
![]()
Post
#2
|
|
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
Wait ... crap. That 2nd part doesn't look right.
|
|
|
![]()
Post
#3
|
|||
Immoral Elf ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 15,247 Joined: 29-March 02 From: Grimy Pete's Bar & Laundromat Member No.: 2,486 ![]() |
Try using
:)
|
||
|
|||
![]()
Post
#4
|
|||||
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
Well, if you can point me to a site that has a brief rundown of what al I can put in there.. ;) |
||||
|
|||||
![]()
Post
#5
|
|
Immoral Elf ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 15,247 Joined: 29-March 02 From: Grimy Pete's Bar & Laundromat Member No.: 2,486 ![]() |
You asked for something to make your math look pretty. Ain't my job to be supplying the math. ;)
|
|
|
![]()
Post
#6
|
|||
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
Bah. The math has been supplied. 8) |
||
|
|||
![]()
Post
#7
|
|
Great Dragon ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 7,089 Joined: 4-October 05 Member No.: 7,813 ![]() |
just on a side note, there are already some old threads with this information in them. i remember the threads existing, but my search-fu has failed me as far as finding them....
so if you can track down those threads, you can save yourself the bother of making anything look pretty =D |
|
|
![]()
Post
#8
|
|
Manus Celer Dei ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Dumpshocked Posts: 17,010 Joined: 30-December 02 From: Boston Member No.: 3,802 ![]() |
Well, the most obvious error is that you have a variable k as the lower index of summation which is never actually defined or provided.
(Yeah, it's trivial to figure out what it should be, but it's still wrong) ~J |
|
|
![]()
Post
#9
|
|||
Immoral Elf ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 15,247 Joined: 29-March 02 From: Grimy Pete's Bar & Laundromat Member No.: 2,486 ![]() |
But Orient was so proud of all his work. Why would you want to go and spoil it? :P :D |
||
|
|||
![]()
Post
#10
|
|||||
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
Hell, I'd have had to check their math, anyway. |
||||
|
|||||
![]()
Post
#11
|
|||
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
Whoop. I was using k instead of x on scratch paper, and it slipped in.. |
||
|
|||
![]()
Post
#12
|
|
Manus Celer Dei ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Dumpshocked Posts: 17,010 Joined: 30-December 02 From: Boston Member No.: 3,802 ![]() |
k is a better choice (m might be even better), since x traditionally implies a real number where you want an integer or natural number.
Though I guess k is usually considered a real as well, and an unspecified constant at that. If you're in the mood for nitpicking, go with m. ~J |
|
|
![]()
Post
#13
|
|||
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
Naah - that's convention only - I just thought people would be more comfortable with x. And if people are aware of those conventions, then they're probably savvy enough to realize that we're just using natural numbers, anyhow. And I wanted to reserve m for the possibility of writing a proof involving two separate sums, here. ;P |
||
|
|||
![]()
Post
#14
|
|
Target ![]() Group: Members Posts: 76 Joined: 12-September 07 Member No.: 13,233 ![]() |
Oh, don't be so lazy. Add in probabilities if you throw in edge at first.
If you think it's complicated now, wait til the rule of six rears it's ugly head :D |
|
|
![]()
Post
#15
|
|||
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
Yeah, yeah .. you just multiply some stuff. Or something. ;) |
||
|
|||
![]()
Post
#16
|
|
Moving Target ![]() ![]() Group: Members Posts: 573 Joined: 17-September 07 Member No.: 13,319 ![]() |
I worked it out by hand for DP 2 and DP 3, treating it as "need 3 on 1d3".
DP 2: 44% 0 hits, 44% 1 hit, 11% 2 hits (totals 99% due to rounding) DP 3: 30% 0 hits, 44% 1 hit, 22% 2 hits, 4% 3 hits So if you only need one hit - eg firing a gun or throwing a rock at a static person-size target - then you have better-than-coinflip odds even at low DP. Adding chance of crit-glitch is more math that I'm up to off the cuff. |
|
|
![]()
Post
#17
|
|||
Target ![]() Group: Members Posts: 91 Joined: 24-September 07 Member No.: 13,404 ![]() |
Here are the probabilities for dice counts up to 20. I'll post the exploding results when I get rid of a minor accuracy bug.
|
||
|
|||
![]()
Post
#18
|
|||
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
What was the expression used to evaluate those? Mine's all kinds of screwed up. |
||
|
|||
![]()
Post
#19
|
|||||
Target ![]() Group: Members Posts: 91 Joined: 24-September 07 Member No.: 13,404 ![]() |
I used a simple recursive calculation. Basically, if you have know the roll probabilities for 1 die:
and you have a rule for generating the nth table from the nth -1 table
Then it's a simple matter of collapsing the total roll probability table for a particular number of dice n down to a (2, n) table of the probabilities of the states we care about, that is (glitch|!glitch, hits) I'm honestly not sure how you would express this in terms of a clean formula, the glitch probabilities make things messy, the exploding counts just makes things explode. Oh, and please pardon my pseudo code. The actually code is in perl, but needs cleaning up a bit. |
||||
|
|||||
![]()
Post
#20
|
|||||||
Moving Target ![]() ![]() Group: Members Posts: 184 Joined: 29-August 03 Member No.: 5,553 ![]() |
I'm not really up on any coding languages, but I should be able to puzzle it out. And, yeah - probably would have been smarter for me to use a recursion formula. ..thanks. :D |
||||||
|
|||||||
![]()
Post
#21
|
|
Running Target ![]() ![]() ![]() Group: Members Posts: 1,206 Joined: 9-July 06 From: Fresno, CA Member No.: 8,856 ![]() |
I put together some nice tables in PDF format regarding these types of probabilities. However since I've moved from cable to DSL I lost my webspace (Curse you DSL). So until I get myself an alternative I don't have them hosted. But if you'd like them PM me your email and I'll send them to you.
Edit: Here's my original thread. The links are broken until I can get these rehosted somewhere. In the mean time, like I said, PM me and I can EMail them to you. http://forums.dumpshock.com/index.php?showtopic=16917 |
|
|
![]()
Post
#22
|
|||
Target ![]() Group: Members Posts: 91 Joined: 24-September 07 Member No.: 13,404 ![]() |
Actually, lets first throw out the E portion and then do a by hand demo of 2 dice:
In other words, I'm brute forcing it, but just being careful to collapse things at the right time. Doesn't scale too well, but, good enough for the range of dice we care about. |
||
|
|||
![]()
Post
#23
|
|
Moving Target ![]() ![]() Group: Members Posts: 530 Joined: 11-June 05 Member No.: 7,441 ![]() |
http://en.wikipedia.org/wiki/Binomial_distribution
For at least n successes, evaluate the cdf at n-1, and subtract from 1, yes? For exactly n successes, evaluate the pdf. |
|
|
![]()
Post
#24
|
|||
Shooting Target ![]() ![]() ![]() ![]() Group: Members Posts: 1,512 Joined: 26-February 02 Member No.: 392 ![]() |
That's the easy way to do it but only for hits/not hits. Gets more complicated if you are also trying to evaluate chances of glitches, critical glitches and exploding dice. Basically to use binomial distribution you have to work out odds for 2 mutually exclusive and exhaustive events. |
||
|
|||
![]()
Post
#25
|
|
Target ![]() Group: Members Posts: 91 Joined: 24-September 07 Member No.: 13,404 ![]() |
http://mathworld.wolfram.com/MultinomialDi...stribution.html gets you past the glitch hurdle, but, computationally, to generate the entire table, it's as expensive as the brute force calculation (since you do in fact need the entire probability map to answer the glitch question), and isn't of much help when it comes to exploding dice.
Actually, I've just realized I may have a bug in my glitch calculations when dealing with exploding dice. Given 3 dice, exploding, would any of these results be considered a glitch: 1, 1, 6:6:4 (2 hits, 2 original 1s, 3 original dice, 5 total dice) 1, 6:1, 6:1 (2 hits, 1 original 1, 3 total 1s, 3 original dice, 5 total dice) 1, 6:4, 6:1 (2 hits, 1 original 1, 2 total 1s, 3 original dice, 5 total dice) |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 4th June 2025 - 04:09 AM |
Topps, Inc has sole ownership of the names, logo, artwork, marks, photographs, sounds, audio, video and/or any proprietary material used in connection with the game Shadowrun. Topps, Inc has granted permission to the Dumpshock Forums to use such names, logos, artwork, marks and/or any proprietary materials for promotional and informational purposes on its website but does not endorse, and is not affiliated with the Dumpshock Forums in any official capacity whatsoever.