Let $G$ be an undirected graph with vertex set $V$ and edge set $E$, and let $w : E \to \mathbb{R}_{\ge 0}$ a weighting of the edges. Define $X$ to be the continuous-time Markov chain on $V$ that, when at vertex $v$, jumps to vertex $u$ with rate equal to the weight on the edge between $u$ and $v$, i.e., with rate $w(\{u,v\})$. Show that the stationary distribution of $X$ is uniform on $V$.
We are called in to inspect a malfunctioning candy factory: about every 5 seconds, the machine ejects a random, Geometrically distributed number of M&Ms (with an average of 5 M&Ms per event). These land on the floor, where they are eaten by children (on a school tour, now uncontrollable) at an average rate of $\alpha$ per second.
Let $M(t)$ be the number of loose, uneaten M&Ms.
Note: For part (2) you may want to use np.linalg.solve
and the fact that if $\pi^T G = 0$ and $\pi^T \mathbf{1} = 1$
then $\pi^T (\mathbf{1}\mathbf{1}^T + G) = \mathbf{1}^T$.
My two-year-old stacks blocks, adding a new block to the existing stack at an average rate of 6 per minute. The chance that a tower of $n$ blocks does not fall over during the course of $t$ minutes is $\exp(-nt)$. Once the tower falls over, it becomes a tower of 0 blocks, and construction continues. Modeling the height of the tower as a continuous time Markov chain, find the following quantities, and check your results with a simulation: