Question: Enter The MATLAB code below, which simulates the random outcomes from tossing 2 dice. >> rng(1234567), N = 10000; k = 2; bins = 5

  1. Enter The MATLAB code below, which simulates the random outcomes from tossing

2 dice.

>> rng(1234567), N = 10000; k = 2; bins = 5 * k + 1;

>> x = randi( [1, 6], k, N); y = sum(x);

>> hist(y, bins), z = hist(y, bins) * 100 / N

 Enter The MATLAB code below, which simulates the random outcomes from

4. change k to 4 to simulate tossing four dice. The possible outcomes are now 4" to "24". Enter the results in percent for a sum of 6. Result for "6" % Show the set of favorable outcomes which result in "6" and calculate the expected probability. % Expected for "6" (show calculation) 4. change k to 4 to simulate tossing four dice. The possible outcomes are now 4" to "24". Enter the results in percent for a sum of 6. Result for "6" % Show the set of favorable outcomes which result in "6" and calculate the expected probability. % Expected for "6" (show calculation)

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!