http://i.stack.imgur.com/EyqSv.png
So, I'm trying to make a python code that justify this formula above for chance that two people do not have the same birthday
My attempt:
for birthday in range(365, 0, -1):
print(birthday)
This is all I got. So above formula put prints 365 to 1, I'm wondering how can I make it so it will keep iterating -> 365*364*363*362.... so on. Any help appreciated.
1.0 - np.exp(-n * (n - 1) / 730.0)
– gobrewers14 Oct 20 '15 at 5:43