Using the pbirthday function
Now, let us use the pbirthday
function to confirm our simulated answer from the previous exercise.
Este exercício faz parte do curso
Probability Puzzles in R
Instruções do exercício
- Use the
pbirthday
function with a room of 50 people.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Calculate the probability of a match for a room size of 50