Why Factor the Longitudinal Distribution?
A longitudinal record contains variables that occur in a particular order: baseline covariates, treatment decisions, later covariates, subsequent treatment decisions, and eventually an outcome. A factorization writes the joint distribution of that entire record as a sequence of conditional distributions that respect this order. It makes clear which part of the observed-data law describes each transition, without asserting that any one part has a causal interpretation by itself.
The factorization is useful because a complicated joint distribution can be represented through conditional distributions of familiar components. It also gives a precise accounting of what has to be described when specifying a statistical model for the observed data. The factorization itself is a probability identity: it does not require sequential exchangeability, positivity for a causal contrast, or a parametric model.
Time Order and Notation
Suppose there are treatment times \(t=0,\ldots,K\). Let \(L_0\) be the baseline covariate vector, \(A_t\) the treatment at time \(t\), and \(L_{t+1}\) the covariate vector measured after \(A_t\) and before \(A_{t+1}\), for \(t=0,\ldots,K-1\). Let \(Y\) be the final outcome, measured after \(A_K\). Define \(\bar L_t=(L_0,\ldots,L_t)\) and \(\bar A_t=(A_0,\ldots,A_t)\), with \(\bar A_{-1}\) denoting an empty history.
This convention fixes the ordering: at each time \(t\), the observed history \((\bar L_t,\bar A_{t-1})\) precedes \(A_t\); \(L_{t+1}\), when present, follows \(A_t\). Changing the measurement schedule requires changing the factorization accordingly. Assume the variables take values in standard Borel spaces, so regular conditional distributions exist. For density notation, also assume the joint law is dominated by a product of suitable reference measures. A factor may be a probability mass function, a density, or a conditional probability kernel.
The factors have distinct descriptive roles. The baseline factor \(p(l_0)\) describes the distribution of baseline covariates. Each \(p(a_t\mid\bar l_t,\bar a_{t-1})\) describes treatment assignment among records with that observed history. Each \(p(l_{t+1}\mid\bar l_t,\bar a_t)\) describes the next covariate transition given the history through the current treatment. The final factor \(p(y\mid\bar l_K,\bar a_K)\) describes the outcome conditional on the complete observed history. These descriptions do not mean the factors are independent; their conditioning histories are precisely how their dependence is represented.
Deriving the Factorization
The identity follows by repeatedly applying the chain rule for a joint distribution in the stated order. It is not a modeling assumption that the successive variables are independent.
Proof. For a finite sequence of random variables \(X_1,\ldots,X_m\) on standard Borel spaces, the chain rule expresses their joint law as the initial marginal law followed by the conditional law of each \(X_j\) given its predecessors. In density notation, where a dominated joint law is available, this is the product \(p(x_1)\prod_{j=2}^{m}p(x_j\mid x_1,\ldots,x_{j-1})\). Apply this rule to the ordered sequence \[ L_0,A_0,L_1,A_1,\ldots,L_K,A_K,Y, \] omitting \(L_{t+1}\) after the final treatment as specified. The predecessors of \(A_t\) are \((\bar L_t,\bar A_{t-1})\); those of \(L_{t+1}\) are \((\bar L_t,\bar A_t)\); and the predecessors of \(Y\) are \((\bar L_K,\bar A_K)\). Grouping the resulting factors by type gives the stated expression.
Conditional distributions are defined as regular conditional probability kernels. If two versions of the conditional distribution of a variable given a history both satisfy the defining integral identity, they agree for almost every history with respect to the marginal distribution of that history. One way to see this is to fix a measurable set \(B\) of values of the variable: both versions integrate over every measurable history set \(C\) to the same joint probability \(P(X\in B,H\in C)\). Uniqueness of Radon–Nikodym derivatives then gives equality for \(P_H\)-almost every history for that \(B\); the standard Borel setting permits a common null set using a countable determining class. Thus the law does not determine a unique conditional value at every individual history. \(\square\)
For continuous variables, a density value at a particular history is not a probability that the history occurred. In particular, a positive marginal density at \(h\) does not make the event \(H=h\) have positive probability. When joint and marginal densities exist, the conditional-density ratio formula applies \(P_H\)-almost everywhere, not as a claim that the conditional distribution is uniquely fixed at every point where a chosen density happens to be positive. Values assigned on a set of histories with marginal probability zero can be changed without changing the observed joint law.
Worked Example: A One-Time Binary Record
Let \(K=0\). Suppose \(L_0\) and \(A_0\) are binary, with \(P(L_0=1)=0.4\), \(P(A_0=1\mid L_0=1)=0.75\), and \(P(A_0=1\mid L_0=0)=0.20\). Let the outcome probabilities be \(P(Y=1\mid L_0=1,A_0=1)=0.60\), \(P(Y=1\mid L_0=0,A_0=1)=0.25\), \(P(Y=1\mid L_0=1,A_0=0)=0.30\), and \(P(Y=1\mid L_0=0,A_0=0)=0.10\).
For the observed pattern \(L_0=1,A_0=1,Y=1\), the chain rule gives
For the same covariate and treatment pattern but \(Y=0\), the outcome factor is \(1-0.60=0.40\), giving probability \(0.4(0.75)(0.40)=0.12\). The two probabilities sum to \(0.30\), which is the probability of \(L_0=1,A_0=1\): \(0.4(0.75)=0.30\). This check confirms that the two outcome probabilities form a normalized conditional distribution for that history.
Worked Example: A Continuous Covariate Transition
Consider \(K=1\), where \(L_0\) and the treatments are binary but \(L_1\) is continuous. Suppose \(P(L_0=0)=0.60\), \(P(A_0=1\mid L_0=0)=0.30\), \(L_1\mid(L_0=0,A_0=1)\sim N(1,1)\), \(P(A_1=0\mid L_0=0,A_0=1,L_1=2)=0.80\), and \(P(Y=1\mid L_0=0,A_0=1,L_1=2,A_1=0)=0.25\).
The transition density of \(L_1\) at 2 is
Consequently, the joint density-mass contribution at this record is
This is a density with respect to counting measure for the discrete variables and Lebesgue measure for \(L_1\), not the probability of the event \(L_1=2\). For a continuous variable that event has probability zero. The transition factor describes a distribution over possible \(L_1\) values; its value at 2 is a density value.
Likelihood and Normalization
The factorization also organizes the likelihood when independent subjects are observed. Suppose there are \(n\) independent records, each observed in full, and the conditional distributions are dominated by reference measures. Write \(q_0\), \(g_t\), \(r_t\), and \(m\) for densities or mass functions corresponding respectively to the baseline, treatment, covariate-transition, and outcome factors. For a single record \(i\), its joint contribution is
Independence across subjects makes the sample likelihood the product of these contributions. Taking logarithms turns that product into a sum.
Derivation. Let \(p_\theta(o_i)\) be the joint density or mass for record \(i\), with parameter \(\theta\), and let the displayed factors be its chain-rule components. Independence gives \(L(\theta)=\prod_{i=1}^n p_\theta(o_i)\). Substituting the factorization and applying \(\log\prod_j x_j=\sum_j\log x_j\) for positive contributions yields
If a contribution is zero, the log-likelihood is \(-\infty\), consistent with the product likelihood being zero. The algebraic decomposition does not, by itself, imply that the parameters of the factors are unrelated or that separately chosen models are correctly specified. Such conclusions require additional modeling choices.
Worked Example: Checking a Two-Time Conditional Product
For one history, suppose the probability of the path \(L_0=0,A_0=1,L_1=1,A_1=0,Y=1\) is built from the factors \(P(L_0=0)=0.5\), \(P(A_0=1\mid L_0=0)=0.4\), \(P(L_1=1\mid L_0=0,A_0=1)=0.7\), \(P(A_1=0\mid L_0=0,A_0=1,L_1=1)=0.6\), and \(P(Y=1\mid L_0=0,A_0=1,L_1=1,A_1=0)=0.3\).
Multiplying in time order gives
To check the last factor, the same history with \(Y=0\) has probability \(0.5(0.4)(0.7)(0.6)(0.7)=0.0588\). Their sum is \(0.084\), equal to the probability of the history before observing \(Y\): \(0.5(0.4)(0.7)(0.6)=0.084\). This is one local normalization check; the complete joint distribution sums or integrates to one when each conditional factor is normalized and the factors are combined by iterated integration.
How to Read It, and What It Does Not Say
A useful way to interpret the factorization is to read from left to right and ask what information is available immediately before each variable is recorded. For example, \(p(l_{t+1}\mid\bar l_t,\bar a_t)\) is a conditional description of the next covariate given the observed history through treatment \(A_t\). It is not an assertion that the treatment caused the covariate to take its observed value. Causal interpretation requires causal assumptions and a specified intervention; the chain rule alone supplies neither.
The factorization differs from an unrestricted joint model mainly in how it organizes the distribution. An unrestricted joint model could specify the joint law of the whole record directly. The chain-rule form instead names conditional components in temporal order. It also differs from a model that assumes independence across time: no such independence is needed, because relevant past variables appear in the conditioning histories.
| Approach | What it represents | Key caution |
|---|---|---|
| Joint distribution | The full probability law of the observed record as one object. | May obscure which histories govern each successive variable. |
| Sequential conditional factorization | The same law written as baseline and history-conditional components. | Each factor must use the intended time order and conditioning history. |
| Independence simplification | A restricted law that omits some dependence across variables. | Not implied by the chain rule; it can misrepresent longitudinal dependence. |
Diagnostics should therefore check whether each proposed conditional model is compatible with its factor's role and history. Warning signs include omitted variables in a conditioning history, reversing the order of a treatment and a covariate measured after it, or using a transition model that fails to represent observed covariate distributions across important histories. A model can fit one factor while fitting another poorly. In addition, an apparent discrepancy at one exact value of a continuous history is not, by itself, evidence of a different observed-data law: pointwise conditional versions at null histories are not identified by that law.
The factorization is limited in another important way: it is descriptive, not automatically a prescription for estimation or causal inference. It does not guarantee that a finite-dimensional parametric model for each factor is adequate. It does not address missing records, censoring, or measurement error unless those processes are explicitly included in the observed-data representation. Nor does it say that treatment probabilities should be modeled for every downstream purpose. It only states the exact conditional decomposition of the joint law under the chosen ordering.
Common Mistakes
- Calling the factors independent. The product is a chain-rule identity with conditional factors. Dependence on prior variables is carried in the conditioning histories.
- Treating a factorization as a causal result. The observed-data law can be factorized without identifying a counterfactual quantity. Causal interpretation needs additional assumptions.
- Using the wrong temporal history. A covariate measured after \(A_t\) belongs after \(A_t\) in this convention, not in the history preceding that treatment.
- Claiming pointwise identification at every continuous history. Conditional distributions are determined only up to histories with zero probability under the history distribution. A positive density value at a single point does not make that history event have positive probability.
- Assuming a correct chain rule guarantees correct models. The factorization is exact, but fitted parametric approximations to its factors can still be misspecified.
Check Your Understanding
Answer each question, then compare with the solutions below.
- With \(K=2\), what history conditions the covariate transition for \(L_2\)?
- Does the observed-data chain rule require sequential exchangeability? Why or why not?
- What does it mean that a conditional distribution is determined only almost everywhere in its history?
- If \(L_1\) is continuous, should the joint density contribution at \(L_1=2\) be described as the probability that \(L_1=2\)?
- Does a log-likelihood decomposition prove that the conditional factors can be fitted independently or that each model is correctly specified?
Solutions. (1) \(L_2\) follows treatment \(A_1\), so its transition factor is \(p(l_2\mid\bar l_1,\bar a_1)\). (2) No. Sequential exchangeability is a causal assumption; the chain rule is a probability identity for the observed variables in their stated order. (3) Two valid versions may differ on a set of histories having marginal probability zero, while still defining the same joint law. (4) No. A continuous variable has probability zero at an exact point under an absolutely continuous distribution; the factor value is a density. (5) No. The likelihood algebra gives a sum of factor contributions, but independent fitting and model adequacy require further assumptions and checks.