.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #11  
Old December 27th, 2003, 04:14 PM
David E. Gervais's Avatar

David E. Gervais David E. Gervais is offline
General
 
Join Date: May 2002
Location: Canada
Posts: 3,227
Thanks: 7
Thanked 44 Times in 28 Posts
David E. Gervais is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

Who said there is no such thing as luck?

Yesterday, I had my friend Claude over and told him about this discussion. I then asked if he would like to join me in a test, he said sure, it'd be fun.

This is the test we preformed. We each rolled 5 dice 20 times, we took note of how many 6's turned up. We then repeated this test 10 times to see what kind of averages we came up with.

code:
David / Claude
14 / 34
12 / 32
17 / 35
20 / 37
17 / 28
16 / 31
21 / 36
32 / 27 (wow I beat him! )
18 / 33
15 / 33
---------------
18.2 / 32.6

Now if those numbers don't show some degree of luck I don't know how else to explain the results.

Would someone here like to roll this test and see how their results compare? (It would be nice to see how an outside 'neutral' person did with this simple test.)

Oh, now you can understand why I hate playing RISK against him, he always wins. (his best battle win against me in RISK was when I attacked him with 37 armies and he only had 5. He won. (and still had 3 of his 5 armies left after the battle.)

Cheers!
Reply With Quote
  #12  
Old December 27th, 2003, 05:15 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

It's not luck David, but probability you have demonstrated there. Your sample is too small to be meaningfull. If you and your friend rolled 100 times, or a thousand, or ten thousand, the scores would get much closer together. Eventually within percentage points of one another. On the other hand if you and your friend sat down and rolled 10 times each again he would be just as likely to have a better score then you the second time around.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #13  
Old December 27th, 2003, 07:58 PM
Krsqk's Avatar

Krsqk Krsqk is offline
Lieutenant Colonel
 
Join Date: Jul 2001
Location: Orlando, FL
Posts: 1,259
Thanks: 0
Thanked 0 Times in 0 Posts
Krsqk is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

I'd start checking your friend's dice, David.

Actually, Geo is absolutely right, with one clarification. The difference in percentage points will likely decrease, eventually dropping near the break even point; the numerical difference will likely increase. There is no guarantee that actual results will even out over time (the usual misapplication of the law of averages).

Put another way, the odds of rolling a six with a single die are 1/6 every time, whether the "score" is 75 to 5 or 40 to 40. Previous results do not affect future results.

=========

In a separate thought, I found one page (granted, one which wasn't a strictly mathematical approach) which said probabilities which are mutually independent (such as rolling two separate dice) should be added; i.e., the odds of rolling at least one six with two dice is 1/6+1/6, or 1/3. If that's true, though, the odds of rolling at least one six with twelve dice would be 12/6, or 200%. That obviously isn't correct.

As I'm having much trouble finding any helpful information on the web, such as an intro to probability site or the like, I'd appreciate any links y'all can pass along.
__________________
The Unpronounceable Krsqk

"Well, sir, at the moment my left processor doesn't know what my right is doing." - Freefall
Reply With Quote
  #14  
Old December 27th, 2003, 07:58 PM
David E. Gervais's Avatar

David E. Gervais David E. Gervais is offline
General
 
Join Date: May 2002
Location: Canada
Posts: 3,227
Thanks: 7
Thanked 44 Times in 28 Posts
David E. Gervais is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

geo, as I said, we rolled 5 dice 20 times (100 die rolls) and did this test 10 times. (10x100 = 1000 die rolls)

It took us about a half hour to make all the rolls. If you mean that we should have rolled this full test 10 more times to get 10,000 die rolls, that is a bit much. It wasn't my aim to prove the law of averages, but to see how in one quick session Claude always seems to out-six me.

Besides rolling 10,000 or 100,000 dice is unrealistic and does not reflect real life applications. Life does not work like that. Averages and probabilities are at best a global "best guess" and no matter what the 'odds' are or how many million tests are used to achieve those 'averages' it does not guarantee your imediate results.

Think of it this way, according to 'averages' if you roll a dice you have a 1/6 chance to hit a 6, but if you miss, your odds on the second throw don't improve, they stay exactly the same.

Cheers!

P.S...
so, anyone want to try my test and share the results?
Reply With Quote
  #15  
Old December 27th, 2003, 09:14 PM
Kamog's Avatar

Kamog Kamog is offline
Lieutenant General
 
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
Kamog is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

Wow, Claude should go to Las Vegas and get rich gambling!

Out of 100 dice rolls, the average number of 6's that should appear is 100/6 = 16.667 times. David's results are close to this. Claude's getting almost twice as much.

I want to calculate what the odds are of getting Claude's results, but all my statistics and probability textbooks are at work so I can't refer to them...
Reply With Quote
  #16  
Old December 27th, 2003, 09:52 PM
Kamog's Avatar

Kamog Kamog is offline
Lieutenant General
 
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
Kamog is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

This math problem is a cumulative binomial distribution.

Let's look at binomial distribution.

Each die toss is an event with two mutually exclusive possible outcomes: either you roll a 6 (success), or you roll 1 -5 (failure). If we have N events, then the binomial distribution can be used to determine the probability of getting exactly r successes in N outcomes. The formula is:

P(r) = (N! / (r!(N - r)!)) ( p^r) (1 - p)^(N-r)

where N = number of trials,
P(r) = probability of getting exactly r successes in the N outcomes
p = probability of success on any one trial.

So, in our situation, N = 1000 dice rolls, p = 1/6.

David got 182 successes out of 1000 trials and Claude got 326 out of 1000.

So, the probability of David getting exactly 182 out of 1000, by using the above formula, is
P(182) = (1000! / (182!(1000-182)!))((1/6)^182)(1-1/6)^(1000-182)

And the probability of Claude getting 326 out of 100 is:
P(326) = (1000! / (326!(1000-326)!))((1/6)^326)(1-1/6)^(1000-326)

But so far we are talking about the probability of getting exactly the number we got. I think we're more interested in the cumulative case, where we ask, what is the probability of getting at least 182 successes out of 1000, or at least 326 out of 1000?

Well, then we have to add them up, i.e.

P(182 or more) = P(182) + P(183) + P(184) + .... + P(1000)

and
P(326 or more) = P(326) + P(327) + P(328) + ... + P(1000)

I thought, no problem, I'll do this on Excel, but I immediately found that Excel can't handle 1000! because it's too big a number.
Reply With Quote
  #17  
Old December 27th, 2003, 10:26 PM

spoon spoon is offline
First Lieutenant
 
Join Date: Apr 2002
Location: California
Posts: 790
Thanks: 0
Thanked 0 Times in 0 Posts
spoon is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

Quote:
Originally posted by David E. Gervais:
(his best battle win against me in RISK was when I attacked him with 37 armies and he only had 5. He won. (and still had 3 of his 5 armies left after the battle.)
I plugged those numbers into a RISK calculator... odds of you winning were 0.99999978. That's some streak of luck!
__________________
Try out the Fantasy Empires Mod, a full conversion, fantasy based mod for SEIV Gold.
Click here to download.
Click here for the Fantasy Empires Mod discussion thread.
Reply With Quote
  #18  
Old December 27th, 2003, 10:28 PM
Kamog's Avatar

Kamog Kamog is offline
Lieutenant General
 
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
Kamog is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

OK, I did some more searching around and discovered that Excel can, in fact, do this calculation.

There is a handy pre-built function called BINOMDIST(number_s, trials, probability, cumulative).
Now this is easy.

The probability of getting 182 or more 6's in 1000 rolls is:
P = 1 - BINOMDIST(181, 1000, 1/6, TRUE)
P = 0.105008

I needed to subtract from 1 because the cumulative function adds from 0 to 181. To get the portion for 182 and above, we subtract from the whole (1) the part we don't want, the stuff at 181 and below.

OK, so there's about a 10.5% chance of getting 182 or more.

The probability of getting 326 or more 6's in 1000 rolls is:

P = 1 - BINOMDIST(325, 1000, 1/6, TRUE)
P = -0.5.08482E-14

Obviously there's something wrong. The answer can't be negative. I think Excel still can't handle this kind of big / small number.

Does anybody have a better program and/or calculation method that can do this? Or am I doing something wrong?
Reply With Quote
  #19  
Old December 27th, 2003, 10:56 PM
David E. Gervais's Avatar

David E. Gervais David E. Gervais is offline
General
 
Join Date: May 2002
Location: Canada
Posts: 3,227
Thanks: 7
Thanked 44 Times in 28 Posts
David E. Gervais is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

Quote:
Originally posted by spoon:
I plugged those numbers into a RISK calculator... odds of you winning were 0.99999978. That's some streak of luck!
I remember he was defending with 2 dice and I was attacking with 3. I vividly remember when I rolled 3 six's and expected certain victory but he rolled boxcars to counter my attack. I really don't want to know the odds on that happening.

When people say there is no such thing as luck, I don't believe them. I have faced luck and lost too many times playing RISK. LOL

Cheers!
Reply With Quote
  #20  
Old December 27th, 2003, 11:11 PM
Krsqk's Avatar

Krsqk Krsqk is offline
Lieutenant Colonel
 
Join Date: Jul 2001
Location: Orlando, FL
Posts: 1,259
Thanks: 0
Thanked 0 Times in 0 Posts
Krsqk is on a distinguished road
Default Re: OT: Home Sick for the Holidays, or Probability and Yahtzee

Quote:
Obviously there's something wrong. The answer can't be negative. I think Excel still can't handle this kind of big / small number.
I think that's because 1000! comes out to...

4.02387260077093773543702433923e+2567

Anyone want to put a name to that number?

The BINOMDIST function (with the TRUE parameter) gave me values steadily approaching 1 all the way up to 167, at which point Excel decided they were close enough to round to 1 (when I subtracted them from 1, the values were things like .1E-77 and the like). The odds of having no more than 167 sixes when rolling 1000 dice shouldn't be ~100%, should it?

The problem apparently occurs at 260 successes. The function calculates that the probability of having no more than 260 successes is slightly more than 1. This may be due to the rounding limitations of this function.

[ December 27, 2003, 21:46: Message edited by: Krsqk ]
__________________
The Unpronounceable Krsqk

"Well, sir, at the moment my left processor doesn't know what my right is doing." - Freefall
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.