Secondary Logo

Journal Logo

Original Article

Estimating Disease Prevalence in a Bayesian Framework Using Probabilistic Constraints

Berkvens, Dirk*; Speybroeck, Niko*; Praet, Nicolas*; Adel, Amel; Lesaffre, Emmanuel

Author Information
doi: 10.1097/01.ede.0000198422.64801.8d


Click on the links below to access all the ArticlePlus for this article.

Please note that ArticlePlus files may launch a viewer application outside of your web browser.

Diagnostic tests form an essential part of all disciplines of epidemiology, providing an estimate of the true prevalence of the disease, infection, or condition.

Suppose that D+ (D) indicates that a subject is diseased (disease-free) and T+ (T) indicates a positive (negative) result on a diagnostic test T. In the presence of a gold standard, the number of diseased subjects (nD+) and disease-free subjects (nD) are known (Table 1). A gold standard can be a diagnostic test with both test sensitivity and test specificity equal to one, or (for example) an experiment in which a proportion of the subjects are artificially infected. The columns “diseased” and “disease-free” in Table 1 represent this situation and constitute the so-called full table, ie, the table in which the distinction between the 2 infection status categories can be made.

Two-by-Two Contingency Table When Testing n Subjects for Disease D With One Diagnostic Test T

From Table 1, sensitivity (Se) and specificity (Sp) of the test are estimable by nT+|D+/nD+ and nT−|D−/nD−, respectively. On the other hand, in a field observation only the probability of a positive test result can be directly estimated, ie, P(T+)=nT+/n (the apparent prevalence). The column “Total” in Table 1 is actually the marginal or collapsed table over the diseased and disease-free subjects and represents this situation. When Se and Sp are known, the true prevalence P(D+) can be estimated using the following expression1:

Unfortunately, Se and Sp are rarely known exactly and must be estimated from data. Hence, we need to take into account the sampling variability with which the prevalence is estimated, which could be done using the approach of Rogan and Gladen.1

Some traditional textbooks on diagnostic testing still refer to the test sensitivity and specificity as values that are intrinsic to the diagnostic test, ie, constant and universally applicable.2,3 Our own experience (and that of others) indicates that both test sensitivity and specificity vary with external factors.4–8 Consequently, test sensitivity and specificity, as traditionally defined, are purely theoretical concepts determined in the population used to validate the test. Therefore, when using a diagnostic test in the population of interest, the characteristics of that population must be used to get an improved estimate of Se and Sp.7 Observe, however, that assumptions of constancy of Se and Sp over different populations is still being made.9

For a long time, it was assumed that 2 (or more) diagnostic tests are conditionally independent on the disease status,10–12 for example, P(T1+∩T2+|D+)=P(T1+|D+)P(T2+|D+). When the 2 diagnostic tests have a similar biologic basis, as is often the case, the conditional independence assumption is untenable. Toft et al13 review the possible pitfalls when using the Hui-Walter paradigm in real life, particularly the problems encountered when trying to stratify the population into 2 or more subpopulations with different true prevalence but constant test characteristics.

When these 2 simplifying assumptions cannot be made, estimation of the true prevalence either becomes impossible or requires extra information added to the estimation process. Indeed, when h tests are applied to each individual, 2h+1 − 1 parameters must be estimated. These parameters are the true prevalence (one parameter), the test sensitivities (h parameters), the test specificities (h parameters), and

parameters describing the dependence of the h tests given the true disease status of the subject. Yet only 2h − 1 parameters can be estimated, because only data from the collapsed table (over disease status) are available. Consequently, the true prevalence of the disease cannot be estimated if no constraints are imposed on the parameters. The most popular constraint has been to assume conditional independence.

Table 2 shows the maximum number of parameters that can be estimated and the number of parameters that need to be estimated as a function of the number of diagnostic tests, as well as the number of parameters to be estimated given conditional independence of the tests.

Maximum Number of Estimable Parameters and Number of Parameters to Be Estimated in the Absence of Conditional Independence and Under Conditional Independence as a Function of the Number of Tests per Subject

