Ability Estimation#
Ability estimation gives each examinee’s ability, with its standard error, from its responses to
items of known parameters. Each estimator is a function that takes a response matrix with one row
per examinee and one column per item, holding 1, 0 or NaN where the examinee did not answer the item,
and the items, one row [a, b, c, d] per column, with its settings as keyword arguments
(ADR-0010). It returns an
AbilityEstimates: for each examinee an estimate, its standard error, the
number of evaluations of the estimator’s objective or of its derivatives, and its warnings. A
warning about one examinee comes from the caller’s line and names the examinee’s row when the matrix
has more than one; the result keeps it without the row
(ADR-0016). The
EAP by Number Correct takes the items alone and returns one estimate per number correct, which
every examinee who answered every item reads by its number correct.
An examinee’s estimate depends only on the items it answered, so its row gives the same estimate alone as in any matrix: exactly where it answered every item, and otherwise to the rounding of a sum over more terms, which can also move a search’s last step and change its evaluation count by one, since the maximum likelihood and weighted likelihood searches, and MAP’s under a normal prior, search every row of a matrix at once with the arithmetic of one row. On these pages, \(L_j(\theta)\) is the likelihood of examinee \(j\)’s responses \(u_{ij}\), the product of \(P_i^{u_{ij}} Q_i^{1 - u_{ij}}\) over the items \(i\) it answered, and \(I(\theta)\) the test information of those items, both as Item Response Functions defines them.
An item with a parameter that is NaN or infinite is an error that names the item. The guarantees on these pages hold for the parameters and priors a calibration gives. Values whose arithmetic can leave the range of a double, such as a discrimination above about \(5.6 \times 10^{102}\) or a normal prior with a standard deviation near \(10^{-154}\), give NumPy’s warnings or SciPy’s errors, and an estimate may then be NaN or differ between a matrix and a row alone (ADR-0014).
Estimator |
Standard error |
Responses all correct or all incorrect |
No item answered |
|---|---|---|---|
\(1/\sqrt{I(\hat\theta)}\) |
\(\pm\infty\), or the bound they point to |
NaN |
|
\(1/\sqrt{I(\hat\theta) - (\log\pi)''(\hat\theta)}\) |
finite, within the bounds |
the prior’s mode |
|
the posterior standard deviation |
finite |
the prior’s mean |
|
\(1/\sqrt{I(\hat\theta)}\), or one of two other formulas |
finite, within the bounds |
NaN |
|
the posterior standard deviation given the number correct |
finite |
the prior’s mean |
- class irtlib.ability.AbilityEstimates(theta: NDArray[floating[Any]], standard_errors: NDArray[floating[Any]], evaluations: NDArray[integer[Any]], from_fallback: NDArray[bool], warnings: tuple[tuple[Warning, ...], ...])[source]#
Each examinee’s ability estimate, its standard error, and the evaluations of the estimator’s objective it took.
Printed, it names the examinees estimated by the fallback or with warnings, and shows a table of each examinee’s values.
- Parameters:
- thetanumpy.ndarray
The estimates, one per row of the response matrix.
- standard_errorsnumpy.ndarray
Their standard errors, by the estimator’s formula.
- evaluationsnumpy.ndarray
For each examinee, the number of evaluations of the estimator’s objective, the likelihood, the posterior or Warm’s modified score, or of the objective’s derivatives, each ability of a grid counted once.
- from_fallbacknumpy.ndarray
For each examinee, whether its estimate, standard error, evaluations and warnings are those of the fallback estimator of
maximum_likelihood(); False everywhere for the other estimators.- warningstuple[tuple[Warning, …], …]
For each examinee, the warnings about its estimate, each a
Warningof the category it is issued with, whose message leaves out the examinee’s row; empty where there are none.