Question: Please write the script this using matlab Rolling Two Dice Due: Wednesday, 2/6/18, before 4PM Suppose you roll two fair dice at the same time.

Please write the script this using matlab
 Please write the script this using matlab Rolling Two Dice Due:
Wednesday, 2/6/18, before 4PM Suppose you roll two fair dice at the
same time. The list of possible outcomes on a single roll of

Rolling Two Dice Due: Wednesday, 2/6/18, before 4PM Suppose you roll two fair dice at the same time. The list of possible outcomes on a single roll of two dice is shown below where, (i,j) denotes i, on dice 1, and j, on dice 2 12.1) (2.2) (2.3) (2.4) 3.1) 02)8.3) (84 (8) (8.6 4,2) (4,3) (4,4) (4,5) (4,6) 51 5,2) (5,3) (5,4) (5,5) (5,6) Table 1: All possible outcomes of a two-dice roll. The highlighted diagonals show pairs of the same sum Part 1 *You are to write a MATLAB script that rolls two dice, and computes the sum of the numbers that appear on the top face of the dice. * Repeat this for N rolls and plot in bar plot the frequency of each sum, for N-10,50, 100,1000, 10,105,10 you are confident to try N- 107 and beyond, you may but it wil take a time to run depending of the efficiency of the code and the speed of your computer Make sure your graphs are properly annotated with meaningful titles and labels Your results should be similar to those shown in the graphs below. The solid circles represent the "expected outcome" based on probability. The circles were added by using the "hold on"command after plotting the bar graph. Don't forget to use the "hold off command after you're finished adding the plot Part 2 Explore how the statistics change if: One of the dice is unfair Both dice are unfair, but not necessarily weighted to the same side What chanees do you observe for these scenarios? Page 4/s Page 5/s

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!