Question: Answer in C++ Please Problem (2): (20 points) Generate a random sequence of length N= 500 from a uniform distribution. Using histograms with bin numbers

Answer in C++ Please
Problem (2): (20 points) Generate a random sequence of length N= 500 from a uniform distribution. Using histograms with bin numbers M=5,7,9, 11 and 13 bins, verify experimentally that the error in computed entropy e = H theoretical Hobserved varies linearly with the ratio (M 1)/(2N). Problem (2): (20 points) Generate a random sequence of length N= 500 from a uniform distribution. Using histograms with bin numbers M=5,7,9, 11 and 13 bins, verify experimentally that the error in computed entropy e = H theoretical Hobserved varies linearly with the ratio (M 1)/(2N)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
