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

Interpolation with Matlab A quantity y is known to depend on another quantity x.

ID: 3181121 • Letter: I

Question

Interpolation with Matlab A quantity y is known to depend on another quantity x. A set of corresponding values has been collected for x and y and is presented in Table below. (a) Fit the best straight line y = bx + a to this set of data points. The objective is to minimize the sum of absolute deviations of each observed value of y from the value predicted by the linear relationship. (b) Fit the best straight line where the objective is to minimize the maximum deviation of all the observed values of y from the value predicted by the linear relationship. Formulate the two problems above as LP and solve them using Matlab. Plot the the points and the resulting "best" approximations, obtained by the two formulations.

Explanation / Answer

The equations can be found by using Linest function in excel. The equations are

1) y=

2) y=

0.676761x

0.610772x+ 0.426126
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote