Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

hw6data is an array of numbers assumed to be [a,1]. where a is any length of num

ID: 3719965 • Letter: H

Question

hw6data is an array of numbers assumed to be [a,1]. where a is any length of numbers.

d) In MATLAB use the data provided in hw6data.mat with load (hw6data.mat). Calcu- late the population standard deviation. Then, using the following formula: Calculate the mean absolute deviation. Do not use the builtin functions var ) or std() for any part of this problem. Plot the distribution of the data using histO e) Append the following values to your data: [95, 98, 105, 95, 110, 5, 3, 12, 7, 9. Re- calculate the standard deviation and mean absolute error. Which of the two values is affected more by the added data? Which calculation method is more sensitive to outliers?

Explanation / Answer

data = load(hw6data.mat)

%Variance

%standard deviation

%PLOT

hist(data);

%now repeat the process adding the values to the vector. and use the compare() function to check the difference.You will know from the plot and the values from compare which of the two values change the most.

%still any doubts use the comment section below.