Re: probability puzzle



On Sep 19, 1:40 pm, Bill <b92...@xxxxxxxxx> wrote:
On Sep 15, 3:10 pm, br...@xxxxxxx (Brian Tung) wrote:

This came out of a side discussion on cryptography.

A machine starts flipping a fair coin. It halts after 2n flips if and
only if the last n flips were all heads. Otherwise, it continues
flipping. For example, each of these would be complete flipping
sequences:

HH
TH
HTHH
HTTHHH
TTHTHHTHHHHHHH

What is the probability that the machine eventually halts?

P(H) approaches 1 as a limit but never actually reaches the limit.

Let P(n) is probability of halting in 2n flips/if not halted in
2(n-1) flips.

Easily P(n) = 1/(2^n). Sum{P(n); n = 1,2,3, ... < 1

Bill J

Whoops|
The probability for each term is;
PP(n) = P(n)*(the probability that the sequence is not already
terminated}; ie,
PP(1) = P(1)*(1 - P(0)) = .5
PP(2) = P(2)*(1 - P(1)) = .25 * (1 - .5) = .125
PP(3) = P(3)*(1 - .625) I think?

Bill J

--


Brian Tung <br...@xxxxxxx>
The Astronomy Corner athttp://astro.isi.edu/
Unofficial C5+ Home Page athttp://astro.isi.edu/c5plus/
The PleiadAtlas Home Page athttp://astro.isi.edu/pleiadatlas/
My Own Personal FAQ (SAA) athttp://astro.isi.edu/reference/faq.html


.



Relevant Pages

  • Re: probability puzzle
    ... A machine starts flipping a fair coin. ... only if the last n flips were all heads. ... What is the probability that the machine eventually halts? ... The PleiadAtlas Home Page athttp://astro.isi.edu/pleiadatlas/ ...
    (rec.puzzles)
  • probability puzzle
    ... A machine starts flipping a fair coin. ... only if the last n flips were all heads. ... What is the probability that the machine eventually halts? ... The PleiadAtlas Home Page at http://astro.isi.edu/pleiadatlas/ ...
    (rec.puzzles)
  • Re: probability puzzle
    ... only if the last n flips were all heads. ... each of these would be complete flipping ... Doesn't the terminating flip have to be "H"? ...
    (rec.puzzles)
  • Re: Flipping Data
    ... Is there any way of flipping data vertically. ... This flips the single row of selected cells in situ. ... Selection = yyy ...
    (microsoft.public.excel.programming)
  • Re: How many flips of DIAG are on the infintie list of infinite con flippers ?
    ... >> They are also flips. ... >> letter strings, binary digit sequences, ... It doesn't crop up in Cantor's first proof, ...
    (comp.theory)