- #1
Bassalisk
- 947
- 2
Homework Statement
Write a code in MATLAB witch calculates the probability of having 2 students with same birth date, in group of let's say 15. Assumption: year has 365 days, and birth dates are uniformly distributed.
Homework Equations
The Attempt at a Solution
Now, i understand that this is a combination. We have 15 students, and 365 possible birth dates. So that's 36515. Those are all possible outcomes. Now I don't understand, how do you get the probability that 2 people have same birth date.
Please don't shoot at me the formula for binomial coefficients etc. I know there are formulas, I even have the solution, but I kinda don't understand it.
After we determine the analytical form of this problem, then I will try to code it into matlab. Although the main point of this is to get familiar with MATLAB and probability possibilities.
Keep in mind that I just started learning matlab, and this is my first exercise to code some probability into matlab.
Thank you