DINA Model and Parameter Estimation: A Didactic

Reference

de la Torre, J. (2009). DINA model and parameter estimation: A didactic. Journal of Educational and Behavioral Statistics, 34(1), 115–130. doi:10.3102/1076998607309474

Publisher abstract

Cognitive and skills diagnosis models are psychometric models that have immense potential to provide rich information relevant for instruction and learning. However, wider applications of these models have been hampered by their novelty and the lack of commercially available software that can be used to analyze data from this psychometric framework. To address this issue, this article focuses on one tractable and interpretable skills diagnosis model—the DINA model—and presents it didactically. The article also discusses expectation-maximization and Markov chain Monte Carlo algorithms in estimating its model parameters. Finally, analyses of simulated and real data are presented.

Model

The deterministic inputs, noisy “and” gate (DINA) model is a binary-response cognitive diagnosis model. Let be the response of examinee to item , and let be the examinee’s binary attribute profile. The known binary matrix has entries indicating whether item requires attribute .

The conjunctive ideal response is

Thus exactly when examinee possesses every attribute required by item ; otherwise . Factors with do not restrict the ideal response.

Two item parameters introduce response noise:

The slip parameter is the probability that an examinee with all required attributes answers incorrectly. The guessing parameter is the probability of a correct response despite lacking at least one required attribute; it also accommodates correct strategies not represented by the specified -row. The correct-response probability is therefore

Responses are assumed conditionally independent given the attribute profile, and examinees are independently sampled. Each possible binary profile is a latent class. Enumerate the profiles as , with population proportions satisfying .

Likelihood

Write and for the correct-response probability and ideal response under profile . The Bernoulli form of one item response is

which selects when and when . Conditional independence gives the profile-conditional likelihood of the full response vector:

A joint ML approach maximizes over the item parameters and every examinee’s simultaneously. The paper identifies the resulting incidental-parameter problem: consistency of the structural item parameters need not follow as the number of examinees increases.

Marginal maximum likelihood instead treats the attribute profile as a random latent variable and sums over its distribution:

where . The profile proportions are prior weights before observing a person’s responses, or equivalently the mixing distribution of the latent-class population; they are not Bayesian priors on or . EM computes the marginal ML item estimates through posterior profile probabilities.

EM derivation: Appendix A1–A11

This section is a self-contained reconstruction of the paper’s appendix, with intermediate algebra and the responsibility interpretation made explicit. The appendix differentiates the observed-data log-likelihood directly; the -function interpretation at the end clarifies why the resulting updates are EM updates.

Parameter indexing and the marginal score

For a generic item parameter, define

Thus selects one of the two parameters of item ; neither nor is a differentiation variable. Differentiating the marginal log-likelihood gives

The sum over comes from the log of the product over examinees. The sum over comes from differentiating the finite profile mixture.

Isolating item

Because occurs only in item ’s Bernoulli factor, every factor with is constant under this derivative. The product rule therefore gives

Differentiating the Bernoulli factor

Temporarily write

The observed is fixed. Applying the product rule and chain rule to gives

The minus sign in the second term is the derivative of . Restoring all the other item factors yields

This is a profile-conditional Bernoulli score. The residual compares the observed binary response with its model expectation, and is the Bernoulli variance.

Posterior responsibilities and expected counts

Substitute A6 into A3 and group the likelihood factors:

Bayes’ rule identifies the normalized weight as the posterior profile probability, or responsibility,

The posterior arises from the derivative of the log mixture: each profile-conditional score is weighted by that profile’s share of the total likelihood. Substitution and interchange of the finite sums give

The terms outside the examinee sum do not depend on . Define the expected profile count and expected number correct,

Expanding the residual then gives

Consequently,

Here is a soft count of examinees belonging to profile , and is the corresponding soft count correct on item . The term compares the posterior-weighted number correct with the number predicted by the model.

Splitting profiles by ideal response

Partition the profiles into

For profiles in , ; for profiles in , . Aggregate the expected counts within the two groups:

The score separates into two terms:

For , only the first term remains and . For , only the second term remains and .

Closed-form item updates

For the guessing parameter, setting the remaining score term to zero gives

For the slip parameter,

Thus guessing is estimated by the expected proportion correct among nonmasters, and slipping by the expected proportion incorrect among masters. These are soft proportions because profile membership is represented by posterior probabilities rather than hard classifications.

Why these are E and M steps

At iteration , the E step evaluates responsibilities using the current parameters:

These responsibilities determine , , and their two-group sums. The M step holds the responsibilities fixed and applies A10–A11 to every item, then recomputes the responsibilities at the updated parameters.

Equivalently, the item-parameter part of the expected complete-data log-likelihood is

Maximizing this function with fixed produces the same closed-form updates. This -function statement is an EM reconstruction of the appendix’s observed-score derivation, not an additional equation quoted from the paper.

Standard-error approximation

Appendix A2 derives an information approximation from the per-person observed scores. If

the appendix’s calculation leads to the outer-product form

The square roots of the diagonal elements are the reported standard errors. The derivation starts from the expected-information identity and then approximates the information at the observed data; the resulting outer-product expression is not the exact pointwise observed Hessian.

Notes

  • The appendix’s basic algorithm holds the profile proportions fixed across expectation cycles. The discussion also describes empirical-Bayes updating. If the saturated profile proportions are updated by EM, their closed-form update is .
  • Exact enumeration involves profiles, so computational demand grows exponentially with the number of attributes. The paper discusses restricting the permissible profiles when an attribute hierarchy supplies such structure.
  • The higher-order DINA alternative models attribute probabilities through a continuous general proficiency. Its parametric attribute distribution uses intercept and slope parameters rather than the saturated model’s free proportions; the paper presents MCMC rather than EM for that formulation.
  • The empirical illustrations are a 100-replicate simulation with 2,000 examinees, 30 items, and five attributes, and an analysis of 2,144 examinees on 15 fraction-subtraction items. They demonstrate the algorithms rather than supplying additional model structure.