fbpx
Wikipedia

Fair coin

In probability theory and statistics, a sequence of independent Bernoulli trials with probability 1/2 of success on each trial is metaphorically called a fair coin. One for which the probability is not 1/2 is called a biased or unfair coin. In theoretical studies, the assumption that a coin is fair is often made by referring to an ideal coin.

A fair coin, when tossed, should have an equal chance of landing either side up.

John Edmund Kerrich performed experiments in coin flipping and found that a coin made from a wooden disk about the size of a crown and coated on one side with lead landed heads (wooden side up) 679 times out of 1000.[1] In this experiment the coin was tossed by balancing it on the forefinger, flipping it using the thumb so that it spun through the air for about a foot before landing on a flat cloth spread over a table. Edwin Thompson Jaynes claimed that when a coin is caught in the hand, instead of being allowed to bounce, the physical bias in the coin is insignificant compared to the method of the toss, where with sufficient practice a coin can be made to land heads 100% of the time.[2] Exploring the problem of checking whether a coin is fair is a well-established pedagogical tool in teaching statistics.

Probability space definition edit

In probability theory, a fair coin is defined as a probability space  , which is in turn defined by the sample space, event space, and probability measure. Using   for heads and   for tails, the sample space of a coin is defined as:

 

The event space for a coin includes all sets of outcomes from the sample space which can be assigned a probability, which is the full power set  . Thus, the event space is defined as:

 

  is the event where neither outcome happens (which is impossible and can therefore be assigned 0 probability), and   is the event where either outcome happens, (which is guaranteed and can be assigned 1 probability). Because the coin is fair, the possibility of any single outcome is 50-50. The probability measure is then defined by the function:

         
  0 0.5 0.5 1

So the full probability space which defines a fair coin is the triplet   as defined above. Note that this is not a random variable because heads and tails don't have inherent numerical values like you might find on a fair two-valued die. A random variable adds the additional structure of assigning a numerical value to each outcome. Common choices are   or  .

Role in statistical teaching and theory edit

The probabilistic and statistical properties of coin-tossing games are often used as examples in both introductory and advanced text books and these are mainly based in assuming that a coin is fair or "ideal". For example, Feller uses this basis to introduce both the idea of random walks and to develop tests for homogeneity within a sequence of observations by looking at the properties of the runs of identical values within a sequence.[3] The latter leads on to a runs test. A time-series consisting of the result from tossing a fair coin is called a Bernoulli process.

Fair results from a biased coin edit

If a cheat has altered a coin to prefer one side over another (a biased coin), the coin can still be used for fair results by changing the game slightly. John von Neumann gave the following procedure:[4]

  1. Toss the coin twice.
  2. If the results match, start over, forgetting both results.
  3. If the results differ, use the first result, forgetting the second.

The reason this process produces a fair result is that the probability of getting heads and then tails must be the same as the probability of getting tails and then heads, as the coin is not changing its bias between flips and the two flips are independent. This works only if getting one result on a trial doesn't change the bias on subsequent trials, which is the case for most non-malleable coins (but not for processes such as the Pólya urn). By excluding the events of two heads and two tails by repeating the procedure, the coin flipper is left with the only two remaining outcomes having equivalent probability. This procedure only works if the tosses are paired properly; if part of a pair is reused in another pair, the fairness may be ruined. Also, the coin must not be so biased that one side has a probability of zero.

This method may be extended by also considering sequences of four tosses. That is, if the coin is flipped twice but the results match, and the coin is flipped twice again but the results match now for the opposite side, then the first result can be used. This is because HHTT and TTHH are equally likely. This can be extended to any multiple of 2.

The expected value of flips at the n game   is not hard to calculate, first notice that in step 3 whatever the event   or   we have flipped the coin twice so   but in step 2 (  or  ) we also have to redo things so we will have 2 flips plus the expected value of flips of the next game that is   but as we start over the expected value of the next game is the same as the value of the previous game or any other game so it doesn't really depend on n thus   (this can be understood the process being a martingale   where taking the expectation again get us that   but because of the law of total expectation we get that  ) hence we have:

 
Graph of  the further away   is from   the further expected number of flips before a successful result.

 

 

The more biased our coin is, the more likely it is that we will have to perform a greater number of trials before a fair result.

See also edit

References edit

  1. ^ Kerrich, John Edmund (1946). An experimental introduction to the theory of probability. E. Munksgaard.
  2. ^ Jaynes, E.T. (2003). . Cambridge, UK: Cambridge University Press. p. 318. ISBN 9780521592710. Archived from the original on 2002-02-05. anyone familiar with the law of conservation of angular momentum can, after some practice, cheat at the usual coin-toss game and call his shots with 100 per cent accuracy. You can obtain any frequency of heads you want; and the bias of the coin has no influence at all on the results!{{cite book}}: CS1 maint: bot: original URL status unknown (link)
  3. ^ Feller, W (1968). An Introduction to Probability Theory and Its Applications. Wiley. ISBN 978-0-471-25708-0.
  4. ^ von Neumann, John (1951). "Various techniques used in connection with random digits". National Bureau of Standards Applied Math Series. 12: 36.

