Causal Probabilistic Models: Predicting Interventions

An AI system may predict that a server will fail when its cooling fan runs quickly. That association does not establish what would happen if you forced the fan to run quickly: temperature might cause both events. Causal Probabilistic Models describe how variables are generated, allowing you to ask how a probability changes when you alter a mechanism. You use them when prediction from existing observations is insufficient to answer a question about an action.

Represent mechanisms, not just associations

A causal probabilistic model combines assumptions about cause and effect with probability distributions for the mechanisms generating variables. In an acyclic structural model, each variable satisfies


Vi=fi(Pa⁡i,Ui).V_i=f_i(\operatorname{Pa}_i,U_i).


Here, Pa⁡i\operatorname{Pa}_i supplies the direct causes included in its mechanism, and UiU_i supplies remaining variation. A DAG records the parent relationships.


For this lesson, assume the disturbances are mutually independent and all common causes among displayed variables are represented. The observational distribution then factorizes as


P(v1,…,vn)=∏i=1nP(vi∣pa⁡i).P(v_1,\ldots,v_n)=\prod_{i=1}^{n}P(v_i\mid\operatorname{pa}_i).


The lowercase symbols denote particular values of the corresponding variables. A causal interpretation adds an essential assumption: each mechanism remains unchanged when another mechanism is replaced. A probability factorization alone does not establish that assumption or determine causal direction.

Replace a mechanism when you intervene

An intervention externally replaces a variable's generating mechanism. The notation do⁡(X=x)\operatorname{do}(X=x) means setting XX to xx, independently of its usual causes. Graphically, remove arrows entering XX and retain arrows leaving it.


Two causal graphs show a common cause Z and the removal of the arrow into X under intervention.


In the displayed model, observation follows


P(z,x,y)=P(z)P(x∣z)P(y∣x,z).P(z,x,y)=P(z)P(x\mid z)P(y\mid x,z).


After setting X=xX=x, its assignment factor disappears:


P(z,y∣do⁡(X=x))=P(z)P(y∣x,z).P(z,y\mid\operatorname{do}(X=x))=P(z)P(y\mid x,z).


This is truncated factorization. The intervention fixes XX; it does not select the cases whose usual mechanism happened to produce that value.


Operation

Meaning

Distribution of Z in this graph

Observe X = x

Select cases with that observed value

P(Z given X = x)

Force X = x

Replace the mechanism generating X

P(Z)



Calculate effects under stated assumptions

In the displayed graph, ZZ is a confounder: it influences both XX and YY. Summing the intervention distribution over ZZ gives


P(Y=y∣do⁡(X=x))=∑zP(Y=y∣X=x,Z=z)P(Z=z).P(Y=y\mid\operatorname{do}(X=x)) =\sum_z P(Y=y\mid X=x,Z=z)P(Z=z).


Ordinary conditioning instead weights those same outcome probabilities by P(Z=z∣X=x)P(Z=z\mid X=x). These weights can differ because the natural assignment of XX depends on ZZ.


This adjustment is justified by the stated causal graph, not by the mere availability of a variable. More generally, a suitable adjustment set must block noncausal paths entering XX without blocking the causal effect being requested. To estimate its conditional probabilities from observations, each required value of X must occur within every adjustment stratum with positive population probability.



Causal conclusions remain conditional on the model. Distinct causal graphs can generate the same observational distribution while predicting different intervention effects. Additional causal knowledge or experimental evidence may therefore be needed before a causal probability is determined.

What to remember

  • A causal model describes mechanisms as well as probabilities.
  • Setting XX removes its incoming arrows and preserves its outgoing arrows.
  • Use population weights for the displayed common-cause adjustment, rather than weights selected by observing XX.
  • Check causal assumptions and data support before interpreting a calculated probability as an intervention effect.

Example: Choosing a Scheduler for All Batches

A computing service processes batches of jobs. Let Z=1Z=1 indicate a complex batch, X=1X=1 indicate use of an optimized scheduler, and Y=1Y=1 indicate a missed deadline. Assume the graph below is complete, disturbances are independent, and the probabilities describe a stable population exactly. An ideal scheduler intervention changes scheduler assignment without changing the other mechanisms.


A causal graph shows batch complexity Z influencing scheduler assignment X and deadline failure Y, with an additional arrow from X to Y.


The population has P(Z=1)=0.40P(Z=1)=0.40 and P(Z=0)=0.60P(Z=0)=0.60. Its mechanisms are:


Batch type

P(X=1∣Z)P(X=1\mid Z)

P(Y=1∣X=0,Z)P(Y=1\mid X=0,Z)

P(Y=1∣X=1,Z)P(Y=1\mid X=1,Z)

Ordinary, Z=0Z=0

0.250.25

0.100.10

0.050.05

Complex, Z=1Z=1

0.750.75

0.500.50

0.300.30


Keep full precision during calculations and report probabilities to four decimal places.


a) Among batches observed to use the optimized scheduler, what is the probability of a missed deadline?


First find the probability that a batch uses the optimized scheduler. The complex-and-optimized joint probability is ________, and the ordinary-and-optimized joint probability is 0.60(0.25)=0.150.60(0.25)=0.15.


P(X=1)=P(X=1∣Z=0)P(Z=0)+P(X=1∣Z=1)P(Z=1)=(0.25)(0.60)+(0.75)(0.40)=0.15+0.30=0.45.\begin{aligned} P(X=1) &=P(X=1\mid Z=0)P(Z=0)+P(X=1\mid Z=1)P(Z=1)\\ &=(0.25)(0.60)+(0.75)(0.40)\\ &=0.15+0.30=0.45. \end{aligned}


