What is the probability that at least one 10 day period contains 6 birthdays if there are 60 birthdays throughout a year? For all possible contiguous 10 day periods within a single calendar year, what is the probability that at least one of the 10 day periods contains six birthdays if there are 60 birthdays randomly distributed within the year?
Trying to solve this quick little problem, think of this in general terms (ie don't take leap years, birth patterns into effect).
Unnecessary details:
I did it via a program I wrote quickly and got a probability of .9446 over 10000 runs. However my boss(guy who gave me the problem) says that he got something around.09446 doing a similar solution a factor of ten off, I was wondering if anybody here could figure out a similar solution. Thanks
 A: To distinguish a factor of $10$ we can make the silly (but not far wrong) assumption that the chance any particular 10 day period has 6 birthdays is independent of any other period.  We assume the birthdays are allowed to repeat dates.  The chance that a particular 10 day period has exactly 6 birthdays is ${60 \choose 6}\left(\frac{10}{365}\right)^{6}\left(\frac{355}{365}\right)^{54}\approx 0.0047$  Adding in the chance of $7,8,9$ gets us to $0.00597$  Even if we only consider the 36 non-overlapping intervals of 10 days, the chance that none of them have at least 6 birthdays is $1-(1-0.00597)^{36} \approx 0.1939$  Of course, there is also the chance that the interval of 10 days that has 6 birthdays is from day 5 through day 14.  I'm with you.
A: def f(n):
    ok = 0
    periods = [set(range(i, i+ 10)) for i in range(1, 356)] //10-day periods
    for _ in range(n):
        birthdays = set(randint(1,365) for i in range(60)) //60 b-days
        for x in periods:
            if len(x & birthdays) >= 6:                    //intersection
              ok += 1
              break
    return ok / n

Call f(10**5) returned $0.1773$. This somehow contradicts the other answer. Is anything wrong with the code?
