I was studying policy evaluation in Markov Decision Processes, and came across a way of solving linear equations. Basically given a set of linear equations in n variables, one makes random guesses for the n variables. Then in the next iteration, one updates those guesses for each variable by using the values of the previous iteration. Illustrating the method , consider the following linear equations: $$x = 1+0.5y$$ $$y = x+3$$ Guess $x = 3,y = 2$. In the next iteration, $x$ is set to $2$ (Evaluate the RHS of the first equation) and similarly $y$ is set to $6$. This sequence of steps will converge to the solution $(5,8)$ (You can verify this).
Such a method does work, given I solved a similar problem using iteration where a sequence was given with $a_0 = 1$ and $a_{12} = 12$, with the condition that each element is one more than the average of the adjacent elements. I had to find the middle element, for which I solved the system of linear equations using iteration.
Can someone give some rigorous arguments regarding the convergence conditions, and proofs for such a method? I tried a proof using some matrix algebra:
Given a matrix equation $Ax = B$, one can formulate this to be minimising the function $(B-Ax)^T(B-Ax)$. So one can do gradient descent on $x$, where the gradient with respect to $x$ is $A^T(Ax-B)$. So the update rule becomes $$ x_{n} = x_{n-1} + A^T(B-Ax_{n-1}) $$
Such a descent will converge to a local minima, which given the convex optimisation function, will be the global minima (not necessarily unique).
Now if use the iteration method, one can define the problem the same way - minimising the above convex function. However the update rule this time would be $$ x_{n} = x_{n-1} + D^{-1}(B-Ax_{n-1}) $$ where $D$ is the square matrix with all non diagonal coefficents 0 and diagonal coefficients of $A$
This is because for each equation one takes all the other variables to the RHS, so the system becomes $Dx_{n} = B - NDx_{n-1}$, where $ND$ is the non diagonal coefficient matrix ($D + ND = A$). Putting $ND = A -D$ , one gets the above update rule.
This is not necessarily in the direction of the gradient. How should I proceed further?