Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

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

  • To: mathgroup at
  • Subject: [mg57381] Re: [mg57329] least-squares problem: B ~ X.A
  • From: Sseziwa Mukasa <mukasa at>
  • Date: Thu, 26 May 2005 04:31:24 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

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