Question: Write a MATLAB program to simulate the following experiments. Draw a dice 100 times. That is, generate a sequence of 100 random numbers from the

Write a MATLAB program to simulate the following experiments. Draw a dice 100 times. That is, generate a sequence of 100 random numbers from the set {1, ..., 6}. Call this sequence X_1, ..., X_100. Plot the histogram of X_1, ..., X_100, with bin centers {1, ..., 6}. Do not use a for-loop in your code. Submit your program and plot. Repeat (a) by drawing the dice 10000 times. Draw another dice 100 times. Call this sequence Y_1..., Y_100- Let Z_i = X_i + Y_i for i = 1, ..., 100. Plot the histogram of Z_1, ..., Z_100. Submit your plot. Repeat (d) by drawing the dices 10000 times. Using the histogram found in (d), find the probability that 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
