Posts by Mysterion • 49 points
1 post
-
4
votes2
answers872
viewsA: Program to simulate the anniversary paradox
This link can help you: Wikipedia: Birthday paradox Basically the probability code is: def birthday(x): p = (1.0/365)**x for i in range((366-x),366): p *= i return 1-p…