Using the pbirthday function
Now, let us use the pbirthday
function to confirm our simulated answer from the previous exercise.
Cet exercice fait partie du cours
Probability Puzzles in R
Instructions
- Use the
pbirthday
function with a room of 50 people.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Calculate the probability of a match for a room size of 50