Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Today's math problem

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 02:52 PM
Original message
Today's math problem
Edited on Wed Feb-06-08 03:01 PM by pokerfan
involves rolling a pair of dice.

The total number of combinations is 36 (six times six). There is only one way to roll a specific double such as double sixes (AKA boxcars), therefore the odds against rolling a double six is 35:1.

So the question is: How many consecutive rolls on average will it take before you roll double sixes?

Printer Friendly | Permalink |  | Top
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 02:55 PM
Response to Original message
1. Just off the cuff....
18?
Or is it 18+1?
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 02:57 PM
Response to Reply #1
2. It is greater than 19
It is also not an integer.

Printer Friendly | Permalink |  | Top
 
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:07 PM
Response to Reply #2
6. is it closer to 35.009089?
Edited on Wed Feb-06-08 03:09 PM by mainegreen
Just curious.
(I just rolled 36 10,000,000 times, if I coded this correctly and got an average number of rolls).

No idea how to do the math.

:shrug:
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:24 PM
Response to Reply #6
11. It's less than 35
Another hint: The probability of NOT rolling double six is 35/36 = 0.972222222. The probability of NOT rolling double sixes in TWO rolls is (35/36)*(35/36) = 0.945216049.

Printer Friendly | Permalink |  | Top
 
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 04:04 PM
Response to Reply #11
15. This problem is driving me nuts.
Using that logic, I get the answer no problem.
But me, being me, I've got to actually test it.

I now no longer trust my sanity.

I'm rolling two electronic dice over and over in runs until I get the magic twelve. Total the number of rolls, increment the runs, and repeat.

No matter what I do, the more runs I do, the closer I seem to get to 36.

ARRRRG!

What the hell don't I get here?

Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 04:41 PM
Response to Reply #15
17. You must have made a coding error
Edited on Wed Feb-06-08 04:43 PM by pokerfan
You are with me that the probability of NOT rolling double sixes in TWO rolls is (35/36)*(35/36) = 0.945216049?

Therefore the probability of NOT rolling double sixes n time in a row is (35/36)^n.

(35/36)^24 = 0.508596124
(35/36)^25 = 0.494468454

So the answer has to be greater than 24 but less than 25.

