After the solution of square linear systems, we generalized to the case of having more constraints to satisfy than available variables. Our next step is to do the same for nonlinear equations, thus filling out this table:
linear
nonlinear
square
Ax=b
f(x)=0
overdetermined
min∣∣Ax−b∣∣2
min∣∣f(x)∣∣2
As in the linear case, we consider only overdetermined problems, where m>n. Minimizing a positive quantity is equivalent to minimizing its square, so we could also define the result as minimizing ϕ(x)=f(x)Tf(x).
You should not be surprised to learn that we can formulate an algorithm by substituting a linear model function for f. At a current estimate xk we define
where Ak is the exact m×n Jacobian matrix, J(xk), or an approximation of it as described in Quasi-Newton methods.
In the square case, we solved q=0 to define the new value for x, leading to the condition Aksk=−fk, where sk=xk+1−xk. Now, with m>n, we cannot expect to solve q=0, so instead we define xk+1 as the value that minimizes ∥q∥2.
In brief, Gauss–Newton solves a series of linear least-squares problems in order to solve a nonlinear least-squares problem.
Surprisingly, Function 4.5.2 and Function 4.6.3, which were introduced for the case of m=n nonlinear equations, work without modification as the Gauss–Newton method for the overdetermined case! The reason is that the backslash operator applies equally well to the linear system and linear least-squares problems, and nothing else in those functions was written with explicit reference to n.
In the multidimensional Newton method for a nonlinear system, we expect quadratic convergence to a solution in the typical case. For the Gauss–Newton method, the picture is more complicated.
As always in least-squares problems, the residual f(x) will not necessarily be zero when ∥f∥ is minimized. Suppose that the minimum value of ∥f∥ is R>0. In general, we might observe quadratic-like convergence until the iterate xk is within distance R of a true minimizer, and linear convergence thereafter. When R is not sufficiently small, the convergence can be quite slow.
In Fitting functions to data we saw how to fit functions to data values, provided that the set of candidate fitting functions depends linearly on the undetermined coefficients. We now have a tool to generalize that process to fitting functions that depend nonlinearly on unknown parameters.
Suppose that (ti,yi) for i=1,…,m are given points. We wish to model the data by a function g(t,x) that depends on unknown parameters x1,…,xn in an arbitrary way. A standard approach is to minimize the discrepancy between the model and the observations, in a least-squares sense. Define
We call f a misfit function. By minimizing ∥∥f(x)∥∥2, we get the best possible fit to the data. If an explicit Jacobian matrix is desired for the minimization, we can compute
The form of g is up to the modeler. There may be compelling theoretical choices, or you may just be looking for enough algebraic power to express the data well. Naturally, in the special case where the dependence on x is linear, i.e.,
Kermack, W. O., McKendrick, A. G., & Walker, G. T. (1927). A Contribution to the Mathematical Theory of Epidemics. Proceedings of the Royal Society of London. Series A, Containing Papers of a Mathematical and Physical Character, 115(772), 700–721. 10.1098/rspa.1927.0118
Wu, Z., Begley, C. G., Situ, P., Simpson, T., & Liu, H. (2014). The Effects of Mild Ocular Surface Stimulation and Concentration on Spontaneous Blink Parameters. Current Eye Research, 39(1), 9–20. 10.3109/02713683.2013.822896
Brosch, J. K., Wu, Z., Begley, C. G., Driscoll, T. A., & Braun, R. J. (2017). Blink Characterization Using Curve Fitting and Clustering Algorithms. Journal for Modeling in Ophthalmology, 1(3), 60–81. 10.35119/maio.v1i3.38
Berke, A., & Mueller, S. (1998). The Kinetics of Lid Motion and Its Effects on the Tear Film. In D. A. Sullivan, D. A. Dartt, & M. A. Meneray (Eds.), Lacrimal Gland, Tear Film, and Dry Eye Syndromes 2 (Vol. 438, pp. 417–424). Springer US. 10.1007/978-1-4615-5359-5_58