the birthday paradox

版本 1.0.0.0 (1.5 KB) 作者: Bud Kelly
Plots probability of any two people in a group of n having the same birthday
471.0 次下载
更新时间 2018/4/1

查看许可证

This is a modification of Joseph Delgadillo's excellent tutorial (Matlab from Beginner to Advanced on YouTube and also at teachable.) that computes and plots the probability of two or more people in a random group of n people will have the same birthday. Surprisingly, the probability is 0.5 at around 23 people, and approaches certainty after around 50 people. Cool problem, and thanks to Joseph Delgadillo for the very best Matlab tutorial on the Web. Great course.

引用格式

Bud Kelly (2024). the birthday paradox (https://www.mathworks.com/matlabcentral/fileexchange/66707-the-birthday-paradox), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Birthdays 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0