Least Squares solution and residuals

Click For Summary

Homework Help Overview

The discussion revolves around solving a set of linear equations using the Least Squares method and calculating the associated residuals. The equations presented involve multiple variables and are part of a context related to surveying.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to understand the Least Squares method and its application to the given equations, expressing uncertainty about matrix transposition and its relevance. Some participants provide definitions and resources, while others suggest practical tools like spreadsheet software for solving the problem.

Discussion Status

The discussion is ongoing, with participants sharing insights about matrix transposition and the Least Squares method. Some guidance has been offered, including links to external resources and suggestions for using software tools, but there is no explicit consensus on the approach to take.

Contextual Notes

The original poster mentions a lack of prior exposure to this type of problem in high school, indicating potential gaps in foundational knowledge that may affect understanding. There is also mention of a friend's limited experience with the Least Squares method, highlighting varying levels of familiarity among participants.

Mr_Orsum
Messages
6
Reaction score
0

Homework Statement



Solve the following linear equations simultaneously by the Least Squares solution and calculate the residuals.

Homework Equations



3x + 2y + z = 5

x + 6y - z = -7

x - y + 2z = 3

5x - 2y = 1


The Attempt at a Solution



This is a question from this guy at work who is studying to be a surveyor. He knows me as the "Maths Genius" because I recently finished high school and got Valedictorian. He is really old and doesn't really get computers/internet. However I didn't learn this sort of thing in high school, and after watching this [http://www.youtube.com/watch?v=8mAZYv5wIcE]khanacademy[/test] vid, I only understood the Matrix forms but know nothing of the A transpose. Any help is appreciated.
 
Physics news on Phys.org
The transpose of a matrix A is a matrix formed from A by interchanging the rows and columns such that row i of matrix A becomes column i of the transposed matrix. The transpose of A is denoted by AT. Multiplying a matrix A with its transposed you get a square matrix.

ehild
 
Hey ehild,

Thanks for the information. I found a bit more info on AT and I understand that part of it now. But I still don't understand the rest. A friend of mine is in his first year at uni and has dealt with some of it but doesn't know anything about the Least squares method or how to calculate residuals. Any info is appreciated, even something to point me in the right direction. I am happy to learn :smile:
 
This least squares problem is more general than the method used for curve fitting and I am familiar with. Try to read:

http://www.mathworks.com/moler/leastsquares.pdf

ehild
 
Last edited by a moderator:
If you have access to EXCEL (or similar open-source spreadsheets) you can solve this directly using the Solver Tool: you want to minimize (3x+2y+z-5)^2+ ... +(5x-2y-1)^2, by varying x, y and z. Solver can handle such problems readily, up to a few hundred variables and equations.

RGV
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 25 ·
Replies
25
Views
9K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
31
Views
5K
  • · Replies 3 ·
Replies
3
Views
11K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K