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
- id: C1 claim: The fitted line has the form y = a + bx. source: S1 evidence: "The equation has the form:"
- id: C2 claim: x is the independent variable and y is the dependent variable. source: S1 evidence: "The variable x is the independent variable, and y is the dependent variable."
- id: C3 claim: Nonlinear least squares extends linear least squares to more functions. source: S2 evidence: "Nonlinear least squares regression extends linear least squares regression"
- id: C4 claim: The linear procedure is strongly sensitive to outliers. source: S2 evidence: "a strong sensitivity to outliers."
Sources
- [S1] 12.1 Linear Equations. OpenStax Introductory Statistics. https://openstax.org/books/introductory-statistics/pages/12-1-linear-equations . License: CC-BY-4.0. Accessed 2026-11-27.
- [S2] Nonlinear Least Squares Regression. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/pmd/section1/pmd142.htm . License: US government work, public domain. Accessed 2026-11-27.
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
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.},
}
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.