Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This must be done using MATLAB. For this question, do not use polyfit function, but solve the normal equation with a backslash operator. Here are

This must be done using MATLAB.

image text in transcribed

For this question, do not use polyfit function, but solve the normal equation with a backslash operator. Here are 25 observations, yx, taken at equally spaced values of t (copy all the lines of code to MATLAB): t1:25 y 5.0291 6.50995.3666 4.1272 4.2948 6.1261 12.5140 10.0502 9.16147.5677 7.2920 10.0357 11.0708 13.4045 12.8415 11.9666 11.0765 11.777414.5701 17.0440 17.039815.9069 15.4850 15.5112 17.6572 (a) Fit the data with a straight line, y(t) - Pi + B2t, and plot the residuals, y(i) - y,. You should observe that one of the data points has a much larger residual than the others. This is probably an outlier. (b) Discard the outlier, and fit the data again by a straight line. Plot the residuals again. Do you see any pattern in the residuals? (c) Fit the data, with the outlier excluded, by a model of the form y(t) -Pi +P2t + p3 sin(t) (d) Evaluate the third fit on a finer grid over the interval [0,26]. Plot the fitted curve, using line style '-', together with the data, using line style 'o'. Include the outlier, using a different marker

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

What is "the cloud" or "Cloud Computing"?

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago