Consider the dataset:
X
Y
0
10.00
1
16.41
2
24.23
3
36.05
4
47.75
5
62.78
6
78.20
7
96.82
a. Create a scatter plot for the data.
b. Fit a curve to the dataset of the form yp = a0 + a1x + a2x^2. Plot this curve on the same plot as part a. What are the values of a0, a1, and a2?
c. Calculate the least squares error, E, between yp and y, where yp is the prediction of y from your fitted model.
d. Use linear interpolation to estimate the value of y at x = 3.7.
USE MATLAB CODE ONLY!
THANK YOU