Exercise 7. American Roulette per bet standard error
What is the standard error of \(Y\), the average result of 10,000 spins?
This exercise is part of the course
HarvardX Data Science - Probability (PH125.3x)
Exercise instructions
- Compute the standard error of \(Y\), the average result of 10,000 independent spins.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Define the number of bets using the variable 'n'
n <- 10000
# Assign a variable `p_green` as the probability of the ball landing in a green pocket
p_green <- 2 / 38
# Assign a variable `p_not_green` as the probability of the ball not landing in a green pocket
p_not_green <- 1 - p_green
# Compute the standard error of 'Y', the mean outcome per bet from 10,000 bets.