105
Views
0
CrossRef citations to date
0
Altmetric
Research Article

Sensitivities of some performance measures of quasi-birth-and-death processes

ORCID Icon, ORCID Icon &
Received 30 Dec 2022, Accepted 27 Feb 2024, Published online: 02 Apr 2024

Abstract.

Quasi-birth-and-death processes (QBDs) form a class of Markovian models with many applications in which the level-variable X(t) records the number of individuals in some system and a phase-variable φ(t) records some additional information about the system. We study the sensitivity of various performance measures of QBDs with respect to the perturbation of a generator matrix. Thereby, we extend the sensitivity analysis of level-dependent QBDs in Gomez-Corral and Lopez-Garcia[Citation4] and develop results with a focus on applications in modelling healthcare systems.

1. Introduction

1.1. Motivating example: the hospital

The functioning of a hospital can be successfully modeled via a quasi-birth-and-death process. Such a model of a hospital captures random arrivals and departures, the random length of stay of an individual patient, and possibly different types of patients (i.e., complex and non-complex). Based on the occupation rates, the hospital must adjust their decisions to deliver health services to the community. Undoubtedly, hospital managers face the hard problem of improving hospital performance. The challenge also comes from the fact that “hospital performance” is a concept that is not clearly defined and based on not only (or even primarily) financial criteria. Hospital performance evaluation takes into account many factors, such as mortality, safety of care, readmission rate, patient experience, and service times. These measures depend on the number of patients in the hospital, where both too low and too high numbers come with challenges for a hospital. On the one hand, there may not be enough demand to ensure a wide array of specialists, and on the other hand, there is a risk of congestion. Both situations result in worse outcomes for patients, greater expense for the hospital, and a heavier load on hospital staff.

Hospitals run at various levels of urgency depending on current occupancy levels. Applying different policies, like scheduling on-call physicians, planning/cancelling elective surgeries, etc., allows for adjusting to the urgency level and impacting the arrival and departure rates. It is crucial to know how sensible various performance metrics are with respect to these hospital decisions in order to help stabilize the hospital at the optimal level.

1.2. Motivating example: two bacterial strains

We recall an example from Lipsitch et al.[Citation10] and Gómez-Corral and López-García[Citation4] about two bacterial strains: antibiotic-sensitive (strain 1) and antibiotic-resistant (strain 2). These bacterial strains spread among patients in a hospital such that the infection by one bacterial strain provides immunity against the other. Patients in the hospital are routinely provided antibiotics 1 and 2, regardless of whether these patients are infected or not by bacteria; antibiotic 1 is only effective against the AS bacterial strain, whereas antibiotic 2 is effective against both strains of bacteria. There might be effects of spontaneous clearance of bacteria and contributions of antibiotics 1 and 2 to this recovery. In such a situation, we might be interested in the outbreak for the type-k strain and global outbreak (length). Similarly as in Section 1.1, the transition matrix, and hence performance measures of interest, can be impacted by changes in administering antibiotics.

1.3. Aim and organization of the paper

Quasi-birth-and-death processes (QBDs) are the fundamental class of Markovian models in the theory of matrix-analytic methods, with a level-variable X(t) and a phase-variable φ(t) forming a two-dimensional state space. In many applications of the QBDs, the phase variable φ(t) is used to model information about the underlying environment that drives the evolution of some systems. A QBD is a model that lends itself to representing healthcare systems in a natural, intuitive manner (see and the above motivating example), and so the application potential of the QBDs in this area is immense, as demonstrated by Heydar et al.[Citation6].

Figure 1. Evolution of a QBD {(X(t),φ(t)):t0} modeling the total number of patients X(t) and some information φ(t) about the system e.g. (here) the number of patients of a particular class.

Figure 1. Evolution of a QBD {(X(t),φ(t)):t≥0} modeling the total number of patients X(t) and some information φ(t) about the system e.g. (here) the number of patients of a particular class.

The aim of this article is to study the sensitivities of various performance measures of QBDs with respect to a parameter dependent generator matrix. Thereby, we extend the sensitivity analysis of level-dependent QBDs in Gomez-Corral and Lopez-Garcia[Citation4] to a wide range of metrics of interest, and focus on applications in healthcare systems. This work also lays the foundation or computing and analyzing such sensitivities given a hospital data set[Citation15]. We note that the ideas presented in this article about sensitivities of continuous time QBDs, can be successfully applied in discrete time case.

This article is organized as follows. In Section 2, we describe the model in use, namely level-dependent QBD. In Section 3, we present performance metrics of interest and the first results concerning these metrics. In Section 4, we derive sensitivities and illustrate these quantities in several examples.

2. Level-dependent QBD model

Suppose that {(X(t),φ(t)):t0} is a continuous-time Markov chain (CTMC) with a two-dimensional state (X(t), φ(t)) consisting of the level variable X(t) and the phase variable, φ(t), taking values in an irreducible state space given by S={(n,i):n=0,1,2,,N;i=0,1,,mn}, and with transition rates recorded in the generator matrix Q=[q(n,i)(n,i)](n,i),(n,i)S made of block matrices Q[n,n]=[q(n,i)(n,i)]i=0,1,,mn,i=0,1,,mn such that Q=[Q[n,n]]=[Q[0,0]Q[0,1]00Q[1,0]Q[1,1]Q[1,2]000Q[2,1]Q[2,2]Q[2,3]00000Q[N1,N2]Q[N1,N1]Q[N1,N]00000Q[N,N1]Q[N,N]] so that only transitions to the neighboring levels are possible. We refer to such a process as a continuous-time level-dependent quasi-birth-and-death process (LD-QBD), bounded from above by level N. The level variable X(t) may be used to record the number of individuals in some system at time t, while φ(t) may be used to record some additional information about the system at time t.

