This probably belongs in the VB/VBA section but since I’m using Excel I’m sure I won’t be too severely admonished.
I have tried, unsuccessfully, to write code which solves the famous birthday paradox. The general solution is given below. I would like to give a worksheet cell the value of the probability from this solution.
In general, the probability that at least 2 out of n people in a given population have the same birthday is: 1 – (364/365 X 363/365 X . . . (365 – n + 1)/ 365).
I’m sure it is fairly easy to do but my attempts have failed to date.
Can anybody help?
Regards
Rob