Differentiate wrt , so
and set and . Similarly differentiate wrt for the other result. ∎
Differentiate wrt to get
and set . ∎
This is often expressed as
or
The equations written as are simultaneous differential equations which may be solved for the elements .
The two state chain has
This only supplies one independent differential equation. However, as is a distribution, we also have . The first equation gives
To solve this, suppose first that were a constant, , so that ; then .
Next, consider in general that is varying about so set . On substituting, cancels and
which leads to
The solution to this differential equation is therefore
Provided , .
Young Hercules is fighting a two-headed hydra. Consider any small time interval, of length . The probability that Hercules will chop off a head in the interval , is approximately . If the hydra has just one head then the other head will grow back; the probability that the head will grow back in is approximately . If the hydra has no heads then it is dead and the fight ends. The hydra’s heads act independently; for each head the probability that it will kill Hercules in is approximately . If Hercules dies then the fight ends.
Write down the rate matrix for the continuous-time Markov chain with the following states; 0) The hydra is dead, 1) the hydra has 1 head, 2) the hydra has 2 heads, 3) Hercules is dead.
Write down a set of four differential equations for the
components
() of .
Assume that Hercules and each hydra head are evenly matched so . Set and . Show that and find a similar equation for .
As the fight commences the hydra has two heads. Solve the differential equations for and and hence show that
Hence find and show that the probability that Hercules kills the hydra is
so
. Solving the equations in (iii) gives
But and . Thus
so
By the initial condition ,
Since state 0 is absorbing the probability the Hercules wins is the probability that the chain is eventually in state 0. Take the limit as to see this is