STAT 604: Intro. to Statistical Computing
Prof. David B. Dahl

Board Game Simulation

Imagine a board game using two dice. A player starts on "Go!" and does not get to leave until he/she rolls an eleven or higher. How many rolls, on average, must be made? What is the standard deviation of the required number of rolls?

Complete R code is available for your reference which generates this output.