# Item and Person Fit ```{py:module} irtlib.fit ``` Item fit compares, item by item, the responses a calibration predicts with those observed. S-X² takes a calibration by {doc}`/methods/calibration/mml`, whose grid and population it uses. The item mean squares take a calibration of any model at the caller's abilities, or by default at EAP estimates on its grid. Both need complete responses ({doc}`ADR-0006 `). Person fit compares, examinee by examinee, the responses with their expectations at the examinee's ability, from the responses, the items and the abilities, with missing responses left out. | Statistic | Models | Groups the examinees by | Result | |---|---|---|---| | {doc}`s-x2` | 1PL to 4PL | number-correct score | {class}`~irtlib.fit.ItemFit`: a $\chi^2$ statistic, its degrees of freedom and $p$-value, and the observed and expected proportions correct at each number correct | | {doc}`mean-squares` of the items | 1PL to 4PL | not grouped: each response against its expectation | {class}`~irtlib.fit.MeanSquares`: the infit and outfit, and their standardized values | | {doc}`mean-squares` of the examinees | 1PL to 4PL | not grouped: each response against its expectation | {class}`~irtlib.fit.MeanSquares`, for each examinee | | {doc}`conditional-mean-squares` of the items | 1PL | number-correct score | {class}`~irtlib.fit.MeanSquares`: the conditional infit and outfit, and their standardized values | The conditional mean squares compare each response with its expectation given the examinee's number correct, which under the 1PL needs no ability; they take a calibration of the 1PL of any likelihood, and complete responses. ```{toctree} :maxdepth: 1 s-x2 mean-squares conditional-mean-squares ```