ArticleslgStudy

science

Non-linear least squares

Non-linear least squares is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Non-linear least squares rather than just read about it. In short: Non-linear least squares is the form of least squares analysis used to fit a set of m observations with a model that is non-linear in n unknown parameters (m ≥ n). It is used in some forms of nonlinear regression.

Key takeaways

  • Non-linear least squares belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Non-linear least squares to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Non-linear least squares from memory before moving on to harder problems.

Reference excerpt

Non-linear least squares is the form of least squares analysis used to fit a set of m observations with a model that is non-linear in n unknown parameters (m ≥ n). It is used in some forms of nonlinear regression. The basis of the method is to approximate the model by a linear one and to refine the parameters by successive iterations. There are many similarities to linear least squares, but also some significant differences. In economic theory, the non-linear least squares method is applied in (i) the probit regression, (ii) threshold regression, (iii) smooth regression, (iv) logistic link regression, (v) Box–Cox transformed regressors ( m ( x , θ i ) = θ 1 + θ 2 x ( θ 3 ) {\displaystyle m(x,\theta _{i})=\theta _{1}+\theta _{2}x^{(\theta _{3})}} ).

Theory Consider a set of m {\displaystyle m} data points, ( x 1 , y 1 ) , ( x 2 , y 2 ) , … , ( x m , y m ) , {\displaystyle (x_{1},y_{1}),(x_{2},y_{2}),\dots ,(x_{m},y_{m}),} and a curve (model function) y ^ = f ( x , β ) , {\displaystyle {\hat {y}}=f(x,{\boldsymbol {\beta }}),} that in addition to the variable x {\displaystyle x} also depends on n {\displaystyle n} parameters, β = ( β 1 , β 2 , … , β n ) , {\displaystyle {\boldsymbol {\beta }}=(\beta _{1},\beta _{2},\dots ,\beta _{n}),} with m ≥ n . {\displaystyle m\geq n.} It is desired to find the vector β {\displaystyle {\boldsymbol {\beta }}} of parameters such that the curve fits best the given data in the least squares sense, that is, the sum of squares

S = ∑ i = 1 m r i 2 {\displaystyle S=\sum _{i=1}^{m}r_{i}^{2}}

is minimized, where the residuals (in-sample prediction errors) ri are given by

r i = y i − f ( x i , β ) {\displaystyle r_{i}=y_{i}-f(x_{i},{\boldsymbol {\beta }})}

for i = 1 , 2 , … , m . {\displaystyle i=1,2,\dots ,m.}

The minimum value of S occurs when the gradient is zero. Since the model contains n parameters there are n gradient equations:

∂ S ∂ β j = 2 ∑ i r i ∂ r i ∂ β j = 0 ( j = 1 , … , n ) . {\displaystyle {\frac {\partial S}{\partial \beta _{j}}}=2\sum _{i}r_{i}{\frac {\partial r_{i}}{\partial \beta _{j}}}=0\quad (j=1,\ldots ,n).}

In a nonlinear system, the derivatives ∂ r i ∂ β j {\textstyle {\frac {\partial r_{i}}{\partial \beta _{j}}}} are functions of both the independent variable and the parameters, so in general these gradient equations do not have a closed solution. Instead, initial values must be chosen for the parameters. Then, the parameters are refined iteratively, that is, the values are obtained by successive approximation,

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Non-linear least squares

Start with the simplest possible case. Write down what Non-linear least squares claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Non-linear least squares before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Non-linear least squares ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Non-linear least squares

In research
Non-linear least squares appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Non-linear least squares in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Non-linear least squares is common in secondary-school and first-year university syllabi. It links to neighbouring topics Least squares, so understanding it makes those chapters shorter.
In everyday life
Look for Non-linear least squares outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Non-linear least squares” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Non-linear least squares in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Non-linear least squares means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Non-linear least squares out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Non-linear least squares in simple terms?

Non-linear least squares is the form of least squares analysis used to fit a set of m observations with a model that is non-linear in n unknown parameters (m ≥ n). It is used in some forms of nonlinear regression.

Why does Non-linear least squares matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Non-linear least squares?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Non-linear least squares.

Tags

  • Least squares

Keep exploring