A model can be curved in and still be linear in its parameters. True nonlinear least squares begins when the unknown parameters enter nonlinearly, as in
There is usually no single formula for the best estimates. The computer must search for them.
Residuals as a function of parameters
Write
The goal is to find a low point on the objective surface . Unlike linear least squares, this surface may contain long valleys, flat regions, or several local minima.
Starting values matter
An iterative method begins at a proposed parameter vector . Good starting values may come from a plot, a simplified model, physical bounds, or several deliberately different initial guesses.
A typical fitting loop
- Evaluate predictions and residuals.
- Calculate how predictions change with each parameter.
- Propose a parameter step.
- Accept, shorten, or modify the step.
- Stop when changes in parameters, error, or gradient are sufficiently small.
Scaling is important. If one parameter is near and another near , the numerical problem may be poorly balanced even when the scientific model is reasonable.
Identifiability
Parameters are identifiable when the available data can distinguish their effects. If several parameter combinations produce nearly the same curve, individual estimates can be highly uncertain even when predictions look good.
After convergence
Plot the fit and residuals, compare runs from different starting values, inspect parameter correlations, and report uncertainty. Bounds can enforce physical constraints, but a parameter pressed against a bound is itself a diagnostic.
Learn from a profile of the objective
For , fix temporarily. The model is then linear in , so the best can be found by linear least squares. Repeating across candidate values creates a profile . A sharp minimum means is well determined; a broad valley means many decay rates fit similarly.
A convergence checklist
Require agreement across multiple starts, a small gradient, stable predictions under small perturbations, plausible parameters, and residuals without structure. Report whether bounds were active and whether uncertainty came from local linearization, a profile, bootstrap, or another method.
Check your understanding
Why can a log transformation of change the fitted answer?
Show the reasoning
Fitting minimizes squared errors on the log scale, implying multiplicative rather than additive errors. It also fails for nonpositive observations. The transformed and original objectives answer different statistical questions.