Say I collect 40 perfectly random integers between 1 and 400. What's the chance that any integer is repeated consecutively six times in such a random draw?
What I'm looking for is the chance of sequences like [372, 193, 42, 42, 42, 42, 42, 42, 274, 42, 7, ...]
, [372, 193, 42, 42, 42, 42, 42, 42, 274, 242, 7, ...]
, or [372, 193, 42, 42, 42, 42, 42, 42, 42, 42, 42, ...]
as they all fulfills what I'm looking for. As a counter example [372, 193, 42, 42, 42, 42, 42, 77, 274, 42, 7, ...]
does not satisfy my conditions because the six 42
's are not consecutively repeated.
The Birthday problem gives that it's an 87% chance that two of the 40 are the same number but I'm failing to go from that to calculating the chance of a certain integer consecutively repeating itself n number of times in the random collection.
the same number repeats itself six times
is bad formulated. You mean that some (any) number appears exactly six times? Regardless of that some other number appears more that six times (or six times)? – leonbloy Jun 29 '11 at 23:16[301, 23, 42, 42, 42, 42, 42, 42, 255, 120, 42, ...]
. This is six times repeated. I will try to clarify this in the question. – Jonas Elfström Jun 29 '11 at 23:20[x, y, n, n, n, n, n, n, z, i]
. Sixn
s in a row and I guess that that could be expressed as five repeats. – Jonas Elfström Jun 29 '11 at 23:45from a pool of 400
- no, not a pool. Is it more clear if I call it a collection of 40 random integers between 1 and 400? – Jonas Elfström Jun 30 '11 at 07:21