January 29th, 2007, 10:25 am
QuoteOriginally posted by: amit7ulclose to (Np+1-p)*p^(N-1)This is far from close: This value will actually be less than N for most values of p(You can't get N consecutive heads in less than N tosses )The upper bound (.. a quite liberal one) is: We're looking for THHHHH....H (no. of H = N), (except for the case if we get N heads in first N tosses, when T is not needed).So, if we cut chunks of (N+1) in our sequence of tosses, probability of a chunk having THHH...H is (1-p)*p^N; hence number of chunks needed are 1/[(1-p)p^N] ... so that length of the sequence expected = (N+1)/[(1-p)*p^N] as each chunk is (N+1) long.By same argument N/(p^N) is a tigher upper bound, but the one listed above is, i guess, closer on the path of reaching the actual solution which allows "overlapping" chunks. Edit: I agree with timeds solution below: Sum (1/p^i) .... which is also less than the upper bound of N/(p^N).
Last edited by
bhutes on January 28th, 2007, 11:00 pm, edited 1 time in total.