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 - The Fusion of Science and Community**

Join Physics Forums Today!

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

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

# MATLAB question-factorial

Loading...

Similar Threads for MATLAB question factorial | Date |
---|---|

MatLab function question | Sep 5, 2015 |

Contour question in matlab | Feb 9, 2015 |

LaTeX Concept and subject of latex and its usage and related questions on latex | Sep 25, 2014 |

MATLAB A question on linear algebra(also Matlab related) | Jun 23, 2014 |

Computing question 1st year Engineering-MATLAB | Apr 22, 2014 |

**Physics Forums - The Fusion of Science and Community**