WorksMathematics
Bayesian Nonparametric Sensitivity Analysis for Unmeasured Confounding in Data Fusion
Abstract
Causal conclusions from observational data rest on assumptions, such as exchangeability over treatment, that cannot be verified from the data alone. Sensitivity analysis asks how conclusions change as such assumptions are relaxed. We develop a Bayesian nonparametric sensitivity analysis framework based on Causal-ICM, a multi-task Gaussian process model that places a prior on the causal response surface and the observational outcome regression. Their prior correlation is the key sensitivity parameter, where each value returns a full posterior for the average treatment effect, rather than only a bound or a point estimate. The framework applies to observational data alone and extends directly to settings where a randomised trial is available alongside a larger, potentially confounded observational study. Full pooling and the trial-only analysis then emerge as endpoints of the same sensitivity analysis. The posterior mean of the average treatment effect decomposes into a trial-only component plus a shift due to observational data, and for any correlation below one, posterior uncertainty remains bounded away from zero however large the observational study becomes. We illustrate the framework with simulations and a synthetic-data example combining a randomised trial of oral semaglutide with real-world health data, in which the trial's conclusion holds across the entire sensitivity range, regardless of how much the observational data are trusted.
Introduction
Assessing the robustness of causal conclusions to violations of identifying assumptions, such as unmeasured confounding, is a central task in causal inference from observational data. Causal sensitivity analysis addresses this task by examining how conclusions change as such assumptions are relaxed [7, 23]. Most existing frameworks fit a fixed sensitivity model to a single study and report either a worst-case bound or a point estimate for each hypothesised degree of violation, for example bounds on treatment-assignment bias [25, 35], bounds on outcome-model discrepancies [3, 13, 34] and potential outcome distributions [22], or interpretable scalar summaries such as the E-value [28] and the robustness value [4].
A Bayesian causal sensitivity analysis treats the magnitude of an assumption violation, such as confounding bias, as an unidentified parameter and assigns it a prior [9, 21]. This differs from Bayesian prior sensitivity analysis in identified models [2] where the influence of the prior typically diminishes as the sample grows. In a causal setting, however, assumption violations may remain only partially identified, so prior assumptions can continue to influence causal conclusions even in large samples [14]. The posterior for the causal effect therefore combines sampling variability, which shrinks with sample size, and uncertainty about the bias, which does not. Existing approaches either rely on parametric outcome models [21], or place a prior only on the violation and use it to assess the sensitivity of a frequentist estimate, without updating the prior with the study data [9]. Others fit flexible Bayesian outcome models but fix the sensitivity parameters and report a posterior at each value [11, 13].
The growing availability of large-scale observational studies has sparked interest in data fusion techniques that combine potentially confounded real-world data with randomised experiments. This body of literature addresses the fundamental tension between randomised controlled trials (RCTs), which provide internal validity but are often small and may not be representative of the target population, and observational studies that may be more reflective of ongoing clinical practice but may be affected by unmeasured confounding [15, 24]. Several approaches for point estimation have been proposed to manage unmeasured confounding in the observational study: testing compatibility before pooling [31, 33], tempering the influence of the observational data on the analysis [20] (Dimitriu et al. 2026), using the trial to correct observational estimates [17] (Wu & Yang 2022), or using the trial to detect bias in the observational study [12]; see Colnet et al. (2024) and Lin, Tarp, and Evans (2024) for reviews. Moving beyond point identification, recent frameworks derive partial-identification bounds under explicit violation parameters [18] or use external data that measure the unmeasured confounder to undertake probabilistic sensitivity analysis [6].
This paper develops a Bayesian sensitivity analysis framework for the Average Treatment Effect (ATE) that relaxes the assumption of no unmeasured confounding in the observational study, so that the observational outcome regression is uninformative about the causal response surface identified by the randomised trial. Building on Gaussian process approaches to causal inference and heterogeneous treatment effect estimation [1, 29], we jointly model the trial and observational outcome regressions under the Causal-ICM framework introduced in Dimitriou et al. [10]. When only observational data are available, our approach is a Bayesian analogue to the Outcome Sensitivity Model (OSM) of Bonvini et al. [3] in its focus on departures of the observational outcome regressions from the causal ones. Where the OSM bounds these departures, Causal-ICM induces a prior on them and so yields a posterior for the causal effect; it also extends naturally to the data fusion setting when trial data are also available. It builds on work that places priors over assumption violations [9] and on methods that borrow from observational data in data fusion [20]. We encode sensitivity through a prior correlation, yielding closed-form posteriors across the full sensitivity spectrum. We show that: (1) under Causal-ICM, the posterior mean and variance of the causal effect decompose into an RCT-only term and an observational contribution; (2) the shift in the posterior mean induced by observational data does not grow with the observational sample size; and (3) when trial data are available, the confounding bias of the observational study, which is unidentifiable in the single-study setting, is identifiable and has a closed-form posterior under Causal-ICM.
§ 2 sets out notation and identifying assumptions; § 3.1 reviews multi-task Gaussian processes and Section 3.2 presents Causal-ICM, and § 3.3–§ 3.4 characterise its posterior without and with trial data, establishing identifiability and bounds on the influence of the observational data; § 3.5 shows that the trial identifies the confounding bias; § 4.1–§ 4.2 illustrate the framework in simulations and in synthetic data based on the PIONEER 6 clinical trial; § 5 concludes with a discussion.
Notation, Assumptions, and Identification
We consider two data sources: an RCT, denoted by of size , and an observational study, denoted by of size . The study indicator is , binary treatment is , baseline covariates are , potential outcomes are , and observed continuous outcomes . Let be a (set of) latent variable(s) such that would be sufficient to control for confounding of the effect of on were observable in . Figure 1 represents the causal structure of our setting.
Figure 1. Directed Acyclic Graphs representing the causal structure of (a) the RCT and (b) the observational study. The edge from to in the RCT represents stratified randomisation and it is included for completeness; under simple randomisation, this edge would be omitted.
For and for treatment level , let be the study-specific causal response surface, so that the study-specific conditional average treatment effect (CATE) is . Let denote the experimental outcome response surface, and let denote the observational outcome regression function, for treatment arm . For the observational study, define the latent -conditional causal response surface .
Identification assumptions connect these causal quantities to observable conditional means. The stable unit treatment value assumption (SUTVA) is assumed in both studies; the remaining assumptions are stated separately for the trial and observational data.
A1 SUTVA: an individual’s potential outcome depends only on their own treatment (no interference), treatment versions do not affect potential outcomes (no relevant hidden versions), and for each (consistency).
Identifying from the experimental data requires the following assumptions:
A2 Mean conditional exchangeability over given in the RCT: for each , , i.e. treatment assignment in the RCT is mean-independent of the potential outcomes given ,
A3 Positivity in the RCT: for each , $0 < \mathbb{P}(A = a \mid X = x, S = e) < 1$ for all in the support of .
Under A1–A3, it follows that , so that the CATE in the RCT can be identified with the difference in the outcome response surfaces, which are estimable from data:
Identification when using observational data requires additional assumptions (Figure 1). To link the two studies and use the observational data we make the following assumptions:
A4 Latent mean conditional exchangeability over in the observational study: for each , ; we do not assume this holds conditional on alone,
A5 Positivity in the observational study: for each , almost surely,
A6 *Mean conditional exchangeability over : for each , ; this is marginal over , requiring equality of the marginal causal response surfaces across studies given , but not equality of the -conditional surfaces,
A7 Positivity of RCT participation: for all in the support of .
Assumption A4 says that the combined covariate set together suffice to control confounding in the observational study, though note in practice we only observe . Assumption A6 implies , and hence on the common covariate support of the two studies. This assumption may fail, for example due to effects differing between populations or due to trial engagement effects [8, 27]. Combined with the RCT identification result, it gives in that common support, provided Assumption A3 holds: the RCT identifies the observational-population causal response surface, without requiring itself to be causal. Indeed, using A1, the law of total expectation, and A4,
whereas . In general , because the observational regression averages the latent causal response over the treatment-arm-specific distribution of , whereas the causal response surface averages it over the marginal distribution of given alone.
We define the arm-specific observational confounding bias as the resulting discrepancy,
which, by Assumption A6, is equivalently : the discrepancy between the observational and the experimental response surfaces identifies the arm-specific confounding bias. Under A1–A3 and A6, and on the common support where both treatments have positivity probability in each study, for is equivalent to mean conditional exchangeability over treatment in the observational study given .
Define the observational treatment contrast . Since , the bias decomposition above gives
so the discrepancy between the observational and experimental treatment contrasts is exactly the difference between the arm-specific confounding biases, which we henceforth denote .
The CATE provides the building block for the population summaries considered below. For a target distribution , the ATE is . Likewise, for a baseline-defined subgroup (), the subgroup average treatment effect is . Both estimands average the same function and differ only in the weighting over different covariate distributions.
The discrepancy quantifies how much the observational regression differs from the causal response surface identified by the trial. Pooling the studies amounts to assuming , while a trial-only analysis discards the observational data. Between these extremes, we now seek a joint model for and that allows to be non-zero and specifies how closely the two surfaces are related a priori. The next section introduces such a model, -, in which a sensitivity parameter sets the prior correlation between the two surfaces.
Methodology
Causal-ICM models the experimental and observational outcome regressions jointly as correlated Gaussian processes. Their prior correlation, , is the sensitivity parameter that controls how strongly observational data may inform the causal surface identified by the RCT. We first review multi-task Gaussian processes, on which Causal-ICM is built.
Preliminaries: Multi-task Gaussian Processes
A Gaussian process (GP) is a collection of random variables such that any finite subset of the variables has a joint Gaussian distribution. It is completely specified by a mean function and a covariance function; we take the mean to be zero throughout. For brevity we drop the arm index below, writing and unless stated otherwise.
For each treatment arm,
where is a matrix-valued covariance kernel whose entry is
Thus, for any inputs , where , and and the experimental and observational sample sizes, the stacked vector
is a multivariate Gaussian with block covariance matrix whose block is . The off-diagonal entries and encode prior dependence between the experimental and observational regressions, and hence determine the extent of information sharing across the two studies.
As usual, we assume a Gaussian observation model,
with independently across tasks and observations, , ; a common noise variance across studies is assumed for simplicity but is easily relaxed.
The Intrinsic Coregionalization Model (ICM) is a special case of a multi-task GP with a separable kernel, in which each task function is a linear combination of shared independent latent functions,
where are i.i.d. for a chosen kernel , and we set . The resulting multi-task covariance function factorises as
where is the coregionalisation matrix, encoding the prior covariance between tasks.
Causal-ICM: a -Coupled Joint Prior
We define Causal-ICM by fixing these coefficients as
so that
Under this parameterisation the coregionalisation matrix coincides with the correlation matrix,
Thus, is the pointwise prior correlation between the experimental and observational outcome functions at every , controlling information sharing between the two studies. Larger values favour closer agreement between the surfaces, whereas smaller values allow greater departures.
Having specified the -coupled prior, we now characterise the posterior it induces, before leveraging that posterior for sensitivity analysis with only observational data (§ 3.3) and data fusion (§ 3.4). Let denote the experimental and observational data, and let be a test point. The following proposition gives the joint posterior distribution of the experimental and observational response surfaces, in closed form and for any .
Proposition 3.1 (Joint posterior distribution of Causal-ICM). Let
Under Causal-ICM, the joint posterior distribution of is bivariate normal,
with
Proof. The proof is provided in Web Appendix C.1.
Once the causal quantities have been identified under the assumptions stated above, inference is a statistical task. Proposition 3.1 follows from the Causal-ICM prior and Gaussian likelihood, without further causal assumptions. We now relate the two response surfaces to the causal quantities of interest.
Sensitivity Analysis from Observational Data Alone
When only observational data are available, Causal-ICM is most directly comparable to the OSM of Bonvini et al. [3], which bounds departures from the observational regression . Suppose an unmeasured confounder suffices for conditional exchangeability, , and assume SUTVA (A1) and treatment positivity, , for each arm almost surely. Defining , the model imposes
These assumptions yield the sharp bounds , where . Thus, controls the maximum absolute average discrepancy on the outcome scale.
In Causal-ICM, plays an analogous sensitivity role to . With observational data alone, corresponding to in Proposition 3.1, we have information only about the observational surface , while the causal surface remains unidentified. Our correlated Gaussian process prior nevertheless links the two surfaces, yielding a posterior over through its assumed dependence on . Suppose we observe only , with , . Under the Causal-ICM prior, the likelihood depends on alone,
so .
Corollary 3.2 (Observational-data-only posterior, Causal-ICM). Suppose only is observed, and let . The posterior of the observational surface is , where
Under Causal-ICM, the posterior of the experimental (causal) surface is then
Proof. See Web Appendix C.2.
Corollary 3.2 has three consequences with parallels to the OSM. First, the causal posterior mean is , where is the estimate one would report by treating the observational regression as causal. As the two coincide (full borrowing), and as the estimate is pulled to the prior mean. Second, if lies in the support of the observational covariates, letting sends to some , with for the RBF kernel used in § 4.1, so the causal posterior variance converges to , which stays positive for . The term is the prior variance of the confounding bias given , which observational data cannot reduce. This is the Bayesian counterpart of the OSM interval , which also does not shrink with sample size, with smaller behaving like larger . Third, because , the experimental posterior is obtained entirely through the prior link, i.e. , so that in the absence of trial data, we cannot learn anything about beyond what reflects from . We see below that the availability of trial data reduces this dependence on the prior.
Data Fusion with RCT Data
When RCT data are available, under the trial-specific assumptions (Assumptions A1–A3) we can identify the experimental causal response surface which, under a study exchangeability assumption (A6), corresponds with the observational-population causal response surface. This means that the discrepancy between the observational and causal regressions becomes identifiable. The parameter governs how strongly the observational regression is allowed to inform the causal estimate.
The joint posterior in Proposition 3.1 immediately yields the marginal posteriors for each study-specific response surface. Writing these marginals separately is useful because it isolates the posterior for , the trial-specific causal surface, from the posterior for the observational regression .
Corollary 3.3 (Posterior distribution of the experimental surface). Under Causal-ICM, the posterior distribution of the experimental (causal) surface at is
where
and and are the posterior mean and variance of given the trial data alone.
Proof. The marginal of a bivariate normal is normal, with the corresponding entry of the mean vector and the corresponding diagonal entry of the covariance matrix. Applying this to the first component of Proposition 3.1 gives the result.
By Corollary 3.3, the observational data update the trial-only posterior of the experimental surface through a mean shift and a variance reduction,
The shift pulls the trial-only posterior mean towards the observational outcomes, in proportion to what the observational data tell us about once we condition on trial data. Specifically, is the part of the observational outcomes that the trial data do not already predict, and it is weighted by its posterior covariance with given the trial data. The variance reduction is larger when the observational covariates lie close to and are poorly covered by the trial.
We next show that a large observational sample cannot move the posterior mean of arbitrarily far from its trial-only value, indicating a level of robustness.
Proposition 3.4 (Bounds on the observational shift). Fix , , treatment arm , prior correlation , and let be the reproducing kernel Hilbert space of . Let be the true observational sampling law, and let be the observational regression under this law with . Suppose the following conditions hold.
(B1) The observational regression function lies in .
:::`
(B2) The errors are i.i.d. with finite variance , and are independent of . If and , then
conditional on the fixed trial and uniformly over observational designs. If or , then for every observational outcome vector.
Proof. The proof is provided in Web Appendix C.3.
Thus, under (B1) and (B2), the shift induced by the observational data is of order : with the trial data held fixed, letting cannot move the posterior mean arbitrarily far from the trial-only estimate. Smaller values of tighten this bound, and at the observational data have no effect.
Observational studies are typically much larger than RCTs. Under full borrowing, this size imbalance can cause the observational likelihood to dominate the posterior, producing overconfident estimates when the observational regression surface is affected by residual confounding. Having bounded the shift in the posterior mean, we now turn to the posterior variance and show that the reduction in uncertainty attainable from the observational data is likewise limited. The following bound was derived in Dimitriou et al. [10].
Proposition 3.5 (Posterior variance bound; Dimitriou et al. [10]). Let and denote the posterior variances of given and respectively. For ,
Proof. The result follows from the bound on , established in the proof of Proposition 3.4; see Web Appendix C.4.
Since and , also . Together, the two bounds give . Thus, adding observational data can reduce the posterior variance of the experimental surface by at most relative to the trial-only posterior variance. At , the lower bound is 0; at , it equals . For , the bound is independent of : posterior variance under does not converge to 0 as .
Identification of the Confounding Bias
Under A1–A7 the arm-specific confounding bias is . In a single observational study this discrepancy is unidentified and can only be bounded, as in the OSM through . With trial data and under our assumptions, it is identifiable, and under Causal-ICM it has a closed-form posterior. For each arm , let .
Proposition 3.6 (Identification and posterior of the confounding bias). Fix . Suppose Assumptions A1–A7 hold. Then
Under Causal-ICM, for any test point ,
Proof. The proof is provided in Web Appendix C.5.
Trial data make the observational confounding bias identifiable, unlike in the observational-only OSM, where is bounded by rather than learned from the data [3]. The parameter controls the prior dependence between the surfaces: forces and hence , whereas smaller values allow greater discrepancies. Under arm-specific independence, the posterior of is Gaussian, with mean equal to the difference of the arm-specific posterior means and variance equal to the sum of their posterior variances.
Numerical Results
Simulation Study
To illustrate how Causal-ICM can be used in a sensitivity analysis, we simulate an observational study and a randomised trial from a common data-generating process (DGP) with a known, unmeasured confounder in the observational study.
Let be independent covariates, with observed in both studies and observed in neither. Treatment assignment and outcomes are generated as
where indexes the observational and experimental studies respectively. In the observational study, treatment is confounded through , while in the RCT treatment is assigned independently of by design, satisfying Assumption A2. We use and , with observational units and RCT units. The outcome is centred by subtracting its pooled sample mean across both studies before analysis, so that all reported levels are deviations from the overall mean; the ATE, being a contrast, is unaffected by this transformation.
We select the hyperparameters of the RBF kernel for the Causal-ICM models in the same way, using the observational data for the observational-only posterior and the RCT data for the data-fusion posterior. Covariates are standardised with the RCT mean and standard deviation; the kernel length scale is set using the median pairwise distance between covariate values, the signal variance to the empirical outcome variance, and the noise variance is estimated from the residuals of a linear model. For Causal-ICM under data fusion, the GP prior means are the RCT arm means. For the observational-only Causal-ICM, the prior mean for both arms is the mean outcome over all observational units (treated and control combined); as each arm’s posterior mean reverts to the same prior mean, so the posterior mean for the ATE centres around zero.
We compare three sensitivity analyses: the OSM of Bonvini et al. [3], the Causal-ICM posterior using observational data alone, and the Causal-ICM posterior using the RCT and observational data jointly, i.e. data fusion, for , , and the ATE .
Figure 2 compares the three approaches. The OSM point estimate (row A) does not change with , because the OSM widens bounds around a fixed point estimate. The resulting ‘tipping point’, where the ATE’s lower bound crosses zero, is (panel A3). Under Causal-ICM, by contrast, both the point estimate and the interval change with , because changes the posterior itself. With observational data alone (row B), the ATE’s tipping point is (panel B3), close to full pooling (). Introducing RCT data results in the joint posterior mean decreasing further as decreases, from at to at , and the tipping point moves to (panel C3). This is more robust than the observational-only case, consistent with the robustness properties established in Propositions 3.4 and 3.5, and requires a larger relaxation of the treatment exchangeability assumption in the observational study before the conclusion changes. Panels C1–C3 also show the RCT-only estimate (, point with 95% CI) for reference; the data-fusion band contains the true ATE only for .

Figure 2. OSM and Causal-ICM sensitivity analyses for (column 1), (column 2), and the ATE (column 3). Row A shows the OSM analysis of Bonvini et al. [3], as a function of the sensitivity parameter . Row B shows the Causal-ICM posterior using observational data alone, as a function of the prior correlation . Row C shows the Causal-ICM posterior using the RCT and observational data jointly (data fusion), with the RCT-only estimate (, point with 95% CI) shown alongside each panel for reference. The dashed black line marks the true value; the dashed grey vertical line marks the tipping point at which the lower bound of the 95% interval for the ATE crosses zero (, panel A3; , panel B3; , panel C3). Relative observational and RCT treatment/control sample sizes are reported below the figure.
Application to PIONEER 6 and Real-World Data
We now apply a Causal-ICM sensitivity analysis to estimation of the effect of oral semaglutide on HbA1c in patients with type 2 diabetes using data obtained by combining synthetic versions of the PIONEER 6 randomised trial Husain et al. [16] and a large US health claims database. PIONEER 6 was a randomised, double-blind cardiovascular safety trial that also recorded HbA1c after one year of treatment Husain et al. [16]. The claims database () provides a larger observational sample of patients in routine care and may be affected by residual confounding and by differences from the trial population.
The synthetic datasets were generated to reproduce key characteristics of the real datasets, using the frengression method of Yang et al. [32]. Frengression is a deep generative framework that models the relationships between variables around a specific causal effect to accurately estimate, faithfully simulate, and directly sample from complex, time-varying interventional data. The outcome for the trial () is HbA1c at one-year follow-up. To control for measured confounding, we adjust for baseline covariates available in both sources: sex, age, obesity history, diabetes, antihypertensive and lipid-lowering medication use, baseline HbA1c, HDL and LDL cholesterol, and serum creatinine. The outcome, covariates and prior means are processed as in § 4.1, and the target population is the trial population.
Full pooling () treats the claims-based HbA1c regressions as equal to the trial-identified response surfaces. We assess how far can be lowered from 1 before the conclusion changes, that is, where the tipping point lies (Web Appendix B). For the observational-only Causal-ICM posterior, we set the GP hyperparameters by fitting two independent GPs, one per treatment arm, to the observational data alone, optimising the marginal likelihood. Given the size of the claims database, we use inducing points Titsias [26] to speed up this optimisation. For the data fusion Causal-ICM posterior, we fit the same two GPs to the RCT data instead, using the full trial data since the trial is comparatively small. This ties the hyperparameters to the randomised data rather than to the larger and possibly confounded claims data. For the subgroup analyses, we repeat this step within each subgroup, so that length-scales and noise variance can differ between subgroups.
We report the Causal-ICM data-fusion posterior for the full sample and for two subgroups defined by baseline HbA1c, using the clinical threshold of 5.7% that is the threshold between non-diabetic and prediabetic patients. These subgroup analyses were not prespecified and are interpreted as exploratory. Among participants with established
type 2 diabetes, this distinguishes baseline glycaemic levels rather than diabetes status.
Figure 3 shows that the 95% credible band of the ATE excludes zero for every , in the full sample and in both subgroups, so there is no tipping point. In the full sample (row A), the joint posterior mean of the ATE moves from approximately at full pooling () to at the RCT-only endpoint (), the latter consistent with the original PIONEER 6 trial (Husain et al., [16]); moving towards full pooling shifts the point estimate further from zero and narrows the credible band, so the claims data strengthen the trial’s conclusion. Patients with baseline HbA1c of at least 5.7 (row C) drive this result, with the ATE moving from approximately to . Among patients with baseline HbA1c below 5.7 (row B), the effect is much smaller in magnitude ( at and at ) and the band comes close to including zero, reflecting both a smaller true effect and fewer patients in this subgroup.
!Causal-ICM data-fusion posterior plots for E[Y(0)], E[Y(1)] and the ATE across full sample and baseline HbA1c subgroups, with estimates, 95% credible bands, RCT-only estimates at , and zero reference lines bbox=0.14,0.16,0.87,0.71
Figure 3. Causal-ICM data-fusion posterior using the PIONEER 6 trial and claims data, for , and the ATE (columns 1–3), plotted against , for the full sample (row A) and baseline HbA1c < 5.7 (row B) and ≥ 5.7 (row C). The point with error bar at gives the RCT-only estimate with its 95% CI; the grey line in the ATE panels marks zero.
In all three rows, the posterior mean and credible band change sharply between and and are nearly flat below that, so the conclusions are insensitive to departures from the no unmeasured confounding assumption in the observational study.
Real-world data alone tell a mixed story. While the OSM intervals include zero in both subgroups, observational-only Causal-ICM is uninformative for patients with baseline HbA1c yet estimates a negative effect for those with HbA1c when . Adding the RCT identifies the effect for the subgroup and recovers the full-sample result. For further details see Web Appendix D.
Discussion
We proposed a Bayesian nonparametric sensitivity analysis that does not assume the observational outcome regression and the causal response surface are the same function; we instead model them as two related functions with a joint prior, and the prior correlation quantifies how close they are. The joint prior induces a prior on the confounding bias whose scale is set by , so each value of gives a posterior for the causal response surface rather than a bound. With observational data alone, this posterior reflects uncertainty about the bias as well as sampling variability, and its variance does not vanish as (Corollary 3.2). With trial data added, full pooling () and the trial-only analysis () become the two endpoints of the same analysis. The confounding bias has a closed-form posterior (Proposition 3.6), and the influence of the observational data on the trial-only posterior is limited by (Proposition 3.5).
The PIONEER 6 application shows how the method can be used in practice. We emphasise that the analysis uses synthetic versions of the trial and the claims database, so it illustrates the method rather than providing clinical evidence on oral semaglutide. In the full sample, the trial’s conclusion holds at every value of , and the claims data serve to add precision, mainly when is close to 1. More generally, we recommend reporting the whole curve in , from the trial-only analysis () to full pooling (), together with any tipping point, rather than deciding whether to pool. Read this way, the curve in shows how the conclusion depends on the degree of borrowing from the observational data.
Several limitations suggest extensions. First, is a single scalar shared across covariate values and treatment arms; allowing or arm-specific correlations would allow the degree of borrowing to vary across the covariate space. Second, interpreting the difference between the observational and trial outcome regressions as confounding bias
relies on Assumption A6. If A6 fails, this difference also absorbs differences between the studies’ causal response surfaces, which the current model does not distinguish from confounding. Incorporating a transportability component as in Lanners et al. [18] could separate the two. Third, although the induced prior on the bias gives an outcome-scale interpretation, that interpretation depends on the kernel variance; calibrating against the identified bias offers an alternative. Fourth, the kernel and noise hyperparameters are fixed at plug-in values, so the credible bands are conditional on these as well as . A fully Bayesian approach would propagate their uncertainty. Fifth, our closed-form results rely on continuous outcomes with Gaussian noise. Binary and survival outcomes would require alternative likelihoods and corresponding extensions to posterior inference. Finally, our approach places sensitivity on the outcome regressions, but the same idea could be applied to treatment assignment. A Bayesian counterpart of the Marginal Sensitivity Model ([25]) would replace the bound on the odds ratio between propensity scores with and without by a prior on that ratio. With trial data, may be partially identified, in which case it could be constrained by data rather than fixed in advance.
Acknowledgments
E.D. was funded by the Engineering and Physical Sciences Research Council [grant number EP/W524335/1] and by Novo Nordisk A/S, which also provided the data. E.F. receives funding from the Research Grants Council of Hong Kong through the Early Career Scheme (Grant 27304424) and the General Research Fund (Grant 17306925). J.M.T. is employed by Novo Nordisk A/S. K.D.-O was funded by a Royal Society-Wellcome Trust Sir Henry Dale fellowship (218554/Z/19/Z). B.L. received research funding from Novo Nordisk A/S. Claude (Anthropic) was used for language editing and code.
Data Availability
The data underlying the synthetic data analysis cannot be shared for commercial reasons.
Integration over a Target Covariate Distribution
Let denote a target covariate distribution on . Under Assumption A6, , hence
The target-population estimate of under Causal-ICM is . Using the pointwise decomposition ,
Similarly,
Proposition A.1. For ,
Proof. Proposition 3.5 gives for every . Integrating both sides with respect to and using monotonicity and linearity of the integral gives the result.
Since ,
Tipping-Point Analysis
Fix and treatment arm . Let denote the posterior experimental response surface under arm , with mean and covariance
For a target covariate distribution , define
As a linear functional of a GP, , with
Under independently modelled arm-specific surfaces, and
For a two-sided credible interval ,
We assess whether the posterior credible interval excludes zero. An interval entirely above zero supports a positive effect, while an interval entirely below zero supports a negative effect. We report the ranges of over which each conclusion holds.
A tipping point is a value of at which an endpoint of the credible interval meets zero:
If there is one tipping point, we denote it by ; if there are several, we report each and describe the conclusion on either side. At a tipping point, the credible interval includes zero. If the interval excludes zero only for , the tipping point marks the degree of borrowing from the observational data above which the posterior supports a nonzero effect. If it excludes zero only for , increasing borrowing beyond the tipping point removes that support. For a negative effect, the relevant endpoint is ; for a positive effect, it is .
Candidate tipping points can be located by evaluating and on a grid over , locating sign changes in or , and refining by bisection. and are continuous in wherever the relevant covariance matrices are positive definite.
For represented empirically by points with weights such that ,
or, with , the vector of posterior means and the posterior covariance matrix at the target points,
Proofs
Proof of Proposition 3.1
Proof. Write and for the posterior mean and variance of given the trial data alone, and suppress the argument in , and these quantities below.
Condition on first. The vector is jointly Gaussian with , because it is a linear functional of the Gaussian processes plus independent Gaussian noise. The prior covariances follow from with . In particular,
Gaussian conditioning on replaces each mean by and each covariance by . The conditional means are therefore
and the conditional covariances are
Here is invertible, and . Since , the posterior given is obtained by conditioning on under the Gaussian law above. It is therefore bivariate normal, with mean
and covariance
Reading off the entries gives
as stated.
Proof of Corollary 3.2
Proof. Set in Proposition 3.1. Then , , and . Hence and , while and , using .
Direct verification. The relevant prior covariances are
the second following from . Both are the standard Gaussian-conditioning posterior of given . For , joint Gaussianity and give
using .
Proof of Proposition 3.4
Proof. Write and for expectation and covariance under . Write , , and . Let for . The trial-only posterior mean function is . Under the working model, conditioning on the trial data and both designs gives the predictive mean and covariance of as
The conditional cross-covariance of with is , where . With , Gaussian conditioning on gives
Step 1. Bound the variance reduction. Define
We have . The matrix is the Schur complement of in the joint covariance of noisy trial evaluations and noiseless observational evaluations of a single GP with kernel , so it is positive semidefinite. Consequently
At , the conditional covariance of given has blocks . The Schur complement of therefore gives . It follows that
For any vector , Cauchy–Schwarz gives
Taking gives . Since , implies and hence .
Step 2. Split the mean shift and bound the bias. Under (B1), define . The trial-only posterior mean is a finite linear combination of kernel sections at , so . Hence
is finite and, for the fixed trial, independent of and . Conditional on , set and . Since , the shift splits as . To bound the contribution of , stack the inputs as , write , and set
Let , , and , where ranges over the stacked inputs. The reproducing property gives
Cauchy–Schwarz applied to the two terms of the second expression gives , and hence , including when . The lower-right block of is by the block inverse formula. Thus
The Cauchy–Schwarz bound from Step 1 then gives .
Step 3. Bound the noise contribution. The regression definition of gives mean-zero residuals. By (B2), the residuals remain i.i.d. with their common law conditional on . Thus
Since by Step 1, the conditional variance of satisfies
Step 4. Combine the bounds. Conditional centring makes the cross term in vanish. Combining the bounds on the bias and noise terms with (2) gives the finite-sample bound
When , Markov’s inequality gives, for every ,
The right-hand side is independent of and , proving the uniform stochastic bound. If , Step 1 gives and hence .
Interpretation. With the trial data and working model parameters held fixed, the root-mean-square change in the posterior mean at is bounded uniformly as the observational sample grows. The scale of the bound is times the trial-only posterior standard deviation. Its multiplier accounts for both the discrepancy between the true observational regression and the trial-based prediction, through , and the observational error variance, through . Large discrepancies or noise can therefore still allow a substantial shift. At , the observational data leave the posterior mean unchanged. The i.i.d. errors describe individual outcome variation around . Unmeasured confounding can affect and hence the bias term even with independent errors. With a random design, the same probability bound applies after averaging over the observational covariates while holding the trial data fixed.
Remark (Gaussian predictive law). If follows the Causal-ICM predictive law at the analysis value of , then
with a point mass at zero when . Indeed, under this law , and the linear map has conditional variance . Hence for ,
where is the standard normal quantile.
Interpretation. Before seeing the observational outcomes, hold the trial data and observational covariates fixed. Under the working model at the chosen , the updated mean averages to the trial-only mean across possible observational outcomes. The amount of posterior variance removed, , is exactly the predictive variance of the posterior mean shift. Thus a design that yields a larger reduction in posterior uncertainty also yields a larger standard deviation for the shift. The probability bound controls the magnitude of the shift under the model’s predictive law.
Proof of Proposition 3.5
Proof. By the posterior variance decomposition and (2) in the proof of Proposition 3.4,
Interpretation. Under partial borrowing, observational data can remove at most a fraction of the trial-only posterior variance at . For example, at , at least three quarters of that variance remains, even as the observational sample grows arbitrarily large. This lower bound concerns uncertainty about the trial regression under the working model. The actual reduction can be smaller and depends on the observational covariate locations and their conditional covariance with the trial regression at .
Proof of Proposition 3.6
Proof. In a single observational study according to the OSM, for each treatment arm we have the following quantity:
Since both are quantities pertaining to the observational study we can write for clarity
The second quantity can be written as
which is identifiable from observed data, since positivity in the observational study (Assumption A5) gives on the support of .
Now let us focus on the first quantity
(A1, A4 and A5)
(iterated expectation)
which is the mean of in the observational population. Exchangeability over then links it to the RCT,
(A6: exchangeability over )
(A1–A3 and A7)
Therefore the first quantity, under the assumptions we are making, is identifiable using RCT data. Subtracting (2) from (1) gives
and since , also . Finally, is a linear function of the bivariate normal vector in Proposition 3.1, which gives its posterior.
Observational-Data-Only Methods by Baseline HbA1c Subgroup
Web Figure 4 reports the OSM and the observational-only Causal-ICM posterior (Corollary 3.2), for the full sample and separately for the two baseline HbA1c subgroups defined in § 4.2, using only the claims data. Rows A and B give the OSM and the observational-only Causal-ICM posterior for the full sample, rows C and D for patients with baseline HbA1c , and rows E and F for patients with baseline HbA1c ; columns 1–3 give , , and the ATE.

Figure 4. Observational-only sensitivity analyses of full sample and by baseline HbA1c subgroup, for , and the ATE (columns 1–3). Rows A, C and E give the OSM, plotted against , and rows B, D and F the observational-only Causal-ICM posterior, plotted against , for the full sample (A, B) and baseline HbA1c (C, D) and (E, F).
The two methods agree for patients with baseline HbA1c but not for those with baseline HbA1c . For patients with baseline HbA1c , the OSM’s ATE point estimate is zero at , giving a tipping point of (panel C3), whereas the observational-only Causal-ICM posterior mean is negative, at with a credible band of , and shrinks to zero as decreases; the band includes zero for below the tipping point (panel D3). Only 3 of the 216 claims patients in this subgroup are treated, so the random forest of the OSM cannot split on treatment, and the treated-arm GP of Causal-ICM rests on three observations and on the covariates that vary among them. For patients with baseline HbA1c , the OSM shows the same pattern, with a tipping point of (panel E3), and the observational-only Causal-ICM posterior is markedly less informative: its credible band widens rapidly as decreases, from roughly at to at (panel F3), reflecting greater heterogeneity in the claims population for this subgroup. Without the trial anchor, the claims data therefore give no usable evidence on the effect of semaglutide for patients with baseline HbA1c ; the sharp conclusions in § 4.2 rely on combining the claims data with the trial.
References
- [1]Alaa, A. M., & van der Schaar, M. (2017). Bayesian inference of individualized treatment effects using multi-task Gaussian processes. Advances in Neural Information Processing Systems, 30, 3424–3432. https://proceedings.neurips.cc/paper/2017/hash/6a508a60aa3bf9510ea6acb021c94b48-Abstract.htmlarxiv.org/abs/1704.02801
- [2]Berger, J. O. (1994). An overview of robust Bayesian analysis. Test, 3(1), 5–124. https://doi.org/10.1007/BF02562676
- [3]Bonvini, M., Kennedy, E., Ventura, V., & Wasserman, L. (2022). Sensitivity analysis for marginal structural models. https://arxiv.org/abs/2210.04681
- [4]Cinelli, C., & Hazlett, C. (2020). Making sense of sensitivity: Extending omitted variable bias. Journal of the Royal Statistical Society Series B: Statistical Methodology, 82(1), 39–67. https://doi.org/10.1111/rssb.12348
- [6]Comment, L., Coull, B. A., Zigler, C., & Valeri, L. (2022). Bayesian data fusion: Probabilistic sensitivity analysis for unmeasured confounding using informative priors based on secondary data. Biometries, 78(2), 730–741. https://doi.org/10.1111/biom.13436
- [7]Cornfield, J., Haenszel, W., Hammond, E. C., Lilienfeld, A. M., Shimkin, M. B., & Wyn der, E. L. (1959). Smoking and lung cancer: Recent evidence and a discussion of some questions. Journal of the National Cancer Institute, 22(1), 173–203. https://doi.org/10.1093/jnci/22.1.173
- [8]Dahabreh, I. J., Robertson, S. E., Tchetgen, E. J., Stuart, E. A., & Hernán, M. A. (2019). Generalizing causal inferences from individuals in randomized trials to all trial-eligible individuals. Biometries, 75(2), 685–694. https://doi.org/10.1111/biom.13009
- [9]Dhawan, N., Shen, D., Cotta, L., & Maddison, C. J. (2026). Bayesian sensitivity of causal inference estimators under evidence-based priors. Transactions on Machine Learning Research. https://openreview.net/forum?id=0zqt85NUyKarxiv.org/abs/2605.07993
- [10]Dimitriou, E., Fong, E., Tarp, J. M., Diaz-Ordaz, K., & Lehmann, B. (2026). Causal-icm: A data fusion framework for heterogeneous treatment effect estimation with multitask Gaussian processes. Proceedings of the Fifth Conference on Causal Learning and Reasoning, 323, 248–276. https://proceedings.mlr.press/v323/dimitriou26a.htmlarxiv.org/abs/2405.20957
- [11]Dorie, V., Harada, M., Carnegie, N. B., & Hill, J. (2016). A flexible, interpretable framework for assessing sensitivity to unmeasured confounding. Statistics in Medicine, 35(20), 3453–3470. https://doi.org/10.1002/sim.6973
- [12]Fawkes, J., O’Riordan, M., Vlontzos, A., Corcoll, O., & Gilligan-Lee, C. M. (2025). The hardness of validating observational studies with experimental data. Proceedings of the 28th International Conference on Artificial Intelligence and Statistics, 258, 1819–1827. https://proceedings.mlr.press/v258/fawkes25b.htmlarxiv.org/abs/2503.14795
- [13]Franks, A. M., D’Amour, A., & Feller, A. (2020). Flexible sensitivity analysis for observational studies without observable implications. Journal of the American Statistical Association, 115(532), 1730–1746. https://doi.org/10.1080/01621459.2019.1604369
- [14]Gustafson, P. (2010). Bayesian inference for partially identified models. The International Journal of Biostatistics, 6(2), Article 17. https://doi.org/10.2202/1557-4679.1206
- [15]Hernán, M. A., & Robins, J. M. (2020). Causal inference: What if. Chapman & Hall/CRC. https://miguelhernan.org/whatifbook
- [16]Husain, M., Birkenfeld, A. L., Donsmark, M., Dungan, K., Eliaschewitz, F. G., Franco, D. R., Jeppesen, O. K., Lingvay, I., Mosenzon, O., Pedersen, S. D., Tack, C. J., Thomsen, M., Vilsbøll, T., Warren, M. L., & Bain, S. C. (2019). Oral semaglutide and cardiovascular outcomes in patients with type 2 diabetes. New England Journal of Medicine, 381(9), 841–851. https://doi.org/10.1056/NEJMoa1901118
- [18]Lanners, Q., Rudin, C., Volfovsky, A., & Parikh, H. (2025). Data fusion for partial identification of causal effects. Advances in Neural Information Processing Systems, 38, 150638–150702. https://doi.org/10.52202/085713-5038
- [20]Lin, X., Tarp, J. M., & Evans, R. J. (2025). Combining experimental and observational data through a power likelihood. Biometrics, 81(1), ujaf008. https://doi.org/10.1093/biomt/ujaf008
- [21]McCandless, L. C., Gustafson, P., & Levy, A. R. (2007). Bayesian sensitivity analysis for unmeasured confounding in observational studies. Statistics in Medicine, 26(11), 2331–2347. https://doi.org/10.1002/sim.2711
- [22]Nabi, R., Bonvini, M., Kennedy, E. H., Huang, M.-Y., Smid, M., & Scharfstein, D. O. (2024). Semiparametric sensitivity analysis: Unmeasured confounding in observational studies. Biometrics, 80(4), ujae106. https://doi.org/10.1093/biomtc/ujae106
- [24]Stuart, E. A., Cole, S. R., Bradshaw, C. P., & Leaf, P. J. (2011). The use of propensity scores to assess the generalizability of results from randomized trials. Journal of the Royal Statistical Society: Series A, 174(2), 369–386. https://doi.org/10.1111/j.1467-985X.2010.00673.x
- [25]Tan, Z. (2006). A distributional approach for causal inference using propensity scores. Journal of the American Statistical Association, 101(476), 1619–1637. https://doi.org/10.1198/016214506000000023
- [26]Titsias, M. (2009). Variational learning of inducing variables in sparse gaussian processes. Proceedings of the Twelfth International Conference on Artificial Intelligence and Statistics, 5, 567–574. https://proceedings.mlr.press/v5/titsias09a.html
- [27]Ung, L., VanderWeele, T. J., & Dahabreh, I. J. (2025). Generalizing and transporting causal inferences from randomized trials in the presence of trial engagement effects. Epidemiology, 36(4), 500–510. https://doi.org/10.1097/EDE.0000000000001863
- [28]VanderWeele, T. J., & Ding, P. (2017). Sensitivity analysis in observational research: Introducing the E-value [PMID: 28693043]. Annals of Internal Medicine, 167(4), 268–274. https://doi.org/10.7326/M16-2607
- [29]Witty, S., Takatsu, K., Jensen, D., & Mansinghka, V. (2020). Causal inference using Gaussian processes with structured latent confounders. Proceedings of the 37th International Conference on Machine Learning, 119, 10313–10323. https://proceedings.mlr.press/v119/witty20a.htmlarxiv.org/abs/2007.07127
- [31]Yang, L., Liu, X., & Evans, R. J. (2026). Data fusion with distributional equivalence test-then-pool. https://arxiv.org/abs/2603.11867
- [32]Yang, L., Tarp, J. M., Evans, R. J., & Shen, X. (2026). Frugal, flexible, faithful: Causal data simulation via frengression. https://arxiv.org/abs/2508.01018
- [33]Yang, S., Gao, C., Zeng, D., & Wang, X. (2023). Elastic integrative analysis of randomised trial and real-world data for treatment heterogeneity estimation. Journal of the Royal Statistical Society Series B: Statistical Methodology, 85 (3), 575–596. https://doi.org/10.1093/jrssb/qkad017
- [34]Zhang, Y., Xu, W., & Tan, Z. (2026). Enhanced marginal sensitivity model and bounds [Advance online publication]. Journal of the American Statistical Association, 1–13. https://doi.org/10.1080/01621459.2026.2699465
- [35]Zhao, Q., Small, D. S., & Bhattacharya, B. B. (2019). Sensitivity analysis for inverse probability weighting estimators via the percentile bootstrap. Journal of the Royal Statistical Society Series B: Statistical Methodology, 81 (4), 735–761. https://doi.org/10.1111/rssb.12327
AI tools statement
This work lists 1 AI tool.
Claude (Anthropic) · AI tool
- Roles
- SoftwareWriting — review & editing
- Verification
- self-declared at submission
Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.
