Causal Probabilistic Models
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
Here, Pai supplies the direct causes included in its mechanism, and Ui 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
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) means setting X to x, independently of its usual causes. Graphically, remove arrows entering X and retain arrows leaving it.
In the displayed model, observation follows
After setting X=x, its assignment factor disappears:
This is truncated factorization. The intervention fixes X; 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, Z is a confounder: it influences both X and Y. Summing the intervention distribution over Z gives
Ordinary conditioning instead weights those same outcome probabilities by P(Z=z∣X=x). These weights can differ because the natural assignment of X depends on Z.
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 X 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 X removes its incoming arrows and preserves its outgoing arrows.
- Use population weights for the displayed common-cause adjustment, rather than weights selected by observing X.
- 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=1 indicate a complex batch, X=1 indicate use of an optimized scheduler, and Y=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.
The population has P(Z=1)=0.40 and P(Z=0)=0.60. Its mechanisms are:
Batch type | P(X=1∣Z) | P(Y=1∣X=0,Z) | P(Y=1∣X=1,Z) |
|---|---|---|---|
Ordinary, Z=0 | 0.25 | 0.10 | 0.05 |
Complex, Z=1 | 0.75 | 0.50 | 0.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.15.
The total probability of optimized assignment is ________. Bayes' rule then gives a complex-batch share of ________ among optimized batches:
Average the deadline probabilities using these selected-group weights:
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=1 removes the arrow Z→X and replaces the scheduler-assignment mechanism. It preserves the deadline mechanism and the population distribution of batch complexity.
The ordinary-batch contribution is ________, and the complex-batch contribution is ________. Adding them gives
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:
The original-scheduler intervention has missed-deadline probability ________. Subtract this from the optimized-scheduler intervention probability:
Multiplying the probability difference by 100 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.
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.
The post-intervention joint distribution written as the product of every conditional table except the one for the forced variable
A variable with two arrowheads pointing into it on a path; conditioning on it can make its causes dependent
A rule giving a variable as a function of its direct causes and an independent noise term
A variable on a directed path from treatment to outcome that carries part of the treatment's effect
A route from treatment to outcome whose first edge points into the treatment
An external action that sets a variable to a chosen value and cuts every arrow into it, leaving all other mechanisms unchanged
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
A fleet model uses hardware age Z (0 for newer, 1 for older), patch status A, and next-day failure Y. 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.
Age group | Population probability | Failure probability when patched |
|---|---|---|
Z=0 | 0.65 | P(Y=1∣A=1,Z=0)=0.04 |
Z=1 | 0.35 | P(Y=1∣A=1,Z=1)=0.20 |
What is P(Y=1∣do(A=1))? Enter a unitless probability to three decimal places.