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#
The model-owned parameter, probability and native response graph. |
|
The model-owned parameter, probability and native response graph. |
|
Gaussian ranking law with model-owned lazy density and CDF-free generation. |
|
Linear endorsement with successive-choice ranking events. |
|
GGUM endorsement; tau retains its declared sign, without ordering or repair. |
|
Score-weighted complete patterns and their observed event partition. |
|
One 1--4PL law; the prepared layout fixes unused loading/asymptote entries. |
|
Unordered category intercepts with an exact zero baseline. |
|
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.