# Birthday probability solution (Scripts) 1.0

Average Rating
User Rating:
Visitors Rating:
My rating:

• Last update: 5 years ago
• Operating system: Linux, Mac OS X, Win All, BSD, Solaris
• Publisher: samil
See full specifications

## Birthday probability solution (Scripts) Publisher's description

### Solution to birthday probability problem: If there are n people in a classroom, what is the probability that at least two of them have the same birthday?

Solution to birthday probability problem: If there are n people in a classroom, what is the probability that at least two of them have the same birthday?
General solution:
P = 1-365!/(365-n)!/365^n
If you try to solve this with large n (e.g. 30, for which the solution is 29%) with the factorial function like so:
P = 1-factorial(365)/factorial(365-30)/365^30
Matlab will output NaN because Matlab tries to compute very large values here.
The approach in this script is to start from n=1 and at each step use the previous step's result to avoid dealing with large numbers.

#### System Requirements:

No special requirements.
Program Release Status: New Release
Program Install Support: Install and Uninstall

#### Birthday probability solution (Scripts) Tags:

Click on a tag to find related softwares

## Most Popular

ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation