Endogenous variable
An endogenous variable is a variable in a structural causal model whose value is determined by the model’s relationships and exogenous inputs.
Causal AI
An endogenous variable is a variable in a structural causal model whose value is determined by an assignment function from its causes and exogenous inputs.
- How it is used
- Identifies the explicitly modeled variables whose values an SCM computes and whose hypothetical outcomes counterfactual inference predicts.
- How deep it goes
- Defines deterministic assignments, contrasts their randomness with conditional sampling, and notes that data alone cannot identify the ground-truth SCM.
- Examples
- Uses a Python rock-throwing process and an additive enzyme-to-protein assignment to make computed values concrete.
- What you can do after
- Build it from scratch by specifying a causal DAG, exogenous inputs, and an assignment function for each endogenous variable.
Causal Inference for Data Science
A variable within a causal model whose value is determined by relationships represented in the model and by associated exogenous variables.
- How it is used
- Organizes variables inside a causal model so their dependencies and external influences can be represented separately.
- How deep it goes
- Defines endogenous variables through parents and structural functions, but stops short of specifying those functions exactly.
- Examples
- Uses a three-node graph with Z, X, and Y, plus unobserved factors UZ, UX, and UY.
- What you can do after
- Evaluate average treatment effects even when the exact causal functions governing endogenous variables remain unknown.
Read how Causal Inference for Data Science explains endogenous variable →
What to know first
- directed acyclic graphA directed acyclic graph is a graph whose edges have directions and contain no directed cycles.
- joint probability distributionA joint probability distribution assigns probabilities or probability densities to combinations of values of two or more random variables.
Related concepts
- structural causal modelpart of · A structural causal model represents causal relationships among variables through equations that determine each variable from other variables and exogenous factors.
- assignment functionconfigured by · An assignment function is a deterministic rule in a structural causal model that determines an endogenous variable from its causal parents and exogenous inputs.
- exogenous variablecontrasts with · An exogenous variable is a causal input whose variation originates outside the endogenous system represented by a structural causal model.
Questions about endogenous variable
What is endogenous variable?
An endogenous variable is a variable in a structural causal model whose value is determined by the model’s relationships and exogenous inputs.
Which Manning books explain endogenous variable?
Causal AI and Causal Inference for Data Science.
What should I know before learning endogenous variable?
Manning books that teach endogenous variable usually introduce directed acyclic graph and joint probability distribution first.
What is the difference between endogenous variable and exogenous variable?
An endogenous variable is a variable in a structural causal model whose value is determined by the model’s relationships and exogenous inputs. An exogenous variable is a causal input whose variation originates outside the endogenous system represented by a structural causal model.
What kinds of endogenous variable are there?
Kinds of endogenous variable include endogenous cause.
What is endogenous variable part of?
Endogenous variable is part of structural causal model. A structural causal model represents causal relationships among variables through equations that determine each variable from other variables and exogenous factors.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

