Exercise 3
Assigned: 03/22/12 
Due: 03/27/12 
Use the data in the table in Problem 64.1 in the book to do the following exercises:

Find the sample mean using the MATLAB function mean.

Calculate the estimated autocorrelation function \(\hat{R}(0.01n)\) for \(n = 0,\ldots,20\) using Eq. 615, and plot with appropriate index values along the xaxis. You can use the MATLAB function xcorr if it is called with the appropriate options so that it corresponds to Eq. 615. You may want to test that you have the correct calling options by handcalculating a 3point sequence where you can easily verify and compare the output to your hand calculations. Also, you must think carefully about how to define the index values, since MATLAB does not keep up with the xcoordinate for you.

Calculate the estimated autocorrelation function \(\hat{R}(0.01n)\) for \(n = 0,\ldots,20\) using Eq. 616, and plot with appropriate index values along the xaxis. You can use the MATLAB function xcorr if it is called with the appropriate options so that it corresponds to Eq. 616.

Explain why the values in #2 vary so much for large \(n\) compared to the same values of \(n\) in #3. Are these values in #2 a reliable indicator of the actual autocorrelation? Why or why not?
Please include all your code. Make your plots no more
than 1/4page high. Please make your writeup as concise as possible while
answering all questions.
NOTE: All outofclass work is to be done independently. Sharing of programming tips and discussing general concepts is ok. Collaborating on experiments or codewriting is not. Any such collaboration on these assignments will be considered an act of academic dishonesty and will be treated accordingly.