Question: Script in Matlab 20) a) Write a script for the birthday problem and run it. Make sure you get the correct probabilities, which you can

 Script in Matlab 20) a) Write a script for the birthdayScript in Matlab

20) a) Write a script for the birthday problem and run it. Make sure you get the correct probabilities, which you can "Google" to find. b) Modify the code so that it finds when there are at least two matches, i.e., either at least three people have the same birthday, or there are at least two distinct matches. c) MoNify the code so that it finds when at least three people have the same birthday. Check this for n- 30, 40, .., 100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!