liveBook · Manning

Causal structure

As explained in Causal AI

A causal structure is the organization of variables and directed causal relationships represented by a causal model.

When a model predicts purchases from ad features, it may fit correlations without explaining what drives the outcome. A causal structure organizes variables and directed relationships so the model follows a domain process: ad impressions drive engagement, which drives purchases. section 1.3.3

Representing the structure explicitly supports practical modeling decisions:

  • Decompose a model into domain-aligned components, such as {ad impression, engagement} and {engagement, purchase}. section 1.3.3
  • Test, validate, execute, retrain, and reuse components independently. section 1.3.3
  • Encode causal relationships in a directed acyclic graph or causal generative model rather than relying only on a predictive feature network. section 13.3.1 section 1.3.3

Three-act narrative generation

A narrative structure can specify that act 1 causes act 2, and acts 1 and 2 cause act 3. A King–Prince–Kingdom archetype enumerates possible actions and outcomes, yielding 3 × 3 × 3 = 27 archetypes. Causal Markov kernels in pgmpy or Pyro can represent the archetypes before generating scripts from the causal model. section 13.3.1

Figure 1.2 A model that captures how ad impressions drive engagement, which in turn drives purchases. This model decomposes into {ad impression, engagement} and {engagement, purchase}.
figure

Use the causal funnel diagram to inspect how the model decomposes into linked, interpretable components. section 1.3.3

How Causal AI covers it

How deep it goes
Explains directed relationships, decomposition, DAGs, and generative models, but defers statistical estimator details.
Examples
Uses an advertising funnel and three-act King–Prince–Kingdom narrative archetypes.
What you can do after
Apply via pgmpy or Pyro to encode causal generative models and separate domain-aligned components.
How it connects
Connects causal models with neural networks, DAGs, causal generative models, engagement, and purchase outcomes.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal AI. The section links point to the parts of the book it draws on.