Tutorials › Econometrics (Graduate) › Discrete Latent Types in Dynamic Choice

Dynamic Discrete Choice · Tutorial 758 of 952

Discrete Latent Types in Dynamic Choice

Learn to construct mixture likelihoods for persistent latent types and update each decision maker’s type probabilities using observed choices and, when informative, state histories.

Advanced 11 min read

What You'll Learn

  • Define persistent discrete types and type-specific dynamic choice probabilities
  • Derive the individual likelihood by averaging type-specific history likelihoods over prior type probabilities
  • Include initial-state and transition probabilities when the state history is informative about type
  • Update posterior type probabilities after observed choices and state transitions
  • Distinguish a conditional choice likelihood from a joint likelihood for choices and states
  • Recognize why latent-type probabilities are not the same as known individual classifications

Why Persistent Latent Types Matter

Two decision makers can face the same observed state and still make different choices because their preferences or other persistent characteristics differ. If those differences are unobserved, a model with one common parameter vector may attribute systematic behavioral differences to state dependence or random variation. A finite mixture offers one way to represent persistent heterogeneity: each decision maker belongs to one of a fixed number of latent types, and the type affects that person’s choice behavior over time.

The key implication is that a person’s type is shared across the whole observed history. Choices should therefore not be treated as independent draws from a new mixture at each date. Instead, each possible type generates a complete type-specific likelihood for the person’s history; the individual likelihood averages those likelihoods using the prior type probabilities.

Definition: A discrete latent type is an unobserved, time-invariant category \(z_i\in\{1,\ldots,K\}\) for decision maker \(i\). Conditional on type \(k\), the dynamic choice model specifies type-specific choice probabilities and, if modeled jointly, state probabilities. The type probabilities \(\pi_k(x_i)=P(z_i=k\mid x_i)\) are nonnegative and satisfy \(\sum_{k=1}^{K}\pi_k(x_i)=1\), where \(x_i\) denotes observed individual characteristics used to model type membership.

Let \(a_{it}\) denote individual \(i\)’s choice at date \(t\), and let \(s_{it}\) denote the observed state. The model’s dynamic structure determines the probability of a choice conditional on the state, the observed characteristics, and the type. Write this probability as \(p_{ikt}(a\mid s,x_i)\). It may depend on the remaining horizon in a finite-horizon model. The type-specific choice probabilities are obtained from the corresponding dynamic choice model; the mixture construction below does not replace that model.

The analysis can be conditional on the observed state path or can model the joint history of choices and states. That distinction matters. If the probability of observing a state path differs by type, the state history itself contains information about type and must not be silently omitted when calculating posterior type probabilities.

From Type-Specific Histories to a Mixture Likelihood

Suppose first that the observed state path is treated as uninformative about type conditional on \(x_i\). For example, this holds if the state path is fixed or generated by a process that has the same probability under every type. For the observed choices \(a_{i1},\ldots,a_{iT}\), define the type-specific choice-history likelihood

$$ L_{ik}^{a} = \prod_{t=1}^{T}p_{ikt}(a_{it}\mid s_{it},x_i). $$

Conditional independence of choices across dates given the type and the relevant states justifies the product. The states can affect the probability at each date; this formula does not claim that choices are independent without conditioning on type and the dynamic information they face.

Because the type is unobserved, the observed-data likelihood is obtained by summing over its possible values. The law of total probability gives the individual likelihood

$$ L_i = P(a_{i1},\ldots,a_{iT}\mid s_{i1},\ldots,s_{iT},x_i) = \sum_{k=1}^{K}\pi_k(x_i)L_{ik}^{a}. $$

Each term is the probability that the individual is type \(k\), multiplied by the likelihood of the observed choices under that type. The sum—not an average of per-period mixtures—keeps the same type attached to the individual at every date. If individuals are independent conditional on model parameters, the sample likelihood is \(\prod_i L_i\), and the log-likelihood is \(\sum_i\log L_i\).

Worked Example: Likelihood of a Two-Choice History

Consider a hypothetical individual observed in two states. There are two persistent types, with prior probabilities \(\pi_1=0.6\) and \(\pi_2=0.4\). For the observed states, suppose the type-specific probabilities of the observed first choice are 0.8 for type 1 and 0.3 for type 2. The probabilities of the observed second choice, conditional on the second state, are 0.6 and 0.3, respectively. Assume the observed state path is uninformative about type, and that the stated conditional choice probabilities define the type-specific history likelihood.

