Cognitive Diagnosis Models (DINA / G-DINA)

Measurement
Introduced by
Jimmy de la Torre
Year
2011
Type
Latent variable diagnostic classification model
Family
Diagnostic measurement

What does it do?

Cognitive Diagnosis Models (CDMs) are a family of latent variable models designed to classify examinees according to their mastery of a set of discrete cognitive attributes or skills.

The Generalized DINA (G-DINA) framework, introduced by Jimmy de la Torre in 2011, is a general model in which several commonly used CDMs, including DINA, DINO, ACDM and LLM, arise as special cases under appropriate constraints. This allows attribute-level diagnostic feedback beyond a single total score.

The intuition behind the method

Imagine a medical checklist: a doctor does not just say a patient is '70% healthy' but instead identifies which specific conditions are present or absent. CDMs work the same way for learning assessments. Rather than reporting a single ability score, they map each test-taker to a profile showing which underlying skills they have mastered and which they have not, much like diagnosing specific knowledge gaps instead of assigning a grade.

History

The G-DINA framework was introduced by Jimmy de la Torre in a 2011 Psychometrika paper, which presents it as a generalization of the DINA model with more relaxed assumptions and shows that several commonly used CDMs are special cases under suitable constraints. In its saturated form it is equivalent to other general cognitive diagnosis models based on alternative link functions.

When to use it

Use CDMs when the goal is fine-grained diagnostic feedback about which attributes an examinee has mastered, rather than ranking examinees on a single continuous scale. Typical settings are formative assessment, learning analytics and clinical skills inventories, where items can be tied to a theory of which attributes each item requires. The method rests on several assumptions: attributes can be treated as binary (mastered or not); domain experts can specify a correct and identifiable Q-matrix; responses are conditionally independent given the attribute profile; and the chosen link or submodel (for example the conjunctive rule of DINA) matches the theory of how attributes combine. Violations of these assumptions can bias item parameters and classifications. The sample must also be large enough to estimate parameters for the latent classes; the required size grows quickly with the number of attributes because there are 2^K profiles. Do not use CDMs when the main aim is a continuous ability estimate or when items are not built around identifiable attributes; IRT models such as the 2PL or Rasch model are then more suitable. Polytomous or continuous responses also fall outside the standard binary framework.

Limitations and considerations

  • Classification depends on the Q-matrix: if an item's attribute entries are wrong, the estimated parameters and the examinee classifications are biased
  • The number of latent classes is 2^K, so the number of profiles and the sample needed for stable estimates grow rapidly as attributes are added
  • Attributes are coded as binary, so partial mastery or a gradual course of skill development is represented only crudely
  • Estimation with many attributes and their interaction terms can be computationally demanding

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Gives attribute-level profiles that show which named skills are mastered, so feedback points to specific gaps rather than a single total score
  • The G-DINA framework includes DINA and other CDMs as constrained special cases, so competing models can be compared within one framework, including item by item using the Wald test
  • Because classification rests on a Q-matrix tied to cognitive theory, the attributes in each profile can be interpreted in terms of the test's content
  • Item-level Wald tests compare constrained and saturated item models and can flag items whose attribute structure may be misspecified; they do not by themselves validate the Q-matrix

Applications

  • Formative classroom assessments identifying specific skill gaps in mathematics or reading
  • Language proficiency testing to diagnose mastery of grammar, vocabulary, and discourse skills
  • Medical licensing exams targeting specific clinical competencies
  • Learning analytics platforms providing adaptive instruction recommendations
  • Cognitive psychology research mapping latent knowledge structures in problem-solving tasks

How it works

How it works

1

The analyst constructs a Q-matrix, a binary item-by-attribute mapping where each cell indicates whether a given item requires mastery of a particular attribute. This expert-designed matrix encodes the cognitive theory behind the test and is the foundation on which all subsequent model parameters and classifications are built.

Formula
q_{jk} \in \{0,1\}: \text{ item } j \text{ requires attribute } k
2