Further reading edit

  • Gelman, Andrew; Deborah Nolan (2002). "Teacher's Corner: You Can Load a Die, But You Can't Bias a Coin". American Statistician. 56 (4): 308–311. doi:10.1198/000313002605. Available from Andrew Gelman's website
  • "Lifelong debunker takes on arbiter of neutral choices: Magician-turned-mathematician uncovers bias in a flip of a coin". Stanford Report. 2004-06-07. Retrieved 2008-03-05.
  • John von Neumann, "Various techniques used in connection with random digits," in A.S. Householder, G.E. Forsythe, and H.H. Germond, eds., Monte Carlo Method, National Bureau of Standards Applied Mathematics Series, 12 (Washington, D.C.: U.S. Government Printing Office, 1951): 36-38.

fair, coin, probability, theory, statistics, sequence, independent, bernoulli, trials, with, probability, success, each, trial, metaphorically, called, fair, coin, which, probability, called, biased, unfair, coin, theoretical, studies, assumption, that, coin, . In probability theory and statistics a sequence of independent Bernoulli trials with probability 1 2 of success on each trial is metaphorically called a fair coin One for which the probability is not 1 2 is called a biased or unfair coin In theoretical studies the assumption that a coin is fair is often made by referring to an ideal coin A fair coin when tossed should have an equal chance of landing either side up John Edmund Kerrich performed experiments in coin flipping and found that a coin made from a wooden disk about the size of a crown and coated on one side with lead landed heads wooden side up 679 times out of 1000 1 In this experiment the coin was tossed by balancing it on the forefinger flipping it using the thumb so that it spun through the air for about a foot before landing on a flat cloth spread over a table Edwin Thompson Jaynes claimed that when a coin is caught in the hand instead of being allowed to bounce the physical bias in the coin is insignificant compared to the method of the toss where with sufficient practice a coin can be made to land heads 100 of the time 2 Exploring the problem of checking whether a coin is fair is a well established pedagogical tool in teaching statistics Contents 1 Probability space definition 2 Role in statistical teaching and theory 3 Fair results from a biased coin 4 See also 5 References 6 Further readingProbability space definition editIn probability theory a fair coin is defined as a probability space W F P displaystyle Omega mathcal F P nbsp which is in turn defined by the sample space event space and probability measure Using H displaystyle H nbsp for heads and T displaystyle T nbsp for tails the sample space of a coin is defined as W H T displaystyle Omega H T nbsp The event space for a coin includes all sets of outcomes from the sample space which can be assigned a probability which is the full power set 2 W displaystyle 2 Omega nbsp Thus the event space is defined as F H T H T displaystyle mathcal F H T H T nbsp displaystyle nbsp is the event where neither outcome happens which is impossible and can therefore be assigned 0 probability and H T displaystyle H T nbsp is the event where either outcome happens which is guaranteed and can be assigned 1 probability Because the coin is fair the possibility of any single outcome is 50 50 The probability measure is then defined by the function x displaystyle x nbsp displaystyle nbsp H displaystyle H nbsp T displaystyle T nbsp H T displaystyle H T nbsp P x displaystyle P x nbsp 0 0 5 0 5 1So the full probability space which defines a fair coin is the triplet W F P displaystyle Omega mathcal F P nbsp as defined above Note that this is not a random variable because heads and tails don t have inherent numerical values like you might find on a fair two valued die A random variable adds the additional structure of assigning a numerical value to each outcome Common choices are H T 1 0 displaystyle H T to 1 0 nbsp or H T 1 1 displaystyle H T to 1 1 nbsp Role in statistical teaching and theory editThe probabilistic and statistical properties of coin tossing games are often used as examples in both introductory and advanced text books and these are mainly based in assuming that a coin is fair or ideal For example Feller uses this basis to introduce both the idea of random walks and to develop tests for homogeneity within a sequence of observations by looking at the properties of the runs of identical values within a sequence 3 The latter leads on to a runs test A time series consisting of the result from tossing a fair coin is called a Bernoulli process Fair results from a biased coin editIf a cheat has altered a coin to prefer one side over another a biased coin the coin can still be used for fair results by changing the game slightly John von Neumann gave the following procedure 4 Toss the coin twice If the results match start over forgetting both results If the results differ use the first result forgetting the second The reason this process produces a fair result is that the probability of getting heads and then tails must be the same as the probability of getting tails and then heads as the coin is not changing its bias between flips and the two flips are independent This works only if getting one result on a trial doesn t change the bias on subsequent trials which is the case for most non malleable coins but not for processes such as the Polya urn By excluding the events of two heads and two tails by repeating the procedure the coin flipper is left with the only two remaining outcomes having equivalent probability This procedure only works if the tosses are paired properly if part of a pair is reused in another pair the fairness may be ruined Also the coin must not be so biased that one side has a probability of zero This method may be extended by also considering sequences of four tosses That is if the coin is flipped twice but the results match and the coin is flipped twice again but the results match now for the opposite side then the first result can be used This is because HHTT and TTHH are equally likely This can be extended to any multiple of 2 The expected value of flips at the n game E F n displaystyle E F n nbsp is not hard to calculate first notice that in step 3 whatever the event H T displaystyle HT nbsp or T H displaystyle TH nbsp we have flipped the coin twice so E F n H T T H 2 displaystyle E F n HT TH 2 nbsp but in step 2 T T displaystyle TT nbsp or H H displaystyle HH nbsp we also have to redo things so we will have 2 flips plus the expected value of flips of the next game that is E F n T T H H 2 E F n 1 displaystyle E F n TT HH 2 E F n 1 nbsp but as we start over the expected value of the next game is the same as the value of the previous game or any other game so it doesn t really depend on n thus E F E F n E F n 1 displaystyle E F E F n E F n 1 nbsp this can be understood the process being a martingale E F n 1 F n F 1 F n displaystyle E F n 1 F n F 1 F n nbsp where taking the expectation again get us that E E F n 1 F n X 1 E F n displaystyle E E F n 1 F n X 1 E F n nbsp but because of the law of total expectation we get that E F n 1 E E F n 1 F n F 1 E F n displaystyle E F n 1 E E F n 1 F n F 1 E F n nbsp hence we have nbsp Graph of 1 P H 1 P H displaystyle frac 1 P H 1 P H nbsp the further away P H displaystyle P H nbsp is from 0 5 displaystyle 0 5 nbsp the further expected number of flips before a successful result E F E F n E F n T T H H P T T H H E F n H T T H P H T T H 2 E F n 1 P T T H H 2 P H T T H 2 E F P T T H H 2 P H T T H 2 E F P T T P H H 2 P H T P T H 2 E F P T 2 P H 2 4 P H P T 2 E F 1 2 P H P T 4 P H P T 2 E F 2 P H P T E F displaystyle begin aligned E F amp E F n amp E F n TT HH P TT HH E F n HT TH P HT TH amp 2 E F n 1 P TT HH 2P HT TH amp 2 E F P TT HH 2P HT TH amp 2 E F P TT P HH 2 P HT P TH amp 2 E F P T 2 P H 2 4P H P T amp 2 E F 1 2P H P T 4P H P T amp 2 E F 2P H P T E F end aligned nbsp E F 2 E F 2 P H P T E F E F 1 P H P T 1 P H 1 P H displaystyle therefore E F 2 E F 2P H P T E F Rightarrow E F frac 1 P H P T frac 1 P H 1 P H nbsp The more biased our coin is the more likely it is that we will have to perform a greater number of trials before a fair result See also editChecking whether a coin is fair Coin flipping Feller s coin tossing constantsReferences edit Kerrich John Edmund 1946 An experimental introduction to the theory of probability E Munksgaard Jaynes E T 2003 Probability Theory The Logic of Science Cambridge UK Cambridge University Press p 318 ISBN 9780521592710 Archived from the original on 2002 02 05 anyone familiar with the law of conservation of angular momentum can after some practice cheat at the usual coin toss game and call his shots with 100 per cent accuracy You can obtain any frequency of heads you want and the bias of the coin has no influence at all on the results a href Template Cite book html title Template Cite book cite book a CS1 maint bot original URL status unknown link Feller W 1968 An Introduction to Probability Theory and Its Applications Wiley ISBN 978 0 471 25708 0 von Neumann John 1951 Various techniques used in connection with random digits National Bureau of Standards Applied Math Series 12 36 Further reading editGelman Andrew Deborah Nolan 2002 Teacher s Corner You Can Load a Die But You Can t Bias a Coin American Statistician 56 4 308 311 doi 10 1198 000313002605 Available from Andrew Gelman s website Lifelong debunker takes on arbiter of neutral choices Magician turned mathematician uncovers bias in a flip of a coin Stanford Report 2004 06 07 Retrieved 2008 03 05 John von Neumann Various techniques used in connection with random digits in A S Householder G E Forsythe and H H Germond eds Monte Carlo Method National Bureau of Standards Applied Mathematics Series 12 Washington D C U S Government Printing Office 1951 36 38 Retrieved from https en wikipedia org w index php title Fair coin amp oldid 1183089332, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.