liveBook · Manning

Joint probability distribution

As explained in Causal AI

A full joint distribution is the joint probability distribution over both observed and latent variables in a model.

When analyzing a causal question, start with the probability of every possible combination of variable outcomes. A joint probability distribution maps each combination of outcomes for variables such as X and Y to a probability value. It describes how variables occur together, but it is not yet a data-generating process (DGP): causal modeling requires an account of how those outcomes are produced. section 2.5 section 2.3.2

Observed data provide an empirical joint distribution rather than the actual distribution. For discrete variables, count every observed outcome combination and divide by the number of observations. A zero count means an outcome was unseen in the sample, not necessarily impossible. With continuous variables, histograms, density curves, or related summaries represent the same empirical distribution. section 2.3.2

Use the joint distribution to keep several modeling distinctions explicit:

  • Separate observational probabilities from causal mechanisms: the observational joint distribution describes what is seen, while the DGP describes how variables are generated. section 2.3.2
  • Include latent variables when they help specify the mechanism. Marginalizing the full joint distribution over latent variables recovers the observational joint distribution. section 2.3.2
  • Sample from a joint distribution to simulate complete combinations of variable values rather than sampling each variable in isolation. section 2.2.2

Rock throws and a broken window

Represent Jenny's throw, Brian's throw, and whether the window breaks as three binary variables. Five observations produce empirical proportions for all eight combinations, including several zero-proportion combinations. A fuller model can add latent impact strength; summing over that unobserved variable yields the observational joint distribution. A DGP can then generate the throw and window outcomes from underlying inclinations and window strength. section 2.3.2

Table 2.1 A simple data set with five examples
jenny_throws_rock
brian_throws_rock
window_breaks
1
False
True
False
2
True
False
True
3
False
False
False
4
False
False
False
5
True
True
True

Inspect the five-row dataset before comparing outcome counts, empirical proportions, and a hypothesized true observational distribution. section 2.3.2

How Causal AI covers it

How deep it goes
Explains outcome mapping, empirical estimation, latent-variable marginalization, and sampling, but stops short of a complete causal identification procedure.
Examples
Uses a five-observation rock-throw dataset, eight binary outcome combinations, latent impact strength, and pgmpy sampling code.
What it assumes
Assumes random variables and probability distributions while developing probability rules, independence, and modeling distinctions.
What you can do after
Evaluate/understand the gap between empirical observations, joint distributions, latent-variable models, and generative sampling.
How it connects
Connects joint probability to empirical distribution, data-generating process, latent variables, marginalization, conditional independence, and causal modeling.

Also explained in

Compare how 5 books explain joint probability distribution →

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.