In particular, Table 2 indicates that, under conditional independence, parameters can be estimated for h ≥ 3, whereas for h ≥ 4, the number of estimable parameters actually exceeds the number of parameters to estimate.

Estimating the true prevalence thus becomes a matter of adding constraints on the parameters. These constraints must come from external sources, eg, previous similar studies, expert opinion, and so on. Hence, the estimated true prevalence and test characteristics will be the result of a combination of the data (test results) and the external information on these test characteristics, which is the best that can be obtained. Consequently, several authors have suggested a Bayesian approach to incorporate this external information by specifying prior distributions on the parameters obtained from eliciting the opinion of experts.14,15 Most often, prior knowledge on sensitivity and specificity is incorporated. Unfortunately, in practice, experts often do not have and cannot have (see, for example, nonconstant sensitivity and specificity) a clearcut opinion on these test characteristics. As a result, the experts’ opinions will often be in conflict with the actually observed data. Of course, the Bayesian framework allows more diffuse prior distributions, but this will, in our context, often render the parameters inestimable. In this article, we show that, if possible, prior information on conditional probabilities is easier to specify.

To verify whether the prior information is in conflict with the test results, the recently developed deviance information criterion (DIC)16 and an appropriate Bayesian P value can be used.17 To quantify the impact of the constraints, the effective number of estimated parameters (pD) of the model can be calculated.16

In the next section, we discuss 2 parameterizations to model conditional dependence. We then distinguish between deterministic and probabilistic constraints and show that the number of parameters effectively estimated (pD) can be used to quantify the effect of these constraints on the number of effectively estimated parameters. In the next section, we indicate that DIC and an appropriate Bayesian P value can pinpoint a conflict between the prior information and the test results. We then examine the behavior of DIC, pD, and the Bayesian P value using a theoretical dataset. Finally, we apply one of the models developed here to field data. A discussion of our approach and the results follows in the last section.

Markov Chain Monte Carlo (MCMC) estimations were carried out in WinBUGS 1.4.18 Additional calculations were performed in R19 making extensive use of the “bugs” function17 posted on the web.20 The software developed for the evaluation of DIC, pD, and the Bayesian P value can be downloaded.21


For the situations in which 2 diagnostic tests are applied to all subjects, Gardner et al22 and Dendukuri and Joseph23 calculated the probabilities of the different outcomes as a function of test sensitivities, test specificities, and covariances. Furthermore, these authors suggest combining prior information on these parameters with the test results in a Bayesian manner. Their results can be expanded to more than 2 tests.24 However, the prior distributions for the covariances (ie, generalized beta distributions) are quite difficult to elicit from experts, because they cannot be related to real-life situations. Although not well recognized in the literature, this is equally true for the sensitivity parameters, the reason being that the sensitivity of a diagnostic test needs to be determined in experimental conditions (and hence also quite distinct from real-life settings) on a small number of subjects. In contrast, the specificity of a test can be determined somewhat more easily in a population that is known to be disease-free.

Eliciting information from experts on the conditional performance of one test given the results of another test could be much easier in certain cases. For instance, a question such as “What is the probability that a subject tests positively in test 2 given that the subject is diseased and has tested positively in test 1?” relates the characteristics of 2 tests applied on the same subject. This can be easier to answer because the experts usually have one or more so-called reference tests (very often with a very high specificity) and know the performance of other tests in relation to the reference test in the infected and uninfected subpopulations.

Model (2), given by

expresses the cell probabilities of the collapsed 2(h+1) table (hence of a 2h table) in terms of the prevalence of the disease, the sensitivity and specificity of the first test, and conditional probabilities. In Appendix A1.1 (available with the online version of this article), the different conditional probabilities are listed in a hierarchical fashion: parameters θ1–θ3 are used when only a single test is applied, θ1–θ7 are used for 2 tests, θ1–θ15 for 3 tests, and θ1–θ31 for 4 tests. In Appendix A1.2 (available with the online version of this article), expressions are given to calculate the prevalence and the test characteristics from the parameters defined in A1.1. Finally, in Appendix A1.3 (available with the online version of this article), the equations are given to calculate the cell probabilities of the different test result combinations when h = 4. When fewer than 4 tests are used, the probabilities can be extracted from these equations by dropping excess terms, eg, P(111) = θ1 θ2 θ4 θ8 + (1−θ1)(1−θ3)(1−θ7)(1−θ15).


