View GitHub Profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|""" Compute the probability of M people sharing a birthday out of a group of
|The parameter `exact' determines whether we want to ignore clusterings of
|more than M people with the same birthday (thus the largest group of
|coincident birthdays is exactly M). If it's false, we allow "M or more".
|How it works: we define a recursive counting function