information_reliability#
- pyfcirt.information_reliability(
- model: Model,
- *,
- draw=None,
- points=4096,
- refine_points=8192,
- scrambles=2,
- random_seed=42,
- chunk_size=64,
Approximate reliability at fixed calibration using the full Fisher matrix.
Parameters#
model: ModelFitted MCMC model with a common answered form and one zero-mean Gaussian population. Individual nuisance effects and composite rankings are excluded.
draw: tuple or NoneOne
(chain_label, draw_label).Noneuses posterior means.points,refine_points: intTwo powers of two for Sobol integration; the refinement must use more points. Defaults: 4096 and 8192.
scrambles: intAt least two independent scrambled rules. Default: 2.
random_seed: intNonnegative integration seed. Default: 42.
chunk_size: intMaximum Fisher batch size and number of population integration points processed together. The default is 64 for all models.
Returns#
- xarray.Dataset
Trait-indexed
empiricalandmarginalcoefficients. The empirical coefficient uses scores for the fitted respondents; the marginal coefficient integrates the fixed population.refinement_deltaandscramble_sddescribe numerical sensitivity.marginal_by_scrambleaddsscramble.
Notes#
The coefficient holds calibration at a point and approximates score uncertainty using local expected curvature. For covariate or multigroup models use posterior reliability.
Examples#
Use the fitted binary 2PL model from recursive scoring, whose respondents saw the same eight items.
import pyfcirt as fc
result = fc.information_reliability(model)
print(result[["empirical", "marginal"]].to_dataframe().round(2).to_string())
empirical marginal
trait
theta1 0.67 0.67