Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2016-01-16 07:57:34

Jim37
Guest

Birthday Problem extension

Hi all. The birthday problem at https://www.mathsisfun.com/data/probability-shared-birthday.html is very interesting.
I actually have a group of 23 people and we have 2 pairs of matching birth dates. If the probability is 50% for 1 matching pair, what are the chances of 2? I did statistics a looong time ago but have forgotten most of it so I`d appreciate your help.
Thanks
Jim

#2 2016-01-16 20:56:15

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

Hi;

2 or more or exactly 2?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#3 2016-01-17 13:11:09

samak
Member
Registered: 2016-01-17
Posts: 3

Re: Birthday Problem extension

Hi. Thanks, I should have made that clear. Both, if it's not too difficult please. Otherwise just 2 or more. Thanks.

Offline

#4 2016-01-22 20:22:07

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

Hi;

So far I tentatively have a probability of 11% for exactly 2 pairs.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#5 2016-01-25 16:47:20

samak
Member
Registered: 2016-01-17
Posts: 3

Re: Birthday Problem extension

Thanks. I'm intrigued by the word "tentatively". Is this as complex as it seems?

Offline

#6 2016-01-25 17:20:15

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

Yes, there is no literature on it that I can discover.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#7 2016-01-26 01:16:05

Fruityloop
Member
Registered: 2009-05-18
Posts: 143

Re: Birthday Problem extension


I'm not absolutely sure if this is correct, but I think this is right.

Offline

#8 2016-01-26 05:57:23

Relentless
Member
Registered: 2015-12-15
Posts: 631

Re: Birthday Problem extension

Hi Fruityloop,

What does that make the general formula, for n people and exactly x coincidences? Is it this:

Also, can anyone suggest how this might be adjusted to include leap days?

Edit: The formula above does not work at all. What is the generalised version?

Last edited by Relentless (2016-01-26 06:07:27)

Offline

#9 2016-01-26 07:19:38

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

Hi Fruityloop;

That is correct! Thanks. I kept missing the 4.

Hi Relentless;


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#10 2016-01-26 07:29:06

Relentless
Member
Registered: 2015-12-15
Posts: 631

Re: Birthday Problem extension

Hi bobbym,

I am trying to replace two with one to confirm the results given in the shared birthday link, so that we may now have a way to find the probability of 3 or 4 or 20 matches for more people, but am not getting any correspondence at all. It should be a very simple adjustment, but it is proving quite annoying lol

Last edited by Relentless (2016-01-26 07:31:12)

Offline

#11 2016-01-26 07:32:59

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

What type of matches? Pairs?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#12 2016-01-26 07:39:31

Relentless
Member
Registered: 2015-12-15
Posts: 631

Re: Birthday Problem extension

Yes, pairs. If I assume the four came from two squared, and I replace all instances of 2 with one, I get a silly probability of 72.7% for exactly one pair (silly because it is meant to be 50% for at least one).

But hold on... if I assume the 4 came from 2 times the number of matches, I get 36.3%. Which seems just right considering the chance of 1 or 2 is 47%

Last edited by Relentless (2016-01-26 07:41:39)

Offline

#13 2016-01-26 07:45:36

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

Better run some simulations to backup those ansatz.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#14 2016-01-26 08:19:47

Relentless
Member
Registered: 2015-12-15
Posts: 631

Re: Birthday Problem extension

Hi,

This last interpretation is not quite correct either. Although it gets very close to the right answer for 23 people, if I extend to 57 people I get probabilities that add up to over 200%.

It is very easy to do simulations of this kind in Excel. I write 1 in cell A1 and =(FACT(23)*COMBIN(365,23-A1)*COMBIN(23-A1,A1))/(365^23*2*A1) in cell B1. Replace 23 with any number of people desired. But this last expression must be corrected

Last edited by Relentless (2016-01-26 08:26:00)

Offline

#15 2016-01-26 08:53:50

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

Which interpretation?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#16 2016-01-26 09:08:14

Relentless
Member
Registered: 2015-12-15
Posts: 631

Re: Birthday Problem extension

I am sorry if I am being vague. The interpretation that both of these statements are correct: the 4 in your equation can be replaced by 2 times the number of matching pairs, and each 2 in your equation represents the number of matching pairs.

I have also ruled out the 4 being replaced by 2 plus the number of matching pairs, or the number of matching pairs squared, while holding the other assumption. Perhaps the 2s are the culprit. I think I need to know more about how the formula was created before I proceed.

Last edited by Relentless (2016-01-26 09:10:57)

Offline

#17 2016-01-26 12:22:56

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

There may not be a simple extension on the 2 pair formula.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#18 2016-01-26 16:09:54

Fruityloop
Member
Registered: 2009-05-18
Posts: 143

Re: Birthday Problem extension

I think the general formula, for n people and exactly x pairs is...

So for exactly 3 pairs of people out of 23 having the same birthday the probability is 0.01832728.

Last edited by Fruityloop (2016-01-26 16:19:05)

Offline

#19 2016-01-26 16:58:26

Relentless
Member
Registered: 2015-12-15
Posts: 631

Re: Birthday Problem extension

Hi Fruityloop,

If you believe in this formula (which is definitely the best we have), you will have to explain some discrepancies between its results and those mentioned at the shared birthdays page.

If I sum all of the probabilities from 1 to 11 (for the chance of at least one match), I get 49.4592%, which is close enough to the expected 50%.
If I sum all of the probabilities from 1 to 28 for 57 people, I get 80.9279%, which is not even close to the expected 99%.
If I sum all of the probabilities from 1 to 15 for 30 people, I get 67.7786%, which differs somewhat from the expected 70.6%.

Also, If I extend to include 0 pairs, I get the answers I would expect to from that page.
I think the formula is correct, I am just leaving something out in the sums

Offline

#20 2016-01-26 17:47:22

Fruityloop
Member
Registered: 2009-05-18
Posts: 143

Re: Birthday Problem extension

Hi Relentless,
  The chances of at least one match contain other situations where there are more than just pairs of people matching birthdays.  Three people sharing the same birthday for example.  Maybe that accounts for the discrepancy?

Offline

#21 2016-01-26 17:58:28

Relentless
Member
Registered: 2015-12-15
Posts: 631

Re: Birthday Problem extension

Hi,
Thanks for your help. That must be it. But then there are extra layers to the problem.
We are kind of tumbling down the rabbit hole here xD

Offline

#22 2016-01-28 14:39:45

samak
Member
Registered: 2016-01-17
Posts: 3

Re: Birthday Problem extension

Well, that seems to have put the cat among the pigeons. Now I don't feel so bad that I had no idea how to do it!

Offline

#23 2016-01-28 15:09:33

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Birthday Problem extension

What is the new question?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#24 2016-01-28 20:27:59

Relentless
Member
Registered: 2015-12-15
Posts: 631

Re: Birthday Problem extension

Hi bobbym,

We have a formula for the probability of x matching pairs among n people: it is the one Fruityloop provided. The new question, if anyone dares to pursue it, is what is the formula for x triples (three way shares) among n people? How about quadruples? Quintuples? And in general, can all possibilities (adding up to 1) be identified with a relevant formula?

Offline

Board footer

Powered by FluxBB