CommencerCommencer gratuitement

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

Afficher le cours

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
Modifier et exécuter le code