Posts: 52782
Threads: 567
Joined: July 24, 2013
Reputation:
109
RE: What's the probability that 3 out of 23 people will share the same birthday?
January 24, 2022 at 10:59 am
(January 24, 2022 at 2:06 am)FlatAssembler Wrote: (January 22, 2022 at 7:02 am)BrianSoddingBoru4 Wrote: Your programme is flawed. If I enter '100' in the collisions field, the probability computes at 0%. This means that in a group of 23 people, there is no chance that they all share the same birthday. While such a coincidence is statistically unlikely, the probability is non-zero.
Boru
So, where do you think the error lies? https://flatassembler.github.io/birthday_paradox.aec
Fairly sure it’s a programmer error.
Boru
‘I can’t be having with this.’ - Esmeralda Weatherwax
Posts: 6681
Threads: 82
Joined: May 31, 2014
Reputation:
56
RE: What's the probability that 3 out of 23 people will share the same birthday?
January 24, 2022 at 11:01 am
(This post was last modified: January 24, 2022 at 11:05 am by GrandizerII.)
Wild guess. Probably to do with some limitation related to number of decimal places?
If the answer just keeps approaching 0 as you increase the input number, then inevitably you're going to get 0 as the answer with a very large input number like 100 because it can't handle too many decimal places.
Posts: 28870
Threads: 528
Joined: June 16, 2015
Reputation:
89
RE: What's the probability that 3 out of 23 people will share the same birthday?
January 24, 2022 at 9:18 pm
(This post was last modified: January 24, 2022 at 9:18 pm by brewer.)
(January 24, 2022 at 11:01 am)GrandizerII Wrote: Wild guess. Probably to do with some limitation related to number of decimal places?
If the answer just keeps approaching 0 as you increase the input number, then inevitably you're going to get 0 as the answer with a very large input number like 100 because it can't handle too many decimal places.
Please tell me that handling too many decimals is a euphemism.
Being told you're delusional does not necessarily mean you're mental.
Posts: 36112
Threads: 212
Joined: August 13, 2012
Reputation:
146
RE: What's the probability that 3 out of 23 people will share the same birthday?
February 14, 2022 at 4:55 am
Personally, I blame hippies.
Playing Cluedo with my mum while I was at Uni:
"You did WHAT? With WHO? WHERE???"