MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: least-squares problem: B ~ X.A

On May 25, 2005, at 6:02 AM, Pascal wrote:

> Hi,
> I would like to find the solution of the least-squares problem: B ~
> X.A,
> that is, given matrices B and A, find matrix X which minimizes the
> difference between B and X.A
> (typical dimensions, B: 500x60, X: 500x5, A: 5x60)
> Can Mathematica do that?

I believe the pseudoinverse satisfies your requirement, in particular  
X = B.PseudoInverse[A].



  • Prev by Date: Trouble with an integral
  • Next by Date: How to get decent quality plots.
  • Previous by thread: least-squares problem: B ~ X.A
  • Next by thread: Re: least-squares problem: B ~ X.A