Probability of Two Students with Same Birth Date in a Group of 15

  • Thread starter Thread starter Bassalisk
  • Start date Start date
  • Tags Tags
    Matlab Probability
Click For Summary
SUMMARY

The discussion focuses on calculating the probability of two students sharing the same birthday in a group of 15, assuming a uniform distribution across 365 days. The participant expresses confusion regarding the application of combinatorial principles and the specific formula needed for this probability problem. They aim to implement the solution in MATLAB, seeking guidance on translating theoretical probability into practical coding. The conversation highlights the importance of understanding the underlying concepts before coding in MATLAB.

PREREQUISITES
  • Understanding of basic probability concepts, specifically the birthday problem.
  • Familiarity with combinatorial mathematics and binomial coefficients.
  • Basic knowledge of MATLAB programming and syntax.
  • Concept of uniform distribution in probability theory.
NEXT STEPS
  • Learn how to implement combinatorial calculations in MATLAB.
  • Research the birthday paradox and its mathematical implications.
  • Explore MATLAB functions for statistical simulations and probability calculations.
  • Study resources on probability theory applied in MATLAB, such as textbooks or online courses.
USEFUL FOR

Students learning probability and statistics, MATLAB programmers looking to apply mathematical concepts in coding, and educators seeking to explain the birthday problem in a practical context.

Bassalisk
Messages
946
Reaction score
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
 
Physics news on Phys.org
Bassalisk said:

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

You say "I even have the solution, but I kinda don't understand it." Well, what is the formula, and what don't you understand about it?

RGV
 
Ray Vickson said:
You say "I even have the solution, but I kinda don't understand it." Well, what is the formula, and what don't you understand about it?

RGV

Since I am really new to this, I googled "probability two same", and stumbled upon birthday problem.

I understood it. It is in place.

How do I translate that into MATLAB? Do I simply put in the formula, and calculate it?

And in general, do you have any links, or recommendations, where statistics and probability is taken into matlab?

I am VERY new to this.I have 4-5 more problems that I have to solve using simulations in matlab(all probability) and it would be inefficient to post each problem.
 

Similar threads

Replies
31
Views
7K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
11
Views
6K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K