How to minimize a simple quadratic function of multiple variables ?

Click For Summary
SUMMARY

The discussion focuses on minimizing a quadratic function with multiple variables by approximating a matrix A using the outer product of two vectors, y and x. The objective is to minimize the function s = ∑(yixj - ai,j)², where i and j index the matrix elements. While gradient descent is a viable solution, the user seeks an analytical approach to solve the problem due to its apparent simplicity. The analogy to linear regression suggests that established techniques in that domain may provide insights into finding an analytical solution.

PREREQUISITES
  • Understanding of quadratic functions and their properties
  • Familiarity with outer products and matrix approximations
  • Knowledge of gradient descent optimization techniques
  • Basic concepts of linear regression and its mathematical foundations
NEXT STEPS
  • Research analytical methods for solving quadratic minimization problems
  • Explore matrix factorization techniques relevant to outer products
  • Study the relationship between linear regression and matrix approximation
  • Learn about alternative optimization algorithms beyond gradient descent
USEFUL FOR

Mathematicians, data scientists, and machine learning practitioners interested in optimization techniques for multi-variable functions and matrix approximations.

darwid
Messages
2
Reaction score
0
Hi everybody,

I'm trying to minimize a function with multiple variables. My goal is to approximate on the L2 norm a matrix by the outer product of 2 vectors (or is it called tensor product ?).

So I have to determine a vector y = (y1,...,yn) and a vector x = (x1,...,xm) such that their outer product approximates a given matrix A = (ai,j), i=1..n, j=1..m

What I want to minimize is thus:
s = \sum(yixj-ai,j)2

Obviously I can solve this using a gradient descent and it works.

But what I'm looking for is an analytical solution. The formulation looks simple so I expect there must be some analytical way of solving this, it's just that I don't really know how to approach this problem due to the many variables.

--
Darwid
 
Physics news on Phys.org

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
31
Views
4K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
4K