So I am trying to plot the birthday problem.(adsbygoogle = window.adsbygoogle || []).push({});

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 [Broken]

And thats only trying to realise 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.

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB question-factorial

**Physics Forums | Science Articles, Homework Help, Discussion**