Question: Given the data below with x as the independent variable and y as the dependent variable: x 5 1 0 1 5 2 0 2
Given the data below with x as the independent variable and y as the
dependent variable:
x
y
a Use leastsquares regression to fit i a straight line, and ii a parabola without
using polyfitpolyval in MATLAB or trendline in Excel you can use
MATLABExcel to calculate sums, inverses etc.
b Plot the given data and the bestfits in two separate graphs one for linear fit and the other for quadratic fit in either MATLAB or Excel without using
polyfitpolyval in MATLAB or trendline in Excel
c Calculate the r value for each fit and determine the superior fit between the two. Is the other one a good enough fit? Typically a reduction in the erroruncertainty in data with respect to the mean can be used to determine whether a fit is good enough
Submit relevant MATLABExcel printouts along with any hand calculations.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
