Exercise 10. American Roulette comparison
In a previous exercise, you found the probability of winning more than $0 after betting on green 10,000 times using the Central Limit Theorem. Then, you used a Monte Carlo simulation to model the average result of betting on green 10,000 times over 10,000 simulated series of bets.
What is the probability of winning more than $0 as estimated by your Monte Carlo simulation? The code to generate the vector S
that contains the the average outcomes of 10,000 bets modeled 10,000 times has already been run for you.
This exercise is part of the course
HarvardX Data Science - Probability (PH125.3x)
Exercise instructions
- Calculate the probability of winning more than $0 in the Monte Carlo simulation from the previous exercise using the
mean
function. - You do not need to run another simulation: the results of the simulation are in your workspace as the vector
S
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Compute the proportion of outcomes in the vector 'S' where you won more than $0