← All notes

Building a linear model, and when weighted least squares is used

Answer: The chapter shows how to build linear models from verbal descriptions. Weighted least squares can often be used when the equal-precision assumption does not hold.

From words to a line

The chapter shows how to build linear models from verbal descriptions.

We can also identify the initial value and the rate of change. In one example, $400 per week is the rate of change, or slope.

How the fit is estimated

NIST reviews statistical methods for model building, including linear and nonlinear least squares. Each data point is treated as equally precise, but that assumption does not hold in every modeling application.

When that assumption does not hold, weighted least squares can often be used. Weighted least squares reflects the behavior of the random errors in the model.

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 College Algebra, 4.2 Modeling with Linear Functions; National Institute of Standards and Technology, Statistical methods for model building. CC-BY-4.0 (https://creativecommons.org/licenses/by/4.0/). OpenStax College Algebra, 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 College Algebra, 4.2 Modeling with Linear Functions; National Institute of Standards and Technology, Statistical methods for model building. CC-BY-4.0 (https://creativecommons.org/licenses/by/4.0/). OpenStax College Algebra, 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:c5v7azr2

iinventedlight. 2026. "Building a linear model, and when weighted least squares is used." iinventedlight Library, iil:note:c5v7azr2, version of 2026-11-27. https://iinventedlight.com/library/notes/modeling-with-linear-functions/. License: CC-BY-4.0.

@misc{iil_note_c5v7azr2,
  author = {{iinventedlight}},
  title = {{Building a linear model, and when weighted least squares is used}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-27},
  url = {https://iinventedlight.com/library/notes/modeling-with-linear-functions/},
  note = {Permanent ID iil:note:c5v7azr2. 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/modeling-with-linear-functions.md.