Plots – irtlib.plot#

Plots of item response quantities, drawn with matplotlib.

The module needs matplotlib, which the plot extra installs: pip install 'irtlib[plot]'. Each function takes its data first, as irtlib’s own objects and arrays, and its options as keyword-only arguments, draws on the ax it is given or on the axes of a new figure, and returns the axes it drew on. Each draws on one axes with one y scale: views of two quantities, such as an item’s characteristic and information curves, are two calls on axes the caller lays out. A plot of one series takes a label, so that several drawn on one axes compare. Plots follow the caller’s matplotlib style, set with plt.style.use or plt.style.context. ADR-0011: Plotting Is an Optional Module With One Calling Convention gives the reasons.

Items are labelled by their names in an irtlib.ItemBank; an item matrix names them by position, as a bank built from it does.

Items#

irtlib.plot.item_curve(items: ItemBank | NDArray[floating[Any]], item: int, *, kind: Curve | str = Curve.ICC, theta: ArrayLike | None = None, max_info: bool = True, parameters: bool = True, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot one item’s characteristic curve or its information curve.

The curve spans four units of ability on each side of the item’s difficulty, and the information curve also four on each side of its peak, unless theta gives the abilities. It is labelled with the item’s name for a legend. A box in the upper corner over the curve’s lower end gives the item’s name and parameters, to three significant digits. Both curves of an item go on two axes that share the ability axis, one call each, as the first example shows.

../_images/item_curve-both.svg

Fig. 1 One item’s characteristic curve above and its information curve below. The dot marks the peak.#

../_images/item_curve-items.svg

Fig. 3 The characteristic curves of four items above and their information curves below, on one range.#

../_images/item_curve-recovered.svg

Fig. 5 The characteristic curve of a three-parameter item, and the curve of the two-parameter model calibrated from 1,000 examinees’ responses to it and nine other items.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank, whose names label them, or as an item matrix, whose items are named by position.

itemint

The item’s position in items; ItemBank.index(name) gives the position of a named item.

kindCurve or str, optional

The curve: Curve.ICC or "icc" for the characteristic curve, the default, Curve.IIC or "iic" for the information curve.

thetaarray-like or None, optional

The abilities to draw the curve at, at least two, finite and increasing. Default is None, which spans the item as described above.

max_infobool, optional

Whether to mark the ability at which the item gives the most information with a dot, on the information curve only, and when theta is given only if that ability lies within it, its ends included. Default is True.

parametersbool, optional

Whether to write the item’s name and parameters in a box. Default is True.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend. Default is None, which labels it with the item’s name.

Returns:
matplotlib.axes.Axes

The axes the curve is on.

Raises:
TypeError

If item is not an integer, or theta holds values that are not real numbers, bools included, before any figure is created.

ValueError

If items is not a valid item matrix, item is not a position in it, kind is not a Curve or one of its values, or theta is not a one-dimensional array of at least two finite and increasing abilities, before any figure is created.

irtlib.plot.item_envelope(calibration: Calibration, item: int, *, theta: ArrayLike | None = None, level: float = 0.95, draws: int = 1000, rng: int | Generator | None = None, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot an item’s characteristic curve from a calibration, with a pointwise confidence envelope around it.

irtlib draws draws parameter sets from a normal distribution centred on the item’s estimates, with their large-sample covariance, the inverse of the information (Chalmers [2018, p. 4]). At each ability the envelope runs between the drawn curves’ percentiles that leave (1 - level) / 2 of them on each side, as Patz and Junker [1999, p. 165] draw it from posterior draws. The sets are drawn on the parameters the calibration estimates (ADR-0008: Scale, Priors and Fixed Parameters): the discrimination, minus the discrimination times the difficulty, and the logits of the asymptotes. Every drawn asymptote lies strictly between 0 and 1, the band around an estimated asymptote is asymmetric, and a poorly estimated discrimination draws some falling curves into the band.

../_images/item_envelope.svg

Fig. 7 A three-parameter item calibrated from 2,000 examinees’ responses to 20 items, with its 95% envelope.#

Parameters:
calibrationirtlib.calibration.Calibration

The calibration, with the covariance of each item’s estimates.

itemint

The item’s row in calibration.estimates, its column in the response matrix.

thetaarray-like or None, optional

The abilities to draw at, at least two, finite and increasing. Default is None, which spans four units of ability on each side of the item’s difficulty.

levelfloat, optional

The share of the drawn curves the envelope spans at each ability, strictly between 0 and 1. Default is 0.95.

drawsint, optional

The number of parameter sets drawn, at least one. Default is 1000, the number of curves Patz and Junker [1999, p. 165] draw.

rngint, numpy.random.Generator or None, optional

Where the parameter sets are drawn from. None, the default, draws fresh randomness, so every call draws another envelope. An int seeds a new generator, so the same seed draws the same envelope. A generator is drawn from as is, and the call advances it.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend. Default is None, which labels it with the item’s name.

Returns:
matplotlib.axes.Axes

The axes the curve and its envelope are on: the envelope in the curve’s colour, labelled with level.

Raises:
TypeError

If item or draws is not an integer, or theta holds values that are not real numbers, bools included, before any figure is created.

ValueError

If item is not a row of the calibration, the calibration has no covariances, the item’s estimates are not an item’s parameters, none of them was estimated, an estimated asymptote is 0 or 1, the covariance of its estimates is not finite or not positive definite, theta is not a one-dimensional array of at least two finite and increasing abilities, level is not strictly between 0 and 1, or draws is below one, before any figure is created.

class irtlib.plot.Curve(*values)[source]#

The curves item_curve() draws.

Attributes:
ICC

The item characteristic curve, the probability of a correct response against ability.

IIC

The item information curve, the item’s information against ability.

Test functions#

irtlib.plot.bank_information(items: ItemBank | NDArray[floating[Any]], *, theta: ArrayLike | None = None, peaks: bool = False, interval: tuple[float, float] | None = None, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the test information of a set of items against ability: the sum of the items’ information.

To compare item sets, such as the forms of a test, draw each on one axes with its label. The two options mark where the items measure: peaks ticks the ability at which each item gives the most information along the bottom of the axes, and interval shades the information over an interval of abilities and labels the shading, for a legend, with that information and its share of the test’s information over the whole ability scale.

../_images/bank_information-forms.svg

Fig. 9 The information of a 20-item test and of each of its halves.#

../_images/bank_information-interval.svg

Fig. 11 The information of the same test, each item’s peak ticked, and its share between -1 and 1.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank or as an item matrix; a subset of a bank’s items is a subset of its matrix’s rows.

thetaarray-like or None, optional

The abilities to draw the curve at, at least two, finite and increasing. Default is None, which draws it from -4 to 4.

peaksbool, optional

Whether to tick the ability at which each item gives the most information, its difficulty for a one- or two-parameter item, in the curve’s colour, for the items whose peak lies within theta. The ticks are labelled “Item peaks”, after label when one is given. Default is False.

intervaltuple of float or None, optional

The lower and upper bound of the abilities to shade the information over, possibly infinite. The shading keeps within theta, and its label gives the information over the whole interval even where none of it is drawn. Default is None, which shades nothing.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the curve is on.

Raises:
TypeError

If theta or interval holds values that are not real numbers, before any figure is created.

ValueError

If items is not a valid item matrix, theta is not a one-dimensional array of at least two finite and increasing abilities, or interval is not a pair whose lower bound is below its upper bound, before any figure is created.

irtlib.plot.standard_error(items: ItemBank | NDArray[floating[Any]], *, theta: ArrayLike | None = None, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the standard error of a set of items against ability: one over the square root of their information.

The standard error is in units of ability. Where the items give no information it is infinite, and the curve leaves those abilities out. The information and the standard error of one test go on two axes that share the ability axis, one call each, as the example shows.

../_images/standard_error.svg

Fig. 13 The information of a 20-item test and of its first ten items above, their standard errors below.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank or as an item matrix; a subset of a bank’s items is a subset of its matrix’s rows.

thetaarray-like or None, optional

The abilities to draw the curve at, at least two, finite and increasing. Default is None, which draws it from -4 to 4.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the curve is on.

Raises:
TypeError

If theta holds values that are not real numbers, before any figure is created.

ValueError

If items is not a valid item matrix, or theta is not a one-dimensional array of at least two finite and increasing abilities, before any figure is created.

irtlib.plot.expected_score(items: ItemBank | NDArray[floating[Any]], *, theta: ArrayLike | None = None, proportion: bool = False, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the expected number of correct responses to a set of items against ability: the test characteristic curve.

The expected number correct is the sum of the items’ characteristic curves. With proportion, the curve is the expected proportion correct, the relative score of Wright and Stone [1979, p. 132], on an axis from 0 to 1.

../_images/expected_score.svg

Fig. 15 The expected number correct on a 20-item test.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank or as an item matrix; a subset of a bank’s items is a subset of its matrix’s rows.

thetaarray-like or None, optional

The abilities to draw the curve at, at least two, finite and increasing. Default is None, which draws it from -4 to 4.

proportionbool, optional

Whether to draw the expected proportion correct rather than the number. Default is False.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the curve is on.

Raises:
TypeError

If theta holds values that are not real numbers, before any figure is created.

ValueError

If items is not a valid item matrix, or theta is not a one-dimensional array of at least two finite and increasing abilities, before any figure is created.

irtlib.plot.reliability(items: ItemBank | NDArray[floating[Any]], *, theta: ArrayLike | None = None, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the reliability of a set of items against ability, for abilities distributed N(0, 1).

The reliability at each ability is irtlib.irt.reliability()’s, on an axis from 0 to 1: values close to 1 mean a precise test there.

../_images/reliability.svg

Fig. 17 The reliability of a 20-item test and of its first ten items.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank or as an item matrix; a subset of a bank’s items is a subset of its matrix’s rows.

thetaarray-like or None, optional

The abilities to draw the curve at, at least two, finite and increasing. Default is None, which draws it from -4 to 4.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the curve is on.

Raises:
TypeError

If theta holds values that are not real numbers, before any figure is created.

ValueError

If items is not a valid item matrix, or theta is not a one-dimensional array of at least two finite and increasing abilities, before any figure is created.

irtlib.plot.relative_efficiency(items: ItemBank | NDArray[floating[Any]], reference: ItemBank | NDArray[floating[Any]], *, theta: ArrayLike | None = None, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the relative efficiency of a set of items over a reference set against ability: their information’s ratio.

The relative efficiency (Wright and Masters [1982, p. 177]) is the information of items over that of reference at each ability. irtlib draws it on a logarithmic axis, on which efficiencies of 1/2 and 2 lie equally far from the dashed line at 1; above the line, items measure more precisely. Where either set’s information is below double precision of its largest over theta, the curve leaves those abilities out.

../_images/relative_efficiency.svg

Fig. 19 The relative efficiency of the first ten items of a 20-item test over its last ten.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The items whose efficiency is drawn, as a bank or as an item matrix.

referenceirtlib.ItemBank or numpy.ndarray

The items they are compared with, as a bank or as an item matrix.

thetaarray-like or None, optional

The abilities to draw the curve at, at least two, finite and increasing. Default is None, which draws it from -4 to 4.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the curve is on.

Raises:
TypeError

If theta holds values that are not real numbers, before any figure is created.

ValueError

If items or reference is not a valid item matrix, or theta is not a one-dimensional array of at least two finite and increasing abilities, before any figure is created.

Examinees#

irtlib.plot.item_person_map(items: ItemBank | NDArray[floating[Any]], theta: ArrayLike, *, ax: Axes | None = None, title: str | None = None) → Axes[source]#

Plot examinees’ abilities above the axis and, below it, the abilities where the items inform most.

Both histograms share one \(\theta\) scale and its bins, and each shows shares, so a bank and a population of any sizes compare: the examinees’ bars sum to 1 above the axis and the items’ bars to 1 below it. An item sits at ItemBank.max_info_thetas, which is its difficulty for one- and two-parameter items.

../_images/item_person_map.svg

Fig. 21 A 100-item bank against a population of 500 examinees.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank or as an item matrix.

thetaarray_like

The examinees’ abilities, true or estimated, as finite numbers.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the plot is on.

Raises:
TypeError

If theta holds values that are not real numbers, before any figure is created.

ValueError

If items is not a valid item matrix, or theta is not a non-empty one-dimensional array of finite numbers, before any figure is created.

irtlib.plot.ability_histogram(theta: ArrayLike, *, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot how many examinees have each ability, as a histogram.

The bins are NumPy’s "auto" bins of the abilities. Stacked over bank_information() with peaks, sharing the ability axis, it shows whether a test measures where its examinees are, as the example does.

../_images/ability_histogram.svg

Fig. 23 The abilities of 500 examinees, above the information of a 20-item test with its items’ peaks.#

Parameters:
thetaarray_like

The examinees’ abilities, true or estimated, as finite numbers.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The histogram’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the histogram is on.

Raises:
TypeError

If theta holds values that are not real numbers, before any figure is created.

ValueError

If theta is not a non-empty one-dimensional array of finite numbers, before any figure is created.

irtlib.plot.likelihood(responses: ArrayLike, items: ItemBank | NDArray[floating[Any]], *, estimate: float | None = None, true_theta: float | None = None, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the likelihood of one examinee’s responses across abilities, relative to its maximum, with an estimate.

The curve is the likelihood of the responses to the items answered, divided by its maximum, from -6 to 6. A dashed line in the curve’s colour marks the estimate, and a dotted line the true ability. Responses whose likelihood is highest at an infinity, such as all correct or all incorrect, rise to an edge of the range, where the maximum likelihood estimate sits; the Maximum Likelihood page gives the estimate. A mark outside -6 to 6 widens the axis past the curve.

../_images/likelihood.svg

Fig. 25 The likelihood of one examinee’s responses to 10 items.#

Parameters:
responsesarray_like

The examinee’s responses, one per item: 1 or True for a correct response, 0 or False for an incorrect one, and NaN for an item not answered.

itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank or as an item matrix, one per response.

estimatefloat or None, optional

The estimate to mark, such as an EAP estimate or an adaptive test’s final one. Default is None, which marks the maximum likelihood estimate within -6 and 6.

true_thetafloat or None, optional

The examinee’s true ability, marked by a dotted line. Default is None, which marks none.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the curve is on.

Raises:
TypeError

If the responses are neither Booleans, integers nor floats, before any figure is created.

ValueError

If items is not a valid item matrix, responses does not hold one response per item, a response is not 0, 1 or NaN, no item is answered, or estimate or true_theta is not finite, before any figure is created.

irtlib.plot.prior_posterior(responses: ArrayLike, items: ItemBank | NDArray[floating[Any]], *, grid: QuadratureGrid | None = None, log_prior: LogPrior | None = None, ax: Axes | None = None, title: str | None = None) → Axes[source]#

Plot the prior, the likelihood and the posterior of one examinee’s responses, each as a density over a grid.

Each curve integrates to 1 over the grid’s nodes, with their weights: the prior dotted, the likelihood dashed and the posterior solid, each labelled. With no item answered, the likelihood is flat and the posterior is the prior. The posterior is the one the Expected A Posteriori estimate is the mean of.

../_images/prior_posterior.svg

Fig. 27 The posterior of one examinee after 2 and after 20 items: the likelihood comes to dominate the prior.#

Parameters:
responsesarray_like

The examinee’s responses, one per item: 1 or True for a correct response, 0 or False for an incorrect one, and NaN for an item not answered.

itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank or as an item matrix, one per response.

gridirtlib.quadrature.QuadratureGrid or None, optional

The nodes the curves are computed at. Default is QuadratureGrid.uniform(), 121 nodes on [-6, 6], the grid of irtlib.ability.expected_a_posteriori().

log_priorirtlib.quadrature.LogPrior or None, optional

The prior’s log-density. Default is normal_log_prior(), the standard normal.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the curves are on.

Raises:
TypeError

If the responses are neither Booleans, integers nor floats, before any figure is created.

ValueError

If items is not a valid item matrix, responses does not hold one response per item, a response is not 0, 1 or NaN, or the log-prior is NaN or +inf at a node or has no mass on the grid, before any figure is created.

irtlib.plot.population_posterior(responses: ArrayLike, items: ItemBank | NDArray[floating[Any]], *, grid: QuadratureGrid | None = None, log_prior: LogPrior | None = None, ax: Axes | None = None, title: str | None = None) → Axes[source]#

Plot the mean of the examinees’ posteriors over a grid against the prior, each as a density.

Each examinee’s posterior is the one prior_posterior() draws, and every examinee counts once in the mean, whatever the number of items answered. Both curves are scaled to integrate to 1 over the grid’s nodes, with their weights: the mean posterior solid and the prior dotted, each labelled for a legend.

../_images/population_posterior.svg

Fig. 29 The mean posterior of 1,000 examinees of abilities drawn from N(0.5, 1.2²), against the N(0, 1) prior.#

Parameters:
responsesarray_like

The response matrix, one row per examinee and one column per item: 1 or True for a correct response, 0 or False for an incorrect one, and NaN for a missing one.

itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank or as an item matrix, one per column of responses.

gridirtlib.quadrature.QuadratureGrid or None, optional

The nodes the posteriors are computed at, such as a calibration’s grid. Default is QuadratureGrid.uniform(), 121 nodes on [-6, 6], the grid of irtlib.ability.expected_a_posteriori().

log_priorirtlib.quadrature.LogPrior or None, optional

The prior’s log-density. Default is normal_log_prior(), the standard normal.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the curves are on.

Raises:
TypeError

If the responses are neither Booleans, integers nor floats, before any figure is created.

ValueError

If items is not a valid item matrix, responses is not a matrix with one column per item and at least one row, a response is not 0, 1 or NaN, or the log-prior is NaN or +inf at a node or has no mass on the grid, before any figure is created.

irtlib.plot.precision(estimates: AbilityEstimates, items: ItemBank | NDArray[floating[Any]], *, prior_sd: float | None = None, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot each examinee’s standard error against their estimate, with the standard error of the test.

Each examinee with a finite estimate and a finite standard error is an open circle; the others are left out. The line is the standard error at each ability of an examinee who answered every item: the Maximum Likelihood standard error or, with prior_sd, the Maximum A Posteriori standard error under a normal prior of that standard deviation. It spans the estimates and half a unit of ability past them on each side.

../_images/precision.svg

Fig. 31 The standard errors of 500 examinees’ EAP estimates on a 20-item test.#

Parameters:
estimatesirtlib.ability.AbilityEstimates

The examinees’ estimates and their standard errors, from any of irtlib.ability’s estimators.

itemsirtlib.ItemBank or numpy.ndarray

The items the estimates were computed from, as a bank or as an item matrix.

prior_sdfloat or None, optional

The standard deviation of the normal prior the estimates were computed with, for MAP and EAP estimates only; the line adds its precision to the test’s information. Default is None, the line of maximum likelihood and weighted likelihood estimates.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The circles’ label, for a legend. Default is None, which labels them “Examinees”.

Returns:
matplotlib.axes.Axes

The axes the plot is on.

Raises:
ValueError

If items is not a valid item matrix, prior_sd is not finite and positive, or no examinee has a finite estimate and standard error, before any figure is created.

irtlib.plot.number_correct_conversion(estimates: NumberCorrectEstimates, *, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the EAP estimate of each number correct, with bars of one standard error on each side.

The dots, joined by a line, are the conversion table of a test scored by its number correct, from 0 to the number of items. The EAP by Number Correct page gives the estimates.

../_images/number_correct_conversion.svg

Fig. 33 The EAP estimate of each number correct on a 20-item test, under a standard normal prior.#

Parameters:
estimatesirtlib.ability.NumberCorrectEstimates

The estimates by number correct, as irtlib.ability.number_correct_eap() returns them.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The line’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the estimates are on.

Fit#

The plots of item fit and of person fit: how the responses agree with the calibrated items, item by item and examinee by examinee.

irtlib.plot.empirical_icc(items: ItemBank | NDArray[floating[Any]], item: int, responses: ArrayLike, theta: ArrayLike, *, groups: int = 10, level: float = 0.95, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot an item’s characteristic curve with the proportion correct observed in groups of examinees by ability.

The examinees who answered the item are ranked by ability and split into ten groups by default, of nearly equal sizes, as Yen [1981] (p. 246) groups them; examinees of equal ability stay in one group, which can leave fewer groups, or groups of less equal sizes. Each dot is a group’s proportion correct at its median ability (Yen [1981], p. 248), in the curve’s colour, with the central confidence interval of Clopper and Pearson [1934] (pp. 406-407) at level.

../_images/empirical_icc.svg

Fig. 35 An item calibrated as a 2PL from responses simulated with guessing, against ten groups of examinees.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The calibrated items, as a bank, whose names label them, or as an item matrix, whose items are named by position.

itemint

The item’s position in items; ItemBank.index(name) gives the position of a named item.

responsesarray_like

The response matrix: one row per examinee, one column per item of items, 1 or 0, and NaN for a missing response. Examinees who did not answer the item are left out.

thetaarray_like

Each examinee’s ability estimate, one per row of responses, such as the theta of an AbilityEstimates; finite for every examinee who answered the item.

groupsint, optional

The number of groups, at least 1 and at most the number of examinees who answered the item; fewer when ties in ability join groups. Default is 10.

levelfloat, optional

The confidence level of each group’s interval, strictly between 0 and 1. Default is 0.95, the first of the two levels Clopper and Pearson [1934] (p. 405) chart.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend, which the dots’ label follows with “, observed”. Default is None, which labels it with the item’s name.

Returns:
matplotlib.axes.Axes

The axes the curve and the groups are on.

Raises:
TypeError

If item or groups is not an integer, or the responses or theta are not numbers, before any figure is created.

ValueError

If items is not a valid item matrix, item is not a position in it, responses is not a response matrix with one column per item, theta does not hold one ability per examinee or is not finite for an examinee who answered the item, groups is less than 1 or more than the examinees who answered the item, or level is not strictly between 0 and 1, before any figure is created.

irtlib.plot.sx2_item(items: ItemBank | NDArray[floating[Any]], item: int, fit: ItemFit, *, statistic: bool = True, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot an item’s proportion correct at each number correct, observed and as S-X² expects it.

The score groups are those of S-X² (Orlando and Thissen [2000], p. 54), numbers correct 1 to M - 1 for M items, before any is collapsed. A line joins the expected proportions and dots of its colour mark the observed ones, none where no examinee has that number correct. A box in the lower right gives the item’s name, S-X², its degrees of freedom and its p-value, to three significant digits.

../_images/sx2_item.svg

Fig. 37 An item calibrated as a 2PL from responses simulated with guessing, by number correct.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The calibrated items, as a bank, whose names label them, or as an item matrix, whose items are named by position.

itemint

The item’s position in items; ItemBank.index(name) gives the position of a named item.

fitirtlib.fit.ItemFit

The S-X² of the same items, in the same order, as irtlib.fit.s_x2() returns it.

statisticbool, optional

Whether to write the item’s name and statistic in a box. Default is True.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The line’s label, for a legend, which the dots’ label follows with “, observed”. Default is None, which labels it with the item’s name.

Returns:
matplotlib.axes.Axes

The axes the proportions are on.

Raises:
TypeError

If item is not an integer, before any figure is created.

ValueError

If items is not a valid item matrix, item is not a position in it, or fit is not the S-X² of as many items, before any figure is created.

irtlib.plot.pathway_map(items: ItemBank | NDArray[floating[Any]], fit: MeanSquares, *, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot each item’s standardized infit against its difficulty, with the band from -2 to 2 it is expected within.

Dashed lines mark the band and a solid line 0, as in Figure 5.4c of Wright and Masters [1982] (pp. 102-103), where most items fall within the band. The items outside it are named. An item whose standardized infit is NaN is left out.

../_images/pathway_map.svg

Fig. 39 A 1PL calibration of 20 items, item_03 simulated flatter and item_12 steeper than the rest. In this sample most infits fall below 0, as they do when the abilities come from the same responses.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The calibrated items, as a bank, whose names label them, or as an item matrix, whose items are named by position.

fitirtlib.fit.MeanSquares

The mean squares of the same items, in the same order, as irtlib.fit.mean_squares() returns them.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The items’ label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the items are on.

Raises:
ValueError

If items is not a valid item matrix, or fit does not hold one standardized infit per item, before any figure is created.

irtlib.plot.invariance(first: Calibration, second: Calibration, *, level: float = 0.95, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot each item’s difficulty from one calibration against its difficulty from another, with a confidence band.

Each calibration’s difficulties are centred on 0 over the items both estimate and drawn against the identity line, with the confidence band at level of Wright and Masters [1982] (pp. 114-116, Figure 5.9), built from the standard error of each item’s difference, in the items’ colour. The items outside the band are named; an item without a difficulty and a standard error in both calibrations is left out.

../_images/invariance.svg

Fig. 41 CML calibrations of a 1PL test on the examinees with the lower and the higher half of the scores.#

Parameters:
first, secondirtlib.calibration.Calibration

The two calibrations of the same items, in the same order, each with standard errors, such as calibrations on two groups of examinees; first gives the x axis and second the y axis.

levelfloat, optional

The confidence level of the band, strictly between 0 and 1. Default is 0.95.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The items’ label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the items are on.

Raises:
ValueError

If a calibration has no standard errors, the two have different numbers of items, no item has a difficulty and a standard error in both, or level is not strictly between 0 and 1, before any figure is created.

irtlib.plot.person_profile(items: ItemBank | NDArray[floating[Any]], responses: ArrayLike, theta: ArrayLike, examinee: int, *, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot one examinee’s standardized residual on each item, the items in order of difficulty.

A residual (Mean Squares) is positive for a correct response and negative for an incorrect one, and infinite beyond the range of floats. The items run from the easiest to the hardest, as Wright and Stone [1979] (pp. 166, 170) read a response pattern, joined as in their Figure 7.9.3 (p. 180), with dashed lines at -2 and 2, beyond which Wright and Masters [1982] (p. 99) call a response surprising. A skipped item leaves a gap; with at most 30 items, the ticks name them.

../_images/person_profile.svg

Fig. 43 An examinee who answered the four easiest items of a 2PL test incorrectly.#

Parameters:
itemsirtlib.ItemBank or numpy.ndarray

The items, as a bank, whose names label them, or as an item matrix, whose items are named by position.

responsesarray_like

The response matrix: one row per examinee, one column per item of items, 1 or 0, and NaN for a missing response.

thetaarray_like

Each examinee’s ability, one per row of responses, such as the theta of an AbilityEstimates; finite for examinee.

examineeint

The examinee’s row in responses.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The residuals’ label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the residuals are on.

Raises:
TypeError

If examinee is not an integer, or the responses or theta are not numbers, before any figure is created.

ValueError

If items is not a valid item matrix, responses is not a response matrix with one column per item, theta does not hold one ability per examinee, examinee is not a row of responses, or the examinee’s ability is not finite or the examinee answered no item, before any figure is created.

irtlib.plot.person_fit_map(theta: ArrayLike, fit: MeanSquares, *, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot each examinee’s standardized infit against their ability, with the band from -2 to 2 it is expected within.

An examinee’s infit is standardized as an item’s is, so the band is the one of pathway_map(): dashed lines at -2 and 2 and a solid line at 0. An examinee above the band answered less predictably than the model expects, one below it more (Wright and Masters [1982], p. 109). An examinee whose ability or standardized infit is not finite is left out.

../_images/person_fit_map.svg

Fig. 45 500 examinees of a 2PL test, the first 20 of whom answered every item at random.#

Parameters:
thetaarray_like

Each examinee’s ability, such as the theta of an AbilityEstimates.

fitirtlib.fit.MeanSquares

The mean squares of the same examinees, in the same order, as irtlib.fit.person_mean_squares() returns them.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The examinees’ label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the examinees are on.

Raises:
TypeError

If theta holds anything but numbers, before any figure is created.

ValueError

If fit does not hold a one-dimensional array of standardized infits, or theta does not hold one ability per entry of fit, before any figure is created.

Calibration diagnostics#

The plots of a calibration: how close its estimates come to the items a simulation drew the responses from, how precise they are and how its algorithm or its chains converged; and how close ability estimates come to the abilities the responses were drawn at.

irtlib.plot.parameter_recovery(calibration: Calibration, true_items: ItemBank | NDArray[floating[Any]], *, parameter: Parameter | str = Parameter.B, level: float = 0.95, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot each item’s estimate of one parameter against its true value, with a confidence interval, as in a simulation.

Each item is a dot at its true and estimated values, with a bar of k standard errors each side, k the standard normal quantile of (1 + level) / 2, against the identity line on equal scales, as in Figure 4.3b of Wright and Masters [1982] (p. 74). Items whose interval misses the truth are named; those without a finite estimate and standard error are left out.

../_images/parameter_recovery.svg

Fig. 47 The difficulties of a 2PL calibration of 1,000 simulated examinees against those they were drawn from.#

Parameters:
calibrationirtlib.calibration.Calibration

The calibration, with standard errors.

true_itemsirtlib.ItemBank or numpy.ndarray

The items the responses were drawn from, one per item of the calibration, in the same order, as a bank, whose names label them, or as an item matrix, whose items are named by position.

parameterParameter or str, optional

The parameter: "a", "b", the default, "c" or "d", or a Parameter.

levelfloat, optional

The confidence level of each interval, strictly between 0 and 1. Default is 0.95.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The items’ label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the items are on.

Raises:
ValueError

If true_items is not a valid item matrix or holds another number of items than the calibration, parameter is not a Parameter or one of its values, the calibration has no standard errors, no item with a finite estimate and standard error of the parameter, or one estimate shared by every item, as the 1PL’s slope, or level is not strictly between 0 and 1, before any figure is created.

irtlib.plot.item_estimates_ci(calibration: Calibration, *, parameter: Parameter | str = Parameter.B, level: float = 0.95, ax: Axes | None = None, title: str | None = None) → Axes[source]#

Plot each item’s estimate of one parameter with its confidence interval, the items sorted by their estimates.

Each item is a dot on its own row, the lowest estimate at the bottom, with a bar of k standard errors each side, k the standard normal quantile of (1 + level) / 2. The ticks name the items by position, or past 30 number the rows, so each call needs axes of its own. Items without a finite estimate and standard error are left out.

../_images/item_estimates_ci.svg

Fig. 49 The difficulties of a 2PL calibration of 20 items from 500 simulated examinees.#

Parameters:
calibrationirtlib.calibration.Calibration

The calibration, with standard errors.

parameterParameter or str, optional

The parameter: "a", "b", the default, "c" or "d", or a Parameter.

levelfloat, optional

The confidence level of each interval, strictly between 0 and 1. Default is 0.95.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the items are on.

Raises:
ValueError

If parameter is not a Parameter or one of its values, the calibration has no standard errors, no item with a finite estimate and standard error of the parameter, or one estimate shared by every item, as the 1PL’s slope, or level is not strictly between 0 and 1, before any figure is created.

class irtlib.plot.Parameter(*values)[source]#

The item parameter a plot of a calibration draws.

Attributes:
A

The discrimination \(a\).

B

The difficulty \(b\).

C

The guessing parameter \(c\).

D

The upper asymptote \(d\).

irtlib.plot.estimator_bias(true_theta: ArrayLike, theta: ArrayLike, *, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the mean error of ability estimates at each true ability of a simulation, against a line at 0.

The examinees are grouped by their true ability, and each group is a dot at its true ability and the mean of its estimates less that ability, the dots joined in order, as Warm [1989] (pp. 431, 433, Figure 1) plot the error of each estimator over 1,000 examinees at each of 17 abilities. One call draws one estimator; several on one axes compare, each with its label.

../_images/estimator_bias.svg

Fig. 51 The ML, WLE and EAP estimates of 600 examinees at each of 11 abilities on a 20-item 2PL test.#

Parameters:
true_thetaarray_like

Each examinee’s true ability, finite, the same for every examinee of a group, as in a simulation that draws many examinees at each of a few abilities.

thetaarray_like

Each examinee’s ability estimate, in the same order, finite, such as the theta of an AbilityEstimates from bounded maximum likelihood.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The estimator’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the mean errors are on.

Raises:
TypeError

If true_theta or theta holds anything but numbers, before any figure is created.

ValueError

If true_theta and theta are not one-dimensional arrays of the same length, at least one, of finite numbers, before any figure is created.

irtlib.plot.convergence(calibration: Calibration, *, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot a calibration’s log-likelihood after each cycle of its algorithm, the cycles joined in order.

Each dot is one of the calibration’s log_likelihoods at its cycle, from cycle 1, as Varadhan and Roland [2004] (p. 60, Figure 5) plot the log-likelihood of EM and of its accelerations against the number of EM steps evaluated. One call draws one calibration; several on one axes compare, each with its label.

../_images/convergence.svg

Fig. 53 The marginal log-likelihood of a 2PL calibration by plain EM and by EM accelerated with SQUAREM.#

Parameters:
calibrationirtlib.calibration.Calibration

The calibration, by any method.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The calibration’s label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the log-likelihoods are on.

Raises:
ValueError

If the calibration stopped before its first cycle, so that it has no log-likelihood to draw, before any figure is created.

irtlib.plot.mcmc_trace(calibration: MCMCCalibration, item: int, *, parameter: Parameter | str = Parameter.B, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot the draws of one item parameter from every chain of a Markov chain Monte Carlo calibration, by iteration.

Each chain is a line of its draws kept after the burn-in, at the iterations that drew them, in the next colour of the style’s cycle, as Kim and Bolt [2007] plot a chain’s history (p. 43, Figure 2; p. 45, Figure 3) and read convergence from the overlap of several chains’ histories (p. 42).

../_images/mcmc_trace.svg

Fig. 55 The difficulty of one item of a 2PL calibration by three chains of 2,000 iterations, the first 1,000 the burn-in.#

Parameters:
calibrationirtlib.mcmc.MCMCCalibration

The calibration, with its chains’ draws.

itemint

The item’s position in the calibration.

parameterParameter or str, optional

The parameter: "a", "b", the default, "c" or "d", or a Parameter.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The chains’ label, for a legend, which each chain’s number follows. Default is None, which labels the chains “chain 1”, “chain 2” and so on.

Returns:
matplotlib.axes.Axes

The axes the chains are on.

Raises:
TypeError

If calibration is not an MCMCCalibration, or item is not an integer, a bool included, before any figure is created.

ValueError

If item is not a position in the calibration, or parameter is not a Parameter or one of its values, or one the calibration does not draw, which has no standard error, before any figure is created.

Screening#

irtlib.plot.number_correct_histogram(responses: ArrayLike, *, expected: NumberCorrectEstimates | None = None, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot how many examinees got each number correct, from 0 to the number of items, and how many a model expects.

An examinee’s number correct counts the items answered correctly, and every number from 0 to the number of items has a bar, empty or not. With expected, dots joined by a line mark the number of examinees the model expects at each number correct, its probability times the number of examinees, both labelled for a legend; the EAP by Number Correct page gives the probabilities.

../_images/number_correct_histogram.svg

Fig. 57 1,000 examinees on a 20-item test, against the counts a 2PL calibration of their responses expects.#

Parameters:
responsesarray_like

The response matrix, one row per examinee and one column per item: 1 or True for a correct response, 0 or False for an incorrect one, and NaN for a missing one, which expected does not allow.

expectedirtlib.ability.NumberCorrectEstimates or None, optional

The model’s estimates by number correct on the same items, such as number_correct_eap(calibration.estimates, grid=calibration.grid), whose probabilities give the counts the model expects. Default is None, which draws the observed counts alone.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The bars’ label, for a legend. Default is None, which sets none, or “Observed” with expected.

Returns:
matplotlib.axes.Axes

The axes the bars are on.

Raises:
TypeError

If the responses are neither Booleans, integers nor floats, before any figure is created.

ValueError

If responses is not a matrix with at least one row and one column, or a response is not 0, 1 or NaN; or, with expected, a response is missing or expected is not of the same number of items, before any figure is created.

irtlib.plot.rest_score_curve(responses: ArrayLike, item: int, *, smooth: bool = False, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot an item’s proportion correct at each rest score, the number correct on the other items.

Only examinees who answered the item count; a missing response elsewhere adds nothing to a rest score (Classical Item Statistics). Each rest score some examinee has is a dot, joined in order. With smooth, the dots stand alone and a line in their colour is the kernel smooth of Mazza et al. [2014] (pp. 3-6), over rest scores rather than ability estimates, with their sample standard deviation in the bandwidth.

../_images/rest_score_curve.svg

Fig. 59 An item with a guessing parameter of 0.25, on a 15-item test taken by 3,000 examinees.#

Parameters:
responsesarray_like

The response matrix, one row per examinee and one column per item: 1 or True for a correct response, 0 or False for an incorrect one, and NaN for a missing one.

itemint

The item’s position, its column in responses.

smoothbool, optional

Whether to draw the kernel smooth, in place of the lines that join the dots. Default is False.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The curve’s label, for a legend, on the smooth when there is one. Default is None, which names the item by its position, as a bank built from the item matrix does.

Returns:
matplotlib.axes.Axes

The axes the curve is on.

Raises:
TypeError

If the responses are neither Booleans, integers nor floats, or item is not an integer, before any figure is created.

ValueError

If responses is not a matrix, a response is not 0, 1 or NaN, item is not a column of it, no examinee answered the item, or, with smooth, the rest scores take a single value, before any figure is created.

irtlib.plot.item_statistics(responses: ArrayLike, *, ax: Axes | None = None, title: str | None = None, label: str | None = None) → Axes[source]#

Plot each item’s item-rest correlation against its proportion correct, one dot per item.

An item whose proportion correct or item-rest correlation is undefined, NaN, is left out. The Classical Item Statistics page gives both statistics.

../_images/item_statistics.svg

Fig. 61 The 20 items of a test taken by 1,000 examinees, item 3 miskeyed.#

Parameters:
responsesarray_like

The response matrix, one row per examinee and one column per item: 1 or True for a correct response, 0 or False for an incorrect one, and NaN for a missing one.

axmatplotlib.axes.Axes or None, optional

The axes to draw on. Default is None, which draws on the axes of a new figure.

titlestr or None, optional

The plot title. Default is None, which sets none.

labelstr or None, optional

The dots’ label, for a legend. Default is None, which sets none.

Returns:
matplotlib.axes.Axes

The axes the dots are on.

Raises:
TypeError

If the responses are neither Booleans, integers nor floats, before any figure is created.

ValueError

If responses is not a matrix, a response is not 0, 1 or NaN, or no item has both statistics, before any figure is created.

References#

[Cha18]

R. Philip Chalmers. Numerical approximation of the observed information matrix with Oakes' identity. British Journal of Mathematical and Statistical Psychology, 71(3):415–436, 2018. Open copy: https://onlinelibrary.wiley.com/doi/pdfdirect/10.1111/bmsp.12127. doi:10.1111/bmsp.12127.

[CP34] (1,2)

C. J. Clopper and E. S. Pearson. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26(4):404–413, 1934. Not openly available. doi:10.1093/biomet/26.4.404.

[KB07]

Jee-Seon Kim and Daniel M. Bolt. Estimating item response theory models using Markov chain Monte Carlo methods. Educational Measurement: Issues and Practice, 26(4):38–51, 2007. Open copy: https://www.ncme.org/wp-content/uploads/2025/10/Module-27-Markov-chain-Monte-Carlo-Estimation-Kim-1.pdf. doi:10.1111/j.1745-3992.2007.00107.x.

[MPM14]

Angelo Mazza, Antonio Punzo, and Brian McGuire. KernSmoothIRT: an R package for kernel smoothing in item response theory. Journal of Statistical Software, 58(6):1–34, 2014. Open access. doi:10.18637/jss.v058.i06.

[OT00]

Maria Orlando and David Thissen. Likelihood-based item-fit indices for dichotomous item response theory models. Applied Psychological Measurement, 24(1):50–64, 2000. Not openly available; Kang and Chen (2007) describe the method. doi:10.1177/01466216000241003.

[PJ99] (1,2)

Richard J. Patz and Brian W. Junker. A straightforward approach to Markov chain Monte Carlo methods for item response models. Journal of Educational and Behavioral Statistics, 24(2):146–178, 1999. Not openly available; Kim and Bolt (2007) describe the method. doi:10.3102/10769986024002146.

[VR04]

Ravi Varadhan and Ch. Roland. Squared extrapolation methods (SQUAREM): a new class of simple and efficient numerical schemes for accelerating the convergence of the EM algorithm. Working Paper 63, Johns Hopkins University, Department of Biostatistics, 2004. Open access. URL: https://biostats.bepress.com/jhubiostat/paper63.

[War89]

Thomas A. Warm. Weighted likelihood estimation of ability in item response theory. Psychometrika, 54(3):427–450, 1989. Not openly available; Warm's (1985) dissertation, https://hdl.handle.net/11244/5356, derives the same results. doi:10.1007/BF02294627.

[WM82] (1,2,3,4,5,6)

Benjamin D. Wright and Geoffrey N. Masters. Rating Scale Analysis. MESA Press, Chicago, 1982. Open copy: https://www.rasch.org/BTD_RSA/pdf/Rating%20Scale%20Analysis.pdf.

[WS79] (1,2)

Benjamin D. Wright and Mark H. Stone. Best Test Design. MESA Press, Chicago, 1979. Open copy: https://www.rasch.org/BTD_RSA/pdf/Best%20Test%20Design.pdf.

[Yen81] (1,2)

Wendy M. Yen. Using simulation results to choose a latent trait model. Applied Psychological Measurement, 5(2):245–262, 1981. Open copy: https://hdl.handle.net/11299/100381. doi:10.1177/014662168100500212.