Using the pbirthday function
Now, let us use the pbirthday function to confirm our simulated answer from the previous exercise.
Latihan ini adalah bagian dari kursus
Probability Puzzles in R
Petunjuk latihan
- Use the
pbirthdayfunction with a room of 50 people.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Calculate the probability of a match for a room size of 50