Mathematics    

Linear-in-the-Parameters Regression

Instead of a polynomial function, we could try using a function that is linear-in-the-parameters. In this case, consider the exponential function

The unknown coefficients ,, and , are computed by performing a least squares fit. Construct and solve the set of simultaneous equations by forming the regression matrix, X, and solving for the coefficients using the backslash operator.

The fitted model of the data is, therefore,

Now evaluate the model at regularly spaced points and overlay the original data in a plot.

This is a much better fit than the second-order polynomial function.


  Polynomial Regression Multiple Regression