(Programmed in R)
Will need the code and results. In addition, please report each estimate in a sentence that indicates what probabilities these are estimates of. You are not allowed to use any “if” statements or loops in your R code except for the loop to repeat the simulation 1 million times.
1. Estimate by simulation in R using 1 million replications: I roll a fair 6-sided die 10 times. What’s the probability that no two consecutive rolls are the same? See the diff command. The first command of your simulation should be set.seed(444).
Get Answers For Free
Most questions answered within 1 hours.