In the class, we discussed the generalized least squares approximation for higher-order (see exam...
In the class, we discussed the generalized least squares approximation for higher-order (see example below). In this homework problem, you will need to (1) Repeat the example by preparing a Matlab code. That is, the code will first read the x and y vectors and then call (your) function to calculate a of the polynomial. (2) Calculate the standard deviation. Least Squares Approximation-higher-degree Example: Find the LS polynomial of degree three (3) that fits the following data in the table 00 020 0270.30032.33 Set up the equations Set up the matrix A and vectors a and b for Aa # b where 14200 2 2830 0000 7,5000 13.750 28 1250 .5000 13 7500 28 120 61.187 3.7500 28.1250 61.1875 138.2813 28 1250 61.1875 138 2813 3205469 0237 The polynomial? ()-0.0033+0.4970- 0.27382 +0.0511
In the class, we discussed the generalized least squares approximation for higher-order (see example below). In this homework problem, you will need to (1) Repeat the example by preparing a Matlab code. That is, the code will first read the x and y vectors and then call (your) function to calculate a of the polynomial. (2) Calculate the standard deviation. Least Squares Approximation-higher-degree Example: Find the LS polynomial of degree three (3) that fits the following data in the table 00 020 0270.30032.33 Set up the equations Set up the matrix A and vectors a and b for Aa # b where 14200 2 2830 0000 7,5000 13.750 28 1250 .5000 13 7500 28 120 61.187 3.7500 28.1250 61.1875 138.2813 28 1250 61.1875 138 2813 3205469 0237 The polynomial? ()-0.0033+0.4970- 0.27382 +0.0511