the birthday paradox
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.
Citation pour cette source
Bud Kelly (2024). the birthday paradox (https://www.mathworks.com/matlabcentral/fileexchange/66707-the-birthday-paradox), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |