Definition
Non-linear least squares (NLLS) is a generalized problem type related to the problem of linear least squares. It occurs frequently in the context of optimization problems.
Consider the following setup: we have a model function
(here,
may be a scalar or vector variable, but
must be scalar; for simplicity, we will notationally treat
as a scalar). The vector
is an unknown parameter vector with
coordinates
. We are given a set of
data points
with
.
For
, we define the residual
as follows:
Our goal is to find a choice of the parameter vector
for which the sum is minimized:
In other words, we want to minimize the sum:
How linear least squares is a special case
The case of linear least squares is the case where the function
is linear as a function of the vector
for each value of
. It need not be linear in
.