Using the pbirthday function
Now, let us use the pbirthday
function to confirm our simulated answer from the previous exercise.
This exercise is part of the course
Probability Puzzles in R
Exercise instructions
- Use the
pbirthday
function with a room of 50 people.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Calculate the probability of a match for a room size of 50