ADR-0012: Markov Chain Monte Carlo Returns a Calibration With Its Draws#

Status#

Accepted 2026-11-28

Context#

ADR-0006 gives every calibrator one result, and left to Markov chain Monte Carlo’s card whether it returns draws or summaries. Its sources summarize the draws by their means and standard deviations, the estimates and their standard errors (Kim & Bolt, 2007, p. 46), and check the chains by their sampling histories and their potential scale reduction (pp. 42-43; Gelman & Rubin, 1992, p. 461). A plot of the chains, one of the plots planned for irtlib.plot, needs every chain’s draws, and item fit and model comparison need a calibration whose likelihood is marginal (ADR-0006). The sources monitor the potential scale reduction until it is “near 1” (Gelman & Rubin, 1992, p. 461), with no number to stop at.

Decision#

  • MCMCCalibrator.calibrate returns MCMCCalibration, a subclass of Calibration, whose fields mean what they mean for every method, but that the chains draw rather than maximize:

    • the estimates and each item’s covariances are the posterior means and covariances of the draws kept, over every chain, so the standard errors are the posterior standard deviations;

    • the likelihood is marginal: its log at the estimates, abilities integrated over the default grid, which fit reuses;

    • the log-likelihood after each cycle is the marginal one at the mean of the items the chains drew in each iteration, so the cycles are each chain’s iterations, and the last is not the one at the estimates;

    • the stopping rule is every potential scale reduction below a limit, 1.1 by default, and its final value is the largest of them, with a ConvergenceWarning when one is not below.

  • It adds every chain’s draws of every item’s \((a, b, c, d)\) after the burn-in, shaped (chains, draws, items, 4), the burn-in’s length, each estimate’s potential scale reduction, and how often each step was accepted after the burn-in. The burn-in is not kept.

  • The abilities’ draws are not kept: an item calibration is the result’s job, and EAP abilities are a function of the responses and the items (ADR-0006).

Consequences#

  • A Markov chain Monte Carlo calibration goes wherever a calibration does: item fit, model comparison, and its bank into catsim.

  • Its draws are typed without an optional, so a plot of the chains reads them unchecked.

  • Every summary and potential scale reduction comes from the same draws, the ones the result keeps.

  • The default run, 5 chains of 10,000 iterations, keeps 80 MB of draws for 100 items; fewer iterations, or fewer chains, keep less.

Alternatives Considered#

  • Summaries alone: no trace of a chain and no shape of a posterior beyond its mean and spread.

  • Draws alone, in a result of their own: nothing for item fit and model comparison, and every caller summarizes them again.

  • The draws as an optional field of every Calibration: None for every other method, checked by every caller that reads them.

  • Keeping the burn-in: a plot could show the chains leave their starting values, but every summary would have to skip it, and the draws would take twice the memory by default.

  • Abilities’ draws: an array of chains by draws by examinees, larger than the items’ wherever there are more than four examinees per item, for no use the plan has.