A hidden common cause can make an ordinary comparison misleading without making every causal question impossible. The front-door criterion is a particular graphical condition under which a total causal effect can be identified through a measured intermediate variable, despite unmeasured confounding of the original exposure and outcome. The method does not remove confounding by naming a mediator. It works only when the relevant paths and the support of the observed data meet specific requirements.
Vocabulary Coding and Engineering needs a language that preserves why an apparently inaccessible causal effect can sometimes be recovered. We construct a fictional archive in which an AI review aid is preferentially assigned to experienced teams, calculate a front-door adjustment, and then remove the assumptions one at a time. The proposed eduKate Z-layer records the causal graph, measurement identities, formula, conditions and remaining uncertainty. The goal is to make research transferable across the Second Intelligence Pool without confusing a formal identification argument with a verified real-world mechanism.
- An unmeasured common cause can bias the observed exposure–outcome comparison.
- A suitable mediator can identify the total effect under the front-door conditions.
- All directed exposure-to-outcome paths must pass through the mediator set.
- The exposure-to-mediator relation must have no unblocked back-door path; exposure must block back-door paths from mediator to outcome.
- The front-door formula uses two linked adjustments and adequate support.
- A numerical result cannot establish that the required causal graph is correct.
- Preserve the graph, observations, formula and unsupported alternatives together.
Choose your reading route
The worked model · The identification boundary · Engineering and research
Contents
Sections 1–4
Sections 5–8
Sections 9–12
1. A hidden cause need not end every investigation
Imagine an archive introducing a review aid. Teams with more experience are more likely to use it, and more experienced teams also have better quality outcomes. The records do not contain a reliable measure of experience. If an AI compares users and nonusers, it may mistake pre-existing differences for an effect of the aid.
Suppose the aid affects quality only by changing whether a structured check is completed. If the measured check meets a special causal condition, the effect of the aid can be recovered indirectly through it. That is the front-door idea. It does not say that every intermediate variable can perform this role. The prior article on causal mediation addresses decomposition of effects; here the goal is identifying the total effect despite a hidden common cause.
The appropriate question is not whether a plausible story can be narrated around the check. It is whether the structure of the relevant causes warrants the specific identification formula. An agent should be able to identify both the useful route and the conditions that would break it.
2. Specify the graph before the calculation
Let X indicate use of the review aid, M indicate completion of a structured check, Y indicate passing an independent quality test, and U be unmeasured experience. In our constructed graph, U causes X and Y, X causes M, and M causes Y. There is no direct X-to-Y arrow, no unblocked back-door path from X to M, and conditioning on X blocks all back-door paths from M to Y.
Pearl’s introduction to causal inference provides the structural framework that separates interventions from ordinary observations. His 2009 overview discusses the role of explicit causal assumptions in identification.
In this graph, measuring U is not necessary for the specific front-door argument. That does not make U irrelevant. It remains a cause of both X and Y, explaining why the original exposure comparison is misleading. The graph is a stipulated teaching model, not an empirical discovery about actual review aids.
Contents · Previous section · Next section
3. A complete fictional observational distribution
Set P(X=1)=0.5. The structured check is completed with probability 0.20 among nonusers and 0.80 among users. The observed quality outcomes conditional on X and M are as follows. Assume every exposure–mediator combination occurs with positive probability.
| Observed X | Check M | P(Y=1 given X,M) |
|---|---|---|
| 0 | 0 | 0.20 |
| 0 | 1 | 0.50 |
| 1 | 0 | 0.50 |
| 1 | 1 | 0.80 |
These values can be generated coherently by taking P(U=1 given X=0)=0.2 and P(U=1 given X=1)=0.8, making M depend only on X through independent noise, and stipulating a passing probability of 0.10 + 0.50U + 0.30M. The observed table therefore matches the graph. It is not necessary to observe U to apply the front-door formula when the graph is justified.
Contents · Previous section · Next section
4. The ordinary association overstates the effect
For nonusers, the observed passing probability is 0.8 × 0.20 + 0.2 × 0.50 = 0.26. For users, it is 0.2 × 0.50 + 0.8 × 0.80 = 0.74. The observed risk difference is 48 percentage points.
That large association includes differences in experience. Users and nonusers have different distributions of U. It is not the outcome contrast under interventions that change X while preserving the original population distribution of U.
| Quantity | Result |
|---|---|
| Observed rate for X=0 | 26% |
| Observed rate for X=1 | 74% |
| Observed difference | 48 percentage points |
An AI summarising the table as the aid improved outcomes by 48 points would lose the distinction between selection and intervention. This is precisely why vocabulary engineering must distinguish observed, adjusted, identified and caused.
Contents · Previous section · Next section
5. Calculate the first part of the front-door adjustment
Because the stipulated graph has no unblocked back-door path from X to M, the observed conditional distribution P(M given X) identifies the effect of setting X on M. Under setting X to zero, the completion probability is 0.20; under setting X to one, it is 0.80.
For the second part, the effect of setting M on Y can be identified by adjusting for X, since X blocks the back-door paths from M to Y. Average the observed conditional passing probabilities over the marginal distribution of X, not the distribution of X among those with a particular M.
For M=0, the calculation is 0.5 × 0.20 + 0.5 × 0.50 = 0.35. For M=1, it is 0.5 × 0.50 + 0.5 × 0.80 = 0.65. These quantities are intervention means under the stipulated graph. An ordinary comparison of people with and without the check would use different group compositions.
Contents · Previous section · Next section
6. Complete the front-door calculation
For discrete variables, the usual front-door formula averages the mediator’s adjusted outcome mean using the distribution of the mediator under the selected exposure. Written in words: for each mediator value, multiply its probability under the specified X by the outcome mean at that mediator value standardised over the marginal X distribution; then sum.
| Intervention | Calculation | Passing probability |
|---|---|---|
| Set X=0 | 0.80 × 0.35 + 0.20 × 0.65 | 0.41 |
| Set X=1 | 0.20 × 0.35 + 0.80 × 0.65 | 0.59 |
| Difference | 0.59 − 0.41 | 0.18 |
The result is 18 percentage points, not the observed 48. In the underlying invented model, setting X does not change the original distribution of U, which has probability 0.5 of being one. The passing probability under each intervention is therefore 0.10 + 0.50 × 0.50 + 0.30 × P(M=1 under X), confirming the two adjusted values independently.
This exact population calculation assumes the graph and probabilities are known. Actual research would need estimation and uncertainty analysis. The proof does not make the assumptions true merely by producing the right arithmetic.
Contents · Previous section · Next section
7. Three conditions that can fail independently
First, suppose the aid also improves quality through faster access to reference material, without changing the structured check. The measured M no longer intercepts every directed path from X to Y. Second, suppose experienced teams are independently more likely to complete the check. Then U can create an unblocked back-door path from X to M. Third, suppose an unrecorded resource constraint affects M and Y independently of X. The adjustment for X no longer blocks every back-door path from M to Y.
Each failure challenges a different step of the proof. An AI should not simply add a new variable to a dashboard and assert that it repaired the design. It must examine the proposed graphical relationship and whether the available observations support the necessary contrasts.
The previous article on hidden-cause sensitivity analysis illustrates why assumptions need to be exposed to challenge. A front-door result is conditional on a particular causal structure, not proof that all unmeasured variables have become harmless.
Contents · Previous section · Next section
8. Support and measurement can defeat the formula
Suppose every user completes the structured check and no nonuser does. There would be no observations of M=0 among users or M=1 among nonusers. The outcome means required for the standardisation could not be estimated directly from those missing combinations. This is a support problem, even if the graph looks appropriate.
The check must also be measured consistently. A box marked completed is not necessarily evidence that the same substantive review took place. If use of the aid changes how completion is recorded rather than what people do, the model may refer to a different mediator than intended. The earlier article on construct validity explains why a correct field name does not establish the measured concept.
Statistical precision, support and validity of the mediator’s definition should be documented separately. A very large dataset cannot recover a combination that its generating process never produces without additional modelling assumptions.
Contents · Previous section · Next section
9. A proposed Z-layer front-door record
| Field | Required meaning |
|---|---|
| Variables | Exposure, mediator, outcome and their operational definitions |
| Graph | Observed and hidden causes, proposed arrows and missing paths |
| Target | Total causal effect, population and outcome scale |
| Conditions | Justification for all three front-door conditions |
| Support | Availability of required exposure–mediator cells |
| Formula | Exact adjustment and weighting distribution |
| Uncertainty | Estimation error and disputed graphical assumptions |
| Alternatives | Other graphs and discriminating evidence |
| Authority | Policy choice, consent and permitted action |
The W3C PROV overview provides concepts for documenting sources and transformations. It does not establish the causal graph. A separate argument must connect the observations to the desired intervention contrast. Preserve that argument so a second agent can verify or challenge it.
The goal is not to compress a complete scientific study into a green flag named causal. Each component of the result has a distinct meaning, and the evidence supporting each component may have a different strength.
Contents · Previous section · Next section
10. Zoom levels: what through actually means
At word scale, through can indicate sequence, mechanism or a causal path. At observation scale, it refers to a measured intermediate event. At graphical scale, it describes which directed and back-door paths exist. At institutional scale, the result may inform an intervention but does not establish that mandating the mediator itself is appropriate.
The Second Intelligence Pool could use many such structured models to ask where research is blocked and where a justified alternative route exists. That is different from assuming more intelligence can replace a missing identifying premise. The model must be explicit enough for other researchers to challenge.
ZTime records the versions of the aid, the check, the measurement criteria and the evidence available at the time. A later tool update that introduces a direct mechanism may invalidate the original front-door argument for the new version even while the historical result remains meaningful.
Contents · Previous section · Next section
11. A four-week front-door reasoning trial
Week one: reproduce the observational distribution and calculate both the naive association and the front-door contrast. Have an independent reviewer check the 48-point and 18-point calculations. Week two: generate simulated samples from the stated graph and compare estimates against the known population values while preserving sampling uncertainty.
Week three: introduce a direct X-to-Y path, mediator confounding and a support failure separately. Ask agents to identify the precise condition lost. Require them to explain which terms become unsupported rather than merely report a reduced confidence score.
Week four: transfer the graph-evidence record to a second agent that has not seen the original explanation. Test whether it reproduces the adjustment and avoids interpreting a violated model as valid. This is a proposed bounded experiment, not a report of measured AI performance.
Contents · Previous section · Next section
12. The frontier: identify the route, not just the destination
Can a hidden cause sometimes be bypassed in causal identification? Yes, under a justified front-door structure. Does measuring a mediator automatically make the adjustment valid? No. The directed-path and confounding conditions matter. Does an identified effect authorise deployment? No. Costs, feasibility, consequences and legitimate authority remain separate.
A portable intelligence system should distinguish the evidence it possesses from the argument that lets it answer a causal question. It should be able to preserve an indirect route to identification and also explain when that route has become unavailable.
That is an important part of the Z-layer research ambition: preserve the mathematical conditions under which a claim travels from a dataset to an intervention. If those conditions change, the system should reconsider the claim rather than protect the original headline.
Contents · Previous section · Sources
Primary sources and further reading
- Pearl (2010), An Introduction to Causal Inference
- Pearl (2009), Causal inference in statistics: An overview
- Stanford Encyclopedia of Philosophy — Causal Models
- W3C PROV Overview
The examples and proposed Z-layer trials are original educational models, not empirical findings or established universal standards. The causal conclusions depend on the stated assumptions.
Editorial review: 1 December 2026.
