Abstract
Alternating presence and absence of a medical condition in human subjects is often modelled as an outcome of underlying process dynamics. Longitudinal studies provide important insights into research questions involving such dynamics. This article concerns optimal designs for studies in which the dynamics are modelled as a binary continuous-time Markov process. Either one or both the transition rate parameters in the model are to be estimated with maximum precision from a sequence of observations made at discrete times on a number of subjects. The design questions concern the choice of time interval between observations, the initial state of each subject and the choice between number of subjects versus repeated observations per subject. Sequential designs are considered due to dependence of the designs on the model parameters. The optimal time spacing can be approximated by the reciprocal of the sum of the two rates. The initial distribution of the study subjects should be taken into account when relatively few repeated samples per subject are to be collected. A study with a reasonably large size should be designed in more than one phase because there are then enough observations to be spent in the first phase to revise the time spacing for the subsequent phases.
Keywords
1 Introduction
Continuous-time stochastic processes with a binary state space are often used to model the alternating presence and absence of medical conditions in human subjects. For example, the within-host dynamics of a recurrent asymptomatic infection can be described in terms of repeated transitions between states of being colonised and non-colonised.1,2 Likewise, some parasites are present as repeated presence and absence of the infection. 3 When the transition rates between the two states are constant, the process is Markovian and also known as the alternating Poisson process. 4 An obvious inference problem concerns the estimation of the rates from longitudinal observations of the process.
In practice, it is not always possible to observe the actual transitions between the two states continuously in time. A study designed to estimate the transition rates usually gives discrete-time observations of the underlying process for each study subject, i.e. the states of the subject i at a number of (pre)fixed times τ ij , j = 1,…, K. The estimation of the two rates in a binary model using such longitudinal data has been addressed previously by several authors.3–7
The precision in estimation of the rates is of particular interest. Using the maximum likelihood method, the precision is determined by the Fisher information which in turn depends on the number of subjects in the study (N), the number of observations per subject (K), the observation times ({#x003C4; ij }) and the initial distribution (ρ1).5,8 While some of these quantities may have to be fixed in advance by practical constraints, others remain subject to optimisation when designing the study. In the context of discrete observation of a continuous-time process, there is particular interest in the optimal choice of the times of observation.8,9
Albert and Brown 8 considered the choice of optimal sampling times for the binary Markov process in connection with estimation of the two rates as well as their ratio. For an arbitrary initial distribution, they studied optimal observation times when K = 2, and when K > 2, their analysis was confined to the stationary initial distribution and a special choice with ρ1 = 0. The efficiency of discrete observation with respect to continuous observation was considered by Albert and Brown 8 and Cook. 10
There are several related models with similar design questions, based on discrete observation of an underlying continuous-time process. These include the simple birth process, 11 the simple death process 12 and the simple birth-death process. 13 Processes with multiple states have been considered, e.g. for the analysis of epidemic data. 14 In all these studies, optimisation is based on the Fisher information about the unknown rates. Bayesian approaches to optimal design have also been considered in the context of binary sequence data 9 and the susceptible-infected epidemic processes. 15
Designs based on the Fisher information depend on unknown values of the model parameters. Approaches to overcome the parameter dependency include the use of an initial best guess for the parameter values, 16 sequential procedures to update parameter values using previous observations, 16 use of a Bayesian prior distribution for the parameters9,15 and application of the maximin approach, where the information is maximised over a parametric region. 17
In this article, we discuss designing studies with discrete-time observations of a binary Markov process based on the Fisher information. Our main focus is in determining the sampling times ({#x003C4; ij }) for a given number of observations per subject (K). The analysis generalises the corresponding results in Albert and Brown 8 to the case K > 2. In addition, we determine optimal initial distributions (ρ1) and consider designs for the estimation of one of the two rates in the model. We also consider optimal designs in sequential studies in which sampling times are revised in the course of the study, and address the optimal split of observations between the two phases in a sequential study.
The structure of this article is as follows. The next section defines the binary Markov model and describes the maximum likelihood estimation of the parameters. Section 3 reviews design questions and methodological approaches relevant for discretely observed processes. Based on these, Section 4 presents different scenarios for studies with binary outcomes and guidelines for their design and analysis. Illustrative examples on estimation of acquisition and clearance rates of a bacterial pathogen, Streptococcus pneumoniae, are given in Section 5. Section 6 provides the concluding remarks.
2 Model and maximum likelihood estimation
Let {#x003B6;(τ), τ ≥ 0} be a continuous-time process with state-space {0, 1}, where 1 and 0 denote the presence and absence of the condition in question. Let the process ζ(τ) be governed by two constant rates (per time unit):
Let X
ij
be a discrete-time observation ζ(τ
ij
) of subject i at time τ
ij
. The transition probabilities for two consecutive observations with time spacing t
ij
= τ
ij
− τi(j−1) are
Denoting by
Asymptotically, the maximum likelihood estimates exist, and are normally distributed and unbiased. In finite sample estimation, some complications may occur as estimates and do not exist if
Finite samples can also lead to biased estimates, especially if the time spacing is far from optimal. The smallest positive values for
The Fisher information matrix for λ in the binary Markov model is derived in Kalbfleisch and Lawless,
5
and is given as follows
Recall that the asymptotic covariance matrix V(λ; X) of
3 Design issues and approaches
Optimisation of designs is often based on some statistical criterion derived from the Fisher information. In this article, designs are determined under the A- and A i -optimality criteria. The A-optimality criterion minimises the trace of the covariance matrix V(λ; X), i.e. the sum of the asymptotic variances of both parameter estimators. When the criterion is applied to only one of the model parameters (A i -optimality), this reduces to the minimisation of the asymptotic variance of its estimator.
Consider a binary Markov model with two constant rates, λ01 and λ10, as the parameters of interest. A study is to be planned with a design d ∈
, where
is a space of equidistant designs, i.e. each d ∈
is characterised by a constant time spacing between consecutive observations. This restriction on the design space is not too severe. Specifically, when the first observation follows the stationary distribution, the optimal equidistant design is more efficient than any non-equidistant one.
8
When the first observation does not follow the stationary distribution, there are non-equidistant designs which are more efficient until stationarity is attained.
12
However, it is argued in this article that for the optimal equidistant design the process attains stationarity for small values of K.
Two designs d1 and d0 can be compared using their asymptotic relative efficiency (ARE). Under the A-optimality criterion, we define the ARE of d1 with respect to d0 as
In a two-phase study, N subjects have been followed and K0 (≥ 2) observations per subject,
The search for optimal t and S in the second phase can be based on the total information contained in the data
In the above expressions, λ is the true parameter value which, however, is unknown. The design has to be based on a given value of λ which, after the first phase, we take to be the maximum likelihood estimate
Conducting a study in two phases gives the opportunity to improve the design by use of estimates
4 Optimal designs: scenarios and guidelines
4.1 One-phase studies
We consider scenarios in which the design needs to be based on hypothesised values of the two rates. Designs based on such hypothesised values are referred to as locally optimal.17,19 We determine A-optimal and A1-optimal (minimisation of variance of
4.1.1 Optimal time spacing (topt) with the stationary initial distribution
When the binary process evolves in time, the proportion of subjects in state 1 approaches the corresponding stationary probability. Thus, the stationary distribution is a natural choice for an initial distribution ρ1 for study designs in which no known factors have had influence on the evolution of the process.
In the case of stationary ρ1, the optimal time spacing is not affected by K or N. Figure 1 shows that the optimal spacings under both A- and A1-optimality criteria are almost equal and only depend on the ratio of the rates λ10/λ01 and the time scale. If the ratio is not far from 1, topt in the time units of 1/λ01 is well approximated by 1/(1 + λ10/λ01). When the ratio approaches 0, topt becomes almost independent of the ratio and tends to 1.59 (in the units of 1/λ01). This is the optimal sampling time for an exponential random variable with rate λ01 and, curiously, also the optimal observation period for a simple death process with the same rate when state 1 is the absorbing state.12,16 When the ratio λ10/λ01 approaches ∞, the results are symmetric for λ10 and can be read from the figure by interchanging the roles of λ01 and λ10.
Dependence of A1- and A-optimal time spacings on the ratio λ10/λ01 under stationarity. The optimal time spacing and its approximation (solid curve) are plotted as functions of the ratio in time units of 1/λ01. For a given ratio, the optimal time spacing is obtained by dividing the value on the y-axis by λ01. For example, if λ10 = 3 (per week) and λ01 = 2 (per week), the optimal time spacing is 0.4/2=0.2 (weeks). This figure is similar to Figure 1 in Albert and Brown, but the optimal time spacing in the limit λ10/λ01 → 0 is different. We did not find any convincing explanation to this.
4.1.2 Optimal time spacing (topt) with an arbitrary initial distribution
In some cases the initial distribution may be known or approximately conjectured in advance. For instance, in studies of bacterial colonisation among newborns, 1 the study subjects have, by biological knowledge, a minimal probability for the presence of the bacterium at the initiation of the study. In such and similar situations, the initial distribution favours one of the states and is clearly not the stationary one.
In the case when ρ1 is not stationary, topt depends on ρ1, K and the optimality criterion. Under A1-optimality (Figure 2, upper panels), topt increases monotonically with ρ1 irrespective of the ratio λ10/λ01. This reflects the fact that learning about λ01 requires the transition 1 → 0 to occur first if the initial state is 1. Under A-optimality (Figure 2, lower panels), topt is a convex function of ρ1 because now both rates are of interest. Specifically, when the ratio is 1, topt becomes longer when ρ1 approaches either 0 or 1 for similar reasons as under A1-optimality. When the ratio is greater than 1, topt tends to be shorter with increasing ρ1, and vice versa. Under both optimality criteria, the topt curves converge towards the line corresponding to topt under stationarity as K increases. Concrete examples follow in Section 5.
Dependence of A1- and A-optimal time spacings on the initial distribution (ρ1). The optimal time spacing is plotted as a function of ρ1 in time units of 1/λ01 for various values of λ10/λ01 and K. The stationary values of ρ1 and the corresponding optimal time spacings are shown by the vertical and horizontal lines, respectively. For a given ratio, the optimal time spacing is obtained by dividing the value on the y-axis by λ01.
4.1.3 Joint optimal time spacing (topt) and initial distribution
Under some scenarios, the initial distribution ρ1 can be taken as a parameter subject to optimisation. This obviously requires some type of prior knowledge or control of ρ1. For instance, in Hill et al., 1 newborns starting pathogen-free were followed to study the acquisition rate (λ01), in which case, the initial state is 0 (ρ1 = 0). One could have alternatively initiated the study later after birth, in which case, the initial distribution would be most likely close to the stationary one. In another instance, if the states of the subjects are measured once, a selection of whom to follow can be made. The approach that the rate of clearance (λ10) of bacterial colonisation would be learned well by following subjects that initiate as colonised (i.e. in state 1) was employed in O'Brien et al. 20 Finally, examples in which the choice of initial distribution can be made directly include animal studies, 21 in which the pathogen is inoculated to the subjects, giving complete control over the initial state. Similar challenge studies with humans can be conducted with special consideration on ethics. 22
Optimal initial distribution under A- and A1-optimality. (Panel A) One-phase studies: The optimal initial probability of state 1 (
According to these results, the approach in O'Brien et al. 20 to restrict the follow-up to those in state 1 to learn about λ10 is appropriate. As a practical illustration, we note that in Trotter and Gay, 2 two types of studies were employed in which the initial distribution was either based on a random sample of subjects, or selection of subjects was made towards initial state 1. The upper limit of a 95% confidence interval for λ01 from a study in which the subjects started from state 1 with three repeated observations was 110 times the point estimate. By contrast, for λ10, the corresponding ratio was only 1.7. Such a difference did not occur in those studies in which the initial proportion of subjects in state 1 was ∼0.4.
4.1.4 Optimal number of repeated samples per subject (K)
In this section, we study the choice of the number of repeated samples (K) under the assumption that the total number of observations (NK) is fixed. Such a question might arise, for instance, when the initial distribution departs from the stationary one and the cost of data collection depends heavily on the cost per sample rather than the cost of introducing new subjects to the study.
With a fixed total number of observations (NK = 105), we compare two studies d1 and d2 with K = 5 and K = 7, respectively, to a reference study d0 with K = 3. Figure 3 presents ARE(d1, d0; λ, X) and ARE(d2, d0; λ, X) as functions of ρ1 for different values of the ratio λ10/λ01. Note that ARE(d2, d1; λ, X) = ARE(d2, d0; λ, X)/ARE(d1, d0; λ, X). Figure 3(A) shows that ARE(d1, d0; λ, X) > 1 and ARE(d2, d1; λ, X) > 1 for any ρ1 and so it is more efficient to take more samples per subject. The same applies when the ratio is below 1 and ρ1 tends towards the corresponding stationary value and above (Figure 3B and C). Only when ρ1 tends to 0, the optimal initial distribution according to Panel A in Table 1, it is more efficient to take more subjects than repeated samples per subject. The figures corresponding to ratios greater than 1 are mirror images of those for ratios less than 1.
Optimal choice of the number of subjects (N) and samples per subject (K) for fixed NK. The asymptotic relative efficiencies (ARE) of studies with K = 5 and K = 7 with respect to a study with K = 3 are plotted as functions of the initial distribution (ρ1) for λ10/λ01 equalling to (A) 1.0, (B) 0.2 and (C) 0.04. The total number of observations in all three studies is NK = 105.
The recommendation about favouring repeated samples over increasing the number of subjects obviously relies on the setting in which the rates can be taken to be constant over time and across study subjects. In practice, the assumptions might not hold. Most notably, there could be heterogeneity across subjects in the rates. In such a case, if the simple model with constant rates is used, a reasonable number of subjects, depending on the setting, would be needed to average over such variation. Other practical issues potentially affecting the choice between N and K are the constancy of the rates over time and the feasibility of a study with an extended follow-up per subject.
4.2 Two-phase studies and sequential designs
Given the possibility that the rates can be estimated during the study, sequential designs can be applied to improve the efficiency of estimation. In a two-phase study, the design of the first phase is similar to a one-phase study. Here, we consider optimal designs for the second phase using the observed total information (4).
4.2.1 Optimal time spacing (topt) for the second phase
Influence of the observed information from the first phase on the time spacing in the second phase when one of the rates is estimated with higher precision than the other. Scenario: Ten subjects are to be followed in two phases. The estimates from the first phase are
4.2.2 Joint optimal time spacing (topt) and initial distribution
for the second phase
In two-phase designs, the choice of
In a one-phase study, the optimal initial distribution is determined by the ratio of the two rates and the optimality criterion (Panel A in Table 1). In a two-phase study, the optimal initial distribution
4.2.3 When the time spacing should be revised?
The robustness of a first-phase design to discrepancies between the initial guess of the rates and their true values can be assessed with the ARE. Figure 4 shows ARE(dguess, dtrue; λtrue, X), evaluated at the true values of the rates λtrue, where d
a
denotes the optimal design with time spacing
The robustness of a design to misspecification of the model parameters. The ARE of a design with time spacing

For simplicity, assume that both ρ1 for the first phase and
Figure 5 shows the ARE of a two-phase study with respect to the one-phase study as a function of the size of the first phase and the ratio of the time spacing
The optimal split between the phases in a two-phase study. The ARE of a two-phase study (d1) with respect to a one-phase study (d0) is plotted as function of the size of the first phase for various values of the ratio of

5 Examples on colonisation of S. pneumoniae
S. pneumoniae (pneumococcus) is a bacterium that colonises the nasopharynx of healthy individuals. Colonisation is a pre-requisite for pneumococcal disease and thus of significant clinical importance. It is common in young children and especially newborns have been studied to determine the rate of acquisition (λ01) during the first year of life.23,24,1 The time spacings between repeated measurements for this purpose have been roughly 1, 0.5 and 0.5 months in Syrjänen et al., 23 Granat et al. 24 and Hill et al., 1 respectively.
Consider the optimal design for a study to estimate a constant rate of pneumococcal acquisition (λ01) in newborns under three different scenarios. The scenarios are characterised by the prevalence of colonisation, π1 = 0.2, 0.5, 0.8, reflecting epidemiologically different conditions.23,24,1 The clearance rate (λ10) for pneumococcus has been estimated around 0.5–1 per month in several different settings. To design the study, we thus adopt value λ10 = 1 for the clearance rate and determine the acquisition rate through the stationary probability λ01/(λ01 + λ10) = π1, which yields λ01 = 0.25, λ01 = 1 and λ01 = 4 (per month) for the three scenarios, respectively.
The corresponding optimal time spacings, would the initial distribution (ρ1) be stationary, are obtained from Figure 1, being 0.93, 0.50 and 0.23 (months) in the three scenarios, respectively. Because newborns can be taken to be in state 0 at birth (ρ1 = 0), and the rate of interest is that of acquisition, the optimal time spacings are slightly shorter. For example, if four samples per individual are to be taken (K = 4), the optimal time spacings are 0.7, 0.4 and 0.15 (months), respectively (Figure 2). Efficiency gain from adjusting the time spacing with respect to the initial distribution is less than 20% (Figure 4). These time spacings are shorter compared to those in Syrjänen et al., 23 Granat et al. 24 and Hill et al., 1 but the efficiency loss is significant only for the third scenario with π1 = 0.8 (Figure 4).
As 0 is the optimal initial state to estimate rate λ01 (Panel A in Table 1), a study conducted among newborns improves the precision in estimation of the acquisition rate. By contrast, the clearance rate (λ10) might be estimated with low precision. Suppose the study was to be continued in order to improve the precision of the clearance rate. For this purpose, a good initial state is 1 (
It is known that different serotypes of S. pneumoniae have varying acquisition rates and possibly different clearance rates. If the interest is in estimation of serotype-specific acquisition and clearance rates, a multi-state model would be needed. These types of models are not considered in this article.
6 Concluding remarks
We have studied factors that influence the optimal designs for discretely observed binary Markov processes. The time spacing in a one-phase design with stationary initial distribution ρ1 can be based on the approximation
The time spacing
For the stationary initial distribution, equidistant designs are efficient among all discrete designs. 8 As a consequence of the fast convergence to stationarity, this also holds for most non-stationary situations. The exceptions can be viewed as special cases of selecting the initial distribution. For example, if all subjects would be known to be in state 0, and λ10/λ01 was notably less than 1, it would be efficient to let the process evolve towards stationarity before collecting any samples. In most cases, however, restriction to the equidistant designs appears justifiable.
Often some knowledge about the studied phenomenon is available a priori, so that a range for the rates can be conjectured. Otherwise two-phase studies should be considered. Enough samples should then be collected in the first phase to ensure high probability for improved design for the second phase. The choice of optimal time spacing and initial distribution after the first phase of a sequential design is based on the estimates from the previous phases and their precision. In most cases, the optimal time spacing can be approximated by the reciprocal of the sum of the rates. The precision with which the rates are estimated from previous phases needs to be taken into account in the choice of
We have considered only one of the simplest models, in which transitions between two states are governed by constant rates. However, transition rates may also depend on the history of the process and more general models, such as Weibull, allowing time-dependent rates could be more appropriate. Study subjects may also be prone to heterogeneity which can sometimes be adjusted for through the use of covariates. With unaccounted heterogeneity, frailty models would be more appropriate. Other modifications to the model, such as taking into account the sensitivity of detection of the underlying process, could also break down the simple Markovian dependence. Another extension could be to (Markov) models with more than two states. Such models obviously bring in additional complications since the transition probabilities do not allow simple expressions of Section 2.
Footnotes
Acknowledgements
This study was supported as a part of the research of the PneumoCarr Consortium funded by a grant (37875) from the Bill and Melinda Gates Foundation through the Grand Challenges in Global Health Initiative. The authors would like to thank the reviewers for their comments that helped to improve the manuscript.