Setting (35/36)^n = 0.5 and solving for n, I get 24.60509772 (not the 24.255 that was given in the article I linked.

If you have nothing to do for the rest of the day, you could start tunning trials with real dice.



Printer Friendly | Permalink |  | Top
 
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 08:49 PM
Response to Reply #17
19. Thanks for the help!
I figured out my problem.
The code for rolling the dice and calculating runs was right, but my final analysis was wrong.

The way I was analyzing it, it was picking out the denominator of the probability of not getting the number on a single roll.

Duh.

That was fun!
Thanks for the mental challenge.
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 09:09 PM
Response to Reply #19
20. Thank you for making me double check as well
and discovering that the 24.255 in the article was wrong. Nothing like doing it yourself and proving it by checking your work to really "grok" something.

Printer Friendly | Permalink |  | Top
 
EnviroBat Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 02:58 PM
Response to Original message
3. Is beef a number?
Printer Friendly | Permalink |  | Top
 
laconicsax Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:02 PM
Response to Original message
4. (all three)
Printer Friendly | Permalink |  | Top
 
Rabrrrrrr Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:06 PM
Response to Original message
5. Somewhere around 21.6, I wager
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:11 PM
Response to Reply #5
7. Higher
Printer Friendly | Permalink |  | Top
 
Canuckistanian Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 10:12 PM
Response to Reply #5
32. You're on.
Who else wants in on the action?
Printer Friendly | Permalink |  | Top
 
Lil Missy Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:14 PM
Response to Original message
8. 36
Printer Friendly | Permalink |  | Top
 
Orsino Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 09:56 PM
Response to Reply #8
21. Has to be, unless the dice are loaded.
1 in 36 rolls will be boxcars.
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 12:50 AM
Response to Reply #21
22. That's not exactly saying the same thing
as asking for the average number of rolls required before you hit double sixes.

For it to take 36 rolls, you would have had to have missed double-sixes thirty-five times in a roll.

(35/36)^35 = 0.3730

Only 37.3% of the times will you miss double-six on 35 consecutive rolls.

Printer Friendly | Permalink |  | Top
 
Orsino Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 06:00 AM
Response to Reply #22
23. On the average, 1 in 36 rolls will be boxcars...
...with 35 non-boxcars in between. Quite often, more than 35 misses will occur between boxcars.
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 04:03 PM
Response to Reply #23
24. English is not well suited for explaining probability problems
It lacks the rigor of mathematics and it doesn't help that I have only a tenuous grasp of my only language. All I can say is that I trust my math and mainegreen's 10,000,000 trials which lend corroboration.

It's an old problem dating back to the seventeenth century and quite famous actually. Googling 'Chevalier de Mere' and 'Blaise Pascal' yields 625 pages on the subject. One of the better papers is http://www.probabilitytheory.info/topics/periodic_events.htm which explains it quite well, I think.

From reading that page it's interesting that Abraham de Moivre came up with an answer of 24.9516 in 1716. Which was too high.

John Scarne came up with 24.2585 in 1961. Which is too low.

Interesting to note that page comes up with the same formula as I did: n = log 2/(log 36 -log 35) but then evaluates it incorrectly. They say that n has a value of 24.6721? I keep getting 24.6051.

Printer Friendly | Permalink |  | Top
 
Orsino Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 04:27 PM
Response to Reply #24
25. That's a different problem from the one posed in the OP.
The ~25 figure is the number of rolls needed to make boxcars a better than even chance.

If you're rolling boxcars once in 25 throws on average, you've got loaded dice.
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 04:58 PM
Response to Reply #25
26. I think I found the problem
I think the source of the confusion in the question was the use of the word, 'average' to imply median instead of mean.

The median number of rolls require before throwing double-six is 24.605. In other words, in the long run, there will be just as many cases where boxcars are hit before that number of rolls as there are case that exceed that number.





Printer Friendly | Permalink |  | Top
 
Orsino Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 06:07 PM
Response to Reply #26
27. That's it exactly, I think. n/t
Printer Friendly | Permalink |  | Top
 
flvegan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:16 PM
Response to Original message
9. On average? 25
Or so says Blaise Pascal and Pierre de Fermat.
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:28 PM
Response to Reply #9
12. Winner (24.255 to be precise)
But I don't know how to perform a 0.255 roll.

http://homepage.ntlworld.com/dice-play/Odds.htm

Pascal concluded that the true odds were the odds against winning in one roll multiplied by the colog of the hyperbolic log of two (0.693). This works out as 35 x 0.693 which equals 24.255 rolls for an even money game. He needed at least 25 rolls of the dice to get an edge and 26 or 27 would have been more like it.

Printer Friendly | Permalink |  | Top
 
Dr. Strange Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 04:00 PM
Response to Reply #9
13. I was going to say that...I even had all the calculations done, ready to be included.
But the message space isn't big enough to include them all. So you'll just have to take my word for it.

Printer Friendly | Permalink |  | Top
 
flvegan Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 04:02 PM
Response to Reply #13
14. Of course you did, Pierre.
Of course.
Printer Friendly | Permalink |  | Top
 
Omphaloskepsis Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 03:21 PM
Response to Original message
10. 2+6=Cat
Printer Friendly | Permalink |  | Top
 
Dr. Strange Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 04:29 PM
Response to Reply #10
16. You forgot to carry the doorknob.
Try again.
Printer Friendly | Permalink |  | Top
 
LynzM Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-06-08 04:48 PM
Response to Reply #16
18. LMAO
This was my first true LOL of the day. Thank you!! :rofl:
Printer Friendly | Permalink |  | Top
 
Bake Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 06:12 PM
Response to Original message
28. With MY dice it only takes one roll. Every time.
Whazzup with that?

Bake
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 06:30 PM
Response to Reply #28
29. You are the villian from Octopussy?


He could roll double-sixes whenever he wanted.


Printer Friendly | Permalink |  | Top
 
Bake Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Feb-08-08 11:41 AM
Response to Reply #29
33. And I look GOOD! in a tux, too!
:rofl:

Bake
Printer Friendly | Permalink |  | Top
 
BlueJazz Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 07:26 PM
Response to Original message
30. 15
Printer Friendly | Permalink |  | Top
 
pokerfan Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-07-08 10:02 PM
Response to Reply #30
31. I'm actually surprised no one guessed 42
knowing this group.

Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun May 05th 2024, 05:07 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC