3. Consider the points (-1, 1), (0, 0), (1, 2), (3, 0), (4,1). We will try to fit poly- nomials to these data. You may u
Posted: Wed May 04, 2022 11:07 am
3. Consider the points (-1, 1), (0, 0), (1, 2), (3, 0), (4,1). We will try to fit poly- nomials to these data. You may use the provided Google colab notebook to answer this question. (1) Write down the corresponding least squares problem. (2) For each degree d € {1,2,...,6}, find the best degree d polynomial that fits the data (write your answer in the form pa(y) = xo+x₁Y+ ··· +xayd. Then plot the residuals against the degrees. ● ● - (3) Consider a new data point (ye, b6) (5,-1). Use the polynomial models found in part (2) to give predictions (i.e. values of those polynomials at y = 5) for this new data point. Which model gives the best prediction?