Statistics Toolbox    

Fitting the Hougen-Watson Model

The Statistics Toolbox provides the function nlinfit for finding parameter estimates in nonlinear modeling. nlinfit returns the least squares parameter estimates. That is, it finds the parameters that minimize the sum of the squared differences between the observed responses and their fitted values. It uses the Gauss-Newton algorithm with Levenberg-Marquardt modifications for global convergence.

nlinfit requires the input data, the responses, and an initial guess of the unknown parameters. You must also supply the name of a function that takes the input data and the current parameter estimate and returns the predicted responses. In MATLAB terminology, nlinfit is called a "function" function.

Here is the hougen function.

To fit the reaction data, call the function nlinfit.

nlinfit has two optional outputs. They are the residuals and Jacobian matrix at the solution. The residuals are the differences between the observed and fitted responses. The Jacobian matrix is the direct analog of the matrix X in the standard linear regression model.

These outputs are useful for obtaining confidence intervals on the parameter estimates and predicted responses.


 Example: Nonlinear Modeling Confidence Intervals on the Parameter Estimates