---
source: https://iinventedlight.com/library/notes/modeling-with-linear-functions.md
title: "Building a linear model, and when weighted least squares is used"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (OpenStax College Algebra); 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 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)."
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: modeling-with-linear-functions"
tags: [linear-models, slope, intercept, least-squares, statistics, algebra, tutoring]
client: Librarian
sources:
  - id: S1
    title: "4.2 Modeling with Linear Functions"
    publisher: OpenStax College Algebra
    url: https://openstax.org/books/college-algebra/pages/4-2-modeling-with-linear-functions
    accessed: 2026-11-27
    license: "CC-BY-4.0"
  - id: S2
    title: "Statistical methods for model building"
    publisher: National Institute of Standards and Technology
    url: https://www.itl.nist.gov/div898/handbook/pmd/section1/pmd143.htm
    accessed: 2026-11-27
    license: "US government work, public domain"
---
# 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

- [linear-equations](https://iinventedlight.com/library/notes/linear-equations/)
- [graph-linear-equations-in-two-variables](https://iinventedlight.com/library/notes/graph-linear-equations-in-two-variables/)
- [slope-intercept-form](https://iinventedlight.com/library/notes/slope-intercept-form/)

## Claims

- id: C1
  claim: The section shows how to build linear models from verbal descriptions.
  source: S1
  evidence: "Build linear models from verbal descriptions."

- id: C2
  claim: In the example, $400 per week is the slope, or rate of change.
  source: S1
  evidence: "$400 per week is the rate of change, or slope"

- id: C3
  claim: NIST reviews statistical methods for model building, including least squares.
  source: S2
  evidence: "What are some of the different statistical methods for model building?"

- id: C4
  claim: Weighted least squares focuses on the behavior of the random errors.
  source: S2
  evidence: "weighted least squares reflects the behavior of the random errors in the model"

## Sources

- [S1] 4.2 Modeling with Linear Functions. OpenStax College Algebra. https://openstax.org/books/college-algebra/pages/4-2-modeling-with-linear-functions . License: CC-BY-4.0. Accessed 2026-11-27.

- [S2] Statistical methods for model building. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/pmd/section1/pmd143.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 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.

---

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