Paper deep dive
2-Step Agent: A Framework for the Interaction of a Decision Maker with AI Decision Support
Otto Nyberg, Fausto Carcassi, Davide Tugnoli, Giovanni Cinà
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 91%
Last extracted: 7/20/2026, 11:56:57 AM
Summary
The paper introduces the '2-Step Agent' framework to model how rational Bayesian agents learn from Machine Learning Decision Support (ML-DS). It formalizes a two-step process: (1) Bayesian belief updating based on ML predictions, and (2) causal inference for decision making. The authors derive a tractable solution for linear Gaussian settings and demonstrate that while ML-DS can be beneficial, a single misaligned prior belief can lead to worse outcomes than no decision support, even with well-specified models and rational agents.
Entities (7)
Relation Signals (5)
2-Step Agent → includes → Bayesian Agent
confidence 95% · Our framework models (i) how a prediction for a new observation affects the beliefs of a rational Bayesian agent
2-Step Agent → models → ML-DS
confidence 95% · In this paper, we introduce a general computational framework, the 2-Step Agent, to capture this process [of learning from ML-DS].
Misaligned Prior Belief → causes → Worse Downstream Outcomes
confidence 92% · a single misaligned prior belief can be sufficient for ML-DS to lead to worse downstream outcomes compared to no decision support
2-Step Agent → enables → Causal Effect Estimation
confidence 90% · The 2-Step Agent which includes a Bayesian step... and a causal inference step
Linear Gaussian Setting → allows → Tractable Solution
confidence 88% · for the linear Gaussian setting, we derive a tractable solution for the challenging Bayesian inference problem
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Predictions from ML models support human decision making in several fields, including high-stakes ones such as healthcare and the judiciary. Yet, we still lack a clear understanding of how decision makers learn from ML-based decision support (ML-DS). In this paper, we introduce a general computational framework, the 2-Step Agent, to capture this process. As a prediction from an ML model contains information about the training data, a prediction can also be used for inference. Our framework models (i) how a prediction for a new observation affects the beliefs of a rational Bayesian agent, and (ii) how this change in beliefs affects the estimation of causal effect, the downstream decision, and the subsequent outcome. In addition to the framework itself, we make three contributions. First, for the linear Gaussian setting, we derive a tractable solution for the challenging Bayesian inference problem we introduced, i.e. one in which the agent infers from an ML prediction. Second, we experimentally identify conditions under which ML-DS is beneficial. Third, we show that a single misaligned prior belief can be sufficient for ML-DS to lead to worse downstream outcomes compared to no decision support even when the ML model is well-specified and the agent is perfectly rational. Hence, even under ideal conditions, ML-DS can do more harm than good.
Tags
Links
- Source: https://arxiv.org/abs/2602.21889v3
- Canonical: https://arxiv.org/abs/2602.21889v3
Trouble viewing inline? Open PDF directly →
Full Text
104,331 characters extracted from source content.
Expand or collapse full text
2-Step Agent: How a Bayesian Decision Maker Learns from AI-Decision Support Otto Nyberg Department of Medical Informatics Amsterdam UMC University of Amsterdam the Netherlands o.e.nyberg@amsterdamumc.nl &Fausto Carcassi∗ Institute for Logic, Language and Computation University of Amsterdam the Netherlands &Davide Tugnoli Department of Mathematics and Earth Sciences University of Trieste Italy &Giovanni Cinà∗ Department of Medical Informatics Amsterdam UMC University of Amsterdam the Netherlands Equal contribution Abstract Predictions from ML models support human decision making in several fields, including high-stakes ones such as healthcare and the judiciary. Yet, we still lack a clear understanding of how decision makers learn from ML-based decision support (ML-DS). In this paper, we introduce a general computational framework, the 2-Step Agent, to capture this process. As a prediction from an ML model contains information about the training data, a prediction can also be used for inference. Our framework models (i) how a prediction for a new observation affects the beliefs of a rational Bayesian agent, and (i) how this change in beliefs affects the estimation of causal effect, the downstream decision, and the subsequent outcome. In addition to the framework itself, we make three contributions. First, for the linear Gaussian setting, we derive a tractable solution for the challenging Bayesian inference problem we introduced, i.e. one in which the agent infers from an ML prediction. Second, we experimentally identify conditions under which ML-DS is beneficial. Third, we show that a single misaligned prior belief can be sufficient for ML-DS to lead to worse downstream outcomes compared to no decision support even when the ML model is well-specified and the agent is perfectly rational. Hence, even under ideal conditions, ML-DS can do more harm than good. 1 Introduction Background. Prediction models are often used to support decision making in the following fashion: a model trained on past data produces a forecast for a future outcome of interest, which an agent can take into account when deciding how to act. We refer to such decision support as ML-DS (Machine Learning Decision Support). This is sometimes also called ‘predictive optimization’ (Wang et al., 2024). Contrary to full automation, in high-risk settings ML-DS is sometimes perceived as a way to leverage the power of machine learning while retaining human oversight (see for instance Article 14 of the EU AI Act European Parliament and Council of the European Union (2024)). Understanding the practical impact of adopting ML-DS is essential for at least two reasons. First, ML-DS is on the rise and currently deployed in a variety of fields including healthcare, education (Smith et al., 2012), policing and judicial system (Kleinberg et al., 2018), as well as redistribution of welfare (Kube et al., 2019). Second, allowing prediction models to influence decision making carries important risks, e.g., the incorporation of biased advice (Obermeyer et al., 2019). Despite this, how agents incorporate ML predictions into their model of the world and how this influences their actions has remained underexplored. Motivating example 1: Effect of the agent’s prior beliefs. Consider the situation of a clinician using ML-DS when deciding how to treat a cancer patient drawn from the same distribution the ML model was trained on. The ML model predicts that the patient has only two months left to live. Figure 1: The flow of the framework for a clinical use case, with and without ML-DS (above and below, respectively). A new patient arrives for treatment, and the patient’s data (1), potentially with the output of ML-DS, is observed by the agent, e.g., a doctor. Next, the agent estimates the effect of treatment and makes a treatment decision (2). Without ML-DS, this estimation is influenced by the agent’s priors and patient data. With ML-DS, the agent uses these plus the ML prediction to update their previous beliefs about the population in a Bayesian fashion. The treatment and the patient’s attributes determine the outcome (3). We can imagine two lines of thinking, depending on the clinician’s prior beliefs about the training data. If the model was trained on data from patients that received minimal treatment, a very heavy treatment may extend the survival time. On the other hand, if the model was trained on data from patients that received the heaviest treatment, it is best to put the patient on palliative care to avoid unnecessary suffering from side-effects. This example showcases that, even in presence of the same information from ML-DS, different prior assumptions about the model and the data it was trained on can lead to opposite actions. This underscores the importance of an agent’s priors in determining the effectiveness of ML-DS,111Setting the agent prior beliefs by proper training is indeed an important part of RCTs’ protocols that is not always adhered to Perepletchikova et al. (2007). When it is not possible to create a common baseline of beliefs and behavior, a two-stage randomization might be required, both on the providers of the intervention and the subjects Borm et al. (2005). a point that was argued for in previous literature (see e.g., van Geloven et al. (2025)) but has not been studied quantitatively. Motivating example 2: Agent learning from ML-DS. Consider a variation of the previous scenario involving a patient with a similar prognosis. Before seeing the model’s prediction, the clinician believed (1) that similar patients ended up surviving 6 to 12 months when treated, and (2) that the training data of the model was from treated patients. Seeing a prediction of two months of survival, this set of beliefs is challenged. The clinician can then revise their beliefs in at least two different ways. They can conclude the training data in fact included some untreated patients, and that the current patient might be similar to one of the untreated patients. In this case, treatment might still be beneficial. On the other hand, they might conclude they were wrong about the effect of treatment. In this case, the treatment must be less beneficial than previously thought by the clinician. Therefore it might be best to abstain from treatment. Hence the way in which ML-DS changes the agent’s beliefs will influence the action of the agent. Capturing this phenomenon means solving a challenging learning problem where the ML prediction is used as proxy information about the causal process the agent wants to intervene on. Contributions. These examples showcase the importance of an agent’s belief-updating process and prior beliefs for the impact of ML-DS. In this paper, we present a computational framework of ML-DS, the 2-Step Agent which includes a Bayesian step to incorporate the information given by the ML model into the agent’s model of the world, and a causal inference step in which the agent draws the conclusion on which action is best to take. This is schematically depicted in Fig. 1 (top half) for the clinical example. To the best of our knowledge, this is the first treatment of how a Bayesian agent can update their beliefs about a population and treatment mechanism after observing a prediction from an ML model trained on data from that population. This update involves a challenging inference through a set of latent interchangeable variables in the predictive model’s training data. We make three further contributions. First, given the difficulty of solving the Bayesian inference problem we introduced, we prove that in a simple setting it is possible to reduce the interchangeable variables to a few sufficient statistics, reducing computational cost and improving numerical stability. Second, we identify experimentally some cases in which the learning from ML-DS always leads to better effect estimates and better outcomes compared to no decision support. Finally, we show that, even if the agent is fully rational and the model is well-specified, a single misaligned prior can be sufficient to derail the learning from ML-DS and lead the agent to taking suboptimal actions, resulting in worse outcomes in comparison to not using decision support. While our running example is medical, the results are general and apply for every field where prediction models are employed for decision support. Furthermore, our simulations are only concerned with learning from non-causal prediction models; ML-DS with causal models is left for future work. The code and experiments are available open-source at https://placeholder_link. 2 The 2-Step Agent framework In this section, we give a formal description of the 2-Step Agent. We introduce the process that generates the training data for the predictive model in Sec. 2.1. We then formalize the first step consisting of a Bayesian agent updating their beliefs about the world given a prediction from the ML-DS model for a new patient (Sec. 2.2). Sec. 2.3 defines the second step, where the Bayesian agent uses the updated beliefs about the population to decide on a treatment for the new patient. In Sec. 2.4 we combine these steps to determine the effect of introducing ML-DS, comparing outcomes with and without decision support. Sec. 2.5 reports our tractability result. 2.1 The setup: Historical data and predictive model We first define a causal model of the domain. Let A be a variable denoting an intervention, such as the administration of a treatment. The treatment variable may be continuous or categorical, but to simplify the notation, we will present the formulas with two options for A. Let Y be a variable denoting an outcome of interest. In our example, the treatment could be a fixed dose of chemotherapy and the outcome the months of survival, so in this case a higher outcome is better. We use XiX_i to refer to covariates involved in the causal mechanisms governing the treatment and outcome. Definition 2.1 (Historical data generation). We assume Hist=(,P)Hist=(S,P_N) to be the minimal structural causal model (SCM) describing the causal mechanisms producing A and Y, where S is a set of assignments defining each variable in terms of its parents and P_N is a joint distribution over the noise variables. We use X=X1,…,XkX=X_1,…,X_k to denote endogenous (non-noise) variables involved in the SCM that are different from A and Y. An example of this SCM is depicted in Figure 2(a). The SCM HistHist stands for the process in the world that generated the training data. Note that the assignment determining A might be due to a specific intervention protocol, e.g., the guidelines for administering the treatment that were in use in that particular time window. The SCM determines a unique joint distribution PHistP^Hist over variables Y,A,XY,A,X. Definition 2.2 (Training data and prediction model). The dataset Hist=(x1,a1,y1),…,(xn,an,yn)D_Hist=\(x_1,a_1,y_1),…,(x_n,a_n,y_n)\ that is generated from PHistP^Hist is composed of tuples containing relevant characteristics, treatment, and outcome. The dataset contains n instances. This dataset is used to train a prediction model f:X→Yf:X→ Y to estimate EHist(Y∣X)E^Hist(Y X). Our framework does not currently extend to predictions of the treatment dependent estimate EHist(Y∣A,X)E^Hist(Y A,X) or the interventional estimate EHist(Y∣do(A),X)E^Hist(Y do(A),X); these are left for future work. 2.2 The first step: Bayesian update of the agent’s beliefs We next introduce an agent A who decides on the intervention for new patients with the help of ML-DS. We assume this agent does not observe the training data or the model directly. This agent uses their own model of the world, capturing not only what they believe about the data generating process HistHist, but also what they believe concerning the prediction model f and the training data HistD_Hist.222Recent guidelines suggest to report the historical treatment policy Collins et al. (2024), which would limit the agent’s uncertainty about this aspect of the training data. Our framework can include such settings by restricting the uncertainty on this dimension. The agent updates their world model using the ML-DS prediction, exploiting the latter as a piece of compressed information about the causal mechanism they want to act on. We model an agent who is aware of the model documentation containing the model class (e.g. a linear model, a tree ensemble, etc.), the model’s signature (i.e. that it is treatment naive and what covariates are involved), and the size of the training data. Definition 2.3 (Beliefs of the agent, histA_hist). The Bayesian network defining the agent’s joint distribution is denoted histA_hist. The distribution is over the following variables (depicted in Figure 2 (b)): 1. αX,αY,αA _X, _Y, _A: These are the variables fixing the population-level distributions over the various quantities of interest, respectively: the patient’s characteristics (αX _X), the noise in the outcome (αY _Y), and the noise in the treatment (αA _A). Depending on how population-level uncertainty is parameterized, these can be vectors, for instance αY _Y could be a pair of mean and variance if the noise on Y is Gaussian. 2. NX,i,NY,i,NA,iN_X,i,N_Y,i,N_A,i: Within the Bayesian network, the historical data is represented via a plate. The α variables are fixed and outside the plate, capturing the fact that they are population-level distributions. These population-level distributions are sampled n times, producing NX,i,NY,i,NA,iN_X,i,N_Y,i,N_A,i (with i<ni<n). These encode the stochastic components of each participant that the predictive model was trained on. 3. Ai,Yi,XiA_i,Y_i,X_i: The stochastic components NX,i,NY,i,NA,iN_X,i,N_Y,i,N_A,i are transformed deterministically into the specific patient characteristic (XiX_i), treatment (AiA_i) and outcome (YiY_i), which become a training datapoint for the predictive model. All variables YiY_i share the noise term NEN_E. 4. NEN_E: This variable denotes the treatment effect. Contrary to the other noise variables, this is not sampled for each plate repetition but only once, so it remains the same across the plate. 5. θ: The prediction model’s parameters, obtained deterministically from the training data in the plate and possibly some additional known parameter NθN_θ which encodes e.g. the hyperparameter settings or initialization values. θ has as parents all the variables in the plate, representing the fact that it is trained on the whole data set. 6. XoX^o: An observed data instance for a new patient, for which the agent will make a treatment decision. This array of variables is sampled from the same population distribution as X (for simplicity we skip the noise variable since it is identical to XoX^o). 7. PredoPred^o: The observed prediction for XoX^o. This is derived deterministically from XoX^o and θ. NXN_XNYN_YNAN_AXXAAYY (a) HistHist NXN_XNYN_YNAN_AXXAAYYNEN_E (c) infA_inf αX _XαY _YαA _ANX,iN_X,iNY,iN_Y,iNA,iN_A,iXiX_iAiA_iYiY_iNEN_Eθ θN_θXoX^oPredoPred^o i<ni<n (b) HistA_Hist Figure 2: The SCMs involved in the paper with stochastic variables depicted as circles and deterministic variables as rectangles. Model (a) represents the SCM generating the data in the real world, model (b) represents the Agent’s beliefs of how the ML-DS model was trained, allowing the agent to perform a Bayesian belief update given new information from ML-DS, propagating information from observed variables (shaded) to variables on which there is uncertainty. Model (c) allows the agent to infer the treatment effect of new data points given the beliefs. Models (b) and (c) are the first and second steps of the 2-Step Agent. The Bayesian network is shown in Figure 2 (b). To simplify presentation we depict the submodel of histA_hist in the plate as identical to HistHist, meaning that the agent knows the DAG generating the data. This does not have to be the case and the framework is general enough to allow these two structures to diverge. The uncertainty on NEN_E encodes the agent’s beliefs concerning the effect of the intervention. By letting the mechanism be influenced by NEN_E, we can treat the posterior as encoding a distribution over SCMs, each with its own fixed assignment for Y (and thus each with its own treatment effect). Other uncertainties over the SCM’s parameters can be added as variables outside the plate like NEN_E; we leave these out to simplify exposition. Definition 2.4 (Agent’s priors). The agent is assumed to have as prior a joint distribution over all variables in the model, which depends on the unconditional distribution Phist(αX,αY,αA,NE,Nθ)P^A_hist( _X, _Y, _A,N_E,N_θ). The agent’s prior beliefs about the data- and model generating processes are thus encoded in histA_hist and the parameter sets αX _X, αY _Y, αA _A, NEN_E, and NθN_θ. The set αX _X contains all parameters necessary for the noise distribution of NXN_X etc. We assume the agent has no uncertainty on NθN_θ since they have access to the model documentation, and therefore we omit this prior. Definition 2.5 (Agent belief update). Given XoX^o and PredoPred^o the agent does a Bayesian update on the prior Phist(αX,αY,αA,NE)P^A_hist( _X, _Y, _A,N_E), obtaining a posterior distribution Phist(αX,αY,αA,NE∣Xo,Predo)P^A_hist( _X, _Y, _A,N_E X^o,Pred^o). To simplify exposition, we marginalize over uncertainty in the plate variables (NX,i,NY,i,NA,i,Xi,Yi,AiN_X,i,N_Y,i,N_A,i,X_i,Y_i,A_i with i<ni<n) and θ. 2.3 The second step: deciding on the best action after belief update In the second step, the agent estimates the effect of the treatment on the new patient using their updated beliefs. Definition 2.6 (Agent model for treatment effect estimation, infA_inf). This model contains variables NE,NX,NAN_E,N_X,N_A, NY,X,A,YN_Y,X,A,Y, arranged as the similarly-named variables in the sub-model of histA_hist. This model is used for inference on new instances and we denote it as infA_inf. This second agent model is depicted in Figure 2 (c). The crucial difference between this model and a regular SCM is that the distributional parameters of the noise variables are not assumed to be independent but rather they are initialized with the joint posterior obtained in the Bayesian update. The agent is thus drawing an inference over a distribution of possible SCMs. Definition 2.7 (Decision rule). To decide on treatment, the agent sets the joint distribution of the inference model drawing from the posterior learned in the previous step: αX,αY,αA,NE∼Phist(αX,αY,αA,NE∣Xo,Predo) _X, _Y, _A,N_E P^A_hist( _X, _Y, _A,N_E X^o,Pred^o) Each draw generates a different SCM. Following this, the treatment a1a_1 is given if the Conditional Average Treatment Effect (CATE) for the new patient provides enough benefit over treatment a2a_2 in expectation across SCMs, i.e. Pinf(CATE)>τE_P^A_inf(CATE)>τ where τ is a threshold set by the agent and CATE=inf(Y∣X=Xo,do(A=a1))−inf(Y∣X=Xo,do(A=a2)).CATE=E^A_inf (Y X=X^o,do(A=a_1) )-E^A_inf (Y X=X^o,do(A=a_2) ). Crucially, these interventional expectations are calculated based on the beliefs of the agent. 2.4 Quantifying the effect of introducing decision support Given this machinery, for a given ML-DS model and a set of agent priors, the treatment A prescribed by the agent for a new observation XoX^o is deterministic both with and without ML-DS. In the former case (Fig. 1 top) the agent learns from ML-DS and chooses A according to the updated beliefs. In the latter case, the agent does not change beliefs and the treatment effect is estimated based on the prior beliefs (Fig. 1 bottom). The effect of ML-DS is then defined as Hist(Y|do(A=ML-DS))−Hist(Y|do(A=no ML-DS))E^Hist(Y|do(A=ML-DS))-E^Hist(Y|do(A=no ML-DS)) where do(A=ML-DS)do(A=ML-DS) is a shortcut to denote the action chosen with the intervention of providing ML-DS to the agent, and do(A=no ML-DS)do(A=no ML-DS) the action chosen when ML-DS in not provided. This intervention affects the outcome through its effect on treatment selection. 2.5 Theoretical results on the tractability of the Bayesian inference This framework is very general and allows for the simulation of many interesting learning dynamics. Yet, its implementation faces a tractability problem in the first step: approximate Bayesian inference struggles to propagate through a plate of completely interchangeable variables. In what follows we show that in simple settings this problem can be solved reducing the plate to sufficient statistics. Theorem 2.8 (Informal). Let HistHist be as depicted in Fig. 2(a), where X is a vector of k independent confounders. Assume that the structural equations are linear, n≥k+1n≥ k+1, all variables are continuous, all noises are Gaussian, the agent knows the DAG and the ML-DS model is a linear regression model. Then the likelihood of θ in histA_hist can be written as a function of the population-level variables (the variables outside the plate) plus k2+5k+22 k^2+5k+22 sufficient statistics, where k is the dimensionality of X. We refer the reader to Appendix E for the full proof and Corollary E.2 covering the no-intercept case. By collapsing the plate, the Bayesian update becomes tractable and we can compute the updated beliefs of the agent over the population-level parameters given the prediction obtained from the ML-DS model. This unlocks the possibility to implement the framework (albeit in a simple setting): we can fully simulate what happens with and without decision support for a given agent A and an ML-DS model f following the recipe outlined in the previous section. 3 Experimental setup The 2-Step Agent allows us to simulate the consequences of providing decision support. Using this framework, we investigate how and how much decision support influences (i) agent’s beliefs, (i) treatment decisions, and (i) downstream patient outcomes. We run a series of simulations to see how beliefs, treatments, and outcomes are affected when a single prior is misaligned. We simulate all settings both with and without ML-DS to see the differences induced by ML-DS. Case: univariate regression with no bias term We study what happens in the simplest of settings, when the ML-DS model is a linear regression model without bias term (see Corollary E.2) and consider a data-generating model with one continuous covariate X, a continuous intervention A, and a continuous outcome Y. Higher values of Y are better. One can think of the motivating example and interpret X as body weight, A as dosage of chemotherapy, and Y as months of survival. We set n=1000n=1000. Despite the continuous treatment, we assume the agent compares two treatment options, A=10A=10 and A=20A=20 (intuitively ten and twenty dosage units). Let HistHist have the DAG depicted in Figure 2(a) with a single X variable. The model of the agent’s beliefs, histA_hist. The model of the agent histA_hist encodes the agent’s uncertainty about Hist: NXi∼(,) @dima width 0pt i<nθ=argminθ(MSE(θ,X→,Y→))NAi∼(,)∼(αXμ,αXσ)NYi∼(,)=θXoXi=NXiAi=0.125Xi+NAiYi=12−0.1Xi+Ai+NYi array[]r@\;l@ 0.5eml@ 4em|r@\;lN_X_i& ( _Xμ, _Xσ) 5.0pt& $ \ height=0.0pt @dima width 0pt $i<n$ .$ 40.00006pt&θ&= argmin _θ(MSE(θ, X, Y))\\ N_A_i& ( _Aμ, _Aσ) 5.0pt& 40.00006pt&X^o& ( _Xμ, _Xσ)\\ N_Y_i& ( _Yμ, _Yσ) 5.0pt& 40.00006pt&Pred^o&=θ X^o\\ X_i&=N_X_i 5.0pt& 40.00006pt&&\\ A_i&=0.125\,X_i+N_A_i 5.0pt& 40.00006pt&&\\ Y_i&=12-0.1\,X_i+ N_E\,A_i+N_Y_i 5.0pt& 40.00006pt&& array where Y→=(Y1,…,Yn) Y=(Y_1,…,Y_n) etc. are the respective vectors of n elements, θ is the single parameter of a least squares regression model without intercept, and the variables in bold font are the agent’s priors for the population-level parameters. The agent has uncertainty on several dimensions. For instance, αAμ _Aμ encodes the belief of the agent on how much historical dosages of treatment deviated from the standard protocol, αXμ _Xμ and αXσ _Xσ encode the belief of the agent on how the feature X of the training data was distributed, and so forth. The distribution of NEN_E captures the belief of the agent about the effectiveness of treatment A. Note that in this scenario the agent knows some of the SCM’s parameters; this is for ease of exposition. Those parameters could also be replaced with RVs that the agent has uncertainty over (like NEN_E). Defining the agent We define a set of default priors with limited uncertainty to represent an agent that is "correct" in their beliefs. αXμ _Xμ ∼(80,0.1) ( [rgb]1,0,0 [named]pgfstrokecolorrgb1,0,080,0.1) αXσ _Xσ ∼(10,0.1)∣αXσ≥0 (10,0.1) _Xσ≥ 0 αAμ _Aμ ∼(2,1) ( [rgb]1,0,0 [named]pgfstrokecolorrgb1,0,02,1) αAσ _Aσ ∼(1,0.1)∣αAσ≥0 (1,0.1) _Aσ≥ 0 αYμ _Yμ ∼(0,0.01) ( [rgb]1,0,0 [named]pgfstrokecolorrgb1,0,00,0.01) αYσ _Yσ ∼(0.1,0.01)∣αYσ≥0 (0.1,0.01) _Yσ≥ 0 NE N_E ∼(1,1) ( [rgb]1,0,0 [named]pgfstrokecolorrgb1,0,01,1) This agent essentially has the correct beliefs about the data generating distribution, the historical treatment policy, outcome variance, and treatment effect. They only have some uncertainty represented by some variance on these parameters. In our experiments, we vary each of the colored parameters, the means for p(αXμ)p( _X_μ), p(αAμ)p( _A_μ), p(αYμ)p( _Y_μ), and p(NE)p(N_E), one at a time, to simulate various ways in which the agent’s beliefs may be incorrect. This only introduces misalignment in a mean of the agent’s beliefs without affecting the beliefs on variability. Reaching a decision Finally, the model of the agent used for inference, infA_inf, is defined as in Figure 2(c). The posterior defines a probability distribution over such SCMs. The agent is interested in choosing between dosages A=10A=10 and A=20A=20 for the patient with weight equal to XoX^o. To compute the desired quantity, the agent aggregates the CATE produced by every SCM according to the posterior CATE^=Pinf[inf(Y|Xo,do(A=20))−inf(Y|Xo,do(A=10))] CATE=E_P^A_inf [E^A_inf (Y|X^o,do(A=20) )-E^A_inf (Y|X^o,do(A=10) ) ] where the expectation is over the joint posterior of the parameters, which was obtained updating histA_hist. The agent will administer a dosage of 10 if the estimated CATE is below a threshold of 5, and a dosage of 20 otherwise. In the example, the higher dosage needs to improve the outcome by at least 5 months to be worth it. This completes the decision pipeline: given a patient XoX^o with a prediction PredoPred^o and the agent priors, we compute what the agent would do. We present the results in Figures 3 and 5. For more details of the setup see Appendix B. 4 Results We begin by mentioning that our framework can capture the two motivating examples presented in the Introduction. What is clarified by this experiment is that the learning from ML-DS manifests itself through a correlation in the posterior of the agent: the posterior correlation encodes the fact that the agent is entertaining multiple competing hypotheses to reconcile beliefs and observations. We expand on this in Appendix A. We report the experimental results on two dimensions: 1) the agent’s belief of treatment effect and 2) the downstream outcomes Y realized after the agent has taken an action, visualized in the top and bottom rows of Figure 3. In each of these plots, what happens using ML-DS (orange series) is contrasted with what happens without (blue series) for different types of agents. The CATE plots sweep a wide range of options for the priors in order to reveal interesting dynamics of the agent’s beliefs. Figure 3(a) and Figure 3(d) show what happens to the belief of CATE and the actual outcome Y when the agent’s belief in NEN_E is misaligned. As expected, in Figure 3 (a) we can see that the prior predictive (blue) CATE has a slope that depends on the prior NEN_E: without decision support, the belief of CATE is equal to NEN_E multiplied by the difference in treatment dosage. In the orange series however, we see an interesting behavior: after learning from the interaction with ML-DS, the agent corrects their belief in CATE re-aligning it to the correct value. In other words, when all other beliefs are correct, the agent can learn from ML-DS to estimate better CATE and take better actions. Figure 3(d) confirms that the orange series shows superior outcomes. Figure 3(b) and Figure 3(e) show what happens when the agent’s prior belief in the treatment protocol, αAμ _Aμ, varies. In this scenario the prior CATE estimates are flat for the simple reason that the agent has a fixed belief in NEN_E and they are not updating it. When interacting with ML-DS however, the belief update changes CATE estimates quite a lot; this is because the agent is attempting to explain the gap between PredoPred^o given by ML-DS and the expected outcome they had from their prior beliefs. This reflects on outcomes in 3(e) where the orange series is sometimes below the blue one: incorrect beliefs in αAμ _Aμ can result in CATE estimates that lead to wrong actions and worse outcome Y. A similar pattern is observed in Figures 3(c), 3(f), and 5(a) (Appendix D): while prior CATE and Y estimates are relatively stable without ML-DS, new dynamics emerge when ML-DS is introduced. For CATE, incorrect beliefs can have large effects both on the magnitude and sign. For Y, in both cases incorrect beliefs can lead to bad actions and worse outcomes. (a) NEN_E (b) αAμ _A_μ (c) αXμ _X_μ (d) NEN_E (e) αAμ _A_μ (f) αXμ _X_μ Figure 3: The effects of different agent priors when using ML-DS (in orange) and without (in blue). In all plots except for (a) and (d), the x-axis represents the deviation of the agent’s prior belief from the true parameters in HistHist. The top row displays the agent’s prior and posterior (predictive) belief of CATE, while the bottom row shows the impact of the agent’s decisions on the downstream outcome Y. The left column pertains to the belief on treatment effect, NEN_E, the central column the belief about past treatment policy (αAμ _A_μ) and the right column about the belief on past covariate distribution (αXμ _X_μ). The gray areas represent the prior settings for which the true CATE is within one std from the CATE learned with ML-DS (orange band). 5 Related work A large body of literature is concerned with the analysis of ML-DS from different angles. A strand of literature focuses on how ML-DS is entangled with (changes in) the data generating process. Works in this category study limitations of what can be learned from data generated from past policies, e.g. Lakkaraju et al. (2017), or the dynamics that occur with alternating cycles of ML-DS deployment and re-training, as in the performative prediction literature Perdomo et al. (2020); Boeken et al. (2024). Plecko and Bareinboim (2024) take a causal perspective on prediction-to-decision pipelines, studying how biases in ML predictions amplify through downstream decisions. Their analysis treats the decision rule as a fixed mapping, where bias originates in the ML model. In contrast, our framework instead focuses on the decision-maker, showing that an accurate prediction paired with a misaligned prior can already be sufficient to worsen outcomes. Another set of articles is concerned with the design and evaluation of ML-DS. Some lay out identifiability conditions for the effects of ML-DS on decisions (Imai et al., 2023), while others seek to optimize human-machine complementarity by design (Donahue et al., 2022; McLaughlin and Spiess, 2024). Recent work in this direction studies prediction-set-based decision support (De Toni et al., 2024), or evaluates the counterfactual harm that such systems may cause (Straitouri et al., 2024). Others evaluate the other side of the coin and ask what human input can add to artificial agents already reaching some level of optimality (Alur et al., 2024; Zhang and Bareinboim, 2022; Stensrud et al., 2024). Guo et al. (2024) propose a decision-theoretic framework for measuring AI reliance, explicitly modeling the decision-maker as a Bayesian agent, though one whose beliefs concern only the reliability of the prediction’s confidence intervals. Our framework addresses a different mechanism from all of the above: we explicitly model how the agent learns about the data-generating process from the ML prediction, and show that this learning can make decision support harmful even under near-ideal conditions. Other papers study how information flows between agents influencing their actions. In Kamenica and Gentzkow (2011) a Sender of information influences a Receiver Bayesian agent in order to steer their action. What we add is that in our context the signal is an ML prediction produced from training data drawn from the same environment the agent wants to intervene on; this coupling yields the distinctive inference problem we study, i.e. updating through latent interchangeable training variables. Another important strand of work focuses on inferring information about a population P given predictions from a model trained on samples from P in the context of confidentiality attacks. This literature studies whether it is possible to use models’ predictions (and other behavior) to recover the presence of a specific data point, in so-called membership inference attacks (Hu et al., 2022; Huang, 2025)), or to infer statistical properties of training datasets, so-called property-inference attacks (Ateniese et al., 2015; Wang et al., 2019). In contrast, our goal is to directly infer information about the underlying population and about the causal mechanism itself, e.g., treatment effect. 6 Discussion We have presented the first explicit framework unpacking the interaction between an agent and ML-DS. Our 2-Step Agent framework captures the effect of an agent’s prior beliefs, modeling learning effects due to the interaction and tracking agent’s uncertainty. The framework allows for simulations comparing outcomes with and without ML-DS in an RCT-like fashion, quantifying the harm/benefit of ML-DS. The framework defines a challenging Bayesian inference problem, for which we derived a tractable solution in a simple setting (Theorem 2.8). This result enabled us to simulate end-to-end the effect of decision support for different types of agents. With this implementation, we show that an incorrect belief about treatment effect is in some settings corrected by the interaction with ML-DS (Figure 3(a)). We also show that incorrect beliefs about the distribution of the predictive model’s training data may lead the agent to bad decisions, resulting in harmful outcomes even in near-ideal conditions. While previous literature had argued that this would happen with incorrect beliefs about past treatment policy (αAμ _Aμ in our notation), e.g. in van Geloven et al. (2025), this is the first quantitative estimation of harmful effects of ML-DS due to misaligned beliefs. Additionally, our experiments show that ML-DS can be harmful if the agent has wrong beliefs not only about the past treatment policy, but also about the distribution of covariates and the distribution of the outcome. These findings highlight the sensitivity of ML-DS to prior beliefs when using a treatment-naive prediction model, and underscore the importance of providing full documentation and proper training to users of ML-DS. Finally, we remark that these results apply to any field deploying such systems and to any agent interacting with ML-DS, be it human or artificial. Limitations and future work. The experiments in this paper explored only part of the potential of the framework; they are limited to the case in which the ML-DS model is linear and treatment-naive and the data generating process is simple. This was mostly due to the scope of Theorem 2.8; further work will investigate whether similar tractability results can be obtained for more complex cases. We assumed the agent reasons in a Bayesian fashion. While this is not realistic with respect to human behavior, it is useful to make this assumption for three reasons. First, recent literature calls for formal computational cognitive models of the human decision-maker as a necessary foundation for understanding human-AI complementarity, even when starting from a rational baseline Steyvers and Kumar (2024). Second, this assumption is a necessary first step to isolate the learning mechanism: if we had harmful outcome caused by an agent with limited rationality, we would not know if it is due to the learning mechanism or just bounded rationality. Finally, this assumption is also interesting when considering how an artificial agent might learn from predictions of other ML models. From another point of view, the Bayesian assumption and the simplicity of the use case strengthen our negative experimental results: harmful interactions with ML-DS due to misaligned priors cannot be fixed by making the agent more rational or streamlining the case. Our theory describes what happens after a single interaction of an agent with ML-DS and does not yet cover repeated interactions. When running simulations, we reported the harm/benefit of ML-DS when used by multiple copies of the same agent on different observations: for each configuration of prior beliefs, we run the framework for different samples of XoX^o. This would be analogous to, given a set of clinicians sharing the same starting beliefs (e.g. from the same department), tracking what happens to the first patients treated by these doctors with/without ML-DS. In future work this line of research will be expanded across different dimensions, including i) different types of agents (e.g. agent with incorrect model of the world or different kinds of uncertainties) i) more complex ML models for ML-DS, i) cases with heterogeneity of treatment effect (i.e. the effect of the action is not the same for all instances), iv) repeated rounds of learning for the same agent and v) using causal models for ML-DS. Acknowledgements We would like to thank Dr. Wouter van Amsterdam (UMC Utrecht) and Dr. Nan van Geloven (Leiden UMC) for their feedback on draft versions of the paper. This work used the Dutch national e-infrastructure with the support of the SURF Cooperative using grant no. EINF-16946. References O. Abril-Pla, V. Andreani, C. Carroll, L. Dong, C. J. Fonnesbeck, M. Kochurov, R. Kumar, J. Lao, C. C. Luhmann, O. A. Martin, M. Osthege, R. Vieira, T. Wiecki, and R. Zinkov (2023) PyMC: a modern and comprehensive probabilistic programming framework in Python. PeerJ Computer Science 9 (e1516). External Links: Document Cited by: §B.1. R. Alur, M. Raghavan, and D. Shah (2024) Human expertise in algorithmic prediction. Advances in Neural Information Processing Systems 37, p. 138088–138129. Cited by: §5. G. Ateniese, L. V. Mancini, A. Spognardi, A. Villani, D. Vitali, and G. Felici (2015) Hacking smart machines with smarter ones: How to extract meaningful data from machine learning classifiers. International Journal of Security and Networks 10 (3), p. 137–150. External Links: ISSN 1747-8405, Document Cited by: §5. P. Boeken, O. Zoeter, and J. Mooij (2024) Evaluating and correcting performative effects of decision support systems via causal domain shift. In Causal Learning and Reasoning, p. 551–569. Cited by: §5. G. F. Borm, R. J. Melis, S. Teerenstra, and P. G. Peer (2005) Pseudo cluster randomization: a treatment allocation method to minimize contamination and selection bias. Statistics in Medicine 24 (23), p. 3535–3547. Cited by: footnote 1. W. G. Cochran (1934) The distribution of quadratic forms in a normal system, with applications to the analysis of covariance. Mathematical Proceedings of the Cambridge Philosophical Society 30 (2), p. 178–191. External Links: Document Cited by: §E.3.3, §F.1, §F.2. G. S. Collins, K. G. Moons, P. Dhiman, R. D. Riley, A. L. Beam, B. Van Calster, M. Ghassemi, X. Liu, J. B. Reitsma, M. Van Smeden, et al. (2024) TRIPOD+ ai statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ 385. Cited by: footnote 2. G. De Toni, N. Okati, S. Thejaswi, E. Straitouri, and M. Gomez-Rodriguez (2024) Towards human-ai complementarity with prediction sets. Advances in Neural Information Processing Systems 37, p. 31380–31409. Cited by: §5. K. Donahue, A. Chouldechova, and K. Kenthapadi (2022) Human-algorithm collaboration: achieving complementarity and avoiding unfairness. In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, p. 1639–1656. Cited by: §5. European Parliament and Council of the European Union (2024) Cited by: §1. Z. Guo, Y. Wu, J. D. Hartline, and J. Hullman (2024) A decision theoretic framework for measuring ai reliance. In Proceedings of the 2024 ACM conference on fairness, accountability, and transparency, p. 221–236. Cited by: §5. H. Hu, Z. Salcic, L. Sun, G. Dobbie, P. S. Yu, and X. Zhang (2022) Membership Inference Attacks on Machine Learning: A Survey. Acm Computing Surveys 54 (11s), p. 235:1–235:37. External Links: ISSN 0360-0300, Document Cited by: §5. Y. Huang (2025) Bayesian inference of training dataset membership. arXiv preprint arXiv:2506.00701. Cited by: §5. K. Imai, Z. Jiang, D. J. Greiner, R. Halen, and S. Shin (2023) Experimental evaluation of algorithm-assisted human decision-making: application to pretrial public safety assessment. Journal of the Royal Statistical Society Series A: Statistics in Society 186 (2), p. 167–189. Cited by: §5. E. Kamenica and M. Gentzkow (2011) Bayesian persuasion. American Economic Review 101 (6), p. 2590–2615. Cited by: §5. J. Kleinberg, H. Lakkaraju, J. Leskovec, J. Ludwig, and S. Mullainathan (2018) Human decisions and machine predictions. The quarterly journal of economics 133 (1), p. 237–293. Cited by: §1. A. Kube, S. Das, and P. J. Fowler (2019) Allocating interventions based on predicted outcomes: a case study on homelessness services. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 33, p. 622–629. Cited by: §1. H. Lakkaraju, J. Kleinberg, J. Leskovec, J. Ludwig, and S. Mullainathan (2017) The selective labels problem: evaluating algorithmic predictions in the presence of unobservables. In Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, p. 275–284. Cited by: §5. B. McLaughlin and J. Spiess (2024) Designing algorithmic recommendations to achieve human-ai complementarity. arXiv preprint arXiv:2405.01484. Cited by: §5. Z. Obermeyer, B. Powers, C. Vogeli, and S. Mullainathan (2019) Dissecting racial bias in an algorithm used to manage the health of populations. Science 366 (6464), p. 447–453. Cited by: §1. J. Perdomo, T. Zrnic, C. Mendler-Dünner, and M. Hardt (2020) Performative prediction. In International Conference on Machine Learning, p. 7599–7609. Cited by: §5. F. Perepletchikova, T. A. Treat, and A. E. Kazdin (2007) Treatment integrity in psychotherapy research: analysis of the studies and examination of the associated factors.. Journal of consulting and clinical psychology 75 (6), p. 829. Cited by: footnote 1. D. Plecko and E. Bareinboim (2024) Mind the gap: a causal perspective on bias amplification in prediction & decision-making. Advances in Neural Information Processing Systems 37, p. 84384–84408. Cited by: §5. V. C. Smith, A. Lange, and D. R. Huston (2012) Predictive modeling to forecast student outcomes and drive effective interventions in online community college courses.. Journal of asynchronous learning networks 16 (3), p. 51–61. Cited by: §1. M. J. Stensrud, J. Laurendeau, and A. L. Sarvet (2024) Optimal regimes for algorithm-assisted human decision-making. Biometrika 111 (4), p. 1089–1108. Cited by: §5. M. Steyvers and A. Kumar (2024) Three challenges for ai-assisted decision-making. Perspectives on Psychological Science 19 (5), p. 722–734. Cited by: §6. E. Straitouri, S. Thejaswi, and M. G. Rodriguez (2024) Controlling counterfactual harm in decision support systems based on prediction sets. Advances in Neural Information Processing Systems 37, p. 129443–129479. Cited by: §5. N. van Geloven, R. H. Keogh, W. van Amsterdam, G. Cinà, J. H. Krijthe, N. Peek, K. Luijken, S. Magliacane, P. Morzywołek, T. van Ommen, et al. (2025) The risks of risk assessment: causal blind spots when using prediction models for treatment decisions. Annals of internal medicine 178 (9), p. 1326–1333. Cited by: §1, §6. A. Wang, S. Kapoor, S. Barocas, and A. Narayanan (2024) Against predictive optimization: on the legitimacy of decision-making algorithms that optimize predictive accuracy. ACM J. Responsib. Comput. 1 (1), p. 9:1–9:45. External Links: Document Cited by: §1. L. Wang, S. Xu, X. Wang, and Q. Zhu (2019) Eavesdrop the composition proportion of training labels in federated learning. arXiv preprint arXiv:1910.06044. Cited by: §5. C. S. Wong, H. Cheng, and J. Masaro (1999) Multivariate versions of cochran theorems. Linear Algebra and its Applications 291 (1–3), p. 227–234. External Links: Document Cited by: §E.3.3. J. Zhang and E. Bareinboim (2022) Can humans be out of the loop?. In Conference on Causal Learning and Reasoning, p. 1010–1025. Cited by: §5. Appendix A Motivating examples In this section we elaborate on how our framework and experimental setup can reconstruct and validate the intuition of the motivating examples. In the first example, the belief of the agent on the past policy determines how the prediction is interpreted and what action is taken. Indeed, in the simulation, when X=80X=80, with a bad prognosis under the assumption of no treatment (αAμ=0 _Aμ=0), the agent chooses a high dosage to improve the outcome (A=20A=20). With a bad prognosis under the assumption of heavy treatment (αAμ=20 _Aμ=20), the agent chooses a low dosage to reduce over-treatment (A=10A=10). In the second motivating example, new information from the prediction forces an agent to consider different options. In the model, this means that either belief in treatment effect (NEN_E) or in historical policy (αAμ _A_μ) is revised, which appears as a correlation in the posterior belief in these two variables in Figure 4. To recap: after observing a prediction that did not match expectation, the agent revises their beliefs, entertaining multiple hypotheses on how their beliefs should change to account for the situation. In this case, either the treatment effect is lower than anticipated and the dosage higher than assumed, or the other way around. Figure 4: Plot showing the correlation of variables NEN_E and αAμ _A_μ in the posterior beliefs of the agent after update with ML-DS information. The correlation reflects that the agent entertains multiple possible explanations for the surprising prediction: either treatment is less effective than expected, or historical dosages were higher than expected, or a scenario in between. Appendix B Details on the experimental setup and implementation We report here all the details about the experiments, complementing Section 2.1. Historical SCM. Let the SCM HistHist be defined as: NX N_X ∼(80,10)NA∼(2,1)NY∼(0,0.1) (80,10) N_A (2,1) N_Y (0,0.1) X X :=NX :=N_X A A :=0.125∗X+NA :=0.125*X+N_A Y Y :=12−0.1∗X+1∗A+NY :=12-0.1*X+1*A+N_Y In this model, the treatment protocol is simply to give a dosage of treatment A which is one eighth of the body weight X, and how well this dosing is followed is encoded by the noise term NAN_A. The mechanism of Y clarifies that the covariate X makes the outcome worse but the treatment improves the outcome. Of course, this equation is a great simplification of what happens in reality, but it is sufficient to demonstrate several important dynamics that emerge when introducing ML-DS. Average treatment effect is positive in this scenario, as witnessed by the positive coefficient of A in the equation for Y. The model of the agent’s beliefs. In the PyMC implementation, we also use a small (1e−31e-3) observational noise around PredoPred^o to allow us to sample from an observed deterministic transformation. The model for the agent’s effect estimation. Finally, the model of the agent used for inference, infA_inf, is defined as: NX N_X ∼(αXμ,αXσ)NA∼(αAμ,αAσ) ( _Xμ, _Xσ) N_A ( _Aμ, _Aσ) NY N_Y ∼(αYμ,αYσ) ( _Yμ, _Yσ) X X :=NX :=N_X A A :=0.125X+NA :=0.125\,X+N_A Y Y :=12−0.1X+NEA+NY :=12-0.1\,X+N_E\,A+N_Y B.1 Implementation details The experiments were run on a high performance computing cluster. Every node had 4 CPUs (no GPUs) and 7 GB of RAM. A single-node job took between 2 and 60 minutes to complete, and we ran 12,200 such jobs in total. We estimate that we used 40,000 CPU-hours on the cluster for the final run of the experiments. The code for the simulations presented in this paper is based on PyMC Abril-Pla et al. [2023]. We used the NUTS sampler to get 1000 samples for each of 4 chains, with 1000 tuning samples and a ‘target_accept’ parameter of 0.85. Diagnostics and visual inspection of the traces showed good mixing and no convergence issues (Max R^=1.01 R=1.01, and only 16 out of 4000 runs had >5>5 divergences, due to fixed ‘target_accept’ and extreme parameter values). For every value of a misaligned prior, we ran 50 such jobs with different XoX^o values sampled from the true distribution. Sanity checks on the Bayesian model are expanded upon in Appendix C. The exact translation of the theory in the code is detailed in Appendix F, after the main proofs of Appendix E. Appendix C Sanity checks on the Bayesian model We have implemented a series of experiments to make sure that the framework is functioning as intended. 1. We compare the posterior distributions with the explicit plate and with the sufficient statistics formulation given the same observations. We check if the posteriors of the two agents end up the same. This is repeated for different sizes of plate to control for potential effects of size. 2. We run an update with a single observation Xo=200X^o=200 that is much higher than the prior mean of 80 (with standard deviation 10). We verify that after the update the posterior of αXμ _X_μ has moved in the right direction. We also check if this creates correlations of αXμ _X_μ with other parameters. This is repeated for different plate sizes. 3. We run an update with many (1000) observations drawn from the real distribution of X and check that the (incorrect) prior of the agent converges to the real parameter μX _X in the generating process. 4. We set one observation with X equal to the mean of the agent’s prior, with the priors on A and NEN_E very peaked, but with PredoPred^o set much higher than the value Y=coeff∗X+NE∗AY= coeff*X+N_E*A. We also set the coeff of X in the structural equation of A to zero. We observe in the posterior that there is now a correlation between the parameters of NEN_E and αAμ _Aμ. Appendix D Results obtained when varying prior αYμ _Y_μ In Figure 5 we report the CATE and Y plots obtained when varying the belief of the agent concerning the mean of the outcome in the historical population, αYμ _Yμ. It can be observed that CATE with ML-DS diverges from the true CATE as misalignment becomes more extreme (a), although in this range this is not enough to observe different outcome on the Y plot (b). (a) αYμ _Y_μ (b) αYμ _Y_μ Figure 5: Figures displaying the effects of different agent’s priors when using ML-DS (orange) and without it (blue). In all plots, the x-axis represents the deviation of the agent’s prior belief from the historical SCM’s parameter for αYμ _Yμ. The left plot displays the agent’s prior and posterior (predictive) belief of CATE, while the right one shows the impact of the agent’s decisions on the downstream outcome Y. In a rather wide band is the posterior within 1 std of the true mean (gray area). Appendix E Plate reduction In this section we show how the plate for ordinary least squares regression was reduced, resulting in us having to sample only a handful of variables rather than the full plate. This makes our method both tractable and numerically more stable. We begin by re-stating Theorem 2.8; the proof follows. Theorem E.1 (Reduction of the plate to sufficient statistics). Let the historical DAG be as depicted in Fig. 2(a) and let X be a vector of k different independent variables (all confounders with respect to A and Y). Let n be the number of data points in the historical training data. Assume that: 1. The structural equations of the historical SCM are linear and without interaction terms; 2. all variables are continuous; 3. all noises are Gaussian; 4. the ML model is a linear regression with intercept predicting Y from X; 5. n≥k+1n≥ k+1, i.e. there are at least k+1k+1 data points to train the linear model 6. the agent has perfect knowledge of the historical DAG and of the functional form of the structural equations; 7. the agent is a Bayesian reasoner who knows the number of data points in the training data, the model signature and the model class. Then the likelihood of θ (the parameters of the ML model) in histA_hist can be written as a function of the population-level variables (those outside the plate) plus k2+5k+22 k^2+5k+22 sufficient statistics, where k is the number of confounders in the DAG. We note that we do not assume the agent to know the exact coefficients of the SCM (see Subsection E.0.3 below for the exact formulation of the equations in histA_hist), we allow for k confounders and the ML model has intercept. This proof therefore covers a more general case than the use case presented in the paper for the experiments. We also provide an analogous proof for the case without the intercept in Corollary E.2 in Section E.8 below. E.0.1 Notation and setup E.0.2 The vector 1 and the projection matrices Throughout this proof we use the vector ∈ℝn1 ^n, a column vector with all entries equal to 1. We define two projection matrices: P:=1n⊤,M:=In−P.P:= 1n11 , M:=I_n-P. (Proj) P computes the mean: when applied to a vector, every component of the result equals the mean of the original vector. M subtracts the mean (centering): Mv=v−PvMv=v-Pv, so every component of MvMv is the original value minus the mean. Properties of M (used throughout): M=0,M2=M(idempotent),M⊤=M(symmetric).M1=0, M^2=M\;(idempotent), M =M\;(symmetric). (M-prop) M=0M1=0: a constant vector has mean equal to itself; subtracting the mean gives zero. M2=M^2=M: centering data that is already centered does nothing. M is the projection onto the orthogonal complement of span()span(1). P projects onto span()span(1). They are orthogonal: PM=0PM=0. E.0.3 The SCM with k covariates For each patient i∈1,…,ni∈\1,…,n\, where XiX_i is now a vector of k covariates: Xi X_i ∈ℝk,Xi=NXi ^k, X_i=N_X_i (SCM-0) Ai A_i =Nd⊤Xi+NAi =N_d X_i+N_A_i (SCM-1) Yi Y_i =Nb⊤Xi+NEAi+NYi =N_b X_i+N_E\,A_i+N_Y_i (SCM-2) where Nb,Nd∈ℝkN_b,N_d ^k and NE∈ℝN_E are population-level random variables (sampled once, not per patient). In the agent’s Bayesian model, each of them has a prior and is inferred from data. The noise distributions are: (NXi)j (N_X_i)_j ∼(αXμj,αXσj2)independently over i and j, ( _X _j,\; _X _j^2) over i and j, NAi N_A_i ∼(αAμ,αAσ2), ( _Aμ,\; _Aσ^2), (Noise) NYi N_Y_i ∼(αYμ,αYσ2), ( _Yμ,\; _Yσ^2), all mutually independent across indices and across variables. Remark (status of population-level parameters). The derivation below is written conditionally on the population-level parameters (Nb,Nd,NE,αXμj,αXσjj=1k,αAμ,αAσ,αYμ,αYσ). (N_b,\;N_d,\;N_E,\;\ _X _j, _X _j\_j=1^k,\; _Aμ,\; _Aσ,\; _Yμ,\; _Yσ ). The auxiliary variables (s,W,g,h)(s,W,g,h) and the formulas for (β0^,β1^)( _0, _1) are obtained for any fixed value of these parameters. In the agent’s Bayesian model these parameters are themselves random variables with their own priors. The reduction therefore applies pointwise in the population-level parameters: for each posterior draw, the plate of n patients is replaced by a single draw of (s,W,g,h)(s,W,g,h). E.0.4 Standardization of the noises We define the vector of means and the diagonal matrix of standard deviations as αXμ:=(αXμ1⋮αXμk)∈ℝk,DX:=diag(αXσ1,…,αXσk)∈ℝk×k. _X_μ:= pmatrix _X _1\\ \\ _X _k pmatrix ^k, D_X:=diag( _X _1,…, _X _k) ^k× k. (X-par) We explicitly use vector notation for αXμ _X_μ to reduce confusion. Each covariate vector can then be written as: Xi=αXμ+DXzi,zi∼iidk(0,Ik).X_i= _X_μ+D_Xz_i, z_i iid N_k(0,I_k). (X-std) The vector ziz_i is a k-dimensional standard normal. The matrix DXD_X scales each component by its standard deviation. Since the covariates are independent across components in this SCM, DXD_X is diagonal. Similarly for the other noises: NAi=αAμ+αAσϵAi,NYi=αYμ+αYσϵYi,ϵAi,ϵYi∼iid(0,1),N_A_i= _Aμ+ _Aσ\, _A_i, N_Y_i= _Yμ+ _Yσ\, _Y_i, _A_i, _Y_i iid N(0,1), (AY-std) independent of all ziz_i. E.0.5 Design matrix and OLS with intercept Let X∈ℝn×kX ^n× k be the design matrix whose i-th row is Xi⊤X_i , and Y∈ℝnY ^n the outcome vector. The design matrix decomposes as: X=αXμ⊤+ZDX,X=1 _X_μ +ZD_X, (D1) where Z∈ℝn×kZ ^n× k has rows zi⊤z_i . Each row of αXμ⊤1 _X_μ is the same (the population mean); ZDXZD_X adds the patient-specific noise scaled by the standard deviations. The OLS model with intercept is Y≈β0 1+Xβ1Y≈ _0\,1+X _1. The closed-form solution is: β1^=(X⊤MX)−1X⊤MY,β0^=Y¯−X¯⊤β1^, _1=(X MX)^-1X MY, _0= Y- X _1, (OLS) where X¯:=1nX⊤∈ℝk X:= 1nX 1 ^k and Y¯:=1n⊤Y∈ℝ Y:= 1n1 Y . Given the assumption n≥k+1n≥ k+1, X⊤MX MX is invertible almost surely. Our goal: express (β0^,β1^)( _0, _1) using a small set of auxiliary random variables, without sampling the n individual patients. E.1 Why centering simplifies the problem If one writes the block normal equations using the uncentered statistics Sx=X⊤S_x=X 1, Sxx=X⊤XS_x=X X, sy=⊤Ys_y=1 Y, sxy=X⊤Ys_xy=X Y, the closed form is: [β0^β1^]=[nSx⊤SxSxx]−1[sysxy]. bmatrix _0\\ _1 bmatrix= bmatrixn&S_x \\ S_x&S_x bmatrix^-1 bmatrixs_y\\ s_xy bmatrix. This is correct, but for our purposes it is not the cleanest route. The matrix Sxx=X⊤XS_x=X X mixes the mean and the dispersion of the covariates. The centered formulation (OLS) avoids this by projecting out the mean direction with M. The key centered object is: Cxx:=X⊤MX.C_x:=X MX. (B3) We now show that CxxC_x factorizes cleanly. E.2 Centering the design matrix Apply M to the decomposition X=αXμ⊤+ZDXX=1 _X_μ +ZD_X: MX=M(αXμ⊤+ZDX)=M⏟= 0αXμ⊤+MZ⋅DX=MZDX.MX=M(1 _X_μ +ZD_X)= M1_=\,0\, _X_μ +MZ· D_X=MZ\,D_X. (D6) Therefore: Cxx C_x =X⊤MX=(MX)⊤(MX) =X MX=(MX) (MX) =(MZDX)⊤(MZDX)=DXZ⊤M⊤MZDX=DXZ⊤MZDX. =(MZD_X) (MZD_X)=D_XZ M MZD_X=D_XZ MZD_X. (D7) The step (MX)⊤(MX)=X⊤MX(MX) (MX)=X MX uses three properties: transposing a product reverses the order (X⊤M⊤X M ), M is symmetric (M⊤=M =M), and M is idempotent (M2=M^2=M). The step DX⊤=DXD_X =D_X holds because DXD_X is diagonal. E.3 The auxiliary objects s and W We next look into the auxiliary objects needed for the plate reduction and their properties. E.3.1 First auxiliary object: s (sum of standardized noises) Define: s:=Z⊤=∑i=1nzi∈ℝk.s:=Z 1= _i=1^nz_i ^k. (D2) Each column of Z contains n independent (0,1)N(0,1) entries. Summing n independent (0,1)N(0,1) variables gives (0,n)N(0,n). The different columns are independent. Therefore: s∼k(0,nIk).s _k(0,nI_k). (D3) For k=1k=1, s reduces to the scalar SX=∑ϵXiS_X=Σ _X_i. For later use, the sample mean of the covariates is: X¯=αXμ+1nDXs. X= _X_μ+ 1nD_Xs. (D11) E.3.2 Second auxiliary object: W (centered Gram matrix) Define: W:=Z⊤MZ∈ℝk×k.W:=Z MZ ^k× k. (D8) The matrix MZMZ is Z with column means subtracted (the centered noise table). W=(MZ)⊤(MZ)W=(MZ) (MZ) is the Gram matrix of the centered noises: • Diagonal entries WjjW_j: the centered sum of squares of the j-th noise column, ∑i(zij−z¯j)2 _i(z_ij- z_j)^2. Measures how much variable j fluctuates around its mean. • Off-diagonal entries WjlW_jl: the centered cross-product between columns j and l, ∑i(zij−z¯j)(zil−z¯l) _i(z_ij- z_j)(z_il- z_l). Measures how variables j and l fluctuate together. E.3.3 Distribution of W and independence from s Standardization as a prerequisite. From (X-std) the rows of Z satisfy zi∼iidk(0,Ik)z_i iid N_k(0,I_k). This is the standard Gaussian setting required to apply the multivariate Cochran theorem. Recall that P=1n⊤,M=In−P.P= 1n11 , M=I_n-P. Both P and M are symmetric idempotent projectors, they are complementary (P+M=InP+M=I_n), and they are orthogonal to each other (PM=0PM=0). This is exactly the projection setup underlying Cochran’s theorem Cochran [1934] and its multivariate extension Wong et al. [1999]. By standard multivariate normal theory, orthogonal Gaussian projections are independent; therefore PZPZ and MZMZ are independent. Now observe that PZ=1n⊤Z=1ns⊤,W=Z⊤MZ=(MZ)⊤(MZ).PZ= 1n11 Z= 1n1s , W=Z MZ=(MZ) (MZ). So s is a deterministic function of PZPZ, while W is a deterministic function of MZMZ. Since PZ⟂MZPZ MZ, it follows that s⟂W.s W. (D9b) Distribution of W. Let U∈ℝn×(n−1)U ^n×(n-1) be a matrix whose columns form an orthonormal basis of the orthogonal complement of span()span(1), i.e. the subspace of vectors summing to zero. We denote this subspace by span()⟂span(1) . Then M=UU⊤,U⊤U=In−1.M=U , U U=I_n-1. Hence W=Z⊤MZ=Z⊤UU⊤Z=(U⊤Z)⊤(U⊤Z).W=Z MZ=Z U Z=(U Z) (U Z). Because U⊤U is an orthonormal map onto the n−1n-1 centered directions and the rows of Z are i.i.d. k(0,Ik)N_k(0,I_k), the matrix U⊤ZU Z has n−1n-1 i.i.d. rows distributed as k(0,Ik)N_k(0,I_k). Therefore, by definition of the Wishart distribution, W∼Wishartk(Ik,n−1).W _k(I_k,n-1). (D9) The Wishart distribution is the multivariate generalization of the chi-squared. If you take n−1n-1 independent draws v1,…,vn−1∼k(0,Ik)v_1,…,v_n-1 _k(0,I_k) and form ∑jvjvj⊤ _jv_jv_j , the result follows Wishartk(Ik,n−1)Wishart_k(I_k,n-1). For k=1k=1, each vjv_j is a scalar (0,1)N(0,1), and ∑vj2∼χ2(n−1)Σ v_j^2 χ^2(n-1). Under the assumption n≥k+1n≥ k+1, the degrees of freedom satisfy n−1≥kn-1≥ k, so W is symmetric positive definite almost surely. This is essential: if we tried to sample the diagonal (sums of squares) and off-diagonal (cross-products) entries independently, the resulting matrix could fail to be positive definite, which is mathematically impossible for a Gram matrix. E.3.4 The centered Gram matrix of the covariates Substituting (D8) into (D7): Cxx=DXWDX. C_x=D_XWD_X. (D10) This is the crucial simplification. The centered Gram matrix of the covariates factorizes into a product of known diagonal matrices (DXD_X) and a single random object (W) that we can sample directly. The intercept simplifies the denominator: M eliminates the mean part, and only the Wishart part remains. This is why the off-diagonal cross-product issue does not arise. E.4 Condensing A into Y Substituting Ai=Nd⊤Xi+αAμ+αAσϵAiA_i=N_d X_i+ _Aμ+ _Aσ _A_i into SCM-2: Yi Y_i =Nb⊤Xi+NE(Nd⊤Xi+αAμ+αAσϵAi)+αYμ+αYσϵYi =N_b X_i+N_E(N_d X_i+ _Aμ+ _Aσ _A_i)+ _Yμ+ _Yσ _Y_i =(αYμ+NEαAμ)⏟c+(Nb+NENd)⊤⏟β⊤Xi+NEαAσϵAi+αYσϵYi⏟εi. = ( _Yμ+N_E _Aμ)_c+ (N_b+N_EN_d) _β X_i+ N_E _Aσ _A_i+ _Yσ _Y_i_ _i. (C1) The condensed noise εi _i is a linear combination of two independent (0,1)N(0,1) variables, hence ε∼n(0,τ2In) _n(0,τ^2I_n) τ2=NE2αAσ2+αYσ2 τ^2=N_E^2 _Aσ^2+ _Yσ^2 Y=c 1+Xβ+ε Y=c\,1+Xβ+ (C4) Structural independence: εi _i depends on ϵAi _A_i and ϵYi _Y_i, which in the SCM are independent of all zjz_j (the covariate noises). Therefore: ε⟂(Z,s,W,and any function of Z). (Z,s,W,and any function of Z). (Indep) E.5 Slope estimate Substitute Y=c+Xβ+εY=c1+Xβ+ into (OLS): β1 _1 =(X⊤MX)−1X⊤M(c+Xβ+ε) =(X MX)^-1X M(c1+Xβ+ ) =(X⊤MX)−1[cX⊤M⏟= 0+X⊤MXβ+X⊤Mε] =(X MX)^-1 [\,c X M1_=\,0+X MX\,β+X M \, ] =β+Cxx−1X⊤Mε. =β+C_x^-1\,X M . (S2) The intercept c drops out because M=0M1=0. The slope estimate equals the true slope β plus a noise term Cxx−1X⊤MεC_x^-1X M , which is a vector of k components. We need to reduce this noise term. E.5.1 Step 1: conditional distribution of X⊤MεX M Given X, the matrix X is fixed. By (Indep), ε∣X∼n(0,τ2In) X _n(0,τ^2I_n). The quantity X⊤MεX M is a linear transformation of a Gaussian vector, hence Gaussian: [X⊤Mε∣X] [X M X] =0, =0, (S4) Cov(X⊤Mε∣X) (X M X) =X⊤M(τ2I)M⊤X=τ2X⊤MX=τ2Cxx. =X M\,(τ^2I)\,M X=τ^2X MX=τ^2C_x. (S5) The covariance uses the rule: if u∼(0,Σ)u (0, ) and A is a matrix, then Cov(Au)=AΣA⊤Cov(Au)=A A . Here u=εu= , Σ=τ2I =τ^2I, A=X⊤MA=X M. Then M⊤=M =M and M2=M^2=M give τ2X⊤MX=τ2Cxxτ^2X MX=τ^2C_x. Therefore X⊤Mε∣X∼k(0,τ2Cxx).X M X _k(0,τ^2C_x). (S6) The right-hand side depends on X only through Cxx=DXWDXC_x=D_XWD_X, which is a deterministic function of W. So conditioning on W is sufficient: X⊤Mε∣W∼k(0,τ2DXWDX).X M W _k(0,τ^2D_XWD_X). (S7) E.5.2 Step 2: standardize to obtain g (third auxiliary object) Here Σ=τ2DXWDX =τ^2D_XWD_X. The matrix square root is Σ1/2=τDXW1/2 ^1/2=τ D_XW^1/2: Verification: (τDXW1/2)(τDXW1/2)⊤=τ2DXW1/2(W1/2)⊤DX=τ2DXWDX(τ D_XW^1/2)(τ D_XW^1/2) =τ^2D_XW^1/2(W^1/2) D_X=τ^2D_XWD_X, using DX⊤=DXD_X =D_X (diagonal) and (W1/2)⊤=W1/2(W^1/2) =W^1/2 (W is symmetric positive definite, so its square root is also symmetric). Define g∼k(0,Ik)g _k(0,I_k): X⊤Mε=τDXW1/2g.X M =τ D_XW^1/2g. (S8) g⟂(s,W)g (s,W). Conditioning on Z and using ε⟂Z Z from the SCM, we have ε∣Z∼n(0,τ2In) Z _n(0,τ^2I_n). The scaling τDXW1/2τ D_XW^1/2 in (S8) is Z-measurable, so its normalization yields g∣Z∼k(0,Ik)g Z _k(0,I_k). This conditional law does not depend on Z, hence g⟂Zg Z, and in particular g⟂(s,W)g (s,W). E.5.3 Step 3: the slope formula Substituting (S8) into (S2): β1 _1 =β+(DXWDX)−1⋅τDXW1/2g =β+(D_XWD_X)^-1·τ D_XW^1/2g =β+τDX−1W−1DX−1⋅DXW1/2g =β+τ\,D_X^-1W^-1D_X^-1· D_XW^1/2g =β+τDX−1W−1/2g. =β+τ\,D_X^-1W^-1/2g. (S9) The simplification: (DXWDX)−1=DX−1W−1DX−1(D_XWD_X)^-1=D_X^-1W^-1D_X^-1. Then DX−1DX=ID_X^-1D_X=I (cancel), and W−1W1/2=W−1/2W^-1W^1/2=W^-1/2. β1^=β+τDX−1W−1/2g _1=β+τ D_X^-1W^-1/2g (S10) The slope depends only on W and g, but not on s (the sum of covariate noises, i.e. the mean). E.6 Intercept estimate From (OLS): β0^=Y¯−X¯⊤β1 _0= Y- X _1. Compute Y¯ Y from (C4): Y¯=c+X¯⊤β+ε¯,ε¯:=1n∑iεi. Y=c+ X β+ , := 1n _i _i. Substituting: β0 _0 =c+X¯⊤β+ε¯−X¯⊤β1 =c+ X β+ - X _1 =c+ε¯−X¯⊤(β1^−β). =c+ - X ( _1-β). (I3) Using β1^−β=τDX−1W−1/2g _1-β=τ D_X^-1W^-1/2g from (S10): β0^=c+ε¯−τX¯⊤DX−1W−1/2g. _0=c+ -τ X D_X^-1W^-1/2g. (I4) E.6.1 Fourth auxiliary object: h (mean noise) Each εi∼(0,τ2) _i (0,τ^2) is independent. So ∑iεi∼(0,nτ2) _i _i (0,nτ^2). Standardize: h:=∑iεiτn∼(0,1),ε¯=τnh.h:= _i _iτ n (0,1), = τ n\,h. (I6) h⟂(s,W)h (s,W): h is a function of PεP , (s,W)(s,W) are functions of Z, and ε⟂Z Z in the SCM. h⟂gh g: by Cochran on ε∼n(0,τ2In) _n(0,τ^2I_n) with the complementary projectors P and M, Pε⟂MεP M . By the SCM, ε⟂Z Z. Combining, Pε⟂(Mε,Z).P (M ,Z). Since h is a function of PεP and both X⊤MεX M and W are functions of (Mε,Z)(M ,Z), this gives h⟂(X⊤Mε,W)h (X M ,W). The representation (S8) determines g from (X⊤Mε,W)(X M ,W), so h⟂gh g. E.6.2 The intercept formula Using X¯=αXμ+1nDXs X= _X_μ+ 1nD_Xs from (D11): β0 _0 =c+τnh−τ(αXμ+1nDXs)⊤DX−1W−1/2g =c+ τ n\,h-τ\! ( _X_μ+ 1nD_Xs ) \!D_X^-1W^-1/2g =c+τnh−τ(αXμ⊤DX−1+1ns⊤)W−1/2g. =c+ τ n\,h-τ\! ( _X_μ D_X^-1+ 1ns )\!W^-1/2g. (I7) In the second line: (DXs)⊤DX−1=s⊤DX⊤DX−1=s⊤DXDX−1=s⊤(D_Xs) D_X^-1=s D_X D_X^-1=s D_XD_X^-1=s , using DX⊤=DXD_X =D_X (diagonal). β0^=c+τnh−τ(αXμ⊤DX−1+1ns⊤)W−1/2g _0=c+ τ n\,h-τ\! ( _X_μ D_X^-1+ 1ns )\!W^-1/2g (I8) E.7 Summary E.7.1 The 4 auxiliary objects Table 1: The sampling distributions of the reduced plate. Object Distribution What it captures s∈ℝks ^k k(0,nIk)N_k(0,nI_k) Sum of covariate noises W∈ℝk×kW ^k× k Wishartk(Ik,n−1)Wishart_k(I_k,n-1) Centered dispersion of covariates g∈ℝkg ^k k(0,Ik)N_k(0,I_k) Centered noise from A and Y h∈ℝh (0,1)N(0,1) Mean noise from A and Y The sampling distributions of the low-dimensional auxiliary variables are listed in Table 1. All four are mutually independent: • s⟂Ws W: Cochran (mean vs. centered part of zi\z_i\). • h⟂gh g: Cochran (mean vs. centered part of εi\ _i\). • (h,g)⟂(s,W)(h,g) (s,W): from the independence arguments established in Sections E.5.2 and E.6.1 (conditioning on Z, plus ε⟂Z Z from the SCM). E.7.2 Scalar degrees of freedom k⏟s+k(k+1)2⏟W+k⏟g+1⏟h=k2+5k+22. k_s+ k(k+1)2_W+ k_g+ 1_h= k^2+5k+22. Table 2: The number of samples needed to generate one posterior sample using the reduced plate compared to using the full plate, without counting the population-level parameters outside the plate. k Reduced variables Full plate (n=1000n=1000) 1 4 3 000 2 8 4 000 5 26 7 000 10 76 12 000 Table 2 shows the number of sampling events needed to generate one posterior sample of β1 _1 and β0 _0. The number of samples needed using the reduced plate grows as (k2)O(k^2), whereas for the full plate it grows as (kn)O(kn). For k≪nk n, the r educed plate is clearly preferable. E.7.3 Final formulas β1 _1 =β+τDX−1W−1/2g, =β+τ D_X^-1W^-1/2g, (1) β0 _0 =c+τnh−τ(αXμ⊤DX−1+1ns⊤)W−1/2g, =c+ τ n\,h-τ\! ( _X_μ D_X^-1+ 1ns )\!W^-1/2g, (2) where β=Nb+NENd,c=αYμ+NEαAμ,τ2=NE2αAσ2+αYσ2.β=N_b+N_EN_d, c= _Yμ+N_E _Aμ, τ^2=N_E^2 _Aσ^2+ _Yσ^2. E.7.4 Connection with the uncentered sufficient statistics The classical sufficient statistics can all be expressed from (s,W,g,h)(s,W,g,h): Sx S_x =nαXμ+DXs, =n _X_μ+D_Xs, (3) Sxx S_x =1nSxSx⊤+DXWDX, = 1nS_xS_x +D_XWD_X, (4) sy s_y =nc+Sx⊤β+τnh, =nc+S_x β+τ n\,h, (5) sxy s_xy =cSx+Sxxβ+τ(1nSxh+DXW1/2g). =cS_x+S_xβ+τ\! ( 1 nS_xh+D_XW^1/2g ). (6) E.8 Generalization to the no-intercept case Corollary E.2 (No-intercept case). Under the same assumptions as Theorem E.1, let the ML model be a linear model without intercept. Then the reduction to sufficient statistics involves k2+5k2 k^2+5k2 scalar sufficient statistics, where k is the number of independent confounders. The conclusion of Theorem E.1 holds with auxiliary objects (s,W,g,h)(s,W,g,h) in the with-intercept case (as before) and (s,W,g~)(s,W, g) in the no-intercept case, where g~∼k(0,Ik) g _k(0,I_k) is defined in (S8′) below. The total number of sufficient statistics is k2+5k+22 k^2+5k+22 in the first case and k2+5k2 k^2+5k2 in the second; the difference of one scalar is exactly the absent mean-noise term h. E.8.1 Setup The setup of Section E.0.3 and the design-matrix decomposition carry over verbatim. In particular, the SCM (SCM-0)–(SCM-2), the standardization (X-std)–(AY-std), the design-matrix decomposition X=αXμ⊤+ZDXX=1 _X_μ +ZD_X from (D1), and the condensed form Y=c 1+Xβ+εY=c\,1+Xβ+ with ε∼n(0,τ2In) _n(0,τ^2I_n) and ε⟂Z Z from (C4) and (Indep) are all unchanged. Replace the OLS-with-intercept system of (OLS) by the slope-only OLS: ϕ^=(X⊤X)−1X⊤Y∈ℝk. φ=(X X)^-1\,X Y\;∈\;R^k. (OLS′) Under Assumption 5 of Theorem E.1 (n≥k+1n≥ k+1), X⊤X X is invertible almost surely; this is verified explicitly in Step 1 below. E.8.2 Step 1: the uncentered Gram and mean factor through (s,W)(s,W) The crucial observation is that, although the centering matrix M no longer appears, X⊤X X and X⊤X 1 remain functions of (s,W)(s,W) plus population-level parameters. Using ⊤=n1 1=n, Z⊤=sZ 1=s, and Z⊤Z=Z⊤PZ+Z⊤MZ=1nss⊤+WZ Z=Z PZ+Z MZ= 1ns +W: X⊤=nαXμ+DXs=:Sx,X 1=n\, _X_μ+D_Xs=:S_x, (D1′) X⊤X X X =nαXμαXμ⊤+αXμs⊤DX+DXsαXμ⊤+DX(1nss⊤+W)DX =n\, _X_μ _X_μ + _X_μ\,s D_X+D_Xs\, _X_μ +D_X\! ( 1ns +W )\!D_X =1n(nαXμ+DXs)(nαXμ+DXs)⊤+DXWDX = 1n\,(n _X_μ+D_Xs)(n _X_μ+D_Xs) +D_XWD_X =1nSxSx⊤+DXWDX. = 1n\,S_xS_x +D_XWD_X. (D7′) The expressions (D1′) and (D7′) coincide with equations (3) and (4) of the “Connection with the uncentered sufficient statistics” subsection: the classical uncentered sufficient statistics (Sx,Sxx)(S_x,S_x) are already expressed in terms of (s,W)(s,W) and population-level parameters, so the no-intercept case requires no further reduction at this step. Invertibility of X⊤X X. Under Assumption 5, W is positive definite almost surely (as established for (D9)), so DXWDXD_XWD_X is positive definite. The rank-one term 1nSxSx⊤ 1nS_xS_x is positive semidefinite. Their sum is therefore positive definite a.s., yielding invertibility of X⊤X X. E.8.3 Step 2: X⊤εX via a fresh standard Gaussian Substitute Y=c 1+Xβ+εY=c\,1+Xβ+ into (OLS′): ϕ φ =(X⊤X)−1X⊤(c 1+Xβ+ε) =(X X)^-1\,X (c\,1+Xβ+ ) =β+c(X⊤X)−1Sx+(X⊤X)−1X⊤ε. =β+c\,(X X)^-1\,S_x+(X X)^-1\,X . (S2′) For the noise term: by (Indep), ε⟂Z Z, hence ε∣Z∼n(0,τ2In) Z _n(0,τ^2I_n), and X⊤ε∣Z∼k(0,τ2X⊤X).X Z\; \;N_k\! (0,\;τ^2X X ). (S6′) The covariance is a deterministic function of (s,W)(s,W) via (D7′), so conditioning on (s,W)(s,W) is sufficient. Define g~:=τ−1(X⊤X)−1/2X⊤ε. g:=τ^-1\,(X X)^-1/2\,X . (S8′) The conditional distribution g~∣(s,W) g (s,W) is k(0,Ik)N_k(0,I_k) and does not depend on (s,W)(s,W). Hence g~ g is unconditionally k(0,Ik)N_k(0,I_k) and g~⟂(s,W) g (s,W). Equivalently: X⊤ε=τ(X⊤X)1/2g~,g~∼k(0,Ik),g~⟂(s,W).X =τ\,(X X)^1/2\, g, g _k(0,I_k), g (s,W). (S9′) The mean-noise object h of Section E.6.1 plays no role here: in the absence of an intercept estimate, there is no place for ε¯ to enter. E.8.4 Step 3: the slope-only formula Substituting (S9′) into (S2′): ϕ^=β+c(X⊤X)−1Sx+τ(X⊤X)−1/2g~ φ=β+c\,(X X)^-1\,S_x+τ\,(X X)^-1/2\, g (S10′) with Sx=nαXμ+DXs,X⊤X=1nSxSx⊤+DXWDX.S_x=n\, _X_μ+D_Xs, X X= 1n\,S_xS_x +D_XWD_X. Sampling (s,W,g~)(s,W, g) once and applying (S10′) reproduces a posterior draw of ϕ φ without ever sampling the n-row plate. E.8.5 Auxiliary objects, independence, degrees of freedom The auxiliary objects in the no-intercept case are s∈ℝk∼k(0,nIk),W∈ℝk×k∼Wishartk(Ik,n−1),g~∈ℝk∼k(0,Ik).s ^k _k(0,nI_k), W ^k× k _k(I_k,n-1), g ^k _k(0,I_k). The pairwise independence claims of the “4 auxiliary objects” subsection reduce to: • s⟂Ws W: Cochran on Z via the complementary projectors P,MP,M, exactly as established for (D9b). • g~⟂(s,W) g (s,W): established in Step 2; the conditional law of g~ g given (s,W)(s,W) does not depend on (s,W)(s,W). Total scalar degrees of freedom: k⏟s+k(k+1)2⏟W+k⏟g~=k2+5k2. k_s+ k(k+1)2_W+ k_ g= k^2+5k2. This is exactly k2+5k+22−1 k^2+5k+22-1: one fewer scalar than the with-intercept count, the missing scalar being h. Appendix F Implementation of the theory in the code We elaborate here on how the strategy to reduce the plate with the help of sufficient statistics is implemented in the code, since it employs a slightly different factorization of the OLS closed form with respect to what the Theorem and Corollary used in section E. As mentioned in Section 3, the experiment pertains to the use case with a single confounder X and a linear model without intercept. As we are using PyMC for inference – which does not have an implementation for the non-central χ2χ^2-distribution – all random variables (RVs) will be reformulated using zero-centered normally distributed RVs (standard normals where needed) and (central) χ2χ^2 distributed RVs. We are specifically looking for a low-dimensional representation of the plate and treat a sample of the plate parameters αXμ,αXσ,αAμ,αAσ,αYμ,αYσ,NE\ _Xμ, _Xσ, _Aμ, _Aσ, _Yμ, _Yσ,N_E\ as given. The relevant parts of the SCM, reproduced here for the reader’s convenience, are defined as Yi=a+bXi+NEAi+NYi Y_i=a+bX_i+N_EA_i+N_Y_i Ai=dXi+NAi A_i=dX_i+N_A_i (7) Xi=NXi X_i=N_X_i ∀i∈[1,…,n] ∀ i∈[1,...,n] where n is the plate size, a, b, and d are constants and NXi∼(αXμ,αXσ2) N_X_i ( _Xμ, _Xσ^2) NAi∼(αAμ,αAσ2) N_A_i ( _Aμ, _Aσ^2) (8) NYi∼(αYμ,αYσ2). N_Y_i ( _Yμ, _Yσ^2). We are modeling YiY_i without intercept as Yi≈ϕXi Y_i≈φ X_i (9) and looking for the ordinary least-squares estimate of ϕφ, that is minϕ(∑i(Yi−ϕXi)2). _φ ( _i(Y_i-φ X_i)^2 ). (10) The least-squares estimate for this case has a well-known closed-form solution given by ϕ=∑iXiYi∑iXi2.φ= _iX_iY_i _iX_i^2. (11) Our goal is to express this equation in terms of RVs that summarize the sums thus removing the need to sample the full plate n times. The denominator of this equation can be expressed as ∑iXi2=∑iNXi2 _iX_i^2= _iN_X_i^2 (12) ⇔ ∑iXi2=∑iαXμ2+2αXμαXσϵXi+αXσ2ϵXi2 _iX_i^2= _i _Xμ^2+2 _Xμ _Xσ _X_i+ _Xσ^2 _X_i^2 (13) where ϵXi∼(0,1). _X_i (0,1). (14) The denominator of (11) rewritten in (13) consists of three parts: S1=∑iαXμ2 S_1= _i _Xμ^2 (15) S2=∑i2αXμαXσϵXi S_2= _i2 _Xμ _Xσ _X_i (16) S3=∑iαXσ2ϵXi2 S_3= _i _Xσ^2 _X_i^2 (17) where S1=nαXμ2 S_1=n _Xμ^2 (18) S2=2αXμαXσ∑iϵXi S_2=2 _Xμ _Xσ _i _X_i (19) S3=αXσ2∑iϵXi2. S_3= _Xσ^2 _i _X_i^2. (20) Given one set of parameters for the equations in (F), we see that S1S_1 is a constant, S2=2αXμαXσSXS_2=2 _Xμ _XσS_X where SX∼(0,n)S_X (0,n), and S3∼αXσ2ZS3S_3 _Xσ^2Z_S_3 where ZS3∼χ2(n)Z_S_3 χ^2(n). Here S2S_2 is the first low-dimensional auxiliary variable we need. Note that S3S_3 is dependent on S2S_2 and this has to be dealt with separately (see section F.1). Next we decompose the numerator of equation (11) in a similar way. First we replace the RVs by the definitions from (F) ∑iXiYi=∑i[aNXi+bNXi2+dNENXi2+NENAiNXi+NYiNXi]. _iX_iY_i= _i [aN_X_i+bN_X_i^2+dN_EN_X_i^2+N_EN_A_iN_X_i+N_Y_iN_X_i ]. (21) As we are actually interested in equation (11), we can divide this expression by ∑iNXi2 _iN_X_i^2 (equation (12)) to cancel out some factors and get ϕ=b+dNE+a∑iNXi+NE∑iNXiNAi+∑iNXiNYi∑iXi2φ=b+dN_E+ a _iN_X_i+N_E _iN_X_iN_A_i+ _iN_X_iN_Y_i _iX_i^2 (22) Remember that a, b, and d are constants. The denominator of the last term is equivalent to equation (13). We currently lack suitable expressions only for the numerator of the last term. The numerator consists of the three parts S4=a∑iNXi S_4=a _iN_X_i (23) S5=NE∑iNXiNAi S_5=N_E _iN_X_iN_A_i (24) S6=∑iNXiNYi. S_6= _iN_X_iN_Y_i. (25) S4S_4 can be expressed similarly to S2S_2 using SXS_X, i.e. S4=anαXμ+aαXσSXS_4=an _Xμ+a _XσS_X. Both S5S_5 and S6S_6 are RVs following normal product distributions. We decompose S6S_6 as follows: S6=∑i[(αXμ+αXσϵXi)(αYμ+αYσϵYi)] S_6= _i [( _Xμ+ _Xσ _X_i)( _Yμ+ _Yσ _Y_i) ] (26) ⇔ S6=∑i[αXμαYμ+αXμαYσϵYi+αYμαXσϵXi+αXσαYσϵXiϵYi] S_6= _i [ _Xμ _Yμ+ _Xμ _Yσ _Y_i+ _Yμ _Xσ _X_i+ _Xσ _Yσ _X_i _Y_i ] (27) ⇔ S6=nαXμαYμ+αXμαYσSY+αYμαXσSX+αXσαYσ∑iϵXiϵYi S_6=n _Xμ _Yμ+ _Xμ _YσS_Y+ _Yμ _XσS_X+ _Xσ _Yσ _i _X_i _Y_i (28) where ϵYi∼(0,1) _Y_i (0,1) and SY∼(0,n)S_Y (0,n). Note that SXS_X and SYS_Y are independent. We know that ∑iϵXiϵYi _i _X_i _Y_i follows a normal product distribution that is dependent on both SXS_X and SYS_Y and deal with this dependence in section F.2 below. Following an almost identical derivation, we express S5=NE[nαXμαAμ+αXμαAσSA+αAμαXσSX+αXσαAσ∑iϵXiϵAi]S_5=N_E [n _Xμ _Aμ+ _Xμ _AσS_A+ _Aμ _XσS_X+ _Xσ _Aσ _i _X_i _A_i ] (29) where ϵAi∼(0,1) _A_i (0,1) (30) SA∼(0,n). S_A (0,n). (31) F.1 Dependence of sum of squares and (square of) sum Cochran’s theorem Cochran [1934] states that the inner product U→W→ U T W of two vectors U→∼N(0→,I) U N( 0,I) and W→∼N(0→,I) W N( 0,I) can be separated into independent parts if there exists two n×n× n matrices B1B_1 and B2B_2 with eigenvalues taking only values 0 and 11 so that rank(B1)+rank(B2)=nrank(B_1)+rank(B_2)=n. From the perspective of an eigenvalue decomposition, Cochran’s theorem shows that the inner product can be simultaneously diagonalized, i.e. U→W→ U T W =U→B1W→+U→B2W→ = U TB_1 W+ U TB_2 W (32) =U→V1Λ1V1−1W→+U→V2Λ2V2−1W→ = U TV_1 _1V_1^-1 W+ U TV_2 _2V_2^-1 W (33) =U→(V1+V2)(Λ1+Λ2)(V1+V2)−1W→ = U T(V_1+V_2)( _1+ _2)(V_1+V_2)^-1 W (34) where V1+V2V_1+V_2 forms an orthonormal basis. Intuitively this means that there exists an orthonormal basis V that can be used to rotate U→ U and W→ W so that U→B1W→ U TB_1 W and U→B2W→ U TB_2 W are fully captured in mutually exclusive dimensions, and hence orthogonal. In practice it allows us to separate sums of squares into components that can be sampled separately to simplify our plate. Next we show that the sum of squares can be split into two independent parts. Through algebraic manipulation the sum of squares (S7S_7) can be rewritten as S7=nϵX¯2+∑i(ϵXi−ϵX¯)2.S_7=n _X^2+ _i( _X_i- _X)^2. (35) In this case the vectors U→ U and W→ W are both equivalent to the vector ϵX→ _X where the element i takes the value ϵXi _X_i, and bar denotes the sample average, i.e. ϵX¯=∑iϵXin _X= _i _X_in. We are looking for a matrix B1B_1 so that nϵX¯2=ϵX→B1ϵX→.n _X^2= _X TB_1 _X. (36) The matrix B1=1nJB_1= 1nJ (37) satisfies Equation (36), where J is a matrix with dimensionality n×n× n with every element set to 11. Because every row in B1B_1 is identical, rank(B1)=1rank(B_1)=1 and hence there is one non-zero eigenvalue. Due to B1B_1 being idempotent, i.e. B12=B1B_1^2=B_1, it follows that B1U=B12UB_1U=B_1^2U and λ1U=λ12U _1U= _1^2U. The only values for λ1 _1 that satisfies this criterion are 0 and 11, and hence the non-zero eigenvalue must take value 11. As corresponding eigenvector, we get v1→=[1n,1n,…,1n] v_1=[ 1 n, 1 n,..., 1 n]. Through the properties of orthonormal projection, we get ϵX→v1→∼(0,1) _X T v_1 (0,1), and hence ϵX→v1→v1→ϵX→∼χ12 _X T v_1 v_1 T _X χ^2_1 (38) that is the square of sums follows a χ2χ^2-distribution with ν=1ν=1 degrees of freedom. Note, though that we will not be sampling this from a χ2χ^2-distribution as we are already sampling SXS_X, i.e. nϵX¯2=SX2n.n _X^2= S_X^2n. (39) Next, we set B2=I−B1B_2=I-B_1, i.e. B2=[1−1n−1n…−1n−1n1−1n…−1n…−1n−1n…1−1n].B_2= bmatrix1- 1n&- 1n&...&- 1n\\ - 1n&1- 1n&...&- 1n\\ ...&...&...&...\\ - 1n&- 1n&...&1- 1n bmatrix. (40) Through algebraic manipulation, we can express the second term of the right hand side of Equation (35) as ∑i(ϵXi−ϵX¯)2=ϵX→B2ϵX→. _i( _X_i- _X)^2= _X TB_2 _X. (41) Every row in B2B_2 is now unique and only linearly dependent on all other rows because ∑iB2(i,:)=0¯ _iB_2(i,:)= 0. From this follows that rank(B2)=n−1rank(B_2)=n-1 and that there exists an eigenvalue decomposition of B2B_2 with n−1n-1 eigenvalues. It can be shown that B2B_2 is idempotent, and hence all non-zero eigenvalues must take value 11. Given that B2B_2 has n−1n-1 eigenvalues, there exists n−1n-1 corresponding orthonormal eigenvectors vj→ v_j and due to properties of orthonormal projections, ϵX→vj→∼(0,1) _X T v_j (0,1). As a consequence ∑i(ϵXi−ϵX¯)2=∑j=2n(vj→ϵX→)2 _i( _X_i- _X)^2= _j=2^n( v_j T _X)^2 (note indices of sum!) and we can directly see that ∑i(ϵXi−ϵX¯)2∼χn−12. _i( _X_i- _X)^2 χ^2_n-1. (42) We have now shown that the matrices B1B_1 and B2B_2 with the properties required by Cochran’s theorem exist, and that the sum of squares can be sampled independently to generate one observation of S7S_7. F.2 Dependence between sum of normal product and sum of normals For the plate reduction of S8S_8, we follow a similar path based on Cochran’s theorem Cochran [1934]. Through algebraic manipulation it can be shown that S8=∑iϵXiϵYi=nϵX¯ϵY¯+∑i(ϵXi−ϵX¯)(ϵYi−ϵY¯) S_8= _i _X_i _Y_i=n _X _Y+ _i( _X_i- _X)( _Y_i- _Y) (43) where ϵY¯=∑iϵYin _Y= _i _Y_in. We set B3=1nJ(n)B_3= 1nJ_(n), i.e. B3B_3 is a n×n× n matrix with every element set to 1/n1/n. Using B3B_3 we can write the first term in Equation (43) as nϵX¯ϵY¯=ϵX→B3ϵY→.n _X _Y= _X TB_3 _Y. (44) Now rank(B3)=1rank(B_3)=1 as every row is identical and consequently there exists an eigenvalue decomposition of B3B_3 with exactly one non-zero eigenvalue and corresponding eigenvector. The eigenvector for B3B_3 is identical to the one for B1B_1, i.e. v1→=[1n1n…1n] v_1= bmatrix 1 n& 1 n&...& 1 n bmatrix T (45) Due to B3B_3 being idempotent, its only non-zero eigenvalue has to be 11. Hence we can write nϵX¯ϵY¯=ϵX→T[v1→0→…0→][10…000…0…00…0][v1→0→…0→]ϵY→n _X _Y= _X^T bmatrix v_1& 0&... 0 bmatrix bmatrix1&0&...&0\\ 0&0&...&0\\ ...&...&...&...\\ 0&0&...&0 bmatrix bmatrix v_1 T\\ 0 T\\ ...\\ 0 T bmatrix _Y (46) Note that the product above is the inner product of the projections of ϵX→ _X and ϵY→ _Y onto v1→ v_1, and due to the normality of the projection, ϵX→v1→∼(0,1) _X T v_1 (0,1) and ϵY→v1→∼(0,1) _Y T v_1 (0,1). The product of these two follows a normal product distribution. We will not, however, sample a normal product distribution but instead use 1nSXSY 1nS_XS_Y as these quantities are already sampled. We next split the product ϵX→ϵY→ _X T _Y into components parallel and orthogonal to v1→ v_1. ϵX→ _X =ϵX∥→+ϵX⟂→ = _X_ + _X_ (47) ϵY→ _Y =ϵY∥→+ϵY⟂→ = _Y_ + _Y_ (48) and ϵX∥→ _X_ =v1→ϵX→v1→ = v_1 T _X v_1 (49) ϵY∥→ _Y_ =v1→ϵY→v1→. = v_1 T _Y v_1. (50) Based on this ϵX→ϵY→=ϵX∥→ϵY→+ϵX⟂→ϵY→. _X T _Y= _X_ T _Y+ _X_ _Y. (51) We already calculated the parallel component, i.e. ϵX∥→ϵY→=nϵX¯ϵY¯ _X_ T _Y=n _X _Y. As orthogonal components in inner products cancel out, we are left with ϵX⟂→ϵY→=ϵX⟂→ϵY⟂→. _X_ T _Y= _X_ T _Y_ . (52) Next, set αk=vk→ϵX→ _k= v_k T _X and βk=vk→ϵY→ _k= v_k T _Y for k∈[2,3,…n]k∈[2,3,...n]. Select all vk→ v_k so that they form an orthonormal basis together with v1→ v_1. We get ϵX⟂→ϵY⟂→=∑k=2nαkβk. _X_ _Y_ = _k=2^n _k _k. (53) Due to vk→ v_k forming an orthonormal basis, αk∼(0,1) _k (0,1) and βk∼(0,1) _k (0,1). We could settle for this and sample from a normal product distribution, but we use one last trick to rewrite this as follows: ϵX⟂→ϵY⟂→=14∑k=2n(αk+βk)2−14∑k=2n(αk−βk)2. _X_ _Y_ = 14 _k=2^n( _k+ _k)^2- 14 _k=2^n( _k- _k)^2. (54) Due to linearity of expectation, (αk+βk)∼(0,2)( _k+ _k) (0,2) and (αk−βk)∼(0,2)( _k- _k) (0,2). We simplify to standard normals by dividing by 2 2, and rewrite this as ϵX⟂→ϵY⟂→=12(γXYa−γXYb) _X_ _Y_ = 12( _XY_a- _XY_b) (55) where γXYa∼χ2 _XY_a χ^2 and γXYb∼χ2 _XY_b χ^2, both with n−1n-1 degrees of freedom. We have now shown that an orthonormal projection exists that allows for decomposition of Equation (43). We note that the decomposition of sum of squares (Section F.1) is a special case of this, although we needed a slightly different path as the second term in Equation (43) is a sum of products rather than a sum or squares. The whole expression is S8=SXSYn+12(γXYa−γXYb).S_8= S_XS_Yn+ 12( _XY_a- _XY_b). (56) Following the same pattern, it can be shown that S9=∑iϵXiϵAi=SXSAn+12(γXAa−γXAb)S_9= _i _X_i _A_i= S_XS_An+ 12( _XA_a- _XA_b) (57) where γXAa∼χ2(n−1) _XA_a χ^2(n-1) and γXAb∼χ2(n−1) _XA_b χ^2(n-1). F.3 Putting it all together To generate one observation of ϕφ from the agent’s internal model, the code samples αXμ _Xμ, αXσ _Xσ, αYμ _Yμ, αYσ _Yσ, αAμ _Aμ, αAσ _Aσ, and NEN_E. Then one observation is sampled for SX∼(0,n) S_X (0,n) (58) SY∼(0,n) S_Y (0,n) (59) SA∼(0,n) S_A (0,n) (60) γXX∼χ2(n−1) _X χ^2(n-1) (61) γXYa∼χ2(n−1) _XY_a χ^2(n-1) (62) γXYb∼χ2(n−1) _XY_b χ^2(n-1) (63) γXAa∼χ2(n−1) _XA_a χ^2(n-1) (64) γXAb∼χ2(n−1). _XA_b χ^2(n-1). (65) The sampled values are used to calculate S9=SXSAn+12(γXAa−γXAb) S_9= S_XS_An+ 12( _XA_a- _XA_b) (66) S8=SXSYn+12(γXYa−γXYb) S_8= S_XS_Yn+ 12( _XY_a- _XY_b) (67) S7=γXX+SX2n S_7= _X+ S_X^2n (68) S6=nαXμαYμ+αXμαYσSY+αYμαXσSX+αXσαYσS8 S_6=n _Xμ _Yμ+ _Xμ _YσS_Y+ _Yμ _XσS_X+ _Xσ _YσS_8 (69) S5=NE(nαXμαAμ+αXμαAσSA+αAμαXσSX+αXσαAσS9) S_5=N_E (n _Xμ _Aμ+ _Xμ _AσS_A+ _Aμ _XσS_X+ _Xσ _AσS_9 ) (70) S4=anαXμ+aαXσSX S_4=an _Xμ+a _XσS_X (71) S3=αXσ2S7 S_3= _Xσ^2S_7 (72) S2=2αXμαXσSX S_2=2 _Xμ _XσS_X (73) S1=nαXμ2. S_1=n _Xμ^2. (74) With these, the code can finally generate one observation from the distribution of ϕφ: ϕ=b+dNE+S4+S5+S6S1+S2+S3.φ=b+dN_E+ S_4+S_5+S_6S_1+S_2+S_3. (75)