Constraints on the parameters need to be imposed to estimate the prevalence and the test characteristics using equation 2. We classify these constraints into 2 types: deterministic and probabilistic. Setting Se (or Sp) to a particular value is an example of a deterministic constraint, as is the assumption of conditional independence. Specifying a prior distribution for a parameter or for a function of parameters (like a contrast) is an example of a probabilistic constraint in a Bayesian setting.

In a frequentist context, m independent deterministic constraints reduce the number of parameters to estimate exactly by m. For instance, when using 2 tests (h = 2), the assumption of conditional independence between the tests reduces the number of parameters to be estimated from 7 to 5 (see Table 2). When fixing the specificity of one test to say one, the number of parameters to estimate is further reduced by one. In a Bayesian context, things are more difficult because it is not immediately clear what impact a probabilistic constraint has on the number of parameters to estimate. In this context, Spiegelhalter et al16 proposed to measure the effective number of estimated parameters in a fitted statistical model by pD. This measure is not an integer any more, even for a deterministic constraint, because it is calculated as the difference of the posterior mean of the deviance and the deviance evaluated in the posterior mean. More details are given in the next section.


As described in the introduction, experts have difficulty expressing their prior knowledge in quantitative terms (sensitivity and specificity). Our experience shows that often the prior information is in conflict with the actual observed data. In the context of diagnostic testing, this is evidently a crucial handicap. Several authors have addressed this problem in the statistical literature,25 but it is not immediately clear how the proposed measures for discordance can be implemented in our context. Here, 2 measures are proposed. The first one is based on a Bayesian goodness-of-fit test leading to a Bayesian P value. The second one uses the recently introduced deviance information criterion (DIC).16 Both measures are reviewed here in the context of analyzing collapsed tables of diagnostic test data in a Bayesian manner. Although not absolutely necessary, we assume that Bayesian estimation is done through MCMC sampling and reference is made to the WinBUGS software. A detailed account of the computation of both measures is given in Appendix 2 (available with the online version of this article).


Deviance Information Criterion and pD

In this section, we discuss the performance of DIC and pD in the context of a possibly overspecified multinomial model. That is, we look at the behavior of DIC and pD when q > (k − 1) and we focus on model (2). When q ≤ (k − 1), we expect pD ≈ k − 1 − q. Unfortunately, this will not necessarily be the case for model (2) because this model is not log-concave in its parameters. Things become worse when q > (k−1) because then the log-likelihood must be flat around the maximum likelihood estimate if no constraints have been imposed. However, if the multinomial model is parameterized in its multinomial probabilities, ie, in π i (i = 1,..., k−1), then for all cases, the log-likelihood will be concave in its parameters. Consequently, we suggest evaluating DIC and pD always in the posterior mean of π i (i = 1,..., k−1). However, there is one remaining problem, namely that pD (if based on the multinomial probabilities) is always smaller than k − 1 regardless of whether the model has been overspecified. To have an idea of when the model has been overspecified, we suggest calculating pD also using the posterior means of its parameters, ie, for model (2) on the posterior means of the parameters θ1 to θ31 for h = 4. Empiric evidence shows that without sufficient constraints in that case, pD is negative, resulting in a diagnostic tool that can indicate whether all our parameters are estimable.

