← All notes

How a linear equation with one independent variable is written, and how nonlinear least squares extends the linear method

Answer: Linear regression for two variables uses a linear equation with one independent variable. Nonlinear least squares regression extends that linear method and has a strong sensitivity to outliers.

Slope and intercept

The equation has the form y = a + bx, where a and b are constant numbers. You choose a value for the independent variable and then solve for the dependent variable.

Any line that is not vertical can be described by this equation. If b > 0, the line slopes upward to the right. If b = 0, the line is horizontal. If b < 0, the line slopes downward to the right.

Beyond a straight line

Nonlinear least squares regression extends linear least squares regression to a more general class of functions. Almost any function written in closed form can be used in a nonlinear regression model.

One common advantage is efficient use of data. The linear least squares procedure includes a strong sensitivity to outliers.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: OpenStax Introductory Statistics, 12.1 Linear Equations; National Institute of Standards and Technology, Nonlinear Least Squares Regression. CC-BY-4.0 (https://creativecommons.org/licenses/by/4.0/). OpenStax Introductory Statistics, Creative Commons Attribution License 4.0. US government work, public domain (https://www.usa.gov/government-works). Work of the U.S. government (National Institute of Standards and Technology). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: OpenStax Introductory Statistics, 12.1 Linear Equations; National Institute of Standards and Technology, Nonlinear Least Squares Regression. CC-BY-4.0 (https://creativecommons.org/licenses/by/4.0/). OpenStax Introductory Statistics, Creative Commons Attribution License 4.0. US government work, public domain (https://www.usa.gov/government-works). Work of the U.S. government (National Institute of Standards and Technology).

Cite this

Permanent ID: iil:note:30ptcx29

iinventedlight. 2026. "How a linear equation with one independent variable is written, and how nonlinear least squares extends the linear method." iinventedlight Library, iil:note:30ptcx29, version of 2026-11-27. https://iinventedlight.com/library/notes/linear-equations/. License: CC-BY-4.0.

@misc{iil_note_30ptcx29,
  author = {{iinventedlight}},
  title = {{How a linear equation with one independent variable is written, and how nonlinear least squares extends the linear method}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-27},
  url = {https://iinventedlight.com/library/notes/linear-equations/},
  note = {Permanent ID iil:note:30ptcx29. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/linear-equations.md.