Native measurement distributions#

Import the native measurement distributions from pyfcirt.models.dist. Use these classes inside a PyMC model you define.

from pyfcirt.models.dist import TIRTDistribution, TIRTRankDistribution

Call a class with a name and observed= to register an observed variable. Use .dist() for an unnamed distribution and pm.logp() to evaluate it at a response. Each page shows both forms.

Give the distributions arrays with known shapes. The last axes are described on each API page and leading observation axes broadcast where applicable. In a native graph, use zero-based category indices for categorical responses and the actual continuous rating for Beta responses. Define priors and identification constraints in your own model. TIRT and GTUM Beta responses require positive precision for both density evaluation and random draws. PyMC checks the derived Beta shapes in the log density.

Joint response models#

For a joint choice and response-time model, align both measurements on the same observation axis. You can evaluate the sum of their native pm.logp() expressions with pm.compute_deterministics(..., backend="jax") to obtain their joint log likelihood per observation. The JRT–TIRT example shows the full analysis.

Distribution reference#

TIRTDistribution

The model-owned parameter, probability and native response graph.

GTUMDistribution

The model-owned parameter, probability and native response graph.

TIRTRankDistribution

Gaussian ranking law with model-owned lazy density and CDF-free generation.

TwoPLRankDistribution

Linear endorsement with successive-choice ranking events.

GGUMRankDistribution

GGUM endorsement; tau retains its declared sign, without ordering or repair.

MGPPMDistribution

Score-weighted complete patterns and their observed event partition.

DichotomousIRTDistribution

One 1--4PL law; the prepared layout fixes unused loading/asymptote entries.

GPCMDistribution

Unordered category intercepts with an exact zero baseline.

GGUMDistribution

Distance GGUM with signed locations and freely estimated step parameters.

Use PairwiseL1 as a prior on zero-sum group contrasts in a native PyMC graph.