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

Probability of a large straight

A large straight occurs when the five dice land on consecutive denominations, specifically either {1,2,3,4,5} or {2,3,4,5,6}.

Let's calculate the probability of a "large straight" in a single roll of the five dice.

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

Probability Puzzles in R

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

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

  • Calculate the probability of obtaining {1,2,3,4,5}.
  • Calculate the probability of obtaining {2,3,4,5,6}.
  • Calculate the probability of obtaining a large straight.

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

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

s_space <- 6^5

# Calculate the probabilities
p_12345 <- ___
p_23456 <- ___
p_large_straight <- ___

# Print the large straight probability
print(p_large_straight)
कोड संपादित करें और चलाएँ