Each examinee is assigned to one of 2^K latent attribute profiles, where K is the number of attributes. For a given item, the probability of a correct response depends only on which of the attributes required by that item (as coded in the Q-matrix) the profile contains. In the G-DINA framework this probability is written, under an identity link, as an intercept plus a main effect for each required attribute plus interaction terms for combinations of required attributes. Specific CDMs such as DINA arise when these terms are constrained. Responses are assumed to be conditionally independent given the attribute profile.

Formula
P(X_j = 1 \mid \boldsymbol{\alpha}) = \delta_{j0} + \sum_{k=1}^{K} \delta_{jk}\, q_{jk}\alpha_k + \sum_{k<k'} \delta_{jkk'}\, q_{jk}q_{jk'}\alpha_k\alpha_{k'} + \cdots + \delta_{j12\cdots K} \prod_{k=1}^{K} \alpha_k^{q_{jk}}
3

Let theta denote the set of item parameters (the intercept, main effects and interactions for each item) and pi_alpha the population proportion of latent class alpha. Item parameters and class proportions are estimated jointly via marginal maximum likelihood, typically using the Expectation-Maximization algorithm, which iterates between computing expected class memberships and updating parameter estimates until convergence.

Formula
\hat{\boldsymbol{\theta}} = \arg\max_{\boldsymbol{\theta}} \sum_{i=1}^{N} \log \sum_{\boldsymbol{\alpha} \in \{0,1\}^K} \pi_{\boldsymbol{\alpha}} \prod_{j=1}^{J} P(X_{ij} \mid \boldsymbol{\alpha})
4

Using Bayes' theorem, the posterior probability of each attribute profile is computed for every examinee given their observed item response pattern and the estimated model parameters. The examinee is then typically assigned to the profile with the highest posterior probability, yielding a discrete skill mastery diagnosis. This label is uncertain: the posterior probabilities, or attribute-level classification accuracy, should be reported alongside it. Attributes measured by only a few items will be classified less accurately.

Formula
P(\boldsymbol{\alpha} \mid \mathbf{x}) = \frac{\pi_{\boldsymbol{\alpha}} \prod_{j=1}^{J} P(X_j = x_j \mid \boldsymbol{\alpha})}{\sum_{\boldsymbol{\alpha}'} \pi_{\boldsymbol{\alpha}'} \prod_{j=1}^{J} P(X_j = x_j \mid \boldsymbol{\alpha}')}

Common pitfalls

  • Treating the Q-matrix as fixed and correct; empirical checks of the Q-matrix should be run, and the expert specification revisited when the data disagree with it
  • Specifying many attributes relative to the sample, which leaves some latent classes with few examinees and unstable estimates
  • Accepting the saturated G-DINA model without testing whether constrained, simpler CDMs fit as well; nested models should be compared, for example with the Wald test
  • Reading high classification accuracy as evidence that the attributes are the valid constructs the test is meant to measure; accuracy under the model does not establish this

Frequently asked questions

What is the difference between DINA and G-DINA?

DINA (Deterministic Input, Noisy And-gate) assumes a conjunctive rule: an examinee must master all required attributes to have a high probability of correct response, and the only free parameters are slip and guessing. G-DINA relaxes this by allowing main effects and interactions for each required attribute combination, making it a general framework that reduces to DINA and other specific models as constrained special cases.

How large a sample do I need to apply CDMs?

Required sample size depends mainly on the number of attributes K, because the model has 2^K latent classes, and on how many items measure each attribute combination. More attributes and a sparser Q-matrix require more examinees for stable estimates. No single minimum applies across settings, so the adequacy of a sample should be judged for the intended design, for example through simulation or through the stability of the estimates.

Can CDMs be applied to polytomous or continuous response data?

Standard CDMs, including DINA and G-DINA as described here, assume binary (correct/incorrect) item responses. Polytomous extensions exist but are outside the scope of this page. Continuous response data generally do not fit the CDM framework and should be analyzed with factor-analytic or IRT approaches instead.

Related methods

Sources

  1. de la Torre, J. (2011). The generalized DINA model framework. Psychometrika, 76(2), 179–199.

    Open DOI reference