Such a LD-QBD is a continuous-time Markov chain (CTMC), and so standard expressions from the theory of CTMCs apply. However, as the state space 𝒮 may be very large, we apply methods from the theory of matrix-analytic methods instead, resulting in efficient computational methods. We also consider the case when the LD-QBD does not have an upper boundary N.

We note that a range of various transient and stationary performance measures of such defined LD-QBD can be readily derived using the existing methods in the literature of matrix-analytic methods, see Grant[Citation5], Ramaswami[Citation13], and Joyner and Fralix[Citation8]. Since these performance measures depend on the parameters of the model, we are interested in the sensitivity analysis of these measures.

Suppose that the generator 𝐐(𝜽) of a LD-QBD depends on some parameters recorded in a row vector θ=[θi]i=1,,k. Various stationary (long-run) and transient (time-dependent) quantities in the analysis of the LD-QBDs, recorded as matrices 𝐀(𝜽) = [Aij(𝜽)], can then be expressed using expressions involving 𝐐(𝜽), and so also depend on 𝜽. We derive the sensitivity analysis of relevant quantities, where given a vector of parameters θ=[θi]i=1,,k and matrix 𝐀(𝜽), we write A(θ)θ=[A(θ)θ1A(θ)θk].

3. Performance measures

In this section, we consider the following key quantities in the analysis of the LD-QBDs:

  1. the stationary distribution 𝝅 in Subsection 3.1;

  2. first hitting times to lower levels in Subsection 3.2;

  3. first hitting times to higher levels in Subsection 3.3;

  4. sojourn times in specified sets in Subsection 3.4;

  5. the distribution of the process observed at time t in Subsection 3.5.

We follow the approach summarized in Grant[Citation5], which is built on the results in Ramaswami[Citation13], Joyner and Fralix[Citation8], and Phung-Duc et al.[Citation12]. We also state expressions for the relevant Laplace-Stieltjes transforms (LSTs) of various quantities. These can be inverted using numerical inversion techniques by Abate and Whitt[Citation1], Den Iseger[Citation3], or Horváth et al.[Citation7], to compute the corresponding quantities. We refer a reader to [Citation2, Citation6, Citation11] for computations of stationary distribution, sojourn times, and applications.

3.1. Stationary distribution

For all n=0,1,,N, i=0,1,,mn, define the limiting probabilities π(n,i)=limtP(X(t)=n,φ(t)=i) recording the long-run proportions of time spent in states (n, i), and collecting these in a row vector π=[πn]n=0,1,,N, where πn=[π(n,i)]i=0,1,,mn.

To evaluate 𝝅, we follow the approach in Grant[Citation5], and write the expressions for 𝝅n in terms of 𝝅N (rather than in terms of 𝝅0, since potential close-to-zero values in 𝝅0 may lead to computational errors). We consider matrices R^(n)=[R^ij(n)]i=0,1,,mn+1,j=0,1,,mn recording the expected times R^ij(n) spent in states (n, j), given the process starts in state (n+1,i), before returning to level n+1. Then, for n=0,1,,N1, we know that R^(0)(s)=Q[1,0](Q[0,0]sI)1,R^(n)(s)=Q[n+1,n](R^(n1)(s)Q[n1,n]+Q[n,n]sI)1 with R^(n)=R^(n)(0). Let (1) πn=πn+1R^(n)=πNk=N1nR^(k).(1)

