I'm trying to formulate a regression problem such that $y=ax^{b}$. Previously, I formulated the $y=ax+b$ like $y=Ac+e$ where $c= \begin{bmatrix} a\\ b \end{bmatrix}$ and $A= \begin{bmatrix} x_1 & 1\\ x_2 & 1\\ . & \\ . & \\ x_n & 1 \end{bmatrix}$
Can I only change the A matrix such that $A= \begin{bmatrix} x_1^{b} & 1\\ x_2^{b} & 1\\ . & \\ . & \\ x_n^{b} & 1 \end{bmatrix}$ and change c as $c= \begin{bmatrix} a\\ 0 \end{bmatrix}$ and write the same formula $y=Ac+e$
Am I correct? Any help would be appreciated. Many thanks
No. You need all the powers in the columns of A.
Write the problem as minimizing $D=\sum_{k=1}^m (y_k-\sum_{j=0}^n a_jx_k^j)^2$.
Set $\partial D/\partial a_j =0$ for each $j$ and see what you get.