Let’s take the coin-flipping example from last week and run a similar test on a six sided dice. Lets run a simulation from 1 to 5000 dice rolls and calculated the proportion of each number. For example, a 1 will be a single roll and we will count the number of each number (should be all zeros except for one value for one of the numbers). When we do 10 rolls, we will count the number of each number that pops up after each roll for 10 consecutive rolls.
Use tidyverse and dplyr to fill in missing Roll_value and turn to a percent
And plot this out.
As expected, the more rolls we conduct the probability of any individual number approaches 0.167