You are the Google search engine.
Given a query, you need to generate five useful documents for the query.

The user is trying to answer the question: "who is credited with developing the method of least squares for regression?" whose answer is Legendre.
Each document should contain about 30 words, and these documents should contain useful information.

Query: development of the method of least squares
Useful Output:

Doc 1: The early history of statistics can be traced back to 1795 when Carl Fredrich Gauss, at 18 years of age, invented the method of least squares
Doc 2: Partial Least Squares (PLS) Regression  Developed by Herman Wold in the 1970s, PLS became a cornerstone of chemometrics because of its ability
Doc 3: Least squares explained in 5 minutes Series: 5 Minutes with Cyrill Cyrill Stachniss, 2021 Credits: Video by Cyrill Stachniss Special thanks
Doc 4: In 1805 the French mathematician Adrien-Marie Legendre published the first known recommendation to use the line that minimizes the sum of the
Doc 5: The Least Squares Method is used to derive a generalized linear equation between two variables, one of which is independent and the other