Question: Problem (2): (25 points) Generate two different random sequences X and Y representing the throws of one 6-sided die. The first sequence X is for
Problem (2): (25 points) Generate two different random sequences X and Y representing the throws of one 6-sided die. The first sequence X is for a fair die (P(i) = 1/6 for i = 1..6). The second sequence Y is for an unfair die (P(1) = 1/4, P(2) = P(3) = P(4) = P(5) = 1/8, P(6) = 1/4). Each random sequence will be of length N = 10000.
Compute the PMFs P(X) and P(Y) for the two sequences and plot them as bar charts.
Compute the entropies H(X) and H(Y) of the two sequences and compare your results with the theoretical entropies expected.
I need this question answered in a code format on Matlab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
