Problem 1272. The almost-birthday problem.
This is a harder version of the birthday problem. Now, you will have to determine the probability that two or more people in a randomly assembled group of n people are having their birthdays within d days of each other. As usual, ignore the leap year and assume that every day is equally probable.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers26
Suggested Problems
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
578 Solvers
-
688 Solvers
-
Reverse the elements of an array
1107 Solvers
-
746 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
707 Solvers
More from this Author13
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!