132
MARKOV PROCESSES
and
hence
has
density
function
f(t)
=
.A(t)
exp{
-A(t)},
t > 0,
where A(t) is the cumulative hazard defined above.
Proof
D
F(t)
= P (T
~
t)
=
1-
P (T > t)
=
1-
P (Nt =
0)
=
1
__
A..:....(t'-)
0
_ex-=p-"'"{_-A_(.:....;t)'""-}
0!
=
1-
exp{
-A(t)}.
In stochastic simulation one will often want to simulate the time to the first (or next)
event
of
such a process. Using the inverse distribution method (Proposition 4.1) we
can simulate
u
~
U(O,
1) and then solve
F(t)
= u
fort.
Rearranging gives A(t) =
-log(1-
u). However, as observed previously,
1-
u has the same distribution as u,
so we just want to solve
A(t)
=
-logu
(5.9)
for
t.
For simple hazards it will often be possible to solve this analytically, but in
general a numerical procedure will be required.
Note that by construction the function A(t) is monotonically increasing.
So, for a
given
u E (0, 1), (5.9) will have at most one solution.
It
is also clear that unless the
function A(
t)
has the property that it tends to infinity as t tends to infinity, there may
not
be
a solution to (5.9) at all. That is, the first event may not happen at all ever.
Consequently, when dealing with the inhomogeneous
Poisson process, attention is
usually restricted to the case where this is true.
In
practice this means that the event
hazard
.A(t)
is not allowed to decay faster than
1/t.
Assuming this to be the case, there
will always be exactly one solution to (5.9). This turns out to be useful
if
rather than
knowing the exact event time, one simply needs to know whether or not the event
has occurred before a given
timet.
For then
itis
clear that
if
A(
t)
+log
u is negative,
the
event has not yet occurred, and hence the event time is greater than t, and
if
it is
positive, the event time is less than
t. The event time itself is clearly the unique root
of
the expression A(
t)
+log
u (regarded as a function
oft).
Then
if
the event time really
is required, it can either be found analytically, or failing this, an interval bisection
method can be used to find
it
extremely quickly. Although this discussion might
currently seem a little theoretical, it turns out to be a very important practical part
of
several hybrid stochastic simulation algorithms for biochemical network simulation,
so is important to understand.
II
·
II
In the context
of
biochemical network simulation, the cumulative hazard,
A(t),
is often known analyt-
ically, which makes the procedure
just
discussed fairly efficient However,
if
only the hazard function,
;>.(
t)
is known, and the cumulative hazard cannot
be
evaluated without numerical integration, then the
procedure is not
at
all efficient.
It
turns out that as long as one can establish an upper bound for
;>.(t)