Penney's game
   HOME

TheInfoList



OR:

Penney's game, named after its inventor Walter Penney, is a
binary Binary may refer to: Science and technology Mathematics * Binary number, a representation of numbers using only two digits (0 and 1) * Binary function, a function that takes two arguments * Binary operation, a mathematical operation that ta ...
(head/tail)
sequence In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is calle ...
generating game between two players. Player A selects a sequence of heads and tails (of length 3 or larger), and shows this sequence to player B. Player B then selects another sequence of heads and tails of the same length. Subsequently, a fair
coin A coin is a small, flat (usually depending on the country or value), round piece of metal or plastic used primarily as a medium of exchange or legal tender. They are standardized in weight, and produced in large quantities at a mint in order t ...
is tossed until either player A's or player B's sequence appears as a consecutive subsequence of the coin toss outcomes. The player whose sequence appears first wins. Provided sequences of at least length three are used, the second player (B) has an edge over the starting player (A). This is because the game is nontransitive such that for any given sequence of length three or longer one can find another sequence that has higher
probability Probability is the branch of mathematics concerning numerical descriptions of how likely an event is to occur, or how likely it is that a proposition is true. The probability of an event is a number between 0 and 1, where, roughly speakin ...
of occurring first.


Analysis of the three-bit game

For the three-
bit The bit is the most basic unit of information in computing and digital communications. The name is a portmanteau of binary digit. The bit represents a logical state with one of two possible values. These values are most commonly represente ...
sequence game, the second player can optimize their
odds Odds provide a measure of the likelihood of a particular outcome. They are calculated as the ratio of the number of events that produce that outcome to the number that do not. Odds are commonly used in gambling and statistics. Odds also have ...
by choosing sequences according to: An easy way to remember the sequence is for the second player to start with the opposite of the middle choice of the first player, then follow it with the first player's first two choices. :So for the first player's choice of 1-2-3 :the second player must choose (not-2)-1-2 where (not-2) is the opposite of the second choice of the first player. An intuitive explanation for this result is that in any case that the sequence is not immediately the first player's choice, the chances for the first player getting their sequence-beginning, the opening two choices, are usually the chance that the second player will be getting their full sequence. So the second player will most likely "finish before" the first player.


Strategy for more than three bits

The optimal strategy for the first player (for any length of the sequence no less than 4) was found by J.A. Csirik (See References). It is to choose HTTTT.....TTTHH (k-3 T's) in which case the second player's maximal odds of winning is (2^+1):(2^+1) .


Variation with playing cards

One suggested variation on Penney's Game uses a pack of ordinary playing cards. The Humble-Nishiyama Randomness Game follows the same format using Red and Black cards, instead of Heads and Tails. The game is played as follows. At the start of a game each player decides on their three colour sequence for the whole game. The cards are then turned over one at a time and placed in a line, until one of the chosen triples appears. The winning player takes the upturned cards, having won that "trick". The game continues with the rest of the unused cards, with players collecting tricks as their triples come up, until all the cards in the pack have been used. The winner of the game is the player that has won the most tricks. An average game will consist of around 7 "tricks". As this card-based version is quite similar to multiple repetitions of the original coin game, the second player's advantage is greatly amplified. The probabilities are slightly different because the odds for each flip of a coin are
independent Independent or Independents may refer to: Arts, entertainment, and media Artist groups * Independents (artist group), a group of modernist painters based in the New Hope, Pennsylvania, area of the United States during the early 1930s * Independ ...
while the odds of drawing a red or black card each time is dependent on previous draws. Note that HHT is a 2:1 favorite over HTH and HTT but the odds are different for BBR over BRB and BRR. Below are approximate probabilities of the outcomes for each strategy based on computer simulations: If the game is ended after the first trick, there is a negligible chance of a draw. The odds of the second player winning in such a game appear in the table below.


Variation with a Roulette wheel

Recently Robert W. Vallin, and later Vallin and Aaron M. Montgomery, presented results with Penney's Game as it applies to (American) roulette with Players choosing Red/Black rather than Heads/Tails. In this situation the probability of the ball landing on red or black is 9/19 and the remaining 1/19 is the chance the ball lands on green for the numbers 0 and 00. There are various ways to interpret green: (1) as a "wild card" so that BGR can be read at Black, Black, Red and Black, Red, Red, (2) as a do-over, the game stops when green appears and restarts with the next spin, (3) as just itself with not extra interpretation. Results have been worked out for odds and wait times.


See also

*
Nontransitive game In game theory, an intransitive or non-transitive game is the one in which the various strategies produce one or more "loops" of preferences. In a non- transitive game in which strategy A is preferred over strategy B, and strategy B is preferred o ...


References

* Walter Penney, Journal of Recreational Mathematics, October 1969, p. 241. *
Martin Gardner Martin Gardner (October 21, 1914May 22, 2010) was an American popular mathematics and popular science writer with interests also encompassing scientific skepticism, micromagic, philosophy, religion, and literatureespecially the writings of Lew ...
, "Time Travel and Other Mathematical Bewilderments", W. H. Freeman, 1988. * L.J. Guibas and A.M. Odlyzko, "String Overlaps, Pattern Matching, and Nontransitive Games", Journal of Combinatorial Theory, Series A. Volume 30, Issue 2, (1981), pp 183–208. *
Elwyn R. Berlekamp Elwyn Ralph Berlekamp (September 6, 1940 – April 9, 2019) was a professor of mathematics and computer science at the University of California, Berkeley.Contributors, ''IEEE Transactions on Information Theory'' 42, #3 (May 1996), p. 1048. DO10.1 ...
, John H. Conway and Richard K. Guy, "Winning Ways for your Mathematical Plays", 2nd Edition, Volume 4, AK Peters (2004), p. 885. * S. Humble & Y. Nishiyama, "Humble-Nishiyama Randomness Game - A New Variation on Penney's Coin Game", IMA Mathematics Today. Vol 46, No. 4, August 2010, pp 194–195. * Steve Humble &
Yutaka Nishiyama is a Japanese mathematician and professor at the Osaka University of Economics, where he teaches mathematics and information. He is known as the "boomerang professor". He has written nine books about the mathematics in daily life. The most recen ...

"Winning Odds"
Plus Magazine, Issue 55, June 2010. *
Yutaka Nishiyama is a Japanese mathematician and professor at the Osaka University of Economics, where he teaches mathematics and information. He is known as the "boomerang professor". He has written nine books about the mathematics in daily life. The most recen ...

Pattern Matching Probabilities and Paradoxes as a New Variation on Penney’s Coin Game
International Journal of Pure and Applied Mathematics, Vol.59, No.3, 2010, 357-366. * Ed Pegg, Jr.
"How to Win at Coin Flipping"Wolfram Blog
30 November 2010. * J.A. Csirik, "Optimal strategy for the first player in the Penney ante game",
Combinatorics, Probability and Computing ''Combinatorics, Probability and Computing'' is a peer-reviewed scientific journal in mathematics published by Cambridge University Press. Its editor-in-chief is Béla Bollobás ( DPMMS and University of Memphis). History The journal was estab ...
, Volume 1, Issue 4 (1992), pp 311–321. * Robert W. Vallin "A sequence game on a roulette wheel", The Mathematics of Very Entertaining Subjects: Research in Recreational Math, Volume II, Princeton University Press, (to be published in 2017) * James Brofos, "A Markov Chain Analysis of a Pattern Matching Coin Game.
arXiv:1406.2212
(2014).


External links


An online simulation of Penney's game
* Some variants of Penney's game {{DEFAULTSORT:Penney's Game Mathematical games