Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve Question 4 Using Matlab Here are 30 observations, 3;}; taken at equally spaced values of if from 1 to 30 (m.le available in Canvas).

image text in transcribed

Solve Question 4 Using Matlab

image text in transcribed
Here are 30 observations, 3;}; taken at equally spaced values of if from 1 to 30 (m.le available in Canvas). 12.6147,17.1520,1 8570724201438.5922,28.6773,33.5583 ,39.5177,39.9039,43.8278, 49.7533,50.5015,53.2628,60.3648,61.0906,61.9015,70.259292.0760,72.1245,80.4532, 82.7180,81.1362,89.7397,93.8465,91.7915,98.$469,104.3722,101.7813,107.8215,1 14.311 7 1. Fit the data (t, y) with a straight line y(t) = 31 + gt, and plot the residuals, y(tk) yk. You should observe that one of the data values has a much larger residual than the others. This is probably an outlier. 2. Discard the outlier, and t the data again with a straight line (be careful doing this so you still associate the same t values with y(t) values for the rest of the data). Plot the residuals again. Do you see any pattern in the residuals?I 3. Try tting the data, with the outlier excluded, by models of the form: y(t) = 51 + zt + I33 1030) Sin\"? and y(t) = 51 + 5215 + 133 1030) 0050*? Discuss which model ts the data best (you may have different answers using dierent criteria). Check your answer by plotting a curve of both models over the raw data. 4. Evaluate this function over a ner grid inside the interval [0, 3D]. Plot the best tted curve's 7 1 values, using the - style, together with the data, using the '0' style. Include the outlier, using a different red marker, '*'. NOTE : Note that M-File functions MUST NOT contain any fprintf O or dispO commands, or echo print any values inside the function (other than for error messages). The Function MUST return a value or values, NOT just print them with a dispO command. You MUST include listings of your functions in your published output as follows. If your function is contained in the M-le with name myfunctionm, just include the line type myfunct ion . m at the point in your code where you want the listing of the function to appear

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

Non-metrisable Manifolds

Authors: David Gauld

1st Edition

9812872574, 9789812872579

More Books

Students also viewed these Mathematics questions