How to Simulate a Biased Coin Toss With a Fair Coin

We often use a coin toss to choose from two equally preferable outcomes, but can also use one to break a three way tie, or in other situations where you want a probablity distrubition other than 50-50.

[edit] Steps

  1. Decide what probability you want for each outcome, and make sure they add up to 1.
  2. Assign each outcome the appropriate length of the interval [0,1]. That is, assign [0,p) to the first outcome, [p,p+q) to the second, [p+q,p+q+r) to the third, etc.
  3. Convert each endpoint to a binary decimal.
  4. Define heads=0 and tails=1.
  5. Flip the coin and record each result.
  6. Convert the sequence of heads and tails to a binary decimal according to step 4. (Convert HHHTTHHHTT to 0.0001100011)
  7. Stop flipping when you have enough precision to determine which of the intervals from step 2 your number falls within. and pick the outcome that was assigned that interval.


[edit] Things You'll Need

Embed this: Republish this entire article on your blog or website.

Was this article accurate? Yes No

Edit This Page E-mail this to a Friend Printable version
Discuss This Page Thank the Authors Write an Article
Categories:Games of Chance

Authors

King Peter, Sondra C, Jack H
Thanks to all authors for creating a page that has been read 193 times.

Related Articles



Hide These Ads
Show Ads

Navigation

Editing Tools

My Pages