Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > General Gambling > Probability
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-26-2006, 05:16 PM
iversonian iversonian is offline
Senior Member
 
Join Date: Sep 2003
Posts: 367
Default Randomizing with a coin

You are playing rock paper scissors, and you want to choose which to throw using a coin. You want a probability distribution of 1/3 for each type.

Is it possible to devise an algorithm for choosing what to throw based on a series of coin flips such that you are guaranteed to have a result in a finite number of coin flips? If not, prove. If so, what is the smallest number of coin flips in which you can guarantee a result that has a perfect 1/3 distribution for each type.

e.g. If you flip twice, where head-head = rock, head-tail = paper, tail-head = scissors, and tail-tail = redo, then it may never terminate.
Reply With Quote
  #2  
Old 10-26-2006, 05:22 PM
TomCollins TomCollins is offline
Senior Member
 
Join Date: Jul 2003
Location: Approving of Iron\'s Moderation
Posts: 7,517
Default Re: Randomizing with a coin

[ QUOTE ]
You are playing rock paper scissors, and you want to choose which to throw using a coin. You want a probability distribution of 1/3 for each type.

Is it possible to devise an algorithm for choosing what to throw based on a series of coin flips such that you are guaranteed to have a result in a finite number of coin flips? If not, prove. If so, what is the smallest number of coin flips in which you can guarantee a result that has a perfect 1/3 distribution for each type.

e.g. If you flip twice, where head-head = rock, head-tail = paper, tail-head = scissors, and tail-tail = redo, then it may never terminate.

[/ QUOTE ]

It's impossible to guarantee it in a finite number of coin flips.
Reply With Quote
  #3  
Old 10-26-2006, 06:04 PM
iversonian iversonian is offline
Senior Member
 
Join Date: Sep 2003
Posts: 367
Default Re: Randomizing with a coin

Care to attempt a proof?
Reply With Quote
  #4  
Old 10-26-2006, 06:08 PM
TomCollins TomCollins is offline
Senior Member
 
Join Date: Jul 2003
Location: Approving of Iron\'s Moderation
Posts: 7,517
Default Re: Randomizing with a coin

Not really. But you cannot represent 1/3 exactly in binary, and all coin flips can be represented in binary, so you have a problem.
Reply With Quote
  #5  
Old 10-26-2006, 07:23 PM
alThor alThor is offline
Senior Member
 
Join Date: Mar 2004
Location: not Vegas
Posts: 192
Default Re: Randomizing with a coin

[ QUOTE ]
Not really. But you cannot represent 1/3 exactly in binary, and all coin flips can be represented in binary, so you have a problem.

[/ QUOTE ]

Well, you tried not to prove it, but then you accidentally proved it (essentially). Better luck not proving things next time!
Reply With Quote
  #6  
Old 10-27-2006, 01:21 AM
UATrewqaz UATrewqaz is offline
Senior Member
 
Join Date: Feb 2005
Location: Atlanta
Posts: 5,542
Default Re: Randomizing with a coin

If this was a question looking for an actual system, not just the math, just roll a fair die (1-2: Rock, 3-4: Paper, 5-6: Scissors)
Reply With Quote
  #7  
Old 10-27-2006, 11:45 AM
TomCollins TomCollins is offline
Senior Member
 
Join Date: Jul 2003
Location: Approving of Iron\'s Moderation
Posts: 7,517
Default Re: Randomizing with a coin

[ QUOTE ]
[ QUOTE ]
Not really. But you cannot represent 1/3 exactly in binary, and all coin flips can be represented in binary, so you have a problem.

[/ QUOTE ]

Well, you tried not to prove it, but then you accidentally proved it (essentially). Better luck not proving things next time!

[/ QUOTE ]

I didn't prove why its impossible to represent it in binary though.
Reply With Quote
  #8  
Old 10-27-2006, 01:29 PM
BruceZ BruceZ is offline
Senior Member
 
Join Date: Sep 2002
Posts: 4,078
Default Re: Randomizing with a coin

[ QUOTE ]
I didn't prove why its impossible to represent it in binary though.

[/ QUOTE ]

Proof 1 (long division in binary):

Dividing binary 11 into 1.00 gives 0.01 with a remainder of 1, or 0.01010101...


Proof 2 (geometric series):

Binary 0.01010101... = 1/4 + 1/16 + 1/64 + 1/256 + ...

= sum [n = 1 to infinity] (1/4)^n = 1/(1 - 1/4) - 1

= 1/3


There can be no finite representation of this number in binary, since if we truncate this number after the nth binary digit, the least that we could increase the remaining number would be 2^-n, and this is equal to the binary number with all 1s from position n+1 to infinity, which would clearly be greater than the alternating series of 1s and 0s being replaced.
Reply With Quote
  #9  
Old 10-27-2006, 02:36 PM
alThor alThor is offline
Senior Member
 
Join Date: Mar 2004
Location: not Vegas
Posts: 192
Default Re: Randomizing with a coin

[ QUOTE ]
I didn't prove why its impossible to represent it in binary though.

[/ QUOTE ]

Yes, I was taking that as given, but good point.

For the OP, if you flip a coin at most n times, this creates 2^n possible outcomes, equally likely. This number is not divisible by 3 because the prime factorization of 2^n is "2^n", which does not contain any "3^k".
Reply With Quote
  #10  
Old 10-27-2006, 04:37 PM
AlienBoy AlienBoy is offline
Senior Member
 
Join Date: Feb 2006
Location: Poker Happens...
Posts: 2,264
Default Re: Randomizing with a coin

You need a 3 sided coin., wherein each side if of equal surface area, equal shape, and equally positioned equidistant from the center of mass.

The result is a somewhat football shaped curvilinear object.

AB
Reply With Quote
Reply


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 Off

Forum Jump


All times are GMT -4. The time now is 02:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.