Finally, 𝝅N is the solution of the set of equations, (2) .{πN(R^(N1)Q[N1,N]+Q[N,N])=0πN(1+n=0N1k=N1nR^(k)1)=1.(2)

Remark 1.

Similar methods may be applied to derive 𝝅 for a LD-QBD in which the level variable X(t)≥0 has no upper boundary N. First, following Phung-Duc et al.[Citation12], find a sufficiently large truncation level L such that ||R^L(n)R^L1(n)||<ϵ for a required criterion ϵ > 0, where R^L(n) and R^L1(n) denote matrix R^(n) computed for a LD-QBD with an upper boundary N = L and N=L1, respectively. Next, apply the approximation R^(n)R^L(n). This technique may be applied to the remaining quantities.

3.2. First hitting times to lower levels

We analyze here the distribution of time for the process to first reach level nk and does so in state (nk,j) given start from state (n, i). Let θn=inf{t>0:X(t)=n} and, for any n=1,,N, k=1,,n, let gn,nk(t)=[gijn,nk(t)]i=1,,mn;j=1,,mnk be the matrix such that the entry (3) gijn,nk(t)=tP(θnkt,φ(θnk)=j | X(0)=n,φ(0)=i)(3) records the probability density that the process first visits level nk at time t and does so in phase j, given that it starts from level n in phase i. We also define Gn,nk(s)=[Gijn,nk(s)]i=1,,mn;j=1,,mnk where (4) Gijn,nk(s)=0estgijn,nk(t)dt(4) is the corresponding Laplace–Stieltjes transform (LST) matrix. Further, let Gn,nk=Gn,nk(0) and En,nk=sGn,nk(s)|s=0 be the probability and expectation matrix, respectively.

To evaluate Gn,nk(s) and Gn,nk, we apply the following recursion summarized in Grant[Citation5], (5) GN,N1(s)=(Q[N,N]sI)1Q[N,N1],(5) (6) Gn,n1(s)=(Q[n,n]sI+Q[n,n+1]Gn+1,n(s))1Q[n,n1]for n=N1,,1(6) and (7) Gn,nk(s)=Gn,n1(s)Gn1,n2(s)××Gnk+1,nk(s).(7)

By the above recursion, it follows that En,nk=En,n1Gn1,n2××Gnk+1,nk++Gn,n1Gn1,n2××Gnk+2,nk+1Enk+1,nk=m=nnk+1(=nm+1G,1)Em,m1(=m1nk+1G,1).

Then, by rearranging (Equation5) and then taking /s at s = 0, we get (Q[N,N]sI)GN,N1(s)=Q[N,N1]GN,N1+Q[N,N](EN,N1)=0Q[N,N]EN,N1=GN,N1 which implies that (8) EN,N1=(Q[N,N])1GN,N1.(8)

Furthermore, by (Equation6), for n=N1,,1 (Q[n,n]sI+Q[n,n+1]Gn+1,n(s))Gn,n1(s)=Q[n,n1](IQ[n,n+1]En+1,n)Gn,n1+(Q[n,n]+Q[n,n+1]Gn+1,n)(En,n1)=0(Q[n,n]+Q[n,n+1]Gn+1,n)En,n1=(IQ[n,n+1]En+1,n)Gn,n1 and we conclude that (9) En,n1=(Q[n,n]+Q[n,n+1]Gn+1,n)1(I+Q[n,n+1]En+1,n)Gn,n1.(9)

3.3. First hitting times to higher levels

We analyze here the distribution of time for the process to first reach level n+k and does so in state (n+k,j) given start from state (n0, i). For any n=0,1,,N1, k=1,,Nn, let hn,n+k(t)=[hijn,n+k(t)]i=1,,mn;j=1,,mn+k be the matrix such that (10) hijn,n+k(t)=tP(θn+kt,φ(θn+k)=j | X(0)=n,φ(0)=i)(10) records the probability density that the process first visits level n+k at time t and does so in phase j, given that it starts from level n in phase i. Let Hn,n+k(s)=[Hijn,n+k(s)]i=1,,mn;j=1,,mn+k given by (11) Hijn,n+k(s)=0esthijn,n+k(t)dt,(11) be the corresponding LST matrix, and Hn,n+k=Hn,n+k(0) and En,n+k=sHn,n+k(s)|s=0 be the probability and expectation matrix, respectively.

To evaluate Hn,n+k(s) and Hn,n+k, we apply the following recursion summarized in Grant[Citation5], (12) H0,1(s)=(Q[0,0]sI)1Q[0,1],(12) (13) Hn,n+1(s)=(Q[n,n]sI+Q[n,n1]Hn1,n(s))1Q[n,n+1]for n=N1,,1(13) and then let (14) Hn,n+k(s)=Hn,n+1(s)Hn+1,n+2(s)××Hn+k1,n+k(s).(14)

By the above recursion, it follows that (15) En,n+k=En,n+1Hn+1,n+2××Hn+k1,n+k++Hn,n+1Hn+1,n+2××Hn+k2,n+k1En+k1,n+k=m=nn+k1(=nm1H,+1)Em,m+1(=m+1n+k1H,+1),(15) where, by (Equation12), analogly to the corresponding computations for (Equation8), (16) E0,1=(Q[0,0])1H0,1(16) and by (Equation13), for n=1,,N1, (17) En,n+1=(Q[n,n]+Q[n,n1]Hn1,n)1(I+Q[n,n1]En1,n)Gn,n+1.(17)

3.4. Sojourn times in specified sets

Suppose that the process starts from state (n, i) at time 0. Let A{0,1,,N} be some set of desirable or undesirable levels, such as A={0,1,,A} or A={B,B+1,,N} where A and B are some thresholds.

Let GAn,nk(s)=[GA;ijn,nk(s)]i=1,,mn;j=1,,mnk be the LST matrix of the distribution of the total time spent in levels in the set 𝒜 during a sample path corresponding to Gijn,nk. Let GAn,nk=GAn,nk(0) and EAn,nk=sGAn,nk(s)|s=0 be the probability and expectation matrix, respectively.

Similarly, let HAn,n+k(s)=[HA;ijn,n+k(s)]i=1,,mn;j=1,,mn+k be the LST matrix of the distribution of the total time spent at levels in the set 𝒜 during a sample path corresponding to Hijn,n+k. Let HAn,n+k=HAn,n+k(0) and EAn,n+k=sHAn,n+k(s)|s=0 be the probability and expectation matrix, respectively.

By the decomposition of a sample path analogous to Section 3.2, we have, (18) GAn,nk(s)=GAn,n1(s)GAn1,n2(s)××GAnk+1,nk(s),(18) where (19) GAN,N1(s)=(Q[N,N]sI×I(NA))1Q[N,N1],(19) and for n=N1,,1, (20) GAn,n1(s)=(Q[n,n]sI×I(nA)+Q[n,n+1]GAn+1,n(s))1Q[n,n1],(20) where I(⋅) is an indicator function.

Similarly, by the decomposition of a sample path analogous to Section 3.2, we have, (21) HAn,n+k(s)=HAn,n+1(s)HAn+1,n+2(s)××HAn+k1,n+k(s).(21) where (22) HA0,1(s)=(Q[0,0]sI×I(0A))1Q[0,1],(22) and for n=N1,,1, (23) HAn,n+1(s)=(Q[n,n]sI×I(nA)+Q[n,n1]Hn1,n(s))1Q[n,n+1].(23)

3.5. Distribution at time t

Suppose that the QBD starts at some level n0=0,1,2,N in some phase i0=0,1,,mn0 according to the initial distribution of phases α=[αj]j0,1,,mn0 such that αj=P(φ(0)=j).

Define vector f(t)=[fn(t)]n=0,1,,N such that (24) [fn(t)]j=Pα(Xt=n,φ(t)=j)(24) is the probability that at time t the process is on level n and in phase j, given 𝜶; and the corresponding Laplace Transform (LT) vector f~(s)=[f~n(s)]n=0,1,,N such that (25) [f~n(s)]j=0estPα(Xt=n,φ(t)=j)dt.(25)

The standard Kolmogorov differential equations (DEs) of the process are, (26) f0(t)t=f0(t)Q[0,0]+f1(t)Q[1,0],fn(t)t=fn(t)Q[n,n]+fn1(t)Q[n1,n]+fn+1(t)Q[n+1,n]for n=1,,N1fN(t)t=fN(t)Q[N,N]+fN1(t)Q[N1,N](26) with the initial condition fn0(0)=α, and 𝐟n(0) = 𝟎 for nn0. To evaluate f~(s), we apply the following recursion summarized in Grant[Citation5], (27) f~n0(s)=α((Q[n0,n0]sI)+R^(n01)(s)Q[n01,n0]+R~(n0+1)(s)Q[n0+1,n0])1(27) and then for n > n0, (28) f~n(s)=αHn0,n(s)((Q[n,n]sI)+R^(n1)(s)Q[n1,n]+R~(n+1)(s)Q[n+1,n])1(28) and for n < n0, f~n(s)=αGn0,n(s)((Q[n,n]sI)+R^(n1)(s)Q[n1,n]+R~(n+1)(s)Q[n+1,n])1 with R~(n)(s)=R~nR~n+1R~N(0),R~n(X)=Q[n1,n](Q[n,n]sI+XQ[n+1,n])1 and R^(n)(s)=R^nR^n1R^0(0),R^n(X)=Q[n+1,n](XQ[n1,n]+Q[n,n]sI)1.

4. Sensitivity analysis

4.1. Examples

We consider simple examples to illustrate the theory. We state the expressions for the derivatives θQ(θ) since the derivatives θ of quantities of interest can be expressed in terms of these.

Example 1.

As a simple example, suppose that X(t) records the total number of customers in the system at time t. Let φ(t){1,,k} be the phase of the environment that drives the evolution of the system, so that λφ(t) > 0 is the arrival rate to the system (provided X(t) < N), and μφ(t) > 0 is the service rate (provided X(t) > 0). Assume that {φ(t):t0} is a continuous-time Markov chain with generator 𝐓 = [Tij]. The system can be modeled as a LD-QBD with generator Q(θ)=[q(θ)(n,i)(m,j)] that depends on the vector of parameters θ=[λ1,,λk,μ1,,μk], such that q(θ)(n,i)(m,j)={Tijwhen ji,m=n;λiwhen j=i,m=n+1,n<N;nμiwhen j=i,m=n1,n>0;Tiiλinμiwhen j=i,m=n,0<n<N;Tiiλiwhen j=i,m=n=0;Tiinμiwhen j=i,m=n=N;0otherwise.

Then θQ(θ) is given by λiq(θ)(n,i)(m,j)={1when j=i,m=n+1,n<N;1when j=i,m=n,0n<N;0otherwise; and μiq(θ)(n,i)(m,j)={nwhen j=i,m=n1,n>0;nwhen j=i,m=n,0<nN;0otherwise.

Example 2.

Suppose that customers of type k{1,2} arrive at the system with capacity N at the total rate λk > 0, and are served at rate μk > 0 per customer. The system can be modeled as a LD-QBD {(X(t),φ(t)):t0} where X(t) records the total number of customers and φ(t)≤X(t) records the number of customers of type 1 in the system at time t. Then the generator Q(θ)=[q(θ)(n,i)(m,j)] that depends on the vector of parameters θ=[λ1,λ2,μ1,μ2], is such that q(θ)(n,i)(m,j)={λ2when j=i,m=n+1,n<N;λ1when j=i+1,m=n+1,n<N;(ni)μ2when j=i,m=n1,n>0;iμ1when j=i1,m=n1,n>0;(λ1+λ2+(ni)μ2+iμ1)when j=i,m=n,0<n<N;(λ1+λ2)when j=i,m=n=0;((ni)μ2+iμ1)when j=i,m=n=N;0otherwise.

Then θQ(θ) is given by λ1q(θ)(n,i)(m,j)={1when j=i+1,m=n+1,n<N;1when j=i,m=n,0n<N;0otherwise; and λ2q(θ)(n,i)(m,j)={1when j=i,m=n+1,n<N;1when j=i,m=n,0n<N;0otherwise; and μ1q(θ)(n,i)(m,j)={iwhen j=i1,m=n1,n>0;iwhen j=i,m=n,0<nN;0otherwise. and μ2q(θ)(n,i)(m,j)={(ni)when j=i,m=n1,n>0;(ni)when j=i,m=n,0<nN;0otherwise.

Example 3.

In this example, we consider a model in which the generator is perturbed. Suppose that the generator of a LD-QBD is a function of ϵ=[ϵi]i=1,,k>0 such that (29) Q(ϵ)=Q+i=1kϵi×Q~i(29) is a generator for sufficiently small ||ϵ||>0. Then Q(ϵ)ϵ=[Q(ϵ)ϵ1Q(ϵ)ϵk]=[Q~1Q~k], and the derivatives ϵ of various quantities are computed at ϵ = 𝟎.

4.2. Stationary distribution

In computing sensitivities, we will use these key expressions for the matrix derivative calculus, namely the derivative of a matrix product in (Equation30) and the derivative of the matrix inverse in (Equation31) (see e.g.Kowal[Citation9]): (30) θ(A(θ)×B(θ))=A(θ)θ×(IkB(θ))+A(θ)×B(θ)θ(30) (31) (A(θ))1θ=(A(θ))1×A(θ)θ×(Ik(A(θ))1)(31) with 𝐈 denoting an identity matrix of an appropriate size.

To derive the stationary distribution sensitivity, we apply (Equation30) in taking θ in (Equation1). That leads to the following recursion: πn(θ)θ=πn+1(θ)θ×(IkR^(n)(θ))+πn+1(θ)×R^(n)(θ)θ.

Then, by taking partial derivative θ in the second equation of (Equation2), we obtain πN(θ)θ=πN(θ)×(R^(N1)(θ)Q[N1,N](θ)+Q[N,N](θ))θ×(Ik(R^(N1)(θ)Q[N1,N](θ)+Q[N,N](θ))1).

In the above expressions, we evaluate the derivatives of R^(n)(s) which are of the form θR^(0)(s)=θ(Q[1,0](Q[0,0]sI)1), and θR^(n)(s)=θ(Q[n+1,n](R^(n1)(s)Q[n1,n]+Q[n,n]sI)1).

4.3. First hitting times to lower levels

Using the results of Section 3.2 and the expressions in (Equation5)–(Equation7), to evaluate θGn,nk(θ), we obtain the following recursion. We have: θGN,N1(θ)=θ((Q[N,N](θ))1Q[N,N1](θ))=(Q[N,N](θ))1θ×(IkQ[N,N1](θ))(Q[N,N](θ))1×Q[N,N1](θ)θ=(Q[N,N](θ))1×Q[N,N](θ)θ×(Ik(Q[N,N](θ))1)×(IkQ[N,N1](θ))(Q[N,N](θ))1×Q[N,N1](θ)θ, and for n=N1,,1, θGn,n1(θ)=θ((Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1Q[n,n1](θ))=(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1θ×(IkQ[n,n1](θ))(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1×Q[n,n1](θ)θ where (32) (Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1θ=(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1×(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))θ×(Ik(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1)=(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1×((Q[n,n](θ)θ+Q[n,n+1](θ)θ×(IkGn+1,n(θ))+Q[n,n+1](θ)×Gn+1,n(θ)θ)×(Ik(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1)(32) and for k≥2 we obtain the recursion, θGn,nk(θ)=θ(Gn,n1(θ)Gn1,n2(θ)××Gnk+1,nk(θ))=θ(Gn,nk+1(θ)Gnk+1,nk(θ))=Gn,nk+1(θ)θ×(IkGnk+1,nk(θ))+Gn,nk+1(θ)×Gnk+1,nk(θ)θ.

Further, EN,N1(θ)θ=(Q[N,N](θ))1GN,N1(θ)θ=(Q[N,N](θ))1×Q[N,N](θ)θ×(Ik(Q[N,N](θ))1)×(IkG[N,N1](θ))(Q[N,N](θ))1×G[N,N1](θ)θ, and for n=N1,,1, En,n1(θ)θ=(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1(I+Q[n,n+1](θ)En+1,n(θ))Gn,n1(θ)θ=(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1θ×(Ik(IQ[n,n+1](θ)En+1,n(θ))Gn,n1(θ))+(Q[n,n](θ)+Q[n,n+1](θ)Gn+1,n(θ))1×(I+Q[n,n+1](θ)En+1,n(θ))Gn,n1(θ)θ, where the first derivative in the above is given in (Equation32), the second derivative is given by (I+Q[n,n+1](θ)En+1,n(θ))Gn,n1(θ)θ=(Q[n,n+1](θ)En+1,n(θ))θ×(IkGn,n1(θ))+(I+Q[n,n+1](θ)En+1,n(θ))×Gn,n1(θ)θ=(Q[n,n+1](θ)θ×(IkEn+1,n(θ))+Q[n,n+1](θ)×En+1,n(θ)θ)×(IkGn,n1(θ))+(I+Q[n,n+1](θ)En+1,n(θ))×Gn,n1(θ)θ, and for k≥2 we obtain the recursion, θEn,nk(θ)=θ(En,n1(θ)Gn1,n2(θ)××Gnk+1,nk(θ)++Gn,n1(θ)Gn1,n2(θ)××Gnk+2,nk+1(θ)Enk+1,nk(θ))=θ(En,nk+1(θ)Gnk+1,nk(θ)+Gn,nk+1(θ)Enk+1,nk(θ))=En,nk+1(θ)θ×(IkGnk+1,nk(θ))+En,nk+1(θ)×Gnk+1,nk(θ)θ+Gn,nk+1(θ)θ×(IkEnk+1,nk(θ))+Gn,nk+1(θ)×Enk+1,nk(θ)θ.

Remark 2.

The computations of sensitivities in this section can be easily adapted to compute the following:

  1. First hitting times to higher levels (see Subsection 3.3); we obtain similar expressions.

  2. Sojourn times in specified sets (see Subsection 3.4); again, the analysis is similar.

4.4. Distribution at time t

In order to compute the distribution at time t, we shall apply the Laplace transform. We note that: (33) 0estθfn(t;θ)dt=θ0estfn(t;θ)dt=θf~n(s;θ).(33)

The right-hand side of the above expression can be computed using the results from the earlier sections, and then inverted to obtain the quantity of interest θfn(t;θ).

As example, for n = n0, by (Equation27) we have: f~n0(s;θ)((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ))=α, and hence, the following sum is equal to zero, f~n0(s;θ)θ×(Ik((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ)))+f~n0(s;θ)×((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ).)θ

This gives, f~n0(s;θ)θ=f~n0(s;θ)×θ((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ))×(Ik((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ))1) where the right-hand side can be readily evaluated.

Alternatively, directly from (Equation27), θf~n0(s)=αθ((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ))1=α((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ))1×θ((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ))×(Ik((Q[n0,n0](θ)sI)+R^(n01)(s;θ)Q[n01,n0](θ)+R~(n0+1)(s;θ)Q[n0+1,n0](θ))1) and so we get the same form, since the right-hand side of second line is just f~n0(s;θ).

For n > n0, by (Equation28), the expression αHn0,n(s;θ) is equal to f~n(s;θ)((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ)) and therefore, the expression αHn0,n(s;θ)θ is equal to the sum: f~n(s;θ)θ×(Ik((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ)))+f~n(s;θ)×θ((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ)).

By the above, we obtain that the sensitivity f~n(s;θ)θ can be expressed as (αHn0,n(s;θ)θf~n(s;θ)×θ((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))×(Ik((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))1).

Alternatively, directly from (Equation28), θf~n(s;θ) is equal to: αθHn0,n(s;θ)×(Ik((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))1)αHn0,n(s;θ)×θ((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))1 which gives, θf~n(s;θ)=αθHn0,n(s;θ)×(Ik((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))1)+αHn0,n(s;θ)×((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))1×θ((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))×(Ik((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))1)=αθHn0,n(s;θ)×(Ik((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))1)f~n(s;θ)×θ((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))×(Ik((Q[n,n](θ)sI)+R^(n1)(s;θ)Q[n1,n](θ)+R~(n+1)(s;θ)Q[n+1,n](θ))1) and hence, again, we derive the same result.

4.5. Distribution at time t via the DEs (26)

We consider the DEs, as another approach to the analysis in Subsection 4.4.

4.5.1. General case

By taking the derivatives θ in the DEs in (Equation26), we have θf0(t;θ)t=θf0(t;θ)Q[0,0](θ)+θf1(t;θ)Q[1,0](θ)θfn(t;θ)t=θfn(t;θ)Q[n,n](θ)+θfn1(t;θ)Q[n1,n](θ)+θfn+1(t;θ)Q[n+1,n](θ)for n=1,,N1,θfN(t;θ)t=θfN(t;θ)Q[N,N](θ)+θfN1(t;θ)Q[N1,N](θ) with the initial condition fn0(0;θ)=α, and fn(0;θ)=0 for nn0.

Next, we apply expressions from the matrix calculus (Equation30)–(Equation31) to the right-hand side, to obtain (34) θf0(t;θ)t=f0(t;θ)θ×(IkQ[0,0](θ))+f0(t;θ)×Q[0,0](θ)θ+f1(t;θ)θ×(IkQ[1,0](θ))+f1(t;θ)×Q[1,0](θ)θ;θfn(t;θ)t=fn(t;θ)θ×(IkQ[n,n](θ))+fn(t;θ)×Q[n,n](θ)θ+fn1(t;θ)θ×(IkQ[n1,n](θ))+fn1(t;θ)×Q[n1,n](θ)θ+fn+1(t;θ)θ×(IkQ[n+1,n](θ))+fn+1(t;θ)×Q[n+1,n](θ)θ for n=1,,N1;θfN(t;θ)t=fN(t;θ)θ×(IkQ[N,N](θ))+fN(t;θ)×Q[N,N](θ)θ+fN1(t;θ)θ×(IkQ[N1,N](θ))+fN1(t;θ)×Q[N1,N](θ)θ.(34)

Further, we multiply both sides in the above by est and then integrate, to evaluate the Laplace transforms: f~n(s;θ)=t=0estfn(t;θ)θdt=θt=0estfn(t;θ)dtf~n(s;θ)=t=0estfn(t;θ)dt

In the following, we shall apply the following identity for the Laplace transform (F(t)): L(F(t))=sL(F(t))F(0).

Our key aim here is to evaluate fn(t;θ)θ by inverting f~n(s;θ). This can be achieved once we get a formula for f~n(s;θ). Therefore, we focus on the formula for f~n(s;θ) next. We have: f~0(s;θ)=(sf~0(s)θ+f~0(s;θ)×Q[0,0](θ)θ+f~1(s;θ)×(IkQ[1,0](θ))+f~1(s;θ)×Q[1,0](θ)θ)×(IkQ[0,0](θ))1.

Indeed, by (Equation34), 0estθf0(t;θ)tdt=θ0estf0(t;θ)tdt=θ(sf~0(s)f~0)=sf~0(s)θ=0estf0(t;θ)θdt×(IkQ[0,0](θ))+0estf0(t;θ)dt×Q[0,0](θ)θ+0estf1(t;θ)θdt×(IkQ[1,0](θ))+0estf1(t;θ)dt×Q[1,0](θ)θ, and so sf~0(s)θ=f~0(s;θ)×(IkQ[0,0](θ))+f~0(s;θ)×Q[0,0](θ)θ+f~1(s;θ)×(IkQ[1,0](θ))+f~1(s;θ)×Q[1,0](θ)θ.

This gives f~0(s;θ)=sf~0(s)θ+f~0(s;θ)×Q[0,0](θ)θ+f~1(s;θ)×(IkQ[1,0](θ))+f~1(s;θ)×Q[1,0](θ)θ, and thus f~0(s;θ)=(sf~0(s)θ+f~0(s;θ)×Q[0,0](θ)θ+f~1(s;θ)×(IkQ[1,0](θ))+f~1(s;θ)×Q[1,0](θ)θ)×(IkQ[0,0](θ))1 as required.

By a similar argument, f~n(s;θ)=(sf~n(s)θ+f~n(s;θ)×Q[n,n](θ)θ+f~n1(s;θ)×(IkQ[n1,n](θ))+f~n1(s;θ)×Q[n1,n](θ)θ+f~n+1(s;θ)×(IkQ[n+1,n](θ))+f~n+1(s;θ)×Q[n+1,n](θ)θ)×(IIkQ[n,n](θ))1 for n=1,,N1, and f~N(s;θ) is equal to (sf~N(s)θ+f~N(s;θ)×Q[N,N](θ)θ+f~N1(s;θ)×(IkQ[N1,N](θ))+f~N1(s;θ)×Q[N1,N](θ)θ)×(IkQ[N,N](θ))1.

Thus, we have derived a recursion.

Inverting the above Laplace transforms will give us the required fn(t,θ)θfor n=0,1,,N.

4.5.2. A special form of the DEs

Let us consider a simpler version of the DEs: f(t;θ)t=f(t;θ)Q(θ).

In such a case, we obtain: θf(t;(θ))t=θf(t;θ)Q(θ)=f(t;θ)θ×(IkQ(θ))+f(t;θ)×Q(θ)θ and so the Laplace transform is expressed by 0estθf(t;θ)tdt=θ0estf(t;θ)tdt=θ(s×0estf(t;θ)dtf(0;θ))=s×θ(0estf(t;θ)dt)=0estf(t;θ)θdt×(IkQ(θ))+0estf(t;θ)dt×Q(θ)θ.

Therefore 0estf(t;θ)θdt=(s×θ(0estf(t;θ)dt)+0estf(t;θ)dt×Q(θ)θ)×(IkQ(θ))1.

5. Numerical example

To illustrate the application of the theory, consider the LD-QBD {(X(t),φ(t)):t0} from Example 2 modeling a system with capacity N = 100 and two types of customers arriving at rates λ1 = 5 and λ2 = 8, and departing at rates μ1=1/10 and μ2=1/5, respectively. We evaluate the stationary distribution 𝝅 of this process using expressions (Equation1)–(Equation2) and present the output in .

Figure 2. Stationary distribution of the LD-QBD {(X(t),φ(t)):t0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5in Example 2.

Figure 2. Stationary distribution of the LD-QBD {(X(t),φ(t)):t≥0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5in Example 2.

We note from that the stationary distribution is supported on the set n≥60 and i[30,70] with median for n is high 80 and median for i in high 40.

Next, we evaluate the derivative θπ of the stationary distribution of this process using expressions in Section 4.2 and present the output in . We note that sensitivities of πn, i with respect to λ1 and μ2 are non-negative and with respect to λ2 and μ1 are non-positive, which is consistent with intuition. More precisely, recall that φ(t) denotes number of patients of type 1 in the system. Therefore, if λ1 increases the number of patients of type 1 increases and the proportion of type 1 patients πn, i must increase. Similarly, if the service rate of type 2 patients increases, the number of patients of type 2 decreases and the proportion of type 1 patients πn, i must increase.

Figure 3. The derivatives of the stationary distribution of the LD-QBD {(X(t),φ(t)):t0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5 in Example 2. Color of the line decodes specific value of n: blue 65, orange 74, yellow 85 and purple 95.

Figure 3. The derivatives of the stationary distribution of the LD-QBD {(X(t),φ(t)):t≥0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5 in Example 2. Color of the line decodes specific value of n: blue 65, orange 74, yellow 85 and purple 95.

Conversely, if λ2 increases the number of patients of type 2 increases and the proportion of type 1 patients πn, i must decrease. Similarly, if service rate of type 1 patients increases,the number of patients of type 1 decreases and the proportion of type 1 patients πn, i must decrease too.

We also remark that the amplitude of change in πn, i depends both on the level of n and the level of i. Absolute value of the respective derivatives for fixed n are uni-modal in i (as we read from the ). Looking at the color code in , we also note that the impact of all parameters on the stationary distribution is stronger around median values of 𝝅.

Further, we focus on first hitting times to lower levels, and using results from Section 3.2 and Section 3.4, we evaluate j[gn,nk(t)]ij,j[θgn,nk(t)]ij,j[gAn,nk(t)]ijandj[θgAn,nk(t)]ij given the initial state (n,i)=(100,100) and the destination level nk=90, with A=[95,100]. The output is presented in .

Figure 4. Scalar quantities j[gn,nk(t)]ij and j[gAn,nk(t)]ij, given (n,i)=(100,100), nk=90 and A=[95,100], of the LD-QBD {(X(t),φ(t)):t0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5 in Example 2.

Figure 4. Scalar quantities ∑j[gn,n−k(t)]ij and ∑j[gAn,n−k(t)]ij, given (n,i)=(100,100), n−k=90 and A=[95,100], of the LD-QBD {(X(t),φ(t)):t≥0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5 in Example 2.

Figure 5. Scalar quantities j[θgn,nk(t)]ij, given (n,i)=(100,100) and nk=90 of the LD-QBD {(X(t),φ(t)):t0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5 in Example 2.

Figure 5. Scalar quantities ∑j[∂∂θgn,n−k(t)]ij, given (n,i)=(100,100) and n−k=90 of the LD-QBD {(X(t),φ(t)):t≥0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5 in Example 2.

Figure 6. Scalar quantities j[θgAn,nk(t)]ij, given (n,i)=(100,100), nk=90 and A=[95,100] of the LD-QBD {(X(t),φ(t)):t0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5 in Example 2.

Figure 6. Scalar quantities ∑j[∂∂θgAn,n−k(t)]ij, given (n,i)=(100,100), n−k=90 and A=[95,100] of the LD-QBD {(X(t),φ(t)):t≥0} with N = 100, λ1 = 5, λ2 = 8, μ1=1/10 and μ2=1/5 in Example 2.

In , we present the density of the distribution of time before first arriving at level nk=90 and any phase given initial state (100, 100) (full system, only patients of type 1) on the left graph; and the density of distribution of time spent at levels [95, 100] before first arriving at level nk=90 and any phase given initial state (100, 100) on the right graph. Both graphs have the same shape representing that the time spent in the intervals [91, 100] and [95, 100] increases until some threshold time (at t = 5 and just before 5, respectively), from which it decreases and becomes extremely unlikely (values 30 and 25, respectively).

We note that to obtain the derivatives θgn,nk(t)and θgAn,nk(t), we have applied the algorithm in Den Iseger[Citation3], its convenient translation to a code in Toutain et al.[Citation14], and an observation analogous to (Equation33), that is, 0estθgn,nk(t;θ)dt=θGn,nk(s;θ)and0estθgAn,nk(t;θ)dt=θGAn,nk(s;θ).

The recursions for θGn,nk(s;θ)andθGAn,nk(s;θ) are analogous to the recursion for θGn,nk(θ) in Section 4.3, with the suitable adaptation in the formula being the use of (Q[n,n](θ)sI) and (Q[n,n](θ)sI×I(nA)), respectively, in place of 𝐐[n, n](𝜽), for all n.

We note that derivatives presented in (A) and (B), and (A) and (B) exhibit the same behavior. When λ1 or λ2 increase, there are more patients in the system, and it takes more time to first reduce the number of patients from level 100 to level 90. Hence, both graphs in move to the right when λi for i=1,2 increases. That means that for small times, density decreases, for moderate times density increases and for large times, density does not change from 0.

Of course, we have observed opposite behavior in (C) and (D), and (C) and (D). It is due to the fact that the increase of μ1 or μ2 results in fewer patients in the system, and it takes less time to first reduce the number of patients from level 100 to level 90. Hence, both graphs in move to the left when μi for i=1,2 increases, meaning that for small times density increases, for moderate times density decreases, and for large times density does not change from 0.

6. Conclusions

In this study, we developed novel results for the sensitivity analysis of level-dependent quasi-birth-and-death processes (LD-QBDs), which have potential applications in many complex systems, including healthcare systems, as discussed throughout the article.

We derive recursive expressions for several key performance metrics of LD-QBDs. We demonstrate the application of the theory through numerical examples where we highlight relevant intuitions and the physical interpretations of these metrics.

This analysis forms the foundation for future applications in healthcare systems and other important processes within queueing theory. The ideas developed here can be applied to continuous and discrete time frameworks.

Disclosure statement

No potential conflict of interest was reported by the author(s).

Additional information

Funding

Anna Aksamit is supported by the Australian Research Council Early Career Researcher Award DE200100896. Małgorzata O’Reilly is supported by the Australian Research Council Discovery Project DP180100352. Zbigniew Palmowski was partially supported by the National Science Centre (Poland) under the grant 2021/41/B/HS4/00599. Małgorzata O’Reilly is grateful for the support and hospitality of the Sydney Mathematical Research Institute (SMRI) in June 2023.

References

  • Abate, J.;Whitt, W. Numerical inversion of Laplace transforms of probability distributions. ORSA J. Comput. 1995, 7, 36–43. doi:10.1287/ijoc.7.1.36.
  • Bright, L.;Taylor, P.G. Calculating the equilibrium distribution in level dependent quasi-birth-and-death processes. Commun. Stat. Stoch. Models 1995, 11, 497–525. doi:10.1080/15326349508807357.
  • Den Iseger, P. Numerical transform inversion using Gaussian quadrature. Prob. Eng. Inf. Sci. 2006, 20, 1–44. doi:10.1017/S0269964806060013.
  • Gómez-Corral, A.;López-García, M. Perturbation analysis in finite LD-QBD processes and applications to epidemic models. Numer. Linear Algebra Appl. 2018, 25, 5.
  • Grant, A. 2021, Modelling Hospital Escalation Levels as Quasi-Birth-and-Death Processes; Honours Thesis; University of Tasmania: Australia.
  • Heydar, M.;O’Reilly, M.M.;Trainer, E.;Fackrell, M.;Taylor, P.G.;Tirdad, A. A stochastic model for the patient-bed assignment problem with random arrivals and departures. Ann. Oper. Res. 2022, 315, 813–845. doi:10.1007/s10479-021-03982-9.
  • Horváth, G.;Horváth, I.;Almousa, A.-D.;Telek, M. Numerical inverse Laplace transformation using concentrated matrix exponential distributions. Perform. Eval. 2020, 137, 102067. doi:10.1016/j.peva.2019.102067.
  • Joyner, J.;Fralix, B. A new look at Markov processes of G / M /1-type. Stoch. Models 2016, 32, 253–274. doi:10.1080/15326349.2015.1115363.
  • Kowal, P. 2007, A note on matrix differentiation; Munich Personal RePEc Archive. Paper number 3197. https://mpra.ub.uni-muenchen.de/3917.
  • Lipsitch, M.;Bergstrom, C. T.;Levin, B.R. The epidemiology of antibiotic resistance in hospitals: Paradoxes and prescriptions. Proc. Natl. Acad. Sci. U S A 2000, 97, 1938–1943. doi:10.1073/pnas.97.4.1938. 10677558.
  • Liu, Y.;Wang, P.;Zhao, Y.Q. The variance constant for continuous-time level dependent quasi-birth-and-death processes. Stoch. Models 2018, 34, 25–44. doi:10.1080/15326349.2017.1376285.
  • Phung-Duc, T.;Masuyama, H.;Kasahara, S.;Takahashi, Y. 2010, A simple algorithm for the rate matrices of level-dependent QBD processes. In Proceedings of the 5th International Conference on Queueing Theory and Network Applications, Association for Computing Machinery, New York, NY, United States, 46–52.
  • Ramaswami, V. Matrix-analytic methods: A tutorial overview with some extensions and new results. In Matrix-Analytic Methods in Stochastic Models; Chakravarthy, S., Alfa, A., Eds.; Marcel DekkerL New York, 1997; 261–296.
  • Toutain, J.;Battaglia, J.;Pradere, C.;Pailhes, J.;Kusiak, A.;Aregba, W.;Batsale, J. Numerical Inversion of laplace transform for time resolved thermal characterization experiment. Trans. ASME, J. Heat Transf. 2011, 133, 4.
  • University of Tasmania 2023, Designs for a Better Patient Journey website, accessed 4 March 2024, https://www.utas.edu.au/health/research/groups/tasmanian-school-of-medicine/public-health-health-systems/designs-for-a-better-patient-journey.