- #1
Bassalisk
- 947
- 2
So I am trying to plot the birthday problem.
Number of people vs chance not to have the same birthday.
I know the analytical form
[itex] P(n)={\Large\frac{365\cdot 364\cdot 363...(365-n+1)}{365^{n}}}[/itex]
problem is, MATLAB is giving me this, when I try to put that into code.
[PLAIN]http://pokit.org/get/e8cbb0974a4b30d349d554c27ab0f537.jpg
And that's only trying to realize the top part of the fraction.
I am trying to get this result.
[URL]http://upload.wikimedia.org/wikipedia/commons/f/ff/Birthdaymatch.png[/URL]
Source wikipedia.Thank you.
Number of people vs chance not to have the same birthday.
I know the analytical form
[itex] P(n)={\Large\frac{365\cdot 364\cdot 363...(365-n+1)}{365^{n}}}[/itex]
problem is, MATLAB is giving me this, when I try to put that into code.
[PLAIN]http://pokit.org/get/e8cbb0974a4b30d349d554c27ab0f537.jpg
And that's only trying to realize the top part of the fraction.
I am trying to get this result.
[URL]http://upload.wikimedia.org/wikipedia/commons/f/ff/Birthdaymatch.png[/URL]
Source wikipedia.Thank you.
Last edited by a moderator: