Question: R Programming Run a Monte Carlo simulation on this vector representing the countries of the 8 runners in this race: runners
R Programming
Run a Monte Carlo simulation on this vector representing the countries of the 8 runners in this race:
runners <- c("Jamaica", "Jamaica", "Jamaica", "USA", "Ecuador", "Netherlands", "France", "South Africa") For each iteration of the Monte Carlo simulation, within areplicate()loop, select 3 runners representing the 3 medalists and check whether they are all from Jamaica. Repeat this simulation 10,000 times. Set the seed to 1 before running the loop.
Calculate the probability that all the runners are from Jamaica
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
