Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have this confusion about the time complexity of least squares problem. Suppose

minimize $||Ax-b||^2$

Analytical solution = $x^* = (A^TA)^{-1}A^Tb$

computational time proportional to $n^2k$, $A \in \mathbb{R}^{k\times n}$

I didn't get how the computation time is $n^2k$

Here is the source

share|cite|improve this question
$\epsilon$ (\epsilon) is a variable name whereas your $A$ is in the set $\mathbb{R}^{kn}$. So you should use $\in$ (\in). – xavierm02 Mar 8 '13 at 12:19
Also to get $\mathbb{R}$, you can use \mathbb{R}. And I think you should simply use $kn$ instead of $kxn$ but if you really want the multiplication operator to appear, use $\times$ (\times). – xavierm02 Mar 8 '13 at 12:21
In fact you should keep the $\times$ because otherwise, we wouldn't be able to interpret it as a matrix. – xavierm02 Mar 8 '13 at 12:25
check out this link for the reasoning of $n^2k$...… – Learner Mar 8 '13 at 13:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.