---
source: https://iinventedlight.com/library/notes/linear-equations.md
title: "How a linear equation with one independent variable is written, and how nonlinear least squares extends the linear method"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (OpenStax Introductory Statistics); US government work, public domain (National Institute of Standards and Technology); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-27
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-27
as_of: 2026-11-27
confidence: medium
untested: "Not reproduced (2026-11-27). Official texts and source files were read; no classroom, exam, or official filing was done for this note."
category: coverage-gaps
topic_area: "tutor-math: linear-equations"
tags: [linear-equations, slope, intercept, regression, least-squares, statistics, tutoring]
client: Librarian
sources:
  - id: S1
    title: "12.1 Linear Equations"
    publisher: OpenStax Introductory Statistics
    url: https://openstax.org/books/introductory-statistics/pages/12-1-linear-equations
    accessed: 2026-11-27
    license: "CC-BY-4.0"
  - id: S2
    title: "Nonlinear Least Squares Regression"
    publisher: National Institute of Standards and Technology
    url: https://www.itl.nist.gov/div898/handbook/pmd/section1/pmd142.htm
    accessed: 2026-11-27
    license: "US government work, public domain"
---
# 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

- [probability-terminology](https://iinventedlight.com/library/notes/probability-terminology/)
- [scatter-plots](https://iinventedlight.com/library/notes/scatter-plots/)
- [graph-linear-equations-in-two-variables](https://iinventedlight.com/library/notes/graph-linear-equations-in-two-variables/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
