I have a state which is a list of probabilities for next states as follows:
$\left[0, \frac {1}{2}, 0, 0, \frac{1}{2}\right]$
I realise that the second element here actually has a $\left(\frac 2 7\right)$ chance of looping back to this state. So I can remove it like so:
$\frac 1 2 -\left(\frac 1 2 \times \frac 2 7\right)$
Which gives me $\frac 5 {14}$, which is correct in this case, but I might still have the wrong method for others
I want the other element to equal $\frac 9 {14}$, which I have been able to do, but not in the general case.
Hope this is clearer.