HW4_spring09 - BIL108E Homework4 Spring09 ,yk, t=1:25 y=...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: BIL108E IntroductiontoScientificandEngineeringComputing Homework4 Spring09 Hereare25observations,yk,takenatequallyspacedvaluesoft. t=1:25 y=[ 5.02916.50995.36664.12724.2948... 6.126112.514010.05029.16147.5677... 7.292010.035711.070813.404512.8415... 11.966611.076511.777414.570117.0440... 17.039815.906915.485015.511217.6572] (a) Fitthedatawithastraightline,y(t)=1+2t,andplottheresiduals,y(tk)-yk.Youshouldobserve thatoneofthedatapointshasamuchlargerresidualthantheothers.Thisisprobablyanoutlier. (b) Discardtheoutlier,andfitthedataagainbyastraightline.Plottheresidualsagain.Doyouseeany patternintheresiduals? (c) Fitthedata,withtheoutlierexcluded,byamodeloftheformy(t)=1+2t+3sint (d) Evaluatethethirdfitonafinergridovertheinterval[0,26].Plotthefittedcurve,usinglinestyle'', togetherwiththedata,usinglinestyle'o'. ...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online