Problem 1267. Calculate the probability that at least two people in a group share the same birthday.

Calculate the probability that at least two people in a group share the same birthday. Given an integer input n, return to 0.015 (1.5%) precision the probability of this being the case. Assume that every day is equally probable as a birthday and ignore the leap year.

Example:

Input: 1
Output: 0.00
Input: 366
Output: 1.00

Solution Stats

45.77% Correct | 54.23% Incorrect
Last Solution submitted on Jun 07, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers93

Suggested Problems

More from this Author7

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!