Solving Birthday Problem in R | Simulation | R Studio

preview_player
Показать описание
Using simulations to solve a probability problem and evaluating the solution.

If there are 30 people in a room, there is 70% chance that 2 people in that room share a birthday, weird isn't it ?

__________
Chapters:
0:00 Introduction
0:58 Simulating 10,000 rooms
5:17 Evaluating probabilities
6:10 Inbuilt function pbirthday()
7:35 Plotting probabilities
__________

#birthday #probability #rprogramming #function #functions
Рекомендации по теме
Комментарии
Автор

Really cool. I love R and its packages.

forrestoakley
Автор

P. S. Another interesting "puzzle" is Benford's Law...Naturally R has a package for that too...

haraldurkarlsson
Автор

Nice! I was not aware of the birthday function. That was a nice surprise indeed. I have run some of these birthday problems before using homemade functions but set days at 366 to account for leap years.
Thanks

haraldurkarlsson