Question: 3. Write Matlab codes to generate two Gaussian random variables (X, X2) with the following moments: E[X]-0, E[X]-0, E[X]=a, E[X]=b, and E[XX]=c. 1) Generate
3. Write Matlab codes to generate two Gaussian random variables (X, X2) with the following moments: E[X]-0, E[X]-0, E[X]=a, E[X]=b, and E[XX]=c. 1) Generate N=10, 100, 1000, 10000, and 100000 pairs of random variables with a=0.4, b-0.8, c-0.5. 2) Evaluate their first and second order sample moments as well as the empirical correlation coefficient between the two variables. 3) Compare the sample statistics with the theoretical statistics for different values of N.
Step by Step Solution
3.45 Rating (158 Votes )
There are 3 Steps involved in it
Here is the Matlab code to generate two Gaussian random variables with the given moments and evaluat... View full answer
Get step-by-step solutions from verified subject matter experts
