This preview shows page 1. Sign up to view the full content.
Unformatted text preview: (C) Repeat (B) for N=500 and N=5000. Comment on your estimates. (D) Obtain the probability , = 1 2 | | 1/2 ? 1 /2 , and plot (contour-plot) on top of the data. (E) Obtain the distance ? 1 = 1 , and plot (contour-plot) on top of the data. (F) Obtain the distance ? 2 = = 2 , and plot (contour-plot) on top of the data. Problem 2: Generate a noisy sinusoid using the following matlab commands: x = [0:0.1:2]; y = sin(4*x); y = y + 0.2*randn(size(y)); Write a matlab function to fit n th-order polynomial to this data. Try for n =1,2,3, 4, and 10, and plot the fits on top of the input data....
View Full Document
- Fall '10