शुरू करेंमुफ़्त में शुरू करें

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.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Probability Puzzles in R

पाठ्यक्रम देखें

अभ्यास निर्देश

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

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Calculate the size of the sample space
s_space <-

# Calculate the probability of a Yahtzee
p_yahtzee <- 

# Print the answer
print(p_yahtzee)
कोड संपादित करें और चलाएँ