All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Many heads (Posted on 2004-12-13) Difficulty: 3 of 5
What is the expected number of times you must toss a (fair) coin until you get n consecutive heads?

See The Solution Submitted by e.g.    
Rating: 4.3333 (3 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Nice One, Charlie | Comment 2 of 6 |
(In reply to solution by Charlie)

Really nice analysis and writeup.  Interesting that it is essentially 2^(n+1) tries on average to get n+1 heads in a row -- the same as the number of strings of n+1 heads or tails.  I conjecture that the problem can also be solved in closed form when the probability of a head is p. In fact,  the expected value should be 1/p + 1/p^2 + ... + 1/p^n and with r=1/p, this sums to

r(r^n - 1)/(r - 1).

Edited on December 13, 2004, 11:00 pm
  Posted by Richard on 2004-12-13 22:10:02

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information