Mathematics Previous page   Next Page

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 a sub 0,a sub 1, and a sub 2, 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.


Previous page  Polynomial Regression Multiple Regression Next page

© 1994-2005 The MathWorks, Inc.