Question: 3. Use n = 500 equally Spaced points 1:1, . . . ,wn in [0, 2a] to simulate observations 933 = sin(:cj) + EM 1':

3. Use n = 500 equally Spaced points 1:1, . . . ,wn in [0, 2a] to simulate observations 933 = sin(:cj) + EM 1': 1, .. .500, j = 1, . . . , 500 Where the random variables 6,",- are iid from the Gaussian mixture 0.99 N(0, 0.12) + 0.01 N(0, 2002). This leads to a 500 x 500 data matrix Y. (a) Let m and s be the column means and standard deviations. Make a plot that shows m, m + s and m s all vs :3 on the same plot. (b) Repeat (a) but using the median and mad instead of the mean and standard deviation (0) Comment on the results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
