I was thinking about the birthday problem, in a slight different version. In the birthday problem, no date is chosen in advance. The variant I'm thinking of is then "same birthday as you", as in the wikipedia page
https://en.wikipedia.org/wiki/Birthday_problem#Same_birthday_as_you
I still have to fully understand the general problem, but let's focus on this variant: can you pleas explain my (naive) reasoning is wrong?
This: if I am in a room and another person comes in, then that person will have a probabilty of $1/365$ (assuming non leap year) of being born my same day. If $23$ people come in, then the possibilities will be $23/365$, right?
In the general problem, the person $P$ born in the day $D$ will always have the probabilities I stated above, I mean: the person will always be born in a day which will have $D/365$ possibilities of finding another person with the same date...
Thank you and sorry! I just want to get this.
Yes this is a different problem. Even then, the probability you surmise is only an upper bound and wrong as soon as $D$ is large enough.
If $D$ people arrive, and $D$ is small, the probability of one of them having the same birthday as you is not exactly $D/365$ since their birthdays may collide even though this is relatively unlikely if $D$ is much smaller than $23.$
Recognising this may help you understand the general principle. The idea is that given $D$ people, there are $\binom{D}{2}=D(D-1)/2$ pairs of people thus $D(D-1)/2$ possibilities of a collision while sampling a set of size $365.$ It is the fact that $D(D-1)/2\approx D^2/2$ is roughly the same as $365$ which makes the probability of collision be significant, around $1/2.$