IniziaInizia gratis

Probability of a Yahtzee

Let us calculate the probability of obtaining a "Yahtzee" in a single roll of the five dice.

A Yahtzee occurs when all five dice are of the same denomination. Any of the six denominations counts as a Yahtzee. For example, all 1s is a Yahtzee, as is all 4s.

Questo esercizio fa parte del corso

Probability Puzzles in R

Visualizza il corso

Istruzioni dell'esercizio

  • Calculate the size of the sample space.
  • Calculate the probability of obtaining a Yahtzee.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Calculate the size of the sample space
s_space <-

# Calculate the probability of a Yahtzee
p_yahtzee <- 

# Print the answer
print(p_yahtzee)
Modifica ed esegui il codice