:: Home :: FAQ :: Search :: Memberlist :: Usergroups :: Join! (free) :: Profile :: Log in to check your private messages :: Log in ::
WAS probability calculator - possibly another bug

 
Post new topic   Reply to topic    Axis & Allies ForuMINI Forum Index -> WAS General Discussion
View previous topic :: View next topic  
Author Message
David-in-Sydney

 

Joined: 18 Jun 2009

Posts: 110




Post subject: WAS probability calculator - possibly another bug Reply with quote
G'day all,

I just had a go at calculating the probability of x hits (4&5 = 1 hit, 6=2 hits) for 7d6 and then compared it to the AAForuMINI calculator and came up with teh below:

Rolls* Total Hits Prob 7d6 aaForumMini
7831 0 0.8% 99.95%
36617 1 3.7% 99.22% 99.22%
90761 2 9.1% 95.56% 99.32%
153959 3 15.4% 86.48% 95.49%
194169 4 19.4% 71.08% 82.72%
190425 5 19.0% 51.67% 57.40%
150029 6 15.0% 32.62% 26.40%
96038 7 9.6% 17.62% 5.87%
49411 8 4.9% 8.02%
21075 9 2.1% 3.08%
7338 10 0.7% 0.97%
1896 11 0.2% 0.23%
400 12 0.0% 0.05%
41 13 0.0% 0.01%
10 14 0.0% 0.00%
1000000 Total 100.0%

I know that the web site calculator doesn't work for more hits that dice - but teh above probabilities are so different that either I'm wildly wrong (not unknown) or there may be a another bug in teh web calculator.

Comments?
_________________
all the best

David
PostFri Jun 19, 2009 3:43 am
View user's profile Send private message
RAEVSKI

.
 SOCCEROO FEVER


Joined: 16 Jan 2008

Posts: 6808




Post subject: Reply with quote
i hate maths
_________________
PostFri Jun 19, 2009 3:48 am
View user's profile Send private message
NeuralDream

 

Joined: 22 Dec 2007

Posts: 9282




Post subject: Reply with quote
Let's check for one of your examples

prob(successes>=2) = 1 - (prob successes = 1) - prob (successes = 0) = 1- 0.5^7 - 1/3*7*(0.5^6) = 95.57%
So, your computations are correct.

Still, you computed them numerically with 1 million iterations, which isn't practical on the web. The prob. calculator uses the binomial distribution formulas with the assumption that the prob of success for one dice is the expected number of successes per dice (4/6). That's why inaccuracies are introduced in some cases, especially when there is the same number of successes as rolls.

I wouldn't mind changing the code of the prob. calculator if someone wrote it in a better way.
_________________

My new blog, specialised in the military equipment of Greece (1821-today).
PostFri Jun 19, 2009 6:46 am
View user's profile Send private message Visit poster's website
David-in-Sydney

 

Joined: 18 Jun 2009

Posts: 110




Post subject: Reply with quote
G'day all,

What about a lookup table?
(instead of a coded calculation)

True it would be best to actually calculate the underlying numbers (rather than my lazy generated numbers).

Notting that I have absolutely no idea about setting up functions in web pages (I can barely navigate them!).

In the interum I can post three table based on 50K replicants that at least give an idea of the probability of more successes than dice... (4-6, 5-6 and 6) anyone interested? (Would it be better as an excel email attachment to an administrator?)



NeuralDream wrote:
Let's check for one of your examples

prob(successes>=2) = 1 - (prob successes = 1) - prob (successes = 0) = 1- 0.5^7 - 1/3*7*(0.5^6) = 95.57%
So, your computations are correct.

Still, you computed them numerically with 1 million iterations, which isn't practical on the web. The prob. calculator uses the binomial distribution formulas with the assumption that the prob of success for one dice is the expected number of successes per dice (4/6). That's why inaccuracies are introduced in some cases, especially when there is the same number of successes as rolls.

I wouldn't mind changing the code of the prob. calculator if someone wrote it in a better way.

_________________
all the best

David
PostFri Jun 19, 2009 7:29 am
View user's profile Send private message
NeuralDream

 

Joined: 22 Dec 2007

Posts: 9282




Post subject: Reply with quote
You can use the "attach file" option when you post a reply here.
_________________

My new blog, specialised in the military equipment of Greece (1821-today).
PostFri Jun 19, 2009 8:01 am
View user's profile Send private message Visit poster's website
NuclearLunchbox

 Why is the rum always gone?


Joined: 01 Sep 2008

Posts: 237




Post subject: Reply with quote
See my new post on WaS Tables.

They're built and ready for prime-time!

Cheers...
_________________
PostFri Jun 19, 2009 4:28 pm
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Axis & Allies ForuMINI Forum Index -> WAS General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Donations are used for Forumini Olympics awards (donations admin: Aquarius)
Announcements
HERE'S YOUR CHANCE TO OWN USS NEW YORK!
Editor's Choice
Forumini Admirals
All War At Sea Cards
Dreadnought Rising
All AAM cards
Forumini Dogfights
Forumini Generals
Forumini Armies
Forumini Gallery
Friends
Official WoTC site
Richard Baker's Blog
Le Forum de A&ANM
Riverside Gaming
Locations of visitors to this page
Top posters
packertim 13359
RAEVSKI 6808
Okie 6666
The_lucky_Y 6599
Duck Crusader 5707
swarbs 5373
DaJudge 4763


Card File  Gallery  Forum Archive
Theme by: :: Cosmic Distortion ::
Powered by phpBB © 2001 phpBB Group