Nepedia
Back to Discover
Independent Reader
🔢

Least squares

math Maturity 11-13 Next article →

When we collect facts, they often look like dots on a page.

Linear least squares2
Linear least squares2

These dots rarely form a perfect line. There are often tiny gaps between the dots and our path. We call these gaps residuals.

Linear regression residuals
Linear regression residuals

The least squares method helps us find the best path. It works by making the sum of these squared gaps as small as possible. This helps us find a model that fits the data well.

Many smart people studied this idea. In 1805, Legendre wrote a clear guide on how to use it. A man named Gauss also worked on it. He used this math to find a space rock called Ceres.

Bendixen - Carl Friedrich Gauß, 1828
Bendixen - Carl Friedrich Gauß, 1828

The rock was lost behind the Sun. Gauss used least squares to predict where it would be. His math worked! He was only 24 years old at the time. Later, Laplace used the method to help explain how planets move. Today, we still use these steps to see patterns in our world.

159 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (6)
File:Linear least squares2.svg
Linear least squares2.svg
File:X33-ellips-1.svg
X33-ellips-1.svg
File:Bendixen - Carl Friedrich Gauß, 1828.jpg
Bendixen - Carl Friedrich Gauß, 1828.jpg
File:Linear regression residuals.svg
Linear regression residuals.svg
File:Linear regression residuals parabolic.svg
Linear regression residuals parabolic.svg
File:Linear regression residuals heteroscedastic.svg
Linear regression residuals heteroscedastic.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.