There is a closed form solution to this problem’s expectation for arbitrary n and m, which I’ve linked below:
https://math.stackexchange.com/questions/610250/a-question-o...
https://lh3.googleusercontent.com/proxy/OZtu7ACWp4X283a4e5Pg...
Also conditional probabilities aren't really the right tool when all you want is to set a parameter, but it works I guess.
Are leap-day births unpersons?
But some will do Feb out of consistency of month.
File under "Falsehoods programmers believe about time."
Taking a look at Feb 29th, it has 10467 average yearly births (for years that have a Feb 29th).
So what is the level of rarity that makes a day not worth calculating?
https://github.com/fivethirtyeight/data/blob/master/births/U...
Perhaps maths is not taught or appreciated in CS much now.
Often analytic solutions aren’t required for sufficient insight into most problems, despite their parsimoniousness/prettiness