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

Calculating the expected value

What is the expected value of a binomial distribution where 25 coins are flipped, each having a 30% chance of heads?

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

Foundations of Probability in R

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

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

  • Calculate this using the exact formula you learned in the lecture: the expected value of the binomial is size * p. Print this result to the screen.
  • Confirm with a simulation of 10,000 draws from the binomial.

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

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

# Calculate the expected value using the exact formula


# Confirm with a simulation using rbinom
कोड संपादित करें और चलाएँ