The type-1 history likelihood is \(L_{i1}^{a}=0.8(0.6)=0.48\). The type-2 history likelihood is \(L_{i2}^{a}=0.3(0.3)=0.09\). Averaging these history likelihoods using the prior type probabilities gives

$$ L_i = 0.6(0.48)+0.4(0.09) = 0.288+0.036 = 0.324. $$

Thus the probability assigned to this two-choice history, conditional on the specified state path and model, is 0.324. The calculation does not redraw a type between the two dates: the 0.48 and 0.09 terms each represent a full history under one persistent type.

When the State History Is Informative

If initial states or transitions depend on type, a likelihood based only on choices does not describe the joint observed history. Let \(f_k(s_{i1}\mid x_i)\) be the type-\(k\) probability of the initial state. Let \(g_{ikt}(s'\mid s,a,x_i)\) be the type-\(k\) probability of the next state, conditional on the current state and choice. Under a first-order Markov state model and the specified conditional choice model, the joint type-specific likelihood for states and choices is

$$ L_{ik}^{\mathrm{joint}} = f_k(s_{i1}\mid x_i) \prod_{t=1}^{T} \left[ p_{ikt}(a_{it}\mid s_{it},x_i) g_{ikt}(s_{i,t+1}\mid s_{it},a_{it},x_i) \right]. $$

This expression assumes the displayed factorization: the choice probability is conditional on the current state and type, and the next-state probability is conditional on the current state, choice, and type. If the observed data do not include the next state after the final choice, omit that final transition factor. The joint individual likelihood is \(\sum_k\pi_k(x_i)L_{ik}^{\mathrm{joint}}\). If states are conditioned on rather than modeled jointly, the appropriate type probabilities at the start of the choice likelihood must instead account for any information in those states.

In particular, “conditioning on the observed states” does not by itself mean those states are irrelevant to type. If the initial state is type-dependent, the type probability conditional on that initial state differs from \(\pi_k(x_i)\). Likewise, if transitions are type-dependent, later observed states can further change type probabilities. Type-independent state probabilities cancel from posterior odds across types, but type dependence cannot be ignored merely because states are observed.

Worked Example: An Initial State Updates Type Probabilities

Suppose a hypothetical individual has two possible types with prior probabilities 0.5 each. The observed initial state has probability 0.2 under type 1 and 0.8 under type 2. Conditional on that state, the observed choice has probability 0.6 under type 1 and 0.3 under type 2. Assume no further state observation is used in this short history.

The joint type-specific probabilities for the observed state and choice are \(0.2(0.6)=0.12\) for type 1 and \(0.8(0.3)=0.24\) for type 2. Weighting by the prior gives contributions \(0.5(0.12)=0.06\) and \(0.5(0.24)=0.12\), so the joint likelihood is \(0.06+0.12=0.18\). The posterior probability of type 1 is therefore

$$ P(z_i=1\mid s_{i1},a_{i1},x_i) = \frac{0.5(0.2)(0.6)} {0.5(0.2)(0.6)+0.5(0.8)(0.3)} = \frac{0.06}{0.18} = \frac{1}{3}. $$

The type-2 posterior probability is \(0.12/0.18=2/3\). The initial state is informative: after observing it alone, the type-1 probability would be \(0.5(0.2)/[0.5(0.2)+0.5(0.8)]=0.2\). The choice then changes that probability to one third. Using the original 0.5 prior for the choice update while ignoring the initial state would produce the wrong posterior.

Updating Type Probabilities with a History

After observing a history \(h_i\), the posterior probability that individual \(i\) is type \(k\) is the probability of that type conditional on the observed history and the characteristics used in the type probabilities. For a general joint history, Bayes’ rule gives

$$ \omega_{ik}(h_i) = P(z_i=k\mid h_i,x_i) = \frac{\pi_k(x_i)L_{ik}(h_i)} {\sum_{j=1}^{K}\pi_j(x_i)L_{ij}(h_i)}, $$

where \(L_{ik}(h_i)\) is the likelihood of all components of \(h_i\) included in the conditioning information under type \(k\). If \(h_i\) includes the state path, \(L_{ik}(h_i)\) must include its initial-state and transition likelihoods whenever they depend on type. Alternatively, if the state path is conditioned on, use a type probability already conditional on that path as the prior for the choice-history likelihood. The formula is only as appropriate as the history included in its likelihood.

Posterior weights can be updated sequentially. Start with type probabilities conditional on any observed initial state. After observing a choice, multiply each current weight by its type-specific choice probability and normalize. If the next state is also observed and its transition probability is type-dependent, multiply by that probability as well, then normalize again. This is Bayes’ rule applied repeatedly, not a new assumption about the type changing over time.

Worked Example: Updating Weights After a New Choice

Suppose a hypothetical individual has two types with prior probabilities 0.6 and 0.4. An earlier choice history has likelihood 0.8 under type 1 and 0.42 under type 2. Assume the state path in this example is uninformative about type. After that earlier history, the weights are

$$ \omega_{i1} = \frac{0.6(0.8)}{0.6(0.8)+0.4(0.42)} = \frac{0.48}{0.648} \approx 0.7407, \qquad \omega_{i2} = \frac{0.168}{0.648} \approx 0.2593. $$

Now the individual makes another observed choice. Suppose its probability is 0.4 under type 1 and 0.8 under type 2, conditional on the current state. The updated type-1 weight is

$$ \omega_{i1,\mathrm{new}} = \frac{0.7407(0.4)} {0.7407(0.4)+0.2593(0.8)} = \frac{0.29628}{0.50372} \approx 0.5882. $$

The type-2 weight is \(0.20744/0.50372\approx0.4118\), so the updated weights sum to one. The new choice makes type 2 more probable than it was before, because that choice is twice as likely under type 2 as under type 1. These numbers are posterior probabilities under the specified model, not observed labels or proof that the individual belongs to one type with certainty.

Derivation of the Mixture and Posterior Formulas

The basic result follows directly by partitioning over mutually exclusive latent types. For a history \(h_i\), the events \(z_i=1,\ldots,z_i=K\) exhaust the possibilities. Therefore,

$$ P(h_i\mid x_i) = \sum_{k=1}^{K}P(h_i,z_i=k\mid x_i) = \sum_{k=1}^{K}P(h_i\mid z_i=k,x_i)P(z_i=k\mid x_i) = \sum_{k=1}^{K}L_{ik}(h_i)\pi_k(x_i). $$

For the posterior, divide the joint probability of the history and type \(k\) by the probability of the history. The numerator is \(P(h_i\mid z_i=k,x_i)P(z_i=k\mid x_i)=L_{ik}(h_i)\pi_k(x_i)\), and the denominator is the mixture likelihood just derived. Hence

$$ P(z_i=k\mid h_i,x_i) = \frac{L_{ik}(h_i)\pi_k(x_i)} {\sum_{j=1}^{K}L_{ij}(h_i)\pi_j(x_i)}. $$

This derivation also explains the state-history requirement: \(h_i\) must mean the same observed information in both the type-specific likelihood and the posterior conditioning event. Leaving an informative state out of \(L_{ik}\) while conditioning on it in the posterior breaks the equality.

Practical Interpretation and a Common Pitfall

Latent types let a dynamic choice model represent persistent differences with a finite number of behavioral profiles. They can also make estimation more flexible: the model can allow distinct type-specific parameters, type probabilities that vary with observed characteristics, or both. But the resulting types are model-based summaries, not necessarily literal categories in the population. The posterior weights quantify uncertainty about an individual’s type given the model and observed history.

A common mistake is to calculate a posterior using the choice likelihood alone while defining the history to include observed states, even though the initial-state distribution or transition probabilities vary by type. For instance, the formula \(\pi_k(x_i)L_{ik}^{a}/\sum_j\pi_j(x_i)L_{ij}^{a}\) is valid for a choice history conditional on a state path only when the prior is already conditional on that path, or when the state path is uninformative about type given \(x_i\). Otherwise, include the state-history likelihood in each type-specific term. Another mistake is to assign each date a fresh type draw. That describes a different model: persistent latent types require one type-specific likelihood for the individual’s complete history.

Key takeaway: First specify which parts of the observed history are modeled and which are conditioned on. Then calculate one likelihood per persistent type, combine them using type probabilities, and use Bayes’ rule to update those probabilities with every informative observed choice or state.

Check Your Understanding

Use the definitions and assumptions in each question, and state what information is included in the history.

  1. Why does a persistent two-type model average the likelihoods of complete choice histories rather than form a separate two-type mixture at each date?
  2. An individual has prior type probabilities 0.7 and 0.3. A history has likelihoods 0.2 and 0.5 under the two types. Calculate the mixture likelihood and the posterior probability of type 1.
  3. When can a choice-history likelihood be combined with the prior type probabilities even if the observed state path is conditioned on?
  4. If the initial state is more likely under type 2 than type 1, which likelihood component must be included when calculating posterior type probabilities from a history containing that state?
  5. Explain why posterior type probabilities should not be interpreted as known type labels.
Clinical Biostats