IDEAS home Printed from https://ideas.repec.org/a/spr/jotpro/v38y2025i4d10.1007_s10959-025-01452-7.html
   My bibliography  Save this article

The Generalized Alice HH Vs Bob HT Problem

Author

Listed:
  • Svante Janson

    (Uppsala University)

  • Mihai Nica

    (University of Guelph)

  • Simon Segert

    (Independent Researcher)

Abstract

In 2024, Daniel Litt posed a simple coinflip game pitting Alice’s “Heads–Heads” versus Bob’s “Heads–Tails”: Who is more likely to win if they score 1 point per occurrence of their substring in a sequence of n fair coinflips? This attracted over 1 million views on X and quickly spawned several articles explaining the counterintuitive solution. We study the generalized game, where the set of coin outcomes, $$\{ \text {Heads}, \text {Tails} \}$$ { Heads , Tails } , is generalized to an arbitrary finite alphabet $${\mathcal {A}}$$ A , and where Alice’s and Bob’s substrings are any finite $${\mathcal {A}}$$ A -strings of the same length. We find that the winner of Litt’s game can be determined by a single quantity which measures the amount of prefix/suffix self-overlaps in each string; whoever’s string has more overlaps loses. For example, “Heads–Tails” beats “Heads–Heads” in the original problem because “Heads–Heads” has a prefix/suffix overlap of length 1 while “Heads–Tails” has none. The method of proof is to develop a precise Edgeworth expansion for discrete Markov chains and apply this to calculate Alice’s and Bob’s probability to win the game correct to order O(1/n).

Suggested Citation

  • Svante Janson & Mihai Nica & Simon Segert, 2025. "The Generalized Alice HH Vs Bob HT Problem," Journal of Theoretical Probability, Springer, vol. 38(4), pages 1-52, December.
  • Handle: RePEc:spr:jotpro:v:38:y:2025:i:4:d:10.1007_s10959-025-01452-7
    DOI: 10.1007/s10959-025-01452-7
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10959-025-01452-7
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10959-025-01452-7?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    More about this item

    Keywords

    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:jotpro:v:38:y:2025:i:4:d:10.1007_s10959-025-01452-7. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.