Question: The following problem should be implemented in MATLAB or Python and submitted to the Canvas website of the class for evaluation. Write a summary of

The following problem should be implemented in MATLAB or Python and submitted to the Canvas website of the class for evaluation. Write a summary of the method you used in writing your code, explain the algorithms and syntax you have used. In your write-up, provide the answer to any specific question asked as well as a sample of running your codes and the inputs/outputs. Also, include your entire code in the pdf file.
Problem 1
17.3 Use least-squares regression to fit a straight line to
\table[[x,0,2,4,6,9,11,12,15,17,19],[y,5,6,7,6,9,8,7,10,12,12]]
Along with the slope and intercept, compute the standard error of the estimate and the correlation coefficient. Plot the data and the regression line. Then repeat the problem, but regress x versus y that is, switch the variables. Interpret your results.
Problem 2
17.15 The following data are provided
\table[[x,1,2,3,4,5],[y,2.2,2.8,3.6,4.5,5.5]]
You want to use least-squares regression to fit this data with the following model,
y=a+bx+cx
[note: pseudo inverse can help with this.]
Problem 3: Do problem 18.2 below only. Use Equation 18.4 from your book.
18.1 Estimate the common logarithm of 10 using linear interpolation.
(a) Interpolate between log8=0.9030900 and log12=1.0791812.
(b) Interpolate between log9=0.9542425 and log11=1.0413927. For each of the interpolations, compute the percent relative error based on the true value.
18.2 Fit a second-order Newton's interpolating polynomial to estimate log10 using the data from Prob. 18.1 at x=8,9, and 11. Compute the true percent relative error.
Can you please create a Matlab code for these problem plz
The following problem should be implemented in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!