Unsolvable Linear Algebra System: Need Help with Least Squares Method

  • Context: Undergrad 
  • Thread starter Thread starter WCMU101
  • Start date Start date
  • Tags Tags
    System
Click For Summary
SUMMARY

The discussion centers on solving an unsolvable linear algebra system using the least squares method. The user, Nick, is attempting to find a solution for a system represented by matrices I, N, and G, where G is a matrix of 1s and -1s. With 8 unknowns and only 3 equations, the system is underdetermined, leading to a singular matrix when applying the least squares approach. The community emphasizes the need for more observations to ensure all variables are varied for a valid solution.

PREREQUISITES
  • Understanding of linear algebra concepts, specifically matrix operations.
  • Familiarity with the least squares method for solving linear systems.
  • Knowledge of singular matrices and their implications in linear algebra.
  • Basic experience with data collection and modeling physical phenomena.
NEXT STEPS
  • Research the concept of minimum norm solutions in singular systems.
  • Explore techniques for increasing the number of observations in data collection.
  • Learn about regularization methods to handle singular matrices in least squares problems.
  • Investigate the implications of underdetermined systems in physical modeling scenarios.
USEFUL FOR

Mathematicians, data analysts, and researchers involved in linear algebra applications, particularly those working with least squares methods and physical data modeling.

WCMU101
Messages
14
Reaction score
0
Hey all. I'm not too sharp on linear algebra. I've done a first year university course on it, but that was a couple years ago & didn't go into much detail. Here is the problem:

Matrix I (n,1).
Matrix N (m,1).
Matrix G (n,m).

Now... I is a column vector of computed "double differences". These double differences are composed of original elements N. Matrix G relates the original elements to the double differences, such that:

G*N = I

G is composed of 1s and -1s, here is an example: (See attachment). So using that G:

n = 3, m = 8

So I already know the system can not be solved, since there are 8 unknowns (N) and only 3 equations. Hence I decided I needed more observations & I'll use least squares to get a solution. So for example:

[G G G]T*N = [I1 I2 I3]T

Where G is the same as it was above. And I1,2,3 correspond to the observations at time 1, 2 and 3 respectively. N is still 8x1.

So by least squares:

Let [G G G]T = G_Big

G_BigTG_Big*N = G_BigT[I1 I2 I3]T
N = (G_BigTG_Big)-1G_BigT[I1 I2 I3]T

Problem is (G_BigTG_Big)-1 is singular, I can't take the inverse. It happens for all sizes of G.

I don't know how else to solve this system.

Any help would be greatly appreciated!

Thanks. Nick.
 

Attachments

  • matrix.jpg
    matrix.jpg
    1.7 KB · Views: 430
Physics news on Phys.org
From a mathematical standpoint, singular systems have either no solution or an infinite number of solutions. In the latter case, there is something called a mininum norm solution, but that probably won't be very helpful in a physical experimentation based scenario (i.e. a mathematical solution won't likely represent the physical phenomenon).

Can you tell us more about the physical situation that's being modeled? If you are taking data points and have 8 variables, you need to be able to have data points with all 8 unknowns being varied. Looks like you are collecting data w/o some of the variables changing.
 

Similar threads

  • · Replies 26 ·
Replies
26
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
48
Views
6K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K