Why the Likelihood Has Several Parts
A dynamic choice observation is more than a sequence of actions. Each action is taken in a state, and the state may change after the action. A panel therefore provides evidence about both the conditional choice probabilities and the law governing state transitions. If the first observed state is random under the model, its probability or density also contributes to the likelihood.
The earlier material on choice-specific values and conditional choice probabilities supplies the model-implied probability of each observed action at its state. Here the task is to assemble those probabilities with the observed state history. Getting the factorization right matters: omitting a transition term discards information about the state process, while multiplying by a choice or transition term that is not part of the sampling design changes the likelihood being optimized.
The state can contain discrete variables, continuous variables, or both. Accordingly, \(\mu_\theta\) and \(q_\theta\) are probability masses for discrete states and densities for continuous states; for mixed states they are defined with respect to the appropriate underlying measure. A density evaluated at an observed value is not itself a probability of observing that exact continuous value. It is a density contribution to the likelihood, with units inverse to the units of the continuous variable.
Model Assumptions and the Panel Likelihood
The basic factorization uses three assumptions. First, conditional on the parameter, individuals’ panel histories are independent. Second, the choice probability at period \(t\), conditional on the information relevant to choice, is \(p_\theta(a_{it}\mid s_{it})\); the choice shocks have already been integrated into this probability. Third, the state follows a first-order transition law: conditional on the current state and action, the next state has distribution \(q_\theta(s_{i,t+1}\mid s_{it},a_{it})\), with no additional dependence on earlier history. These are modeling assumptions, not consequences of the arithmetic used to construct the likelihood.
Suppose states and actions are observed for \(T\) choice periods, and the state transitions from periods 1 through \(T-1\) are observed. The individual contribution to the full likelihood is
There is one initial-state term, one choice term for each observed action, and one transition term for each observed transition. There are \(T-1\) transitions in this observation scheme because no transition after the final choice is included. If the data also record the state after the final choice, that additional transition contributes a further \(q_\theta\) term.
For \(N\) independent individuals, the sample likelihood is the product of their contributions, \(L(\theta)=\prod_{i=1}^{N} L_i(\theta)\). The log likelihood is therefore a sum. Taking logarithms turns products into additions but does not change the parameter value that maximizes the likelihood, since the logarithm is a strictly increasing function on positive values.
Why the Factorization Holds
The chain rule expresses the probability or density of a history as a product of successive conditional distributions. For two choice periods, its ordering can be written as
The first-order state and choice assumptions reduce the last conditional choice distribution to \(p_\theta(a_2\mid s_2)\). Repeating the same chain-rule decomposition for each later period gives the general individual likelihood above. Thus the product form is justified by the assumed conditional structure of the model. It is not justified merely because the observations happen to be recorded in chronological order.
Worked Likelihoods
Worked Example: A Two-Period Discrete-State Panel
Consider one hypothetical individual with states \(s\in\{0,1\}\) and actions \(a\in\{0,1\}\). The observed history is \(s_1=0,\ a_1=1,\ s_2=1,\ a_2=0\). Suppose the model assigns initial probability \(P_\theta(s_1=0)=0.60\), choice probabilities \(p_\theta(1\mid0)=0.70\) and \(p_\theta(0\mid1)=0.40\), and transition probability \(q_\theta(1\mid0,1)=0.80\). The probabilities are assumed to come from a valid model, so the unreported alternatives have complementary probabilities where appropriate.
There is one initial state, two observed choices, and one observed transition. Substituting the relevant terms gives
The model assigns likelihood contribution \(0.1344\) to this discrete history at the stated parameter values. The transition factor is associated with \(a_1\), the action taken before \(s_2\) is realized; it is not a transition after \(a_2\), because no such terminal transition is observed here.
Worked Example: A Continuous Transition Density
Suppose a hypothetical panel has observed initial discrete state \(s_1=0\), and we condition on both \(s_1=0\) and \(a_1\). After that action, a continuous state \(x_2\) has a normal transition distribution with mean \(2.0\) and standard deviation \(2.5\). The observed value is \(x_2=2.36338\). At that state, the observed second-period action \(a_2\) has conditional choice probability \(0.55\). We calculate the likelihood of the transition and second-period choice conditional on both \(s_1=0\) and \(a_1\).
The transition density at the observed value is
The likelihood contribution conditional on both \(s_1=0\) and \(a_1\) is this density times the second-period choice probability:
The transition density has units inverse to the units in which \(x_2\) is measured; the likelihood contribution consequently contains a density contribution, rather than being the probability of observing the exact value \(2.36338\). Because the calculation conditions on both \(s_1=0\) and \(a_1\), it includes neither \(\mu_\theta(s_1)\) nor \(p_\theta(a_1\mid s_1)\). For a full joint likelihood of the history, those factors would be included.
Worked Example: Multiplying Contributions Across Individuals
Suppose two hypothetical individuals each have two observed choice periods and a discrete state. Their histories and relevant model probabilities are as follows:
- Individual A: \(s_1=0,\ a_1=1,\ s_2=1,\ a_2=0\), with initial probability \(0.60\), choice probabilities \(0.70\) and \(0.40\), and transition probability \(0.80\).
- Individual B: \(s_1=1,\ a_1=0,\ s_2=0,\ a_2=1\), with initial probability \(0.40\), choice probabilities \(0.60\) and \(0.30\), and transition probability \(0.75\).
Under independence across individuals, the first contribution is
and the second is
Thus the sample likelihood and log likelihood at these parameter values are
The sample likelihood is the product because the two histories are assumed independent conditional on the model parameters. The log likelihood is a sum of individual log contributions, which is often more convenient to calculate and optimize numerically. Neither value alone establishes that these parameter values fit well; that assessment requires comparing the likelihood across parameter values and considering the model and data.
Initial States, Conditioning, and Data Design
Whether the initial-state term belongs in the likelihood depends on the statistical experiment being modeled. In a full likelihood, the model specifies how the first observed state was generated, and \(\mu_\theta(s_{i1})\) is included. If the analysis conditions on the initial state—for example, because the sample is treated as having been selected conditional on that state—the initial-state factor is omitted. The resulting conditional likelihood is a legitimate different likelihood, but it uses less information about parameters that govern the initial-state distribution.
The same logic applies to actions. If the likelihood is explicitly conditional on an observed action, its choice probability is excluded. If the action is part of the random history being modeled, its conditional choice probability belongs in the product. State clearly which observations are conditioned upon before writing the likelihood.
A transition factor belongs in the likelihood when the relevant next state is observed and its conditional law is part of the model. If the next state is continuous, use its density; if it is discrete, use its transition probability. If no post-choice state is recorded at the end of the panel, do not add a transition term for an unobserved next state. The choice at the final observed period still contributes its CCP.
Common Mistakes and Why Construction Matters
- Leaving out transitions. Multiplying only the CCPs treats observed state histories as if they supplied no information about the transition law. Include each observed transition term unless the likelihood is deliberately conditional on the relevant states.
- Using a transition probability for a continuous state. A continuous observation has a density contribution, not a point probability. Its units and scale should be understood when interpreting the likelihood.
- Including a term for an unobserved terminal transition. A transition after the last observed choice is not part of the stated likelihood unless the data include the next state or the observation scheme otherwise supplies it.
- Dropping the initial-state term without explanation. This is appropriate for a likelihood conditional on the initial state, but not automatically for a full likelihood that models how initial states arise.
- Multiplying by shock densities after using CCPs. The conditional choice probability already accounts for the choice shocks integrated out in the model. Do not add a shock-density factor unless the shocks themselves are observed and modeled as data.
Likelihood construction determines which aspects of the data inform estimation. Choice frequencies inform the CCPs, observed state changes inform transition parameters, and initial-state frequencies can inform parameters in the initial distribution. Keeping these contributions distinct makes the assumptions visible and helps diagnose an incorrectly specified objective.
Check Your Understanding
For each question, identify which likelihood factors are present and explain why.
- A panel records three states and three actions for one individual. How many CCP terms and how many between-period transition terms enter the full likelihood?
- In a discrete-state model, an individual begins in state \(s_1=1\), chooses \(a_1=0\), and moves to \(s_2=0\). Write the three factors for this one-period history.
- Why is a normal transition density at an observed continuous state not the probability of observing that exact value?
- An analyst conditions on the initial state but includes all observed choices and transitions. Which factor is omitted, and what information does this conditioning set aside?
- A data set records the final-period action but not the state after it. Should the likelihood include a transition term after that action? Explain.