Question: Write a simple code in MATLAB using the randi (or similar) function to simulate the rolling of a six sided die. 1. Plot the histogram

Write a simple code in MATLAB using the randi (or similar) function to simulate the rolling of a six sided die. 1. Plot the histogram of the outcome for one die rolling 10 times and 1000 times. Plot the CDF and PDF Calculate the mean and standard deviation of the single die roll outcomes and report them. 2. Now simulate rolling two dice 10 times and 1000 times. Plot the total of the dice roll as a histogram (sum die 1 and die 2). Plot the CDF and PDF Calculate the mean and standard deviation of the sum of the dice roll for the two die outcomes and report them. 3. What can you say about the probabilities of outcomes in each case: What should the probabilities be for each of the faces (numbers) for the single die roll? What should the probabilities be for each of the combinations of the sum of the two dice roll? 4. What can you say about the sample means for each case: How do the sample means change as we increase the number of rolls? What should the mean be for the single die roll? What should the mean be for the sum of the two dice roll
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
