Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Econometrics›Nonlinear OLS (Nonlinear Least Squares)
Regression modelEconometrics / time series

Nonlinear OLS (Nonlinear Least Squares)

Nonlinear Ordinary Least Squares · Also known as: nonlinear least squares, NLS, NLLS, nonlinear regression

Nonlinear Ordinary Least Squares (NLS) estimates regression models in which the conditional mean function is nonlinear in the parameters. Like standard OLS it minimises the sum of squared residuals, but because no closed-form solution exists the estimator is found by iterative numerical optimisation. Under standard regularity conditions NLS is consistent and asymptotically normal.

ScholarGate
  1. Regression model
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Nonlinear OLS
Generalized Least SquaresMaximum Likelihood Estim…Nonlinear ARDLNonlinear GLSOLS RegressionFourier OLS

When to use it

Use Nonlinear OLS when economic theory or data structure implies a regression function that is intrinsically nonlinear in its parameters — for example an exponential growth curve, a logistic saturation model, a CES production function, or a Box-Cox transformation. NLS is appropriate when the sample is moderately large (the asymptotic theory requires n to be reasonably large relative to the number of parameters) and when the functional form can be specified before estimation. Do not use NLS when the nonlinearity can be linearised by a simple transformation (e.g., taking logs of a Cobb-Douglas function), because OLS on the transformed model is simpler and avoids convergence issues. Also avoid NLS when starting values are completely unknown, when the likelihood surface is highly non-convex, or when the outcome is binary or count-valued (use nonlinear models such as logit or Poisson instead).

Strengths & limitations

Strengths
  • Handles genuinely intrinsic nonlinearity in parameters that cannot be removed by variable transformation.
  • Consistent and asymptotically normal under mild regularity conditions, with well-understood inference.
  • Allows economic theory to dictate a specific functional form (e.g., CES, logistic growth) rather than imposing an arbitrary linearisation.
  • Sandwich (robust) standard errors straightforwardly accommodate heteroscedasticity.
  • Widely implemented in R (nls), Stata (nl), Python (scipy.optimize), and EViews.
Limitations
  • No closed-form solution: convergence depends on starting values and the algorithm; local minima are a genuine risk.
  • Asymptotic standard errors can be unreliable in small samples; bootstrap inference is preferred when n is small.
  • Misspecification of the functional form produces biased and inconsistent estimates with no obvious diagnostic to detect it.
  • Computationally more demanding than linear regression, and convergence may fail for complex or flat objective surfaces.

Frequently asked

What is the difference between nonlinear OLS and standard OLS?

Standard OLS requires that the regression function be linear in the parameters, enabling a closed-form solution. Nonlinear OLS (NLS) minimises the same sum-of-squared-residuals criterion but for functions that are nonlinear in the parameters, requiring iterative numerical optimisation. The asymptotic properties (consistency, normality) are similar under regularity conditions.

How do I choose starting values?

Informed starting values dramatically improve convergence. Use parameter estimates from a related linearised model, values from prior literature, or a grid search over a plausible parameter range. Always re-run the optimisation from several different starting points to check that the solution is stable.

When should I use nonlinear WLS instead of NLS?

When residual diagnostics (e.g., a Breusch-Pagan test or a plot of squared residuals against fitted values) suggest heteroscedasticity, nonlinear WLS — which weights observations by the inverse of their error variance — is more efficient than NLS, though both are consistent. Alternatively, use NLS with heteroscedasticity-robust sandwich standard errors.

Can I compare NLS models with AIC or BIC?

Yes. Assuming normally distributed errors, the NLS objective is proportional to the log-likelihood, so AIC = n*log(RSS/n) + 2k and BIC = n*log(RSS/n) + k*log(n) (where k is the number of parameters) can be used to compare models estimated on the same data and outcome.

What if NLS fails to converge?

Try alternative starting values, re-parameterise the model to reduce collinearity among parameters, switch from Gauss-Newton to Levenberg-Marquardt (which is more robust to ill-conditioning), or simplify the functional form. Persistent non-convergence often signals model misspecification.

Sources

  1. Gallant, A. R. (1987). Nonlinear Statistical Models. John Wiley & Sons. ISBN: 978-0471802600
  2. Wooldridge, J. M. (2010). Econometric Analysis of Cross Section and Panel Data (2nd ed.). MIT Press. ISBN: 978-0262232586

How to cite this page

ScholarGate. (2026, June 3). Nonlinear Ordinary Least Squares. ScholarGate. https://scholargate.app/en/econometrics/nonlinear-ols

Related methods

Generalized Least SquaresMaximum Likelihood EstimationNonlinear ARDLNonlinear GLSOLS Regression

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Generalized Least SquaresStatistics↔ compare
  • Maximum Likelihood EstimationStatistics↔ compare
  • Nonlinear ARDLEconometrics↔ compare
  • Nonlinear GLSEconometrics↔ compare
  • OLS RegressionEconometrics↔ compare
Compare side by side →

Referenced by

Fourier OLS

Similar methods

Nonlinear WLSNonlinear GLSNonlinear System GMMOrdinary Least SquaresNonlinear Panel Data AnalysisNonlinear Random Effects ModelNonlinear Hausman testNonlinear difference GMM

Related reference concepts

Newton-Raphson and Scoring MethodsMaximum Likelihood EstimationEconometricsOptimization for StatisticsNonlinear ProgrammingEM Algorithm

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Nonlinear OLS (Nonlinear Ordinary Least Squares). Retrieved 2026-07-21 from https://scholargate.app/en/econometrics/nonlinear-ols · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Gallant (1987); Wooldridge (2010) for econometric treatment
Year
1974–1987
Type
Nonlinear regression estimator
DataType
Cross-sectional, time series, or panel; continuous outcome
Subfamily
Econometrics / time series
Related methods
Generalized Least SquaresMaximum Likelihood EstimationNonlinear ARDLNonlinear GLSOLS Regression
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account