The question was to find the probabilities that:
- At least two people have the same birthday
- Only two people have the same birthday
- Nobody has same birthdays
in a room of n people.
I did find the probabilities to be, respectively:
$$P(A)=1- \binom{365}{n}\left(\frac{n!}{365^{n}}\right)$$ $$P(B)=\binom{365}{n}\left(\frac{n!}{365^n}\right)\left(\frac{\binom{n}{2}}{366-n}\right)= \binom{n}{2} \left( \frac{365!}{(366-n)!}\right)$$ $$P(C)= \binom{365}{n}\left(\frac{n!}{365^{n}}\right)$$
Now when I decided to plot the graphs(because I felt like it) on Desmos, this is what I get:

It seems fine when I put n(days of the year for my birthday case) equal to 365.
My questions are:
1. Since there is a $\binom{n}{x}$, I would expect the graph to start getting "messed up" when $x>n$. However, there seems to be no problem here, where I have set $n=100$ but the graph seems to be fine for $x=100$ and considerably to its right.
2. The graph does start to mess up at lower values of n, but I don't understand how that's working. Why is this happening from around $x=95$ when I'm setting $n=22$, when I expect the graph to be messed up at $x>22$(due to reasons stated in the above question)?


First, this is definitely caused by the way that Demos generalizes the binomial coefficient over the reals, but there are many ways to do this. I think that Desmos generalizes the binomial coefficient over the reals with the formula: $$_n C_r = \frac{\Gamma(n + 1)}{\Gamma(r+1)\Gamma(n-r+1)}$$ Where $\Gamma$ is the Gamma function, a generalization of the factorial over real numbers ( $\Gamma(x+1) = x!$ by definition). This is why your function is able to be continuous despite the fact that the binomial coefficient, and this problem, only make sense when confined to integer values. To answer your questions:
$$\frac{\Gamma(x+1)}{n^x}\cdot \frac{\Gamma(n + 1)}{\Gamma(x + 1)\Gamma(n-x+1)} = \frac{n!}{n^x \Gamma(n - x + 1)}$$ And the freakout is just because of the gamma function at very negative values becomes weird. I'm pretty confident in this, since if I graph this with mathematica (which is not great for graphing) I obtain:
Which is not perfect because of the way mathematica plots it, but has the freakout at the intended spot. But to conclude, $n \choose x$ when $x > n$ is not a problem, but generalizing the binomial coefficient for a real number much larger than $n$ is a problem when you also have $x!$ as a term in the function. Hope this helps.
Edit: On desmos if you graph both of them you obtain the following graph:
Which furthers my idea that they are the same.