The total probability of optimized assignment is ________. Bayes' rule then gives a complex-batch share of ________ among optimized batches:


P(Z=1∣X=1)=0.300.45=23,P(Z=0∣X=1)=13.P(Z=1\mid X=1)=\frac{0.30}{0.45}=\frac{2}{3},\qquad P(Z=0\mid X=1)=\frac{1}{3}.


Average the deadline probabilities using these selected-group weights:


P(Y=1∣X=1)=(0.05)(13)+(0.30)(23)=1360≈0.2167.\begin{aligned} P(Y=1\mid X=1) &=(0.05)\left(\frac{1}{3}\right)+(0.30)\left(\frac{2}{3}\right)\\ &=\frac{13}{60}\\ &\approx 0.2167. \end{aligned}


The observed optimized-scheduler group has a missed-deadline probability of 0.2167. Complex batches are overrepresented in that group because they are more likely to receive the optimized scheduler.


b) What would the missed-deadline probability be if every batch were assigned the optimized scheduler?


Forcing X=1X=1 removes the arrow Z→XZ\to X and replaces the scheduler-assignment mechanism. It preserves the deadline mechanism and the population distribution of batch complexity.


P(Y=1∣do⁡(X=1))=∑zP(Y=1∣X=1,Z=z)P(Z=z).P(Y=1\mid\operatorname{do}(X=1)) =\sum_z P(Y=1\mid X=1,Z=z)P(Z=z).


The ordinary-batch contribution is ________, and the complex-batch contribution is ________. Adding them gives


P(Y=1∣do⁡(X=1))=(0.05)(0.60)+(0.30)(0.40)=0.03+0.12=0.1500.\begin{aligned} P(Y=1\mid\operatorname{do}(X=1)) &=(0.05)(0.60)+(0.30)(0.40)\\ &=0.03+0.12\\ &=0.1500. \end{aligned}


Assigning the optimized scheduler to every batch gives a missed-deadline probability of 0.1500. This differs from the observational answer because the intervention population contains a smaller share of complex batches than the observed optimized group.


c) Compare assigning every batch the optimized scheduler with assigning every batch the original scheduler. Report the probability difference and interpret it in percentage points.


The causal risk difference is the outcome probability under one imposed assignment minus that under the comparison assignment. First calculate the comparison probability using the same population weights:


P(Y=1∣do⁡(X=0))=(0.10)(0.60)+(0.50)(0.40)=0.06+0.20=0.26.\begin{aligned} P(Y=1\mid\operatorname{do}(X=0)) &=(0.10)(0.60)+(0.50)(0.40)\\ &=0.06+0.20\\ &=0.26. \end{aligned}


The original-scheduler intervention has missed-deadline probability ________. Subtract this from the optimized-scheduler intervention probability:


Δ=P(Y=1∣do⁡(X=1))−P(Y=1∣do⁡(X=0))=0.1500−0.2600=−0.1100.\begin{aligned} \Delta &=P(Y=1\mid\operatorname{do}(X=1)) -P(Y=1\mid\operatorname{do}(X=0))\\ &=0.1500-0.2600\\ &=-0.1100. \end{aligned}


Multiplying the probability difference by 100100 converts it to percentage points. The causal risk difference is −0.1100, meaning that universal optimized scheduling reduces the missed-deadline probability by 11 percentage points under the assumed model. This compares two interventions on the same population, rather than two naturally selected scheduler groups.

A server model contains load SS, fan setting AA, and failure indicator FF, with the causal arrows shown. An ideal controller forces A=1A=1 while leaving the other mechanisms unchanged. Which graph modification represents this intervention?


A causal graph has arrows from server load S to fan setting A and failure F, and from A to F.


Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Causal probabilistic models use a small vocabulary to describe graph structure and interventions. Match each term to the description of the role it plays in a causal model.

Match each term
A.

The post-intervention joint distribution written as the product of every conditional table except the one for the forced variable

B.

A variable with two arrowheads pointing into it on a path; conditioning on it can make its causes dependent

C.

A rule giving a variable as a function of its direct causes and an independent noise term

D.

A variable on a directed path from treatment to outcome that carries part of the treatment's effect

E.

A route from treatment to outcome whose first edge points into the treatment

F.

An external action that sets a variable to a chosen value and cuts every arrow into it, leaving all other mechanisms unchanged

G.

A common cause of the treatment and the outcome that creates a non-causal association between them

Collider

Ideal intervention

Confounder

Truncated factorization

Structural equation

Backdoor path

Mediator

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A fleet model uses hardware age ZZ (00 for newer, 11 for older), patch status AA, and next-day failure YY. Assume the displayed causal graph is correct, disturbances are independent, and an ideal patch intervention leaves the other mechanisms unchanged. The table gives exact population probabilities, and both patch states occur in each age group.


A causal graph connects hardware age Z to patch assignment A and failure Y, with an additional arrow from A to Y.


Age group

Population probability

Failure probability when patched

Z=0Z=0

0.650.65

P(Y=1∣A=1,Z=0)=0.04P(Y=1\mid A=1,Z=0)=0.04

Z=1Z=1

0.350.35

P(Y=1∣A=1,Z=1)=0.20P(Y=1\mid A=1,Z=1)=0.20


What is P(Y=1∣do⁡(A=1))P(Y=1\mid\operatorname{do}(A=1))? Enter a unitless probability to three decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice