How Many Distinct Birthdays in a Room of k People?

  • Context: Undergrad 
  • Thread starter Thread starter mXSCNT
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the problem of determining the expected number of distinct birthdays in a room of k people on a planet with n days in a year. Participants explore various mathematical approaches and interpretations of the problem, including uniform distribution of birthdays and the implications of distinct versus coinciding birthdays.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant restates the problem and introduces the concept of distinct birthdays, seeking clarity on the terms used.
  • Another participant proposes a formula for the expected number of distinct birthdays, j = n - n * (1-1/n)^k, based on the probability that a given day is not a birthday.
  • A different viewpoint suggests using combinations, stating that the expected number of distinct birthdays would be (nCk)/n, with a corresponding expression for the expected number of non-represented birthdays.
  • Another participant defines a random variable X for the number of distinct birthdays and derives an expression for its expected value, E(X), based on the probability of at least one birthday occurring on each day.
  • A later reply questions the interpretation of distinct birthdays, suggesting that distinct should mean only one birthday per day, which introduces a potential misunderstanding of the original question.

Areas of Agreement / Disagreement

Participants express differing interpretations of what constitutes distinct birthdays, leading to multiple competing views on how to approach the problem mathematically. No consensus is reached regarding the correct interpretation or the final answer.

Contextual Notes

Some assumptions about the uniform distribution of birthdays and the definitions of distinct versus coinciding birthdays remain unresolved, which may affect the interpretations and calculations presented.

mXSCNT
Messages
310
Reaction score
1
This is a restatement of the vocabulary problem which I introduced in https://www.physicsforums.com/showthread.php?t=293553. Perhaps these terms will be more familiar/less ambiguous.

Suppose we are on a planet where each year has n days, and in a room with k people. If birthdays are uniformly distributed throughout the year, how many distinct birthdays, j, do we expect to find in the room? (Alternatively, how many birthdays n-j are NOT represented in the room, on average?)
 
Physics news on Phys.org
Here's the answer (someone else's idea): j = n - n * (1-1/n)^k. The probability that a given day is nobody's birthday is (1-1/n)^k, so the expected number of days that are nobody's birthday is n * (1-1/n)^k.
 
I think that, since its distinct birthdays (from what I understand, distinct bdays are only the ones that don't coincide on the same day), you will have nCk bdays total, thus the expected number on any given day would be (nCk)/n since they're uniformly distributed.

There will also be nC(n-k) bdays that don't happen, once again the expected number would be nC(n-k)/n since they're uniform. I'm not sure about this, but I think its intuitive.
 
Let X be the number of distinct birthdays, and for [itex]1 \leq i \leq n[/itex] define Xi to be 1 if there's at least one person whose birthday is on the ith day, and 0 otherwise. Then X = X1 + X2 + ... + Xn, so:

[tex]E(X) = \sum _{i=1} ^n E(X_i) = nE(X_1)[/tex]

E(X1)
= Prob(at least one person has their birthday on day 1)
= 1 - Prob(no one has their birthday on day 1)
= 1 - (# of ways to arrange k birthdays amongst n-1 days, allowing repetition)/(# of ways to arrange k birthdays amongst n days, allowing repetition)
= [itex]1 - \binom{n+k-2}{k} / \binom{n+k-1}{k}[/itex]

So the final answer is:

[tex]\frac{nk}{n+k-1}[/tex]
 
AKG said:
define Xi to be 1 if there's at least one person whose birthday is on the ith day, and 0 otherwise.
But doesn't the question as for distinct birthdays, ie Xi would be 1 if there is only one birthday on day i and 0 if there is not only one birthday on day i?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
2
Views
9K