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

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
Get step-by-step solutions from verified subject matter experts