To exemplify our reasoning in the previous paragraph, we take the case of h = 1, which is when there is only one diagnostic test and the multinomial model contains only 2 cells, ie, π1=P(T1+)andπ2=P(T1−). In this case, π1 = θ1θ2 + (1−θ1)(1−θ3) and π2 = θ1(1−θ2) + (1−θ13. The log-likelihood is not concave in θ1, θ2, and θ3 but clearly it is in π1 (we can neglect π2 because it is 1 − π1). Without any constraints on θ1, θ2, and θ3, the multinomial parameter π1 will vary freely, thus pD ≈ 1 if based on the posterior mean of π1. However, experience showed that pD becomes negative when based on θ1, θ2, and θ3. When putting constraints on θ1, θ2, and θ3, nothing will change if these constraints do not put a constraint on the multinomial parameter π1, and so pD will stay around 1. Only when the constraints on θ1, θ2, and θ3 affect the mobility of the multinomial parameter, pD (based on π1) will shrink. On the other hand, pD based on θ1, θ2, and θ3 will be negative if the constraints were not sufficient to constraint π1. A comparison of the 2 pD-values will immediately reveal whether the parameters θ1, θ2, and θ3 are estimable.

From a practical point of view, we can conclude in general:

  • DIC and pD should be evaluated in the posterior mean of the multinomial probabilities and in the posterior mean of the parameters of the model. In WinBUGS language, the latter are called “parent nodes.” Thus, we need 2 evaluations of DIC and pD, one within WinBUGS and one outside WinBUGS;
  • Only when the 2 pD-values are smaller or equal to 2h − 1 is there hope that the prevalence of the disease can be estimated; and
  • Models with a high value for DIC indicate a bad model in a Bayesian sense, meaning that either the model (likelihood) part is badly specified or the prior distributions are not compatible with the data. Consequently, when comparing different prior knowledge combined with the same likelihood, prior knowledge that is in conflict with the observed data is reflected in a high value for DIC.

Bayesian P Value

When the model has been overspecified, the Bayesian P value (as defined in our approach) will be around 0.50. The reason for this is that the posterior probability for the multinomial probabilities will be flat. However, as shown in Appendix 3 (available with the online version of this article), this test quantity is a useful indicator for the actual model fit because the Bayesian P value tends to zero if there is a good model fit and to one if the fit is poor.

Modeling Exercise

We now examine the behavior of DIC, pD, and the Bayesian P value using theoretical frequencies.

The prevalence of the disease is taken equal to 0.5. Furthermore, we assume 2 diagnostic tests T1 and T2 (h = 2), both with specificity equal to 1, ie, with no false-positive results. The sensitivity of T1 equals 0.60 and the sensitivity of test T2 equals 0.70, but there is conditional dependence, ie, in terms of the parameters in Appendix 1, θ4 and θ5 are not equal. In summary: θ1 = 0.50, θ2 = 0.60, θ3 = 1, θ4 = 0.90, θ5 = 0.40, θ6 = 1, and θ7 = 1. This yields the following theoretical probabilities for the 22 collapsed contingency table: P(00) = 0.62, P(01) = 0.08, P(10) = 0.03, and P(11) = 0.27. For a study of N = 1000, the expected cell frequencies are therefore r1 = 620, r2 = 80, r3 = 30, and r4 = 270 and the expected number of diseased subjects is equal to ND+ = 500. We test the following models on this dataset:

  • M1: no prior constraints;
  • M2: specificity of T1 = 1, specificity of T2 = 1;
  • M3: specificity of T1 = 1, specificity of T2 = 1, sensitivity of T1 constrained uniformly to interval [0.5, 0.7] and the sensitivity of T2 constrained by a uniform prior on θ4 to interval [0.8, 1] and a uniform prior on θ5 to interval [0.3, 0.5];
  • M4: specificity of T1 = 1, specificity of T2 = 1, the sensitivity of T1 severely constrained uniformly to interval [0.5999, 0.6001] and the sensitivity of T2 severely constrained by a uniform prior on θ4 to interval [0.8999, 0.9001] and a uniform prior on θ5 to interval [0.3999, 0.4001];
  • M5: constraints on specificity and sensitivity of T1 and T2 = 1 as in M4. Additionally, the prevalence is severely constrained by a uniform prior on θ1 to interval [0.4999, 0.5001];
  • M6: specificity of T1 = 1, specificity of T2 = 1, sensitivity of T1 wrongly constrained by a uniform prior to interval [0.8, 1]; and
  • M7: specificity of T1 = 1, specificity of T2 = 1, the sensitivity on T1 wrongly constrained by a uniform prior to interval [0.8, 1] and a wrongly positive conditional sensitivity of T2 by a uniform prior to interval [0.2, 0.4].

In the next section, these models are applied to the 22 contingency table of the expected frequencies. This exercise further exemplifies our reasoning in previous sections.


The results of applying models M1 to M7 are summarized in Table 3. Note that DIC and pD calculated from the multinomial probabilities for models M1, M2, and M3 differ only by random MCMC sampling variation.

Results of the Different Models Using the Theoretical Data Presented in the Text

In models M1 and M2, the constraints are not sufficient to estimate the parameters θ1 to θ7 of Appendix 1. This is reflected by negative pD-values estimated from the parent nodes. Observe that pD as calculated from the multinomial probabilities is practically equal to 3, the true value. Furthermore, for both models, the Bayesian P value is about 0.5, indicating no particular problem. Clearly, the prevalence of the disease is overestimated for both models. The constraint imposed on model M3 brings the parent-node pD close to 3, indicating that now all parameters are estimable. The prevalence is well estimated now, and the estimated sensitivities are close to their true values. In models M4 and M5, the constraints are made more stringent, but in the correct manner. Model M5 has the lowest DIC value of the 2, with the lowest pD-value almost equal to zero. This implies that parameters are set to their correct values. Indeed, the Bayesian P value indicates a nearly perfect but nonstochastic model. Furthermore, the prevalence and the sensitivities are basically equal to their true values. In models M6 and M7, enough constraints have been put on the parameters, because for each model, the 2 corresponding pD-values are almost equal to each other. However, the Bayesian P values indicate badly fitted models, which is also reflected in a badly estimated prevalence and sensitivities. (Of course, this would not be recognized in practice by the user.)


The Problem and the Data

Porcine cysticercosis is a major problem in many countries, causing a debilitating and potentially lethal zoonosis.26,27 Relatively accurate estimates of prevalence of cysticercae in fattening pigs are essential to appraise the risk for human infection. Several diagnostic tests are used, but none is a gold standard and exact information about test sensitivity and specificity is unavailable. A total of 868 traditionally kept pigs, offered for sale on a market near Lusaka (Zambia), were tested with the following 4 diagnostic tests: palpation of the tongue (TONG), visual inspection of the carcass (VISUAL), an antigen enzyme-linked immunosorbent assay (Ag-ELISA), and an antibody enzyme-linked immunosorbent assay (Ab-ELISA). A summary of the results is shown in Table 4. 28

Test Results of 868 Traditional Zambian Pigs Subjected to 4 Diagnostic Tests

The data in Table 4 were used to estimate the prevalence and the test characteristics under equation (2) and assuming a variety of expert opinions.

Prior Information

“Expert” opinion in the broadest possible sense was used to specify prior information on the diagnostic test characteristics. In this section, we call a model the combination of equation (2) with a particular set of deterministic and probabilistic (prior information) constraints. Some of the models were constructed from general principles only. For instance, in model M1, the “expert” opinion states that both test sensitivity and specificity can take any value between zero and one and that the 4 tests are mutually conditionally independent. For the other models, proper expert opinion was used. This expert opinion was obtained from helminthologists at the Institute of Tropical Medicine (Antwerp) and at Ghent University. They provided upper and lower limits for the various test sensitivity and specificity values. From biologic principles, they also concluded that the tests TONG and VISUAL are not independent in a truly infected population. A positive test result for TONG is nearly always accompanied by a positive result for VISUAL, whereas a negative TONG test nearly invariably means a negative VISUAL test.

The prior distributions for sensitivity and specificity are taken here as uniform distributions (beta[1, 1] truncated on the interval [a, b], with a being the under limit and b the upper limit as specified by the experts). These uniform distributions can be replaced by beta distributions (beta[α, β], where α and β are determined such that, say, 95% of the probability mass is located in [a, b]).


Table 5 lists the parameters to be estimated in each of the 7 models (M1 to M7) using all 4 tests that were constructed using the available “expert” opinion together with the limits that were applied to each parameter. The starting model (M1) assumes conditional independence of the 4 tests and no prior information on any of the diagnostic test characteristics (ie, test sensitivities and specificities have uniform prior distributions on ([0, 1]). The model M2 still assumes conditional independence and fixes the specificity of TONG test and the VISUAL test to one, but no other probability constraints were added. The deterministic constraints on model M1 imply that there we are estimating 9 parameters when 15 can be estimated. For model M2, we are estimating 7 parameters with again 15 estimable parameters.

Parameters to Be Estimated in the 7 Models That Were Constructed From the Available ‘Expert’ Opinion

Model M3 again assumes conditional independence, but now probabilistic constraints (inspired by the experts’ opinions) apply. At face value, there are still 7 parameters to be estimated, but the probability constraints imply probabilistic relationships among the parameters and hence fewer parameters need to be estimated. The actual number of parameters estimated in the model should be reflected in the value of pD.

The remaining models all considered conditional dependence. When no constraints are applied, 31 parameters need to be estimated, whereas only 15 parameters are estimable in the collapsed table (see model M4). Putting the TONG specificity and the VISUAL specificity both to one (model M5) reduces the number of parameters to be estimated to 19: conditional probabilities θ3 and θ6 become one and all parameters, appearing behind (1–θ3) and (1–θ6), no longer need to be estimated (ie, θ7, θ13, θ14, θ15, θ26, θ27, θ28, θ29, θ30, θ31).

The number of parameters to be estimated was further reduced by constraining both θ12 and θ24 to [0.9–1] (model M6), constraints that are moderate by most standards (a specificity equal to 0.90 is considered a low specificity). Finally, the conditional probabilities θ4 and θ5 were constrained to, respectively [0.9–1] and [0–0.1] (model M7). The constraints applied in models M6 and M7 are of probabilistic nature and hence imply that the actual number of parameters to be estimated lies below 19. Model M6 has between 17 and 19 parameters to be estimated. Conditional probabilities θ4 and θ5, which are constrained in model M7, reflect the expert opinion that the visual carcass inspection result is highly associated with the result of the tongue palpation. If the 2 tests are made identical (θ4 = 1 and θ5 = 0), the minimum number of parameters to be estimated becomes 6 (assuming 3 independent tests with specificity of one test equal to one) and the actual number of parameters to be estimated lies between 6 and 19. The listing for model M7 can be downloaded.21


As we expected, not all models converged. Table 6 shows the value of DIC, pD, and the Bayesian P value for each converged model. Table 7 shows the posterior means together with the 95% credibility intervals of the prevalence and the test characteristics of the 4 tests.

Deviance Information Criterion (DIC), Effective Number of Parameters Estimated (pD), and Bayesian P Value (P) for the Models That Converged
Posterior Mean for the Prevalence and the Test Characteristics Together With the 95% Credibility Interval (in parentheses) for the 3 Models That Converged

Model M1 did not converge in WinBUGS, which is not surprising given that symmetry yields several possible solutions depending on the starting conditions: replacing sensitivity by the complement of specificity, specificity by the complement of sensitivity, and prevalence by its own complement yields a symmetric solution (and there is thus an inherent problem of identifiability). Indeed, constraining the prevalence to either [0–0.5] or [0.5–1] results in convergence and estimates for all parameters (DIC = 63.3, pD = 0.3). Model M2 converged and yielded estimates for all parameters. The expert opinion used in model M3 did not improve the model fit. On the contrary, DIC increased from 97 to 945 and the Bayesian P value stayed at 1.0. The Bayesian P values for models M2 and M3 near 1.0 suggest a lack-of-fit, indicating that conditional independence test does not hold. Models M4, M5, and M6 did not converge, probably because they were overparameterized, which implies that the constraints were not strict enough to yield identifiable models. Model M7 converged and yielded the minimum DIC and an acceptable Bayesian P value of 0.48 (the Bayesian P value tended to zero when strict constraints were applied).

Table 6 shows the effective number of parameters estimated. For model M7, pD = 9.86. This illustrates that the 6 constraints (deterministic and probabilistic) on the 20 parameters to estimate have more effect than one might initially think. Indeed, model M7 is based on model (2), which is parameterized in a hierarchical manner with conditional probabilities. Constraints on lower-order conditional probabilities must have an effect on higher-order conditional probabilities.

Taking into account conditional dependence between the various diagnostic tests considerably reduces the estimated test sensitivity of both tongue palpation and visual carcass inspection and, most importantly, results in a much higher estimate of the true prevalence (Table 7).

External Model Validation

Additional data became available later, allowing external validation of the selected model. Namely, an additional 65 pigs were subjected to the 4 tests and completely dissected out on slaughter (gold standard), permitting the ascertainment of the true infection status and thus allowing estimation of the true prevalence as well as the test characteristics. The true prevalence was estimated as 0.48 (31/65) and the estimates of the test characteristics are shown in Table 8.

Test Characteristic Estimates in a Group of 65 Pigs Dissected Experimentally After Slaughter

Clearly, model M7 (Table 7) resulted in parameter estimates that are reasonably close to those obtained from the experimental dissections (Table 8).


Analysis of data generated by the application of one or more diagnostic tests in a specified population invariably entails “overfitting” of the data. The number of parameters that have to be estimated always exceeds the number that can be estimated. This can be resolved only by simplifying the model (deterministic constraints) or through the inclusion of expert opinion (probabilistic constraints). In the latter case, only a Bayesian approach can incorporate that information. Observe that the Bayesian approach is slowly becoming accepted by the medical community. Indeed, everyday practice is a reflection of the Bayesian philosophy. When a test is used within a certain population, it is implicitly assumed that the values of sensitivity and specificity, as supplied by the manufacturer of the test kit, apply to the population studied; this prior knowledge of the test characteristics is given so much credence that the test results are no longer needed to estimate Se and Sp, allowing estimation of the true prevalence.

The model developed on the basis of conditional probabilities allows formalization of this expert opinion, whatever form it might take. Anything from genuine information acquired through high-quality data to a personal opinion can be quantified and fed as a prior belief probability distribution into the model. Whether it is easy to specify a prior opinion on a conditional probability will depend on the actual tests involved, but we argue that it is practically impossible to give reliable prior information on the sensitivity of a diagnostic test. The user can monitor the effect of this prior belief on the results, and it may be easier for the user to appreciate the fact that the actual interpretation of the test results is conditional on the prior opinion. The effect of imposing deterministic or probabilistic constraints is reflected in the value of pD and can thus be evaluated.

Our approach is in sharp contrast to the approach of Pouillot et al29 in which conditional independence is accepted when a specific test shows no indication against this assumption. However, not much is known about the power of this test. Instead, we suggest working under the assumption of conditional dependence and applying a sensitivity analysis on the estimation of the prevalence and the test characteristics by varying the prior distributions.

The results of the different scenarios applied to the present example clearly show that the estimate of the infection prevalence depends on the model chosen, and that widely varying estimates can be obtained. It is important that users understand this and realize that the expert opinion has a great impact on the final estimation of the prevalence. However, as the simulation and the real-life study show, DIC, pD, and the Bayesian P value are useful in the process of selecting a model. We must, however, warn the user that the information in the collapsed table over the disease groups contains inherently little information on the prevalence and the test characteristics. Finally, the present example shows that “classic” testing with one or more tests, assuming constancy of test parameters and independence of tests, may grossly underestimate true prevalence and thus, in our case, the seriousness of the zoonosis.


1. Rogan WJ, Gladen B. Estimating prevalence from the results of a screening test. Am J Epidemiol. 1978;107:71–76.
2. Thrusfield D. Veterinary Epidemiology. Oxford University Press; 1995.
3. Toma B, Bénet J-J, Dufour B, et al. Glossaire d'Épidémiologie Animale. Éditions du Point Vétérinaire; 1991.
4. Billiouw M, Vercruysse J, Marcotty T, et al. Theileria parva epidemics: a case study in eastern Zambia. Vet Parasitol. 2002;107:51–63.
5. Billiouw M, Brandt J, Vercruysse J, et al. Evaluation of the indirect fluorescent antibody test as a diagnostic tool for East Coast fever in eastern Zambia. Vet Parasitol. 2005;127:189–198.
6. Saegerman C, De Waele L, Gilson D, et al. Evaluation of three serum i-ELISAs using monoclonal antibodies and protein G as peroxidase conjugate for the diagnosis of bovine brucellosis. Vet Microbiol. 2004;100:91–105.
7. Greiner M, Gardner IA. Epidemiological issues in the validation of veterinary diagnostic tests. Prev Vet Med. 2000;45:3–22.
8. Begg CB. Biases in the assessment of diagnostic tests. Stat Med. 1987;6:411–423.
9. Georgiadis M, Johnson W, Gardner I, et al. Correlation-adjusted estimation of sensitivity and specificity of two diagnostic tests. Appl Stat. 2003;52:63–76.
10. Hui SL, Walter SD. Estimating the error rates of diagnostic tests. Biometrics. 1980;36:167–171.
11. Joseph L, Gyorkos TW, Coupal L. Bayesian estimation of disease prevalence and the parameters of diagnostic tests in the absence of a gold standard. Am J Epidemiol. 1995;141:263–273.
12. Johnson WO, Gastwirth JL, Pearson LM. Screening without a ‘gold standard’: the Hui-Walter paradigm revisited. Am J Epidemiol. 2000;153:921–924.
13. Toft N, Jørgensen E, Højsgaard S. Diagnosing diagnostic tests: evaluating the assumptions underlying the estimation of sensitivity and specificity in the absence of a gold standard. Prev Vet Med. 2005;68:19–33.
14. Enoe C, Georgiadis MP, Johnson WO. Estimation of sensitivity and specificity of diagnostic tests and disease prevalence when the true diseases state is unknown. Prev Vet Med. 2000;45:61–81.
15. Branscum AJ, Gardner IA, Johnson WO. Estimation of diagnostic-test sensitivity and specificity through Bayesian modelling. Prev Vet Med. 2005;68:145–163.
16. Spiegelhalter DJ, Best NG, Carlin BP, et al. Bayesian measures of model complexity and fit (with discussion). J R Stat Soc [Ser B]. 2002;64:583–640.
17. Gelman A, Carlin JB, Stern HS, et al. Bayesian Data Analysis, 2nd ed. Chapman & Hall/CRC; 2003.
18. Spiegelhalter DJ, Thomas A, Best NG, et al. WinBUGS Version 1.4 User Manual. MRC Biostatistics Unit; 2003. Available at:
19. The R Project for Statistical Computing. Available at:
20. bugs.R: functions for running WinBugs from R. Available at:∼gelman/bugsR/.
21. R and WinBUGS program listings. Available at:
22. Gardner IA, Stryhn H, Lind P, et al. Conditional dependence between tests affects the diagnosis and surveillance of animal diseases. Prev Vet Med. 2000;45:107–122.
23. Dendukuri N, Joseph L. Bayesian approaches to modelling the conditional dependence between multiple diagnostic tests. Biometrics. 2001;57:208–217.
24. Adel A, Berkvens D. Modelling conditional dependence between multiple diagnostic tests, using co-variances between test results. Internal Technical Report, ITM; April 16, 2002. Available at:
25. Young K, Pettit L. Measuring discordancy between prior and data. J R Stat Soc [Ser B]. 1996;58:679–689.
26. Garcia HH, Del Brutto OH. Taenia solium cysticercosis. Infect Dis Clin North Am. 2000;14:97–119.
27. Phiri IK, Dorny P, Gabriel S, et al. The prevalence of porcine cysticercosis in eastern and southern provinces of Zambia. Vet Parasitol. 2002;108:31–39.
28. Dorny P, Phiri IK, Vercruysse J, et al. A Bayesian approach for estimating values for prevalence and diagnostic test characteristics of porcine cysticercosis. Int J Parasitol. 2004;34:569–576.
29. Pouillot R, Gerbier G, Gardner IA. ‘TAGS,’ a program for the evaluation of test accuracy in the absence of a gold standard. Prev Vet Med. 2002;53:67–81.

Supplemental Digital Content

© 2006 Lippincott Williams & Wilkins, Inc.