Question 2 [35] marks Suppose the same data in Question 1 is to be used to approximate the value of f(0.25) using least
Posted: Fri Jul 01, 2022 5:52 am
Question 2 [35] marks Suppose the same data in Question 1 is to be used to approximate the value of f(0.25) using least squares methods as indicated below. (2.1) Use the linear least squares polynomial and compute the error. (2.2) Use the least squares polynomial of degree 2 and compute the error. (2.3) Use the least squares approximation of the form beat and compute the error. (2.4) Use the least squares approximation of the form brÂȘ and compute the error. (2.5) Plot the graphs of the underlying function as given in (1.2) that was used to generate the original data and those from the least squares functions obtained in (2.1)-(2.4) on the same axis. (5) (10) (7)
Suppose the following data, collected in a certain experiment, is to be used to determine the underlying function, f(x) and to use it to approximate the value f(0.25). 0 1 -0.5 2 0 3 0.5 i Xi fi 0.86199480 0.95802009 1.0986123 1.2943767