# Solving a system of 4 equations

• Mar 6th 2012, 04:09 PM
mybrohshi5
Solving a system of 4 equations
I am trying to solve a problem for my stochastic process class and I am running into some problems solving the system of equations I have obtained from my transition matrix. It has been a while since I have taken algebra, or any class dealing with solving systems of equations, so please forgive me for my easy question (Rofl)

I am trying to solve $\displaystyle \pi * P = \pi$ where $\displaystyle \pi = (\pi_0, \pi_1, \pi_2, \pi_3)$ and $\displaystyle P = \left( \begin{array}{cccc} 0.7&0.3&0&0 \\ 0&0&0.4&0.6 \\ 0.5&0.5&0&0 \\ 0&0&0.2&0.8 \end{array} \right)$

$\displaystyle \pi * P = (.7\pi_0+.5\pi_2,.3\pi_0+.5\pi_2,.4\pi_1+.2\pi_3,. 6\pi_1+.8\pi_3) = (\pi_0, \pi_1, \pi_2, \pi_3)$

So I basically need help solving this system of equations:

$\displaystyle .7\pi_0+.5\pi_2= \pi_0$
$\displaystyle .3\pi_0+.5\pi_2 = \pi_1$
$\displaystyle .4\pi_1+.2\pi_3 = \pi_2$
$\displaystyle .6\pi_1+.8\pi_3 = \pi_3$

Also note: $\displaystyle \pi_0 + \pi_1 + \pi_2 + \pi_3 = 1$

• Mar 6th 2012, 07:47 PM
Wilmer
Re: Solving a system of 4 equations
Quote:

Originally Posted by mybrohshi5
$\displaystyle .7\pi_0+.5\pi_2= \pi_0$
$\displaystyle .3\pi_0+.5\pi_2 = \pi_1$
$\displaystyle .4\pi_1+.2\pi_3 = \pi_2$
$\displaystyle .6\pi_1+.8\pi_3 = \pi_3$

"Unmess(!)" your equations by changing variables to a,b,c,d and multiplying by 10:
7a + 5c = 10a
3a + 5c = 10b
4b + 2d = 10c
6b + 8d = 10d

Now play with that "silly" system (Wink)
• Mar 7th 2012, 06:31 AM
mybrohshi5
Re: Solving a system of 4 equations
Thank you Wilmer. That made it much easier to solve :)

Answer should be a=1/4, b=c=3/20, and d=9/20

To check: a+b+c+d = 1 :D