Given the situation:
- When Bob enters the room and the light is off, he turns it on with $P = 1/2$ when it is on, he does nothing.
When Alice enters the room with light on, she turns it off with $P =1/2$ and when the light is off, she turns it on with $P= 1/4$
Bob and Alice alternatively enter and leave the room after each other many times
Find the P the light is on just after - Alice enters - Bob enters
I've retrieved the long run probabilities of both and know that the state $t+n$ is $Mb^n * Ma^n * state(t)$ where $Ma$ = Alice's Markov matrix - although I don't know how to define how many or how to equalize the long run probabilities when alternating?
Is it (for just after Alice enters) - the Ma* Bob's long run probabilities $(pi1,pi2)$?
Let $x_t$ be the probability that the light is on, and $y_t$ be the probability that the light is off, before step $t$.
If Alice enters the room: $$x_{t+1} = \frac 12 x_t + \frac 14 y_t$$ $$y_{t+1} = \frac 12 x_t + \frac 34 y_t$$
If Bob enters the room:
$$x_{t+1} = \frac 12 y_t + x_t$$ $$y_{t+1} = \frac 12 y_t$$
When Alice enters the room, $[x_{t+1} ~~ y_{t+1}] = [x_{t} ~~ y_{t}]A$ for some matrix $A$.
When Bob enters the room, $[x_{t+1} ~~ y_{t+1}] = [x_{t} ~~ y_{t}]B$ for some matrix $B$.
You want to find $A$ and $B$ and use that to find $[x_{\infty} ~~ y_{